Commit e0699269 authored by 18083's avatar 18083

手工凭证导入优化调整

parent 1dc64b43
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
where t.journal_header_imp_id = t1.journal_header_id where t.journal_header_imp_id = t1.journal_header_id
) post_gl_status ) post_gl_status
FROM hls_journal_header_imp t1 FROM hls_journal_header_imp t1
where 1=1 where
AND EXISTS (SELECT 1 EXISTS (SELECT 1
FROM exp_emp_assign_e_v t FROM exp_emp_assign_e_v t
WHERE t.user_id = ${/session/@user_id} WHERE t.user_id = ${/session/@user_id}
AND t.position_code IN ('014')) AND t.position_code IN ('014'))
...@@ -97,8 +97,8 @@ ...@@ -97,8 +97,8 @@
where t.journal_header_imp_id = t1.journal_header_id where t.journal_header_imp_id = t1.journal_header_id
) post_gl_status ) post_gl_status
FROM hls_journal_header_imp t1 FROM hls_journal_header_imp t1
where 1=1 where
AND EXISTS (SELECT 1 EXISTS (SELECT 1
FROM exp_emp_assign_e_v t FROM exp_emp_assign_e_v t
WHERE t.user_id = ${/session/@user_id} WHERE t.user_id = ${/session/@user_id}
AND t.position_code IN ('012')) AND t.position_code IN ('012'))
...@@ -144,8 +144,8 @@ ...@@ -144,8 +144,8 @@
where t.journal_header_imp_id = t1.journal_header_id where t.journal_header_imp_id = t1.journal_header_id
) post_gl_status ) post_gl_status
FROM hls_journal_header_imp t1 FROM hls_journal_header_imp t1
where 1=1 where
AND EXISTS (SELECT 1 EXISTS (SELECT 1
FROM exp_emp_assign_e_v t FROM exp_emp_assign_e_v t
WHERE t.user_id = ${/session/@user_id} WHERE t.user_id = ${/session/@user_id}
AND t.position_code IN ('026')) AND t.position_code IN ('026'))
...@@ -191,8 +191,8 @@ ...@@ -191,8 +191,8 @@
where t.journal_header_imp_id = t1.journal_header_id where t.journal_header_imp_id = t1.journal_header_id
) post_gl_status ) post_gl_status
FROM hls_journal_header_imp t1 FROM hls_journal_header_imp t1
where 1=1 where
AND EXISTS (SELECT 1 EXISTS (SELECT 1
FROM exp_emp_assign_e_v t FROM exp_emp_assign_e_v t
WHERE t.user_id = ${/session/@user_id} WHERE t.user_id = ${/session/@user_id}
AND t.position_code IN ('017') or ${/session/@user_id} = 10418 AND t.position_code IN ('017') or ${/session/@user_id} = 10418
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
BEGIN BEGIN
hls_journal_import_pkg.insert_hls_journal_tmp(p_user_id => ${/session/@user_id}, hls_journal_import_pkg.insert_hls_journal_tmp(p_user_id => ${/session/@user_id},
p_header_id => ${/model/header/record/@header_id}, p_header_id => ${@header_id},
p_company_id => ${/session/@company_id}, p_company_id => ${/session/@company_id},
p_template_type=>${@template_type} p_template_type=>${@template_type}
); );
......
...@@ -177,7 +177,6 @@ ...@@ -177,7 +177,6 @@
//生成反冲数据,生成后数据可编辑 //生成反冲数据,生成后数据可编辑
function hls536_journal_reverse(){ function hls536_journal_reverse(){
debugger;
var records = $('hls_journal_header_result_ds').getSelected(); var records = $('hls_journal_header_result_ds').getSelected();
if(records.length == 0){ if(records.length == 0){
Leaf.showMessage('${l:PROMPT}', '请至少选择一条记录!'); Leaf.showMessage('${l:PROMPT}', '请至少选择一条记录!');
......
<?xml version="1.0" encoding="UTF-8"?>
<!--<a:service xmlns:a="http://www.leaf-framework.org/application" trace="true">-->
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" trace="true">
<a:init-procedure>
<a:model-execute model="hls.HLS536.insert_hls_journal_tmp" trace="true"/>
</a:init-procedure>
<a:service-output output="/parameter"/>
</a:service>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!--<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">-->
<a:screen xmlns:p="uncertain.proc" xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" trace="true"> <a:screen xmlns:p="uncertain.proc" xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" trace="true">
<a:init-procedure > <a:init-procedure >
<!--<a:model-execute model="hls.HLS536.delete_hls_journal_tmp"/>--> <!--<a:model-execute model="hls.HLS536.delete_hls_journal_tmp"/>-->
<a:model-query model="hls.HLS536.hls_journal_import_head_id" rootPath="header"/> <a:model-query model="hls.HLS536.hls_journal_import_head_id" rootPath="header"/>
<a:import-excel header_id="${/model/header/record/@header_id}" attribute5="D:\u01\hls_journal,fnd_interface_headers,${/model/header/record/@header_id}" separator="," status_field="/parameter/@ImportSuccess" template_code="HLS_JOURNAL_IMPORT" user_id="${/session/@user_id}" /> <a:import-excel header_id="${/model/header/record/@header_id}" attribute5="D:\u01\hls_journal,fnd_interface_headers,${/model/header/record/@header_id}" separator="," status_field="/parameter/@ImportSuccess" template_code="HLS_JOURNAL_IMPORT" user_id="${/session/@user_id}" />
<!--<a:import-excel header_id="${/session/@session_id}" attribute5="D:\u01,fnd_interface_headers,${/session/@session_id}" separator="," status_field="/parameter/@ImportSuccess" template_code="HLS_JOURNAL_IMPORT" user_id="${/session/@user_id}" />--> <!--<a:import-excel header_id="${/session/@session_id}" attribute5="D:\u01,fnd_interface_headers,${/session/@session_id}" separator="," status_field="/parameter/@ImportSuccess" template_code="HLS_JOURNAL_IMPORT" user_id="${/session/@user_id}" />-->
<a:model-execute model="hls.HLS536.insert_hls_journal_tmp"/> <!--<a:model-execute model="hls.HLS536.insert_hls_journal_tmp"/>-->
</a:init-procedure> </a:init-procedure>
<a:view> <a:view>
<a:link id="hls_journal_entrance_import_link" url="${/request/@context_path}/modules/hls/HLS536/hls_journal_import_entrance.lview"/> <a:link id="hls_journal_entrance_import_link" url="${/request/@context_path}/modules/hls/HLS536/hls_journal_import_entrance.lview"/>
<a:link id="import_save_data_link" url="${/request/@context_path}/modules/hls/HLS536/hls_journal_import_save.lsc"/>
<script type="text/javascript"><![CDATA[ <script type="text/javascript"><![CDATA[
window.location.href = $('hls_journal_entrance_import_link').getUrl(); function loadComplete() {
var param = {};
param['template_type'] = '${/parameter/@template_type}';
param['header_id'] = '${/model/header/record/@header_id}';
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
Leaf.request({
url: $('import_save_data_link').getUrl(),
para: param,
success: function (res) {
Leaf.Masker.unmask(Ext.getBody());
Leaf.showInfoMessage('成功','导入成功!',function(){
window.location.href = $('hls_journal_entrance_import_link').getUrl();
});
},
failure: function (res) {
Leaf.Masker.unmask(Ext.getBody());
},
error: function (res) {
Leaf.Masker.unmask(Ext.getBody());
},
sync: true,
scope: this
});
}
loadComplete();
]]></script> ]]></script>
</a:view> </a:view>
......
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