Commit 105e5e79 authored by 陆正友's avatar 陆正友

进项导入(经租)

parent b7aeb65f
...@@ -11,13 +11,23 @@ ...@@ -11,13 +11,23 @@
<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) {
...@@ -61,22 +63,39 @@ ...@@ -61,22 +63,39 @@
} }
} }
function acp522_save() { function acp522_save() {
var record=$('acp522_acp_invoice_import_detail_ds').getCurrentRecord();
if(record.get('business_type')=='LEASE'){
if($('acp522_acp_invoice_import_detail_ds').validate()){ if($('acp522_acp_invoice_import_detail_ds').validate()){
$('ap_invoice_import_scanning').close(); $('ap_invoice_import_scanning').close();
var record=$('acp522_acp_invoice_import_detail_ds').getCurrentRecord(); var record=$('acp522_acp_invoice_import_detail_ds').getCurrentRecord();
var record_id=record.id; var record_id=record.id;
var ds_id=record.ds.id var ds_id=record.ds.id;
// var record = $(ds_id).findById(record_id); console.log(record.get('business_type'));
var param = record.data; var param = record.data;
param['function_usage'] = 'MODIFY'; param['function_usage'] = 'MODIFY';
param['function_code'] = 'ACP522I'; param['function_code'] = 'ACP522I';
param['contract_id'] = record.get('contract_id'); param['contract_id'] = record.get('contract_id');
//param['business_type'] = record.get('business_type');
param['url_title'] = '进项发票详情'; param['url_title'] = '进项发票详情';
param['winId'] = 'aaaaa'; param['winId'] = 'aaaaa';
hls_doc_get_layout_code('hn9040_project_get_layout_code_link_id', param, 'ap_invoice_import_detail_link1', ds_id); 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