Commit 5af8219e authored by 18083's avatar 18083

会计月结关闭期间新增保证金时间价值流程校验

parent dca24e16
......@@ -8,18 +8,27 @@
<model xmlns="http://www.leaf-framework.org/schema/bm">
<operations>
<operation name="execute">
<update-sql><![CDATA[
begin
gld_period_pkg.close_period(${/session/@company_id},
${@period_set_code},
${@period_name},
${/session/@user_id},
${@p_err_msg});
end;
]]></update-sql>
<parameters>
<parameter name="p_err_msg" dataType="java.lang.String" input="false" output="true" outputPath="@p_err_msg"/>
</parameters>
</operation>
</operations>
<update-sql><![CDATA[
begin
gld_period_pkg.close_period(${/session/@company_id},
${@period_set_code},
${@period_name},
${/session/@user_id});
end;
]]></update-sql>
</operation>
<operation name="update">
<update-sql><![CDATA[
begin
gld_period_pkg.close_period_check(${@period_set_code},
${@period_name},
${/session/@user_id},
${@p_err_msg});
end;
]]></update-sql>
<parameters>
<parameter name="p_err_msg" dataType="java.lang.String" input="false" output="true" outputPath="@p_err_msg"/>
</parameters>
</operation>
</operations>
</model>
......@@ -13,6 +13,7 @@
<a:link id="gld_period_pkg_init_period_link" model="db.gld_period_pkg.init_period" modelaction="update"/>
<a:link id="gld_period_pkg_close_period_link" model="db.gld_period_pkg.close_period" modelaction="execute"/>
<a:link id="gld_period_pkg_open_period_link" model="db.gld_period_pkg.open_period" modelaction="execute"/>
<a:link id="gld_close_period_check_link" model="db.gld_period_pkg.close_period" modelaction="update"/>
<script type="text/javascript"><![CDATA[
function openPeriodDs(value, record, name) {
......@@ -83,26 +84,53 @@
scope: this
});
} else {
Leaf.request({
url: url,
para: record.data,
success: function(args) {
if (args.result.p_err_msg) {
$L.showConfirm('提示', args.result.p_err_msg, function () {
record.set('period_status_code', 'C');
});
$L.request({
url: $('gld_close_period_check_link').getUrl(),
para: record.data,
success: function (args) {
if (args.result.p_err_msg) {
Leaf.showConfirm('提示', args.result.p_err_msg, function okFun() {
Leaf.request({
url: url,
para: record.data,
success: function() {
record.set('period_status_code','C');
Leaf.SideBar.enable = true;
Leaf.SideBar.show({
msg: '关闭成功',
duration: 3000
});
},
scope: this
});
},function canFun(){},600,400);
} else {
Leaf.request({
url: url,
para: record.data,
success: function() {
record.set('period_status_code','C');
Leaf.SideBar.enable = true;
Leaf.SideBar.show({
msg: '关闭成功',
duration: 3000
});
},
scope: this
});
}
},
failure: function () {
},
error: function () {
},
scope: this
});
} else {
record.set('period_status_code', 'C');
Leaf.SideBar.enable = true;
Leaf.SideBar.show({
msg: '关闭成功',
duration: 3000
});
}
},
scope: this
});
}
}
......
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