Commit b06dbba3 authored by 38823's avatar 38823

资产管理费对账功能开发

parent 7fb181ab
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: 38823
$Date: 2022-01-19
$Revision: 1
$Purpose:
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="insert">
<bm:parameters>
<bm:parameter name="batch_id" output="true" outputPath="@batch_id"/>
</bm:parameters>
<bm:update-sql><![CDATA[
declare
v_batch_id hl_asset_manage_fee_batch.batch_id%TYPE := hl_asset_manage_fee_batch_s.nextval;
begin
${@batch_id} := v_batch_id;
insert into hl_asset_manage_fee_batch
(batch_id,
wfl_instance_id,
wfl_status,
created_by,
creation_date,
last_updated_by,
last_update_date,
submit_date,
approved_date,
payment_req_id)
values
(v_batch_id,
null,
null,
${/session/@user_id},
sysdate,
${/session/@user_id},
sysdate,
null,
null,
null
);
end;
]]></bm:update-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
update hl_asset_manage_fee t1
set t1.batch_id =${/parameter/@batch_id},
t1.last_updated_by = ${/session/@user_id},
t1.last_update_date = sysdate
where t1.fee_id = ${@fee_id}
]]></bm:update-sql>
</bm:operation>
<bm:operation name="execute">
<bm:update-sql><![CDATA[
begin
hl_asset_manage_fee_pkg.asset_fee_wfl_start(p_batch_id =>${/parameter/@batch_id},
p_user_id =>${/session/@user_id});
end;
]]></bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -346,5 +346,6 @@ var enableLayoutConfig = {
'modules/inv/INV100/inv_payment_wfl.lview':true,
'modules/inv/INV100/inv_payment_detail.lview':true,
'modules/inv/INV100/inv_payment_wfl_detail.lview':true,
'modules/hls/HLS303/bp_asset_create.lview':true
'modules/hls/HLS303/bp_asset_create.lview':true,
'modules/csh/CSH1500/csh_asset_reconciliation.lview':true
};
\ No newline at end of file
<?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>
<p:echo></p:echo>
<a:model-insert model="csh.CSH1500.csh_asset_wfl" trace="true"/>
<a:batch-apply sourcepath="/parameter">
<a:model-update model="csh.CSH1500.csh_asset_wfl" trace="true"/>
</a:batch-apply>
<a:model-execute model="csh.CSH1500.csh_asset_wfl" trace="true"/>
</a:init-procedure>
<a:service-output output="/parameter"/>
</a:service>
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: 38823
$Date: 2023-01-18
$Revision: 1.0
$purpose: 资产管理费对账
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script"
customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:init-procedure>
</a:init-procedure>
<a:view>
<a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
<a:link id="asset_check_wfl_link_id"
url="${/request/@context_path}/modules/csh/CSH1500/csh_asset_batch.lsc"/>
<script type="text/javascript"><![CDATA[
//提交审批
window['${/parameter/@layout_code}_submit_approval_layout_dynamic_click'] = function() {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'hl_asset_manage_fee');
var records = $(ds_id).getSelected();
var ParaData = [];
if(records.length ==0){
$L.showMessage("提示",'请至少选择一条数据!');
return;
}
for(var i=0; i<records.length;i++){
if(records[i].data.wfl_status == 'APPROVING' || records[i].data.wfl_status == 'APPROVED'){
$L.showMessage("提示",'请选择新建或者审批拒绝的单据!');
return;;
}
records[i].set('_status','execute');
ParaData.push(records[i].data);
}
Leaf.showConfirm('${l:PROMPT}', '确认提交资产管理费对账工作流?', function () {
Leaf.request({
url: $('asset_check_wfl_link_id').getUrl(),
para: ParaData,
success: function () {
Leaf.SideBar.show({
msg: '提交成功',
duration: 2000
});
$(ds_id).query();
},
scope: this
});
}, function () {
}, null, null);
};
]]></script>
<a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
</a:view>
</a:screen>
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