Commit 4d8b4d51 authored by lijingjing's avatar lijingjing

[feat] 提前结清

parent 98e76b74
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
BEGIN
cus_con_et_pkg.insert_con_cashflow(p_change_req_id=>${@change_req_id},
p_user_id=>${/session/@user_id});
END;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
hls_bp_master b, hls_bp_master b,
hls_document_type_v dt,con_contract_change_req r hls_document_type_v dt,con_contract_change_req r
WHERE WHERE
r.req_status = 'NEW' AND
r.change_req_id = t.contract_id AND r.change_req_id = t.contract_id AND
r.et_flag='Y' AND r.et_flag='Y' AND
t.bp_id_tenant = b.bp_id(+) AND t.bp_id_tenant = b.bp_id(+) AND
...@@ -179,6 +179,7 @@ ...@@ -179,6 +179,7 @@
<bm:query-field name="date_to" datatype="java.lang.String" queryexpression="t1.inception_of_lease &lt;= ${@date_to}"/> <bm:query-field name="date_to" datatype="java.lang.String" queryexpression="t1.inception_of_lease &lt;= ${@date_to}"/>
<bm:query-field name="lease_end_date_from" datatype="java.lang.String" queryexpression="t1.lease_end_date &gt;= ${@lease_end_date_from}"/> <bm:query-field name="lease_end_date_from" datatype="java.lang.String" queryexpression="t1.lease_end_date &gt;= ${@lease_end_date_from}"/>
<bm:query-field name="lease_end_date_to" datatype="java.lang.String" queryexpression="t1.lease_end_date &lt;= ${@lease_end_date_to}"/> <bm:query-field name="lease_end_date_to" datatype="java.lang.String" queryexpression="t1.lease_end_date &lt;= ${@lease_end_date_to}"/>
<bm:query-field name="change_req_number" datatype="java.lang.String" queryexpression="upper(t1.change_req_number) like &apos;%&apos; || upper(${@change_req_number}) || &apos;%&apos;"/>
<bm:query-field name="contract_number" datatype="java.lang.String" queryexpression="upper(t1.contract_number) like &apos;%&apos; || upper(${@contract_number}) || &apos;%&apos;"/> <bm:query-field name="contract_number" datatype="java.lang.String" queryexpression="upper(t1.contract_number) like &apos;%&apos; || upper(${@contract_number}) || &apos;%&apos;"/>
<!-- <bm:query-field name="license_number" datatype="java.lang.String" queryexpression="upper(t1.license_number) like &apos;%&apos; || upper(${@license_number}) || &apos;%&apos;"/> --> <!-- <bm:query-field name="license_number" datatype="java.lang.String" queryexpression="upper(t1.license_number) like &apos;%&apos; || upper(${@license_number}) || &apos;%&apos;"/> -->
<bm:query-field name="contract_name" datatype="java.lang.String" queryexpression="t1.contract_name like &apos;%&apos; || ${@contract_name} || &apos;%&apos;"/> <bm:query-field name="contract_name" datatype="java.lang.String" queryexpression="t1.contract_name like &apos;%&apos; || ${@contract_name} || &apos;%&apos;"/>
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<a:link id="con_et002_submit_link" model="cont.CON_ET001.submit_change_req" modelaction="execute"/> <a:link id="con_et002_submit_link" model="cont.CON_ET001.submit_change_req" modelaction="execute"/>
<a:link id="con_et002_cancel_link" model="cont.CON731.cancel_change_req" modelaction="execute"/> <a:link id="con_et002_cancel_link" model="cont.CON731.cancel_change_req" modelaction="execute"/>
<a:link id="con_et001_calc_cashflow_link" model="cont.CON_ET001.calc_cashflow" modelaction="execute"/> <a:link id="con_et001_calc_cashflow_link" model="cont.CON_ET001.calc_cashflow" modelaction="execute"/>
<a:link id="con_et001_calc_cashflow_link1" model="cont.CON_ET001.insert_calc_cashflow" modelaction="execute"/>
<a:link id="con_et001_calc_et_date_amount_link" model="cont.CON_ET001.calc_et_date_amount" modelaction="execute"/> <a:link id="con_et001_calc_et_date_amount_link" model="cont.CON_ET001.calc_et_date_amount" modelaction="execute"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
//新增和加载时调用form //新增和加载时调用form
...@@ -135,7 +136,7 @@ ...@@ -135,7 +136,7 @@
// window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); // window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
// return; // return;
// } // }
setTimeout(window['${/parameter/@layout_code}_SAVE_LAYOUT_DYNAMIC_CLICK'](clac), 2000); clac();
} else { } else {
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
$('${/parameter/@layout_code}_user_button1').enable(); //按钮启用 $('${/parameter/@layout_code}_user_button1').enable(); //按钮启用
...@@ -144,9 +145,9 @@ ...@@ -144,9 +145,9 @@
function clac(){ function clac(){
Leaf.request({ Leaf.request({
url: $('con_et001_calc_cashflow_link').getUrl(), url: $('con_et001_calc_cashflow_link1').getUrl(),
para: { para: {
contract_id: '${/parameter/@contract_id}', change_req_id: '${/parameter/@change_req_id}',
}, },
success: function(res) { success: function(res) {
Leaf.SideBar.enable = true; Leaf.SideBar.enable = true;
......
...@@ -54,9 +54,9 @@ ...@@ -54,9 +54,9 @@
param['contract_id'] = change_req_id; param['contract_id'] = change_req_id;
param['source_contract_id'] = contract_id; param['source_contract_id'] = contract_id;
//param['layout_debugger_flag'] = 'Y'; //param['layout_debugger_flag'] = 'Y';
param['function_code'] = 'CON_ET002'; param['function_code'] = 'CON_ET002_Q';
param['url_title'] = '提前结清明细'; param['url_title'] = '提前结清明细';
param['function_usage'] = 'READONLY'; param['function_usage'] = 'QUERY';
param['maintain_type'] = 'QUERY'; param['maintain_type'] = 'QUERY';
param['document_type'] = 'ET_CHAG'; param['document_type'] = 'ET_CHAG';
param['winid'] = 'con_et003_detail_winid'; param['winid'] = 'con_et003_detail_winid';
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
<a:field name="contract_status_desc" displayField="code_value_name" options="contract_status_ds" returnField="contract_status" valueField="code_value"/> <a:field name="contract_status_desc" displayField="code_value_name" options="contract_status_ds" returnField="contract_status" valueField="code_value"/>
<a:field name="req_employee_n"/> <a:field name="req_employee_n"/>
<a:field name="req_status"/> <a:field name="req_status"/>
<a:field name="req_status_n" displayField="code_value_name" options="contract_chage_req_status_ds" returnField="contract_status" valueField="code_value"/> <a:field name="req_status_n" displayField="code_value_name" options="contract_chage_req_status_ds" returnField="req_status" valueField="code_value"/>
</a:fields> </a:fields>
</a:dataSet> </a:dataSet>
<a:dataSet id="contractQueryScreen_mainDs" autoQuery="true" fetchAll="false" model="cont.CON_ET003.con_early_termination_modify_query" pageSize="14" queryDataSet="contractQueryScreen_paraDs" selectable="true" selectionModel="single"> <a:dataSet id="contractQueryScreen_mainDs" autoQuery="true" fetchAll="false" model="cont.CON_ET003.con_early_termination_modify_query" pageSize="14" queryDataSet="contractQueryScreen_paraDs" selectable="true" selectionModel="single">
......
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