Commit 4de04feb authored by 38823's avatar 38823

月结校验开发

parent f4a7f45f
......@@ -16,6 +16,7 @@
or t.trans_review_status ='REVIEWING_OP')
and cc.contract_id = t.source_contract_id
and cc.data_class = 'NORMAL'
and to_char(t.je_date,'yyyy-mm') = ${@csh_date}
]]></bm:query-sql>
</bm:operation>
</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 @@
<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_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_refresh_link" model="hls.HLS801.hls_tax_act_confirm" modelaction="execute"/>
<a:link id="hls_tax_confirm_create_je_link"
......@@ -50,6 +51,7 @@
<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_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="gld_close_period_check_link" model="db.gld_period_pkg.close_period" modelaction="update"/>
<script><![CDATA[
......@@ -855,7 +857,7 @@
var record = $('csh_transaction_confirm_ds').getSelected()[0];
//校验是否还有未审核的保证金划转
var trans_review_count;
if(role_flag == 'YES') {
$L.request({
url: '${/request/@context_path}/autocrud/csh.CSH531.get_trans_review_status/query',
para: {
......@@ -863,7 +865,7 @@
},
sync: true,
success: function (res) {
trans_review_count=res.result.record.trans_review_number;
trans_review_count = res.result.record.trans_review_number;
},
error: function () {
......@@ -875,9 +877,10 @@
sync: true,
});
if( trans_review_count >0){
$L.showMessage('提示','有复核中的保证金,请完成复核后,再进行会计关账');
return ;
if (trans_review_count > 0) {
$L.showMessage('提示', '有复核中的保证金,请完成复核后,再进行会计关账');
return;
}
}
......@@ -887,6 +890,30 @@
$L.showMessage('提示', '该月收款已确认,无需再次确认');
return;
}
Leaf.request({
url: $('csh_check_business_link').getUrl(),
para: {
csh_date: record.get('csh_date')
},
scope: this,
success: function (res) {
var repeat_flag = res.result.p_check_flag;
if (repeat_flag == 'N'){
var url_l = $('hls_business_logs_link_id').getUrl();
var hls_business_win = new Leaf.Window({
id: 'hls_business_logs_detail_win',
url: url_l,
params: {
'winid': 'hls_business_logs_detail_win',
'csh_date': record.get('csh_date')
},
title: '月结校验提示',
width: 800,
height: 300,
closeable: false
});
}else {
$L.showConfirm('提示', '是否进行月结确认?', function () {
$L.Masker.mask(Ext.getBody(), '正在确认......');
$L.request({
......@@ -921,6 +948,15 @@
});
});
}
},
failure: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
},
error: function () {
window['${/parameter/@layout_code}_unlock_layout_dynamic_window']();
}
});
}
if (role_flag == 'YES') {
/*if (record.get('csh_confirm_flag') == 'N') {
......
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