Commit bf73a135 authored by panhong18943's avatar panhong18943

合同佣金

parent 7e82a915
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: ZLF
$Date: 2014-12-8 上午11:04:41
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
BEGIN
hlcm_comsn_reconcilia_pkg.insert_comsn_reconcilia_temp(p_session_id => ${/session/@session_id},
p_policy_hd_id => ${@policy_hd_id},
p_user_id => ${/session/@user_id});
END;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select count(1) count
from hlcm_comsn_reconcilia_temp t
where t.session_id = ${/session/@session_id}
and not exists
(select 1
from hlcm_comsn_reconcilia r
where r.contract_id = t.contract_id
and r.wfl_status in ('NEW', 'APPROVING', 'APPROVED'))
]]></bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field name="count"/>
</bm:fields>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: ZLF
$Date: 2014-12-8 上午11:04:41
$Revision: 1.0
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
<bm:operations>
<bm:operation name="delete">
<bm:update-sql><![CDATA[
begin
delete from hlcm_comsn_reconcilia_wfl_temp t where t.session_id = ${/session/@session_id};
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
BEGIN
hlcm_comsn_reconcilia_pkg.create_comsn_wfl_temp(p_session_id => ${/session/@session_id},
p_contract_id => ${@contract_id},
p_user_id => ${/session/@user_id});
END;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
BEGIN
hlcm_comsn_reconcilia_pkg.comsn_submit(p_session_id => ${/session/@session_id},
p_user_id => ${/session/@user_id});
END;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>

var add_datafilters = [{
name : 'wfl_status',
expression : "t1.wfl_status in ('APPROVING','APPROVED')"
}];
add_datafilter();
var override_queryfields = [
{
name : 'overdue_max_days_f',
queryexpression : "t1.overdue_max_days >= ${@overdue_max_days_f}"
},
{
name : 'overdue_max_days_t',
queryexpression : "t1.overdue_max_days <= ${@overdue_max_days_t}"
}
];
override();
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
var add_datafilters = [ var add_datafilters = [
{ {
name : 'init_filter', name : 'init_filter',
expression : "t1.status in ('NEW','ERROR','FINISHED','SEND_MID','CONFIRM1_ERROR','CONFIRM2_FULL_ERROR') and t1.cf_item = '40'" expression : "t1.status in ('NEW','ERROR','FINISHED','SEND_MID','CONFIRM1_ERROR','CONFIRM2_FULL_ERROR') and t1.cf_item in ('40','911')"
} }
]; ];
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: zhangxing5129
$Date: 2014-8-1 下午02:44:52
$Revision: 1.0
$Purpose: 合同维护
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:view>
<a:link id="wfl_con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<script type="text/javascript"><![CDATA[
Leaf.onReady(function () {
var batch_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hlcm_comsn_reconcilia_batch');
var comsn_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hlcm_comsn_reconcilia');
$(batch_ds_id).setQueryParameter('batch_id', '${/parameter/@batch_id}');
$(comsn_ds_id).setQueryParameter('batch_id', '${/parameter/@batch_id}');
$(batch_ds_id).query();
$(comsn_ds_id).query();
});
if ('${/parameter/@layout_code}' == 'CSH551WFL_M') {
zjwfl5110_ApproveChecker_add('zjwfl5110_submit', function(type) {
var root_ds = $('${/parameter/@layout_code}_virtual_ds');
if (type == 'agree') {
if (root_ds.validate()) {
//提交先保存
root_ds.submit();
return true;
} else {
return false;
}
}else{
return true;
}
});
}
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
</a:screen>
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" trace="true">
<a:init-procedure>
<a:model-delete model="csh.CSH551.submit_comsn_selected"/>
<batch-apply sourcepath="/parameter">
<a:model-execute model="csh.CSH551.submit_comsn_selected"/>
</batch-apply>
<a:model-update model="csh.CSH551.submit_comsn_selected"/>
</a:init-procedure>
<a:service-output output="/parameter"/>
</a:service>
\ No newline at end of file
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