Commit de1e437e authored by 陆正友's avatar 陆正友

合同取消工作流

parent 81b749d9
......@@ -12,9 +12,22 @@
begin
con_contract_cancle_pkg.contract_colsed_submit(p_contract_id =>${@contract_id},
p_user_id =>${/session/@user_id});
p_user_id =>${/session/@user_id},
p_role_id =>${/session/@role_id});
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
con_contract_cancle_pkg.contract_colsed_submit(p_contract_id =>${@contract_id},
p_user_id =>${/session/@user_id},
p_role_id =>${/session/@role_id});
end;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -55,6 +55,7 @@
<bm:field name="bp_id_agent_level1_n"/>
<bm:field name="project_status"/>
<bm:field name="is_constru_unit"/>
<bm:field name="sale_con_ele_flag"/>
</bm:fields>
<bm:primary-key>
<bm:pk-field name="contract_id"/>
......
......@@ -20,6 +20,7 @@
<a:link id="car_modify_special_link" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain.lview"/>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
<a:link id="car_modify_link_readonly_c" url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain_constru.lview"/>
<a:link id="contract_colsed_submit_link" model="cont.CON542.con_contract_closed" modelaction="execute"/>
<script type="text/javascript"><![CDATA[
function CON542_con_contract_query() {
$('CON542_contract_result_ds').query();
......@@ -112,9 +113,10 @@
var cancelData = [];
records[0].set('_status', 'update');
var records_reason = $('contract_cancel_ds').getAt(0);
var ds = records[0].data;
cancelData.push(records[0].data);
if(ds.sale_con_ele_flag != 'Y'){
Leaf.showConfirm('${l:PROMPT}', '您确认要提交合同取消申请?', function() {
Leaf.request({
url: $('con_contract_closed_link').getUrl(),
......@@ -130,6 +132,25 @@
});
}, function() {
}, null, null);
}else{
Leaf.showConfirm('${l:PROMPT}', '您确认要提交合同取消申请?', function() {
Leaf.request({
url: $('contract_colsed_submit_link').getUrl(),
para: {
contract_id: ds.contract_id
},
success: function() {
Leaf.SideBar.show({
msg: '提交成功',
duration: 2000
});
$('CON542_contract_result_ds').query();
},
scope: this
});
}, function() {
}, null, null);
}
}
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_authority_list_validate.lview?document_category=CONTRACT&amp;function_code=CON542"/>
......
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