Commit 3e78a96c authored by 陆正友's avatar 陆正友

进项导入(经租)

parent ed728dc3
...@@ -10,14 +10,24 @@ ...@@ -10,14 +10,24 @@
<bm:operation name="query"> <bm:operation name="query">
<bm:query-sql> <bm:query-sql>
<![CDATA[ <![CDATA[
select * select *
from (select c.contract_id, c.contract_number, c.contract_name from (select c.contract_id,
c.contract_number,
c.contract_name,
c.business_type,
(SELECT description
FROM HLS_BUSINESS_TYPE_V a
WHERE a.business_type = c.business_type) business_type_n
from con_contract c from con_contract c
where c.data_class = 'NORMAL' where c.data_class = 'NORMAL'
and c.contract_status IN ('REPURING','ETING','INCEPT','PENDING') and c.contract_status IN
and c.business_type <>'LEASEBACK' ('REPURING', 'ETING', 'INCEPT', 'PENDING')
and not exists (select 1 from acp_invoice_ln an where an.contract_id=c.contract_id and an.confirmation_status in('APPROVING','APPROVED')) and c.business_type <> 'LEASEBACK'
) V and not exists
(select 1
from acp_invoice_ln an
where an.contract_id = c.contract_id
and an.confirmation_status in ('APPROVING', 'APPROVED'))) V
#WHERE_CLAUSE# #WHERE_CLAUSE#
]]></bm:query-sql> ]]></bm:query-sql>
</bm:operation> </bm:operation>
...@@ -27,6 +37,9 @@ ...@@ -27,6 +37,9 @@
<bm:field name="contract_number" forDisplay="true" forQuery="true" prompt="ACR310.CONTRACT_NUMBER"/> <bm:field name="contract_number" forDisplay="true" forQuery="true" prompt="ACR310.CONTRACT_NUMBER"/>
<bm:field name="contract_name" forDisplay="true" forQuery="true" prompt="ACR310.CONTRACT_NAME"/> <bm:field name="contract_name" forDisplay="true" forQuery="true" prompt="ACR310.CONTRACT_NAME"/>
<bm:field name="contract_id"/> <bm:field name="contract_id"/>
<bm:field name="business_type_n" forDisplay="true" forQuery="true" prompt="业务类型"/>
<bm:field name="business_type" forDisplay="true" forQuery="true" prompt="业务类型"/>
</bm:fields> </bm:fields>
<!-- <bm:fields>--> <!-- <bm:fields>-->
<!-- <bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="contract_number" prompt="ACR310.CONTRACT_NUMBER"/>--> <!-- <bm:field name="contract_number" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="contract_number" prompt="ACR310.CONTRACT_NUMBER"/>-->
...@@ -36,5 +49,8 @@ ...@@ -36,5 +49,8 @@
<bm:query-fields> <bm:query-fields>
<bm:query-field field="contract_number" queryOperator="like"/> <bm:query-field field="contract_number" queryOperator="like"/>
<bm:query-field field="contract_name" queryOperator="like"/> <bm:query-field field="contract_name" queryOperator="like"/>
<bm:query-field field="business_type_n" queryOperator="like"/>
<bm:query-field field="business_type" queryOperator="like"/>
</bm:query-fields> </bm:query-fields>
</bm:model> </bm:model>
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
<a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="ap_invoice_import_detail_link1" <a:link id="ap_invoice_import_detail_link1"
url="${/request/@context_path}/modules/acp/ACP522/ap_invoice_import_detail.lview"/> url="${/request/@context_path}/modules/acp/ACP522/ap_invoice_import_detail.lview"/>
<a:link id="jz_invoice_import_detail_link1"
url="${/request/@context_path}/modules/acp/ACP522/jz_invoice_import_detail.lview"/>
<script><![CDATA[ <script><![CDATA[
function invoice_inf_process(dataset, record, name, value, oldvalue) { function invoice_inf_process(dataset, record, name, value, oldvalue) {
...@@ -60,24 +62,41 @@ ...@@ -60,24 +62,41 @@
} }
} }
} }
function acp522_save() { function acp522_save() {
if($('acp522_acp_invoice_import_detail_ds').validate()){ var record=$('acp522_acp_invoice_import_detail_ds').getCurrentRecord();
$('ap_invoice_import_scanning').close(); if(record.get('business_type')=='LEASE'){
var record=$('acp522_acp_invoice_import_detail_ds').getCurrentRecord(); if($('acp522_acp_invoice_import_detail_ds').validate()){
var record_id=record.id; $('ap_invoice_import_scanning').close();
var ds_id=record.ds.id var record=$('acp522_acp_invoice_import_detail_ds').getCurrentRecord();
// var record = $(ds_id).findById(record_id); var record_id=record.id;
var param = record.data; var ds_id=record.ds.id;
param['function_usage'] = 'MODIFY'; console.log(record.get('business_type'));
param['function_code'] = 'ACP522I'; var param = record.data;
param['contract_id'] = record.get('contract_id'); param['function_usage'] = 'MODIFY';
param['url_title'] = '进项发票详情'; param['function_code'] = 'ACP522I';
param['winId'] = 'aaaaa'; param['contract_id'] = record.get('contract_id');
hls_doc_get_layout_code('hn9040_project_get_layout_code_link_id', param, 'ap_invoice_import_detail_link1', ds_id); //param['business_type'] = record.get('business_type');
param['url_title'] = '进项发票详情';
param['winId'] = 'aaaaa';
hls_doc_get_layout_code('hn9040_project_get_layout_code_link_id', param, 'ap_invoice_import_detail_link1', ds_id);
}
}else{
if($('acp522_acp_invoice_import_detail_ds').validate()){
$('ap_invoice_import_scanning').close();
var record=$('acp522_acp_invoice_import_detail_ds').getCurrentRecord();
var record_id=record.id;
var ds_id=record.ds.id;
var param = record.data;
param['function_usage'] = 'MODIFY';
param['function_code'] = 'ACP522J';
param['contract_id'] = record.get('contract_id');
//param['business_type'] = record.get('business_type');
param['url_title'] = '进项发票详情(经租)';
param['winId'] = 'bbbbb';
hls_doc_get_layout_code('hn9040_project_get_layout_code_link_id', param, 'jz_invoice_import_detail_link1', ds_id);
}
} }
}
}
function acp522_back() { function acp522_back() {
$('ap_invoice_import_scanning').close(); $('ap_invoice_import_scanning').close();
} }
...@@ -94,6 +113,7 @@ ...@@ -94,6 +113,7 @@
<a:map from="contract_number" to="contract_number"/> <a:map from="contract_number" to="contract_number"/>
<a:map from="contract_name" to="contract_name"/> <a:map from="contract_name" to="contract_name"/>
<a:map from="contract_id" to="contract_id"/> <a:map from="contract_id" to="contract_id"/>
<a:map from="business_type" to="business_type"/>
</a:mapping> </a:mapping>
</a:field> </a:field>
</a:fields> </a:fields>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment