Commit 9944cf9c authored by Spencer Chang's avatar Spencer Chang

[fix] 添加提交按钮逻辑

parent 2a7121ab
...@@ -29,6 +29,7 @@ sys_function_assign_pkg.func_bm_load('CON_REPO001','cont.CON500.con_contract_get ...@@ -29,6 +29,7 @@ sys_function_assign_pkg.func_bm_load('CON_REPO001','cont.CON500.con_contract_get
sys_function_assign_pkg.func_bm_load('CON_REPO001','cont.CON_REPO001.create_change_req'); sys_function_assign_pkg.func_bm_load('CON_REPO001','cont.CON_REPO001.create_change_req');
sys_function_assign_pkg.func_bm_load('CON_REPO001','cont.CON_REPO001.calc_repo_date_amount'); sys_function_assign_pkg.func_bm_load('CON_REPO001','cont.CON_REPO001.calc_repo_date_amount');
sys_function_assign_pkg.func_bm_load('CON_REPO001','cont.CON_REPO001.calc_cashflow'); sys_function_assign_pkg.func_bm_load('CON_REPO001','cont.CON_REPO001.calc_cashflow');
sys_function_assign_pkg.func_bm_load('CON_REPO001','cont.CON_REPO001.submit_change_req');
--分配菜单 --分配菜单
sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'CON_CHANGE_REQ',p_function_code=>'CON_REPO001',p_enabled_flag=>'Y',P_USER_ID=>-1); sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'CON_CHANGE_REQ',p_function_code=>'CON_REPO001',p_enabled_flag=>'Y',P_USER_ID=>-1);
......
...@@ -28,6 +28,7 @@ sys_function_assign_pkg.func_service_load('CON_REPO003','modules/cont/CON501N/co ...@@ -28,6 +28,7 @@ sys_function_assign_pkg.func_service_load('CON_REPO003','modules/cont/CON501N/co
sys_function_assign_pkg.func_bm_load('CON_REPO003','cont.CON500.con_contract_get_layout_code'); sys_function_assign_pkg.func_bm_load('CON_REPO003','cont.CON500.con_contract_get_layout_code');
sys_function_assign_pkg.func_bm_load('CON_REPO003','cont.CON_REPO001.get_last_rent_due_date'); sys_function_assign_pkg.func_bm_load('CON_REPO003','cont.CON_REPO001.get_last_rent_due_date');
sys_function_assign_pkg.func_bm_load('CON_REPO003','cont.CON_REPO001.calc_cashflow'); sys_function_assign_pkg.func_bm_load('CON_REPO003','cont.CON_REPO001.calc_cashflow');
sys_function_assign_pkg.func_bm_load('CON_REPO003','cont.CON_REPO001.submit_change_req');
--分配菜单 --分配菜单
sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'CON_CHANGE_REQ',p_function_code=>'CON_REPO003',p_enabled_flag=>'Y',P_USER_ID=>-1); sys_load_sys_function_grp_pkg.sys_function_group_item_load(p_function_group_code=>'CON_CHANGE_REQ',p_function_code=>'CON_REPO003',p_enabled_flag=>'Y',P_USER_ID=>-1);
......
<?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:parameters>
<bm:parameter name="change_req_id" dataType="java.lang.Long" input="true" output="false"/>
<bm:parameter name="user_id" dataType="java.lang.Long" input="true" output="false"/>
</bm:parameters>
<bm:update-sql><![CDATA[
begin
cus_con_contract_repo_pkg.submit_change_req_repo(p_change_req_id=>${@change_req_id},
p_layout_code=>${@layout_code},
p_user_id=>${/session/@user_id});
end;]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<a:init-procedure/> <a:init-procedure/>
<a:view> <a:view>
<a:link id="con_contract_repo_detail_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/> <a:link id="con_contract_repo_detail_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="con_repo_submit_link" model="" modelaction="execute"/>
<a:link id="con_repo001_cancel_link" model="cont.CON731.cancel_change_req" modelaction="execute"/> <a:link id="con_repo001_cancel_link" model="cont.CON731.cancel_change_req" modelaction="execute"/>
<a:link id="con_repo001_calc_cashflow_link" model="cont.CON_REPO001.calc_cashflow" modelaction="execute"/> <a:link id="con_repo001_calc_cashflow_link" model="cont.CON_REPO001.calc_cashflow" modelaction="execute"/>
<a:link id="con_repo001_calc_repo_date_amount_link" model="cont.CON_REPO001.calc_repo_date_amount" modelaction="execute"/> <a:link id="con_repo001_calc_repo_date_amount_link" model="cont.CON_REPO001.calc_repo_date_amount" modelaction="execute"/>
...@@ -206,7 +207,7 @@ ...@@ -206,7 +207,7 @@
var req_record = $(req_ds_id).getAt(0); var req_record = $(req_ds_id).getAt(0);
window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window'](); window['${/parameter/@bp_seq}${/parameter/@layout_code}_lock_layout_dynamic_window']();
Leaf.request({ Leaf.request({
url: $('con731_submit_link').getUrl(), url: $('con_repo_submit_link').getUrl(),
para: { para: {
change_req_id: ${/parameter/@change_req_id}, change_req_id: ${/parameter/@change_req_id},
layout_code: '${/parameter/@layout_code}' layout_code: '${/parameter/@layout_code}'
......
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