Commit 4de04feb authored by 38823's avatar 38823

月结校验开发

parent f4a7f45f
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
or t.trans_review_status ='REVIEWING_OP') or t.trans_review_status ='REVIEWING_OP')
and cc.contract_id = t.source_contract_id and cc.contract_id = t.source_contract_id
and cc.data_class = 'NORMAL' and cc.data_class = 'NORMAL'
and to_char(t.je_date,'yyyy-mm') = ${@csh_date}
]]></bm:query-sql> ]]></bm:query-sql>
</bm:operation> </bm:operation>
</bm:operations> </bm:operations>
......
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select dbms_lob.substr(t.err_msg) as err_msg from hls_monthy_business_log t where t.csh_date = ${@csh_date}
]]>
</bm:query-sql>
</bm:operation>
<bm:operation name="update">
<bm:update-sql><![CDATA[
begin
hls_monthy_business_pkg.csh_transaction_confirm(
p_csh_date=>${@csh_date},
p_check_flag=>${@p_check_flag}
);
end;
]]></bm:update-sql>
<bm:parameters>
<bm:parameter name="p_check_flag" dataType="java.lang.String" input="false" output="true" outputPath="@p_check_flag"/>
</bm:parameters>
</bm:operation>
</bm:operations>
</bm:model>
<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure/>
<a:view>
<a:link id="prj_project_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code"
modelaction="update"/>
<a:link id="prj_project_link_readonly"
url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_maintain.lview"/>
<a:link id="${/parameter/@layout_code}lease_number_query_link_prj501n"
url="${/request/@context_path}/modules/prj/PRJ501N/prj_project_lease_import_details.lview"/>
<a:link id="${/parameter/@layout_code}con_contract_query_link"
url="${/request/@context_path}/modules/cont/CON3200/con_re_incept_modify.lview"/>
<a:link id="${/parameter/@layout_code}con_contract_op_query_link"
url="${/request/@context_path}/modules/cont/CON3200/con_re_incept_op_modify.lview"/>
<script type="text/javascript"><![CDATA[
function hls_monthly_business_ds_query() {
$('hls_monthly_business_ds').setQueryParameter('csh_date', '${/parameter/@csh_date}');
}
function win_quit() {
debugger;
$('${/parameter/@winid}').close();
}
]]></script>
<a:dataSets>
<a:dataSet id="hls_monthly_business_ds" autoPageSize="true" autoQuery="true"
model="hls.HLS801.check_business_monthly">
<a:events>
<a:event name="query" handler="hls_monthly_business_ds_query"/>
</a:events>
</a:dataSet>
</a:dataSets>
<a:grid id="hls_monthly_business_ds_grid" bindTarget="hls_monthly_business_ds" readOnly="true" Height="250"
Width="790" navBar="true">
<a:toolBar>
<a:button type="excel"/>
</a:toolBar>
<a:columns>
<a:column name="err_msg" prompt="提示信息" width="790" editor="text_area_ta"/>
</a:columns>
<a:editors>
<a:textArea id="text_area_ta" readOnly="true"/>
</a:editors>
</a:grid>
<a:screenTopToolbar>
<a:toolbarButton id="confirm_btn_id" click="win_quit" text="确认" style="position:absolute;left:350px;"/>
</a:screenTopToolbar>
</a:view>
</a:screen>
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
<a:link id="user_main_link" url="${/request/@context_path}/user_role_home_page.lview"/> <a:link id="user_main_link" url="${/request/@context_path}/user_role_home_page.lview"/>
<a:link id="csh_current_period_link" model="hls.HLS801.csh_current_period_query" modelaction="update"/> <a:link id="csh_current_period_link" model="hls.HLS801.csh_current_period_query" modelaction="update"/>
<a:link id="csh_check_acr_link" model="hls.HLS801.csh_current_period_query" modelaction="execute"/> <a:link id="csh_check_acr_link" model="hls.HLS801.csh_current_period_query" modelaction="execute"/>
<a:link id="csh_check_business_link" model="hls.HLS801.check_business_monthly" modelaction="update"/>
<a:link id="hls_tax_confirm_link" model="hls.HLS801.hls_tax_act_confirm" modelaction="update"/> <a:link id="hls_tax_confirm_link" model="hls.HLS801.hls_tax_act_confirm" modelaction="update"/>
<a:link id="hls_tax_refresh_link" model="hls.HLS801.hls_tax_act_confirm" modelaction="execute"/> <a:link id="hls_tax_refresh_link" model="hls.HLS801.hls_tax_act_confirm" modelaction="execute"/>
<a:link id="hls_tax_confirm_create_je_link" <a:link id="hls_tax_confirm_create_je_link"
...@@ -50,6 +51,7 @@ ...@@ -50,6 +51,7 @@
<a:link id="hls_attachment_uploadFile_id" url="${/request/@context_path}/uploadFile.lview"/> <a:link id="hls_attachment_uploadFile_id" url="${/request/@context_path}/uploadFile.lview"/>
<a:link id="hls_attachment_downloadFile_id" url="${/request/@context_path}/downloadFile.lview"/> <a:link id="hls_attachment_downloadFile_id" url="${/request/@context_path}/downloadFile.lview"/>
<a:link id="hls_attachment_uploadonlyFile_id" url="${/request/@context_path}/uploadonlyFile.lview"/> <a:link id="hls_attachment_uploadonlyFile_id" url="${/request/@context_path}/uploadonlyFile.lview"/>
<a:link id="hls_business_logs_link_id" url="${/request/@context_path}/modules/hls/HLS801/hls_monthly_business.lview"/>
<a:link id="con_exist_approving_id" model="hls.HLS801.con_exist_approving" modelaction="query"/> <a:link id="con_exist_approving_id" model="hls.HLS801.con_exist_approving" modelaction="query"/>
<a:link id="gld_close_period_check_link" model="db.gld_period_pkg.close_period" modelaction="update"/> <a:link id="gld_close_period_check_link" model="db.gld_period_pkg.close_period" modelaction="update"/>
<script><![CDATA[ <script><![CDATA[
...@@ -855,29 +857,30 @@ ...@@ -855,29 +857,30 @@
var record = $('csh_transaction_confirm_ds').getSelected()[0]; var record = $('csh_transaction_confirm_ds').getSelected()[0];
//校验是否还有未审核的保证金划转 //校验是否还有未审核的保证金划转
var trans_review_count; var trans_review_count;
if(role_flag == 'YES') {
$L.request({
url: '${/request/@context_path}/autocrud/csh.CSH531.get_trans_review_status/query',
para: {
csh_date: record.get('csh_date')
},
sync: true,
success: function (res) {
trans_review_count = res.result.record.trans_review_number;
},
error: function () {
$L.request({ },
url: '${/request/@context_path}/autocrud/csh.CSH531.get_trans_review_status/query', failure: function () {
para: {
csh_date: record.get('csh_date')
},
sync: true,
success: function (res) {
trans_review_count=res.result.record.trans_review_number;
},
error: function () {
},
failure: function () {
}, },
scope: this, scope: this,
sync: true, sync: true,
}); });
if( trans_review_count >0){ if (trans_review_count > 0) {
$L.showMessage('提示','有复核中的保证金,请完成复核后,再进行会计关账'); $L.showMessage('提示', '有复核中的保证金,请完成复核后,再进行会计关账');
return ; return;
}
} }
...@@ -887,38 +890,71 @@ ...@@ -887,38 +890,71 @@
$L.showMessage('提示', '该月收款已确认,无需再次确认'); $L.showMessage('提示', '该月收款已确认,无需再次确认');
return; return;
} }
$L.showConfirm('提示', '是否进行月结确认?', function () { Leaf.request({
$L.Masker.mask(Ext.getBody(), '正在确认......'); url: $('csh_check_business_link').getUrl(),
$L.request({ para: {
url: $('csh_current_period_link').getUrl(), csh_date: record.get('csh_date')
para: { },
ref_v04: record.get('ref_v04'), scope: this,
csh_date: record.get('csh_date'), success: function (res) {
role_flag: role_flag var repeat_flag = res.result.p_check_flag;
}, if (repeat_flag == 'N'){
success: function (args) { var url_l = $('hls_business_logs_link_id').getUrl();
$L.Masker.unmask(Ext.getBody()); var hls_business_win = new Leaf.Window({
if (args.result.p_err_msg) { id: 'hls_business_logs_detail_win',
$L.showErrorMessage("提示", args.result.p_err_msg, null, 800, 300); url: url_l,
} else { params: {
$L.SideBar.show({ 'winid': 'hls_business_logs_detail_win',
msg: '已确认', 'csh_date': record.get('csh_date')
duration: 2000
},
title: '月结校验提示',
width: 800,
height: 300,
closeable: false
});
}else {
$L.showConfirm('提示', '是否进行月结确认?', function () {
$L.Masker.mask(Ext.getBody(), '正在确认......');
$L.request({
url: $('csh_current_period_link').getUrl(),
para: {
ref_v04: record.get('ref_v04'),
csh_date: record.get('csh_date'),
role_flag: role_flag
},
success: function (args) {
$L.Masker.unmask(Ext.getBody());
if (args.result.p_err_msg) {
$L.showErrorMessage("提示", args.result.p_err_msg, null, 800, 300);
} else {
$L.SideBar.show({
msg: '已确认',
duration: 2000
});
$('csh_transaction_confirm_ds').query();
}
},
failure: function () {
$L.Masker.unmask(Ext.getBody());
},
error: function () {
$L.Masker.unmask(Ext.getBody());
},
scope: this,
sync: true,
}); });
$('csh_transaction_confirm_ds').query(); });
}
} },
failure: function () {
}, window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
failure: function () { },
$L.Masker.unmask(Ext.getBody()); error: function () {
}, window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
error: function () { }
$L.Masker.unmask(Ext.getBody());
},
scope: this,
sync: true,
});
}); });
} }
......
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