Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
leaf-hlcm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hlcm
leaf-hlcm
Commits
a06e35ac
Commit
a06e35ac
authored
Feb 24, 2023
by
Luochenglong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
parents
7c47d916
64f5d3f0
Changes
17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
535 additions
and
89 deletions
+535
-89
check_change_con_lease_item.lwm
...asses/check_after_save_bm/check_change_con_lease_item.lwm
+1
-0
check_contract_sign_status.lwm
...EB-INF/classes/cont/CON731/check_contract_sign_status.lwm
+22
-0
csh_data_confirm.lwm
...n/webapp/WEB-INF/classes/csh/CSH531N/csh_data_confirm.lwm
+15
-0
hls_journal_import_head_id.lwm
...WEB-INF/classes/hls/HLS536/hls_journal_import_head_id.lwm
+7
-0
hls_journal_import_header.lwm
.../WEB-INF/classes/hls/HLS536/hls_journal_import_header.lwm
+14
-5
hls_journal_import_header_wfl.lwm
...-INF/classes/hls/HLS536/hls_journal_import_header_wfl.lwm
+5
-1
hls_journal_import_reverse_wfl.lwm
...INF/classes/hls/HLS536/hls_journal_import_reverse_wfl.lwm
+66
-0
submit_hls_journal_reverse.lwm
...WEB-INF/classes/hls/HLS536/submit_hls_journal_reverse.lwm
+5
-12
wfl_instance_pdf.lwm
...bapp/WEB-INF/classes/zjwfl/ZJWFL1060/wfl_instance_pdf.lwm
+2
-2
hls_before_sign_change_detail.lview
...p/modules/cont/CON731/hls_before_sign_change_detail.lview
+183
-48
hls_ccr_modify_entrance.lview
.../webapp/modules/cont/CON732/hls_ccr_modify_entrance.lview
+1
-0
hls_ccr_query_entrance.lview
...n/webapp/modules/cont/CON732/hls_ccr_query_entrance.lview
+10
-1
hls_con_contract_et_create_entrance.lview
...les/cont/CON733/hls_con_contract_et_create_entrance.lview
+3
-3
hls_fin_calculator_update_n.lview
...app/modules/hls/HLS500N/hls_fin_calculator_update_n.lview
+1
-1
hls_journal_import_entrance.lview
...bapp/modules/hls/HLS536/hls_journal_import_entrance.lview
+70
-14
hls_journal_import_reverse_wfl.lview
...p/modules/hls/HLS536/hls_journal_import_reverse_wfl.lview
+129
-0
hls_journal_import_upload.lview
...webapp/modules/hls/HLS536/hls_journal_import_upload.lview
+1
-2
No files found.
src/main/webapp/WEB-INF/classes/check_after_save_bm/check_change_con_lease_item.lwm
View file @
a06e35ac
...
...
@@ -9,6 +9,7 @@
<bm:operations>
<bm:operation
name=
"update"
>
<bm:update-sql>
<![CDATA[
begin
con_contract_workflow_pkg.check_change_con_lease_item(
p_contract_id =>
${@contract_id},
...
...
src/main/webapp/WEB-INF/classes/cont/CON731/check_contract_sign_status.lwm
0 → 100644
View file @
a06e35ac
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: shenyamin
$Date: 2018-11_03 上午11:00:06
$Revision: 3.0
$Purpose:
-->
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
needAccessControl=
"false"
>
<bm:operations>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
SELECT cr.req_status sign_contract_status
From con_contract_change_req cr
Where cr.change_req_id= ${@change_req_id}
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
<bm:fields>
<bm:field
name=
"sign_contract_status"
databaseType=
"VARCHAR2"
datatype=
"java.lang.String"
physicalName=
"sign_contract_status"
/>
</bm:fields>
</bm:model>
src/main/webapp/WEB-INF/classes/csh/CSH531N/csh_data_confirm.lwm
View file @
a06e35ac
...
...
@@ -15,15 +15,30 @@
</bm:operation>
<bm:operation
name=
"execute"
>
<bm:update-sql>
<![CDATA[
declare
v_transaction_num varchar2(100)
begin
if ${@flag} = 'SUBMIT' then
update CSH_TRANSACTION
set confirmed_flag = 'WF_APPROVING'
where transaction_id = ${@transaction_id};
elsif ${@flag} = 'RETURN' then
select ct.transaction_num
into v_transaction_num
from csh_transaction ct where ct.transaction_id=${@transaction_id};
update CSH_TRANSACTION
set confirmed_flag = 'WF_REJECTED'
where transaction_id = ${@transaction_id};
elec_wfl_pkg.func_archives_post_list(p_document_id =>
${@transaction_id},
p_archive_type=>'COLLECTION_RELATED_PROC',--收款相关
p_document_number=>v_transaction_num,
p_user_id => p_user_id,
p_status=>-1,
p_instance_desc=>v_transaction_num||'-核销确认'
);
end if;
end;
]]>
</bm:update-sql>
...
...
src/main/webapp/WEB-INF/classes/hls/HLS536/hls_journal_import_head_id.lwm
View file @
a06e35ac
...
...
@@ -12,5 +12,12 @@
select fnd_interface_headers_s.nextval header_id from dual
]]>
</bm:query-sql>
</bm:operation>
<bm:operation
name=
"execute"
>
<bm:update-sql>
<![CDATA[
BEGIN
hls_journal_import_pkg.reverse_hls_journal_import( p_journal_header_id =>
${@journal_header_id}, p_user_id =>${/session/@user_id} );
END;
]]>
</bm:update-sql>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/WEB-INF/classes/hls/HLS536/hls_journal_import_header.lwm
View file @
a06e35ac
...
...
@@ -38,6 +38,7 @@
from sys_code_values_v v
where v.code = 'HLS536_WFL_STATUS'
and v.code_value = t1.wfl_status) wfl_status_n,
t1.reversed_flag,
t1.reverse_wfl_status,
(select v.code_value_name value_name
from sys_code_values_v v
...
...
@@ -46,7 +47,8 @@
t1.journal_type,
(select t.post_gl_status
from hls_journal_header t
where t.journal_num = t1.journal_num) post_gl_status
where t.journal_header_imp_id = t1.journal_header_id
) post_gl_status
FROM hls_journal_header_imp t1
where 1=1
AND EXISTS (SELECT 1
...
...
@@ -83,6 +85,7 @@
from sys_code_values_v v
where v.code = 'HLS536_WFL_STATUS'
and v.code_value = t1.wfl_status) wfl_status_n,
t1.reversed_flag,
t1.reverse_wfl_status,
(select v.code_value_name value_name
from sys_code_values_v v
...
...
@@ -91,7 +94,8 @@
t1.journal_type,
(select t.post_gl_status
from hls_journal_header t
where t.journal_num = t1.journal_num) post_gl_status
where t.journal_header_imp_id = t1.journal_header_id
) post_gl_status
FROM hls_journal_header_imp t1
where 1=1
AND EXISTS (SELECT 1
...
...
@@ -128,6 +132,7 @@
from sys_code_values_v v
where v.code = 'HLS536_WFL_STATUS'
and v.code_value = t1.wfl_status) wfl_status_n,
t1.reversed_flag,
t1.reverse_wfl_status,
(select v.code_value_name value_name
from sys_code_values_v v
...
...
@@ -136,7 +141,8 @@
t1.journal_type,
(select t.post_gl_status
from hls_journal_header t
where t.journal_num = t1.journal_num) post_gl_status
where t.journal_header_imp_id = t1.journal_header_id
) post_gl_status
FROM hls_journal_header_imp t1
where 1=1
AND EXISTS (SELECT 1
...
...
@@ -173,6 +179,7 @@
from sys_code_values_v v
where v.code = 'HLS536_WFL_STATUS'
and v.code_value = t1.wfl_status) wfl_status_n,
t1.reversed_flag,
t1.reverse_wfl_status,
(select v.code_value_name value_name
from sys_code_values_v v
...
...
@@ -181,7 +188,8 @@
t1.journal_type,
(select t.post_gl_status
from hls_journal_header t
where t.journal_num = t1.journal_num) post_gl_status
where t.journal_header_imp_id = t1.journal_header_id
) post_gl_status
FROM hls_journal_header_imp t1
where 1=1
AND EXISTS (SELECT 1
...
...
@@ -204,6 +212,7 @@
<bm:query-field
name=
"total_amount_dr_from"
datatype=
"java.lang.Double"
queryExpression=
"nvl(t1.total_amount_dr,t1.total_amount_cr) >= ${@total_amount_dr_from}"
/>
<bm:query-field
name=
"total_amount_dr_to"
datatype=
"java.lang.Double"
queryExpression=
"nvl(t1.total_amount_dr,t1.total_amount_cr) <= ${@total_amount_dr_to}"
/>
<bm:query-field
name=
"description"
queryExpression=
"t1.description like ${@description}"
/>
<bm:query-field
name=
"wfl_status"
queryExpression=
"t1.wfl_status=${@wfl_status}"
/>
<bm:query-field
name=
"wfl_status"
queryExpression=
"t1.wfl_status=${@wfl_status}"
/>
<bm:query-field
name=
"reverse_wfl_status"
queryExpression=
"t1.reverse_wfl_status=${@reverse_wfl_status}"
/>
</bm:query-fields>
</bm:model>
src/main/webapp/WEB-INF/classes/hls/HLS536/hls_journal_import_header_wfl.lwm
View file @
a06e35ac
...
...
@@ -52,7 +52,11 @@
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:data-filters>
<bm:data-filter
name=
"query"
expression=
"t1.reversed_journal_header_id is null "
/>
</bm:data-filters>
<bm:query-fields>
<bm:query-field
name=
"journal_num"
queryExpression=
"t1.journal_num like ${@journal_num}"
/>
<bm:query-field
name=
"journal_date_from"
queryExpression=
"to_date(t1.journal_date,'yyyy-mm-dd') >= to_date(${@journal_date_from},'yyyy-mm-dd')"
/>
<bm:query-field
name=
"journal_date_to"
queryExpression=
"to_date(t1.journal_date,'yyyy-mm-dd') <= to_date(${@journal_date_to},'yyyy-mm-dd')"
/>
...
...
src/main/webapp/WEB-INF/classes/hls/HLS536/hls_journal_import_reverse_wfl.lwm
0 → 100644
View file @
a06e35ac
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: trd
$Date: 2022-12-6 下午2:36:27
$Revision: 1.0
$Purpose:
-->
<bm:model
xmlns:bm=
"http://www.leaf-framework.org/schema/bm"
>
<bm:operations>
<bm:operation
name=
"query"
>
<bm:query-sql>
<![CDATA[
select t1.journal_header_id,
t1.journal_submit_batch_id,
t1.journal_reverse_batch_id,
t1.journal_num,
t1.error_message,
t1.total_amount_dr,
t1.total_amount_cr,
(select c.company_short_name
from fnd_companies_vl c
where c.company_id = t1.je_company_id) js_company_short_name,
t1.period_name,
to_char(t1.journal_date,'yyyy-mm-dd') journal_date,
t1.currency_code,
(SELECT gc.currency_name
FROM gld_currency_v gc
WHERE gc.currency_code = t1.currency_code) currency_desc,
t1.total_amount_fuc_dr,
(SELECT d.je_transaction_desc
FROM gld_je_transaction d
WHERE d.je_transaction_code = t1.je_transaction_code) je_transaction_desc,
t1.description,
(SELECT COUNT(1)
FROM hls_journal_detail_imp t
WHERE t.journal_header_id = t1.journal_header_id) je_detail_count,
t1.wfl_status,
(select v.code_value_name value_name
from sys_code_values_v v
where v.code = 'HLS536_WFL_STATUS'
and v.code_value = t1.wfl_status) wfl_status_n,
t1.reverse_wfl_status,
(select v.code_value_name value_name
from sys_code_values_v v
where v.code = 'HLS536_WFL_STATUS_REVERSE'
and v.code_value = t1.reverse_wfl_status) reverse_wfl_status_n,
t1.journal_type,
(select t.post_gl_status
from hls_journal_header t
where t.journal_num = t1.journal_num) post_gl_status
FROM hls_journal_header_imp t1
#WHERE_CLAUSE#
order by t1.journal_header_id desc
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
<bm:query-fields>
<bm:query-field
name=
"journal_num"
queryExpression=
"t1.journal_num like ${@journal_num}"
/>
<bm:query-field
name=
"journal_date_from"
queryExpression=
"to_date(t1.journal_date,'yyyy-mm-dd') >= to_date(${@journal_date_from},'yyyy-mm-dd')"
/>
<bm:query-field
name=
"journal_date_to"
queryExpression=
"to_date(t1.journal_date,'yyyy-mm-dd') <= to_date(${@journal_date_to},'yyyy-mm-dd')"
/>
<bm:query-field
name=
"total_amount_dr_from"
datatype=
"java.lang.Double"
queryExpression=
"nvl(t1.total_amount_dr,t1.total_amount_cr) >= ${@total_amount_dr_from}"
/>
<bm:query-field
name=
"total_amount_dr_to"
datatype=
"java.lang.Double"
queryExpression=
"nvl(t1.total_amount_dr,t1.total_amount_cr) <= ${@total_amount_dr_to}"
/>
<bm:query-field
name=
"journal_reverse_batch_id"
queryExpression=
"t1.journal_reverse_batch_id = ${@journal_submit_batch_id}"
/>
<bm:query-field
name=
"description"
queryExpression=
"t1.description like ${@description}"
/>
<bm:query-field
name=
"wfl_status"
queryExpression=
"t1.wfl_status=${@wfl_status}"
/>
</bm:query-fields>
</bm:model>
src/main/webapp/WEB-INF/classes/hls/HLS536/submit_hls_journal_reverse.lwm
View file @
a06e35ac
...
...
@@ -24,7 +24,7 @@
(v_journal_submit_batch_id,
null,
'NEW',
${@wfl_type}
,
''
,
${/session/@user_id},
sysdate,
${/session/@user_id},
...
...
@@ -40,19 +40,15 @@
<![CDATA[
begin
update hls_journal_header_imp hjhi
set hjhi.reverse_wfl_status = 'NEW',
hjhi.reversed_flag = 'R',
hjhi.journal_submit_batch_id = ${/parameter/@journal_submit_batch_id},
set hjhi.reverse_wfl_status = 'APPROVING',
hjhi.journal_reverse_batch_id = ${/parameter/@journal_submit_batch_id},
hjhi.last_updated_by = ${/session/@user_id},
hjhi.last_update_date = sysdate
where hjhi.journal_header_id = ${@journal_header_id};
end;
]]>
</bm:update-sql>
<!--<bm:parameters>
<bm:parameter inputPath="/session/@session_id"/>
</bm:parameters>-->
</bm:operation>
</bm:operation>
<bm:operation
name=
"execute"
>
<bm:update-sql>
<![CDATA[
...
...
@@ -65,9 +61,6 @@
end;
]]>
</bm:update-sql>
<!--<bm:parameters>
<bm:parameter inputPath="/session/@session_id"/>
</bm:parameters>-->
</bm:operation>
</bm:operation>
</bm:operations>
</bm:model>
src/main/webapp/WEB-INF/classes/zjwfl/ZJWFL1060/wfl_instance_pdf.lwm
View file @
a06e35ac
...
...
@@ -30,7 +30,7 @@
faa.file_name,
faa.file_path,
faa.file_type_code,
'建机审批流版式文件-'
||z.workflow_desc||'-'||z.instance_id||'.docx'
to_file_name,
'建机审批流版式文件-'
||decode(z.workflow_id,-1,substr(z.instance_desc,instr(z.instance_desc,'-',1)+1),(select w.workflow_desc from zj_wfl_workflow w where w.workflow_id=z.workflow_id)) || '-' || z.instance_id || '.docx'
to_file_name,
lt.pwd,
fc.document_id,
fc.content_id
...
...
@@ -40,7 +40,7 @@
hls_doc_file_templet lt,
con_clause_templet t,
hls_doc_file_content fc,
zj_wfl_workflow_instance
_v
z
zj_wfl_workflow_instance z
WHERE
faa.attachment_id = m.attachment_id AND
m.table_name = 'HLS_DOC_FILE_TEMPLET' AND
...
...
src/main/webapp/modules/cont/CON731/hls_before_sign_change_detail.lview
View file @
a06e35ac
This diff is collapsed.
Click to expand it.
src/main/webapp/modules/cont/CON732/hls_ccr_modify_entrance.lview
View file @
a06e35ac
...
...
@@ -125,6 +125,7 @@
}
param['document_type'] = record.get('ccr_document_type');
if (record.get('ccr_document_type') == 'CCR_BEFORE_SIGN') {
//update
//签约前变更换个页面,方便后续新人代码阅读 wangwei
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_sign_before_change_link', ds_id);
}else{
...
...
src/main/webapp/modules/cont/CON732/hls_ccr_query_entrance.lview
View file @
a06e35ac
...
...
@@ -22,6 +22,7 @@
url=
"${/request/@context_path}/modules/cont/CON732/hls_ccr_modify_assignment_agreement_print.lsc"
/>
<a:link
id=
"hls_crr_query_print_link_id"
url=
"${/request/@context_path}/modules/cont/CON732/hls_crr_query_print_word_detail.lview"
/>
<a:link
id=
"con_contract_sign_before_change_link"
url=
"${/request/@context_path}/modules/cont/CON731/hls_before_sign_change_detail.lview"
/>
<script
type=
"text/javascript"
>
<![CDATA[
function open_contract_win(ds_id, record_id) {
var record = $(ds_id).findById(record_id);
...
...
@@ -172,13 +173,21 @@
//param['function_code'] = 'CON733BPB';
param['function_code'] = 'CON733BPBQ';
param['url_title'] = '变更申请-合同回款账户变更查询';
}else if (record.get('ccr_document_type') == 'CCR_BEFORE_SIGN') {
param['function_code'] = 'CON733CBSIGN';
param['url_title'] = '变更申请-签约前合同变更';
}
param['function_usage'] = 'QUERY';
param['req_status'] = req_status;
param['query_flag'] = 'Y';
param['maintain_type'] = 'QUERY';
param['document_type'] = record.get('ccr_document_type');
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_change_link', ds_id);
if (record.get('ccr_document_type') == 'CCR_BEFORE_SIGN') {
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_sign_before_change_link', ds_id);
}else{
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_change_link', ds_id);
}
//hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con_contract_change_link', ds_id);
};
//变更申请打印单
...
...
src/main/webapp/modules/cont/CON733/hls_con_contract_et_create_entrance.lview
View file @
a06e35ac
...
...
@@ -117,10 +117,10 @@
Leaf.showErrorMessage('${l:PROMPT}', '铁甲业务无法操作此项变更!');
return;
}
/*if(record.get('division') != '70'
&&
ccr_document_type == 'CCR_BEFORE_SIGN'){
Leaf.showErrorMessage('${l:PROMPT}', '
仅铁甲业务可操作
此项变更!');
if((record.get('division') != '70'
&&
record.get('division') != '92')
&&
ccr_document_type == 'CCR_BEFORE_SIGN'){
Leaf.showErrorMessage('${l:PROMPT}', '
当前合同暂不能进行
此项变更!');
return;
}
*/
}
Leaf.showConfirm('特别注意', '
<span
style=
"color: #ff0000; "
>
该操作将导致合同在变更期间无法进行后续操作,请谨慎操作!!!如果需要取消变更,请一定点击取消变更按钮!!!
</span>
', function () {
var contract = record.get('contract_id');
...
...
src/main/webapp/modules/hls/HLS500N/hls_fin_calculator_update_n.lview
View file @
a06e35ac
...
...
@@ -1009,7 +1009,7 @@
}
if
('${/parameter/@document_category}'
==
'PROJECT'||
'${/parameter/@document_category}'
==
'CONTRACT
')
{
if
('${/parameter/@document_category}'
==
'PROJECT'||
'${/parameter/@layout_code}'
==
'CCR_BEFORE_SIGN
')
{
Leaf.request({
url:
$('prj_check_prj_record_link_id').getUrl(),
para:
{
...
...
src/main/webapp/modules/hls/HLS536/hls_journal_import_entrance.lview
View file @
a06e35ac
...
...
@@ -20,11 +20,14 @@
<a:link
id=
"hls_journal_reverse_link_id"
url=
"${/request/@context_path}/modules/hls/HLS536/batch_hls_journal_reverse.lsc"
/>
<a:link
id=
"hls_journal_import_delete_link"
model=
"hls.HLS536.hls_journal_import_delete"
modelaction=
"batch_update"
/>
<a:link
id=
"hls_journal_import_reverse_link"
model=
"hls.HLS536.hls_journal_import_head_id"
modelaction=
"batch_update"
/>
<a:link
id=
"journal_attachment_uploadFile_id"
url=
"${/request/@context_path}/downloadFile.lview"
/>
<script>
<![CDATA[
Leaf.onReady(function() {
if ('${/session/@user_id}'!=10418) {
if ('${/session/@user_id}'!=10418
&& '${/session/@user_id}'!=1
) {
$('reverse_btn_id').hide();
$('reverse_submit_btn_id').hide();
}
});
//查询按钮
...
...
@@ -57,16 +60,15 @@
//删除凭证
function hls536_journal_delete(){
debugger;
var records = $('hls_journal_header_result_ds').getSelected();
var records = $('hls_journal_header_result_ds').getSelected();
if(records.length == 0){
Leaf.showMessage('${l:PROMPT}', '请至少选择一条记录!');
return ;
}
var datas = [];
for (var i = 0; i < records.length; i++) {
if (records[i].get('wfl_status') == 'APPROVING' || records[i].get('wfl_status') == 'APPROVED')
{
Leaf.showMessage('提示', '只有新建和拒绝状态的单据才能刪除!');
if ((records[i].get('reversed_flag') == 'N'&&(records[i].get('wfl_status') == 'APPROVING' || records[i].get('wfl_status') == 'APPROVED'))||(records[i].get('reversed_flag') == 'R'&&(records[i].get('reverse_wfl_status') == 'APPROVING' || records[i].get('reverse_wfl_status') == 'APPROVED')))
{
Leaf.showMessage('提示', '只有新建和拒绝状态的单据才能刪除!');
return;
}
var obj = {};
...
...
@@ -173,8 +175,46 @@
}
}
//反冲
function hls536_journal_reverse(){
//生成反冲数据,生成后数据可编辑
function hls536_journal_reverse(){
debugger;
var records = $('hls_journal_header_result_ds').getSelected();
if(records.length == 0){
Leaf.showMessage('${l:PROMPT}', '请至少选择一条记录!');
return ;
}
var datas = [];
for (var i = 0; i
< records.length
;
i++)
{
if
(records[i].get('wfl_status')
!=
'APPROVED')
{
Leaf.showMessage('提示',
'凭证没有审批通过不能进行反冲,请检查!');
return;
}
if
(records[i].get('reversed_flag')
==
'R')
{
Leaf.showMessage('提示',
'存在已经反冲的凭证,请检查!');
return;
}
var
obj =
{};
obj['journal_header_id']
=
records[i].get('journal_header_id');
obj['_status']
=
'execute';
datas[i]
=
obj;
}
Leaf.request({
url:
$('hls_journal_import_reverse_link').getUrl(),
para:
datas,
success:
function
()
{
Leaf.SideBar.show({
msg:
'操作成功',
duration:
2000
});
$('hls_journal_header_result_ds').query();
},
scope:
this
});
}
//反冲提交流程
function
hls536_journal_reverse_submit(){
var
records =
$('hls_journal_header_result_ds').getSelected();
if(
records.length =
=
0){
Leaf.showMessage('${l:PROMPT}',
'请至少选择一条记录!');
...
...
@@ -182,11 +222,20 @@
}
//凭证传输状态不为Y的不能进行反冲
for
(var
i =
0;
i
<
records.length;
i++)
{
if
(records[i].get('wfl_status')
!=
'APPROVED'
||
records[i].get('post_gl_status')
!=
'Y'
)
{
Leaf.showMessage('提示',
'凭证没有审批通过或者凭证没有传输至SBO
,请检查!');
return;
if
(records[i].get('wfl_status')
!=
'APPROVED')
{
Leaf.showMessage('提示',
'凭证没有审批通过不能提交反冲审批
,请检查!');
return;
}
if
(records[i].get('reversed_flag')
!=
'R')
{
Leaf.showMessage('提示',
'非反冲数据不能提交反冲审批,请检查!');
return;
}
if
(records[i].get('reversed_flag')
==
'R'
&&
(records[i].get('reverse_wfl_status')
==
'APPROVING'||records[i].get('reverse_wfl_status')
==
'APPROVED'))
{
Leaf.showMessage('提示',
'反冲审批中或审批通过的单据不能提交审批,请检查!');
return;
}
}
var
journal_header_imp_list =
[];
for
(var
i =
0;
i
<
records.length;
i++)
{
...
...
@@ -224,7 +273,8 @@
function
hls536_link_dynamic(reocrd_id,
journal_header_id)
{
//增加逻辑:审批中、审批通过的只读;新建、审批拒绝的可编辑
var
record =
$('hls_journal_header_result_ds').findById(reocrd_id);
if(record.get('wfl_status')
==
'NEW'
||
record.get('wfl_status')
==
'REJECT'){
//if
(record.get('wfl_status')
==
'APPROVING'
||
record.get('wfl_status')
==
'APPROVED'){
if((record.get('reversed_flag')=='N'
&&
record.get('wfl_status')
!='APPROVING'
&&
record.get('wfl_status')
!=
'APPROVED')
||(record.get('reversed_flag')=='R'
&&
record.get('reverse_wfl_status')
!=
'APPROVING'
&&
record.get('reverse_wfl_status')
!=
'APPROVED')){
var
maintain_type =
'UPDATE'
;
var
param =
record.data;
param['currency']
=
param['currency_code'];
...
...
@@ -235,8 +285,9 @@
param['maintain_type']
=
maintain_type;
param['url_title']
=
'${l:HLS530.JOURNAL_LINE_MODIFY}';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id',
param,
'hls_journal_import_create_link_id');
}else
if
(record.get('wfl_status')
==
'APPROVING'
||
record.get('wfl_status')
==
'APPROVED'){
var
maintain_type =
'READONLY'
;
//}else
if
(record.get('wfl_status')
==
'APPROVING'
||
record.get('wfl_status')
==
'APPROVED'){
}else{
var
maintain_type =
'READONLY'
;
var
param =
record.data;
param['currency']
=
param['currency_code'];
param['function_code']
=
'HLS536';
...
...
@@ -277,6 +328,7 @@
<a:screen-include
screen=
"modules/cont/CON500/con_contract_get_layout_code.lview"
/>
<a:dataSets>
<a:dataSet
id=
"hls536_wfl_status_ds"
lookupCode=
"HLS536_WFL_STATUS"
/>
<a:dataSet
id=
"hls536_reverse_wfl_status_ds"
lookupCode=
"HLS536_WFL_STATUS_REVERSE"
/>
<a:dataSet
id=
"hls_journal_header_query"
>
<a:fields>
<a:field
name=
"journal_num"
/>
...
...
@@ -287,6 +339,8 @@
<a:field
name=
"description"
/>
<a:field
name=
"wfl_status_n"
displayField=
"code_value_name"
options=
"hls536_wfl_status_ds"
returnField=
"wfl_status"
valueField=
"code_value"
/>
<a:field
name=
"wfl_status"
/>
<a:field
name=
"reverse_wfl_status_n"
displayField=
"code_value_name"
options=
"hls536_reverse_wfl_status_ds"
returnField=
"reverse_wfl_status"
valueField=
"code_value"
/>
<a:field
name=
"reverse_wfl_status"
/>
</a:fields>
</a:dataSet>
<a:dataSet
id=
"hls_journal_header_result_ds"
autoPageSize=
"true"
autoQuery=
"true"
model=
"hls.HLS536.hls_journal_import_header"
queryDataSet=
"hls_journal_header_query"
selectable=
"true"
>
...
...
@@ -301,7 +355,8 @@
<a:toolbarButton
click=
"hls536_journal_import"
text=
"导入凭证模板"
/>
<a:toolbarButton
click=
"hls536_journal_delete"
text=
"删除凭证"
/>
<a:toolbarButton
click=
"hls536_journal_send"
text=
"提交审批"
/>
<a:toolbarButton
id=
"reverse_btn_id"
click=
"hls536_journal_reverse"
text=
"反冲"
/>
<a:toolbarButton
id=
"reverse_btn_id"
click=
"hls536_journal_reverse"
text=
"生成反冲"
/>
<a:toolbarButton
id=
"reverse_submit_btn_id"
click=
"hls536_journal_reverse_submit"
text=
"提交反冲"
/>
</a:screenTopToolbar>
<a:form
column=
"5"
labelSeparator=
" "
labelWidth=
"100"
marginWidth=
"40"
title=
"HAP_QUERY_TITLE"
>
<a:textField
name=
"journal_num"
bindTarget=
"hls_journal_header_query"
prompt=
"凭证编号"
/>
...
...
@@ -311,6 +366,7 @@
<a:numberField
name=
"total_amount_dr_to"
allowFormat=
"true"
bindTarget=
"hls_journal_header_query"
prompt=
"金额到"
/>
<a:textField
name=
"description"
bindTarget=
"hls_journal_header_query"
prompt=
"凭证摘要"
/>
<a:comboBox
name=
"wfl_status_n"
bindTarget=
"hls_journal_header_query"
prompt=
"凭证导入状态"
/>
<a:comboBox
name=
"reverse_wfl_status_n"
bindTarget=
"hls_journal_header_query"
prompt=
"凭证反冲状态"
/>
</a:form>
<a:grid
id=
"hls_journal_headers_grid"
bindTarget=
"hls_journal_header_result_ds"
marginHeight=
"250"
marginWidth=
"40"
navBar=
"true"
>
<a:columns>
...
...
src/main/webapp/modules/hls/HLS536/hls_journal_import_reverse_wfl.lview
0 → 100644
View file @
a06e35ac
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: trd
$Date: 2012-12-6 上午11:18:39
$Revision: 1.0
$Purpose:
-->
<a:screen
xmlns:a=
"http://www.leaf-framework.org/application"
trace=
"true"
>
<a:init-procedure>
</a:init-procedure>
<a:view>
<a:link
id=
"hls_journal_import_create_link_id"
url=
"${/request/@context_path}/modules/hls/HLS536/hls_journal_import_create.lview"
/>
<a:link
id=
"con_contract_get_layout_code_link_id"
model=
"cont.CON500.con_contract_get_layout_code"
modelaction=
"update"
/>
<a:link
id=
"journal_attachment_uploadFile_id"
url=
"${/request/@context_path}/downloadFile.lview"
/>
<a:screen-include
screen=
"modules/hls/hls_common_javascript.lview"
/>
<script>
<![CDATA[
Leaf.onReady(function () {
$('hls_journal_header_result_ds').setQueryParameter('journal_submit_batch_id','${/parameter/@journal_submit_batch_id}');
})
//查询按钮
function hls536_journal_query() {
$('hls_journal_header_result_ds').setQueryParameter('journal_submit_batch_id','${/parameter/@journal_submit_batch_id}');
$('hls_journal_header_result_ds').query();
}
//重置按钮
function hls536_journal_reset() {
$('hls_journal_header_query').reset();
}
// 审批流程中,叶唯吟节点可编辑页面
function hls536_link_dynamic(reocrd_id, journal_header_id) {
var record = $('hls_journal_header_result_ds').findById(reocrd_id);
var param = record.data;
param['currency'] = param['currency_code'];
param['function_code'] = 'HLS536';
param['document_id'] = journal_header_id;
param['document_category'] = 'JE';
var edit_flag = '${/parameter/@edit_flag}';
if(edit_flag == 'Y' ){
param['function_usage'] = 'MODIFY';
param['maintain_type'] = 'UPDATE';
}else {
param['function_usage'] = 'QUERY';
param['maintain_type'] = 'READONLY';
}
param['url_title'] = '${l:HLS530.JOURNAL_LINE_MODIFY}';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_journal_import_create_link_id');
}
function hls536_journal_num_render(value, record, name) {
return '<a href="javascript:hls536_link_dynamic(' + record.id + ',' + record.get('journal_header_id') + ');">
' + value + '
</a>
';
}
function receipt_attachment_upload(val,rec,name){
return '
<a
href=
javascript:open_upload_window('+rec.get('journal_header_id')+')
>
附件
</a>
';
}
function open_upload_window(record_id){
var url = $('journal_attachment_uploadFile_id').getUrl() + '?table_name=HLS_JOURNAL_HEADER_IMP
&
header_id=' + record_id;
var win = new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: 'attachment_uploadFile_id',
width: 850,
height: 400
});
win.on('close', function() {
hls536_journal_query();
});
}
]]>
</script>
<a:screen-include
screen=
"modules/cont/CON500/con_contract_get_layout_code.lview"
/>
<a:dataSets>
<a:dataSet
id=
"hls536_wfl_status_ds"
lookupCode=
"HLS536_WFL_STATUS"
/>
<a:dataSet
id=
"hls_journal_header_query"
>
<a:fields>
<a:field
name=
"journal_num"
/>
<a:field
name=
"journal_date_from"
/>
<a:field
name=
"journal_date_to"
/>
<a:field
name=
"total_amount_dr_from"
/>
<a:field
name=
"total_amount_dr_to"
/>
<a:field
name=
"description"
/>
<a:field
name=
"wfl_status_n"
displayField=
"code_value_name"
options=
"hls536_wfl_status_ds"
returnField=
"wfl_status"
valueField=
"code_value"
/>
<a:field
name=
"wfl_status"
/>
</a:fields>
</a:dataSet>
<a:dataSet
id=
"hls_journal_header_result_ds"
autoPageSize=
"true"
autoQuery=
"true"
model=
"hls.HLS536.hls_journal_import_reverse_wfl"
queryDataSet=
"hls_journal_header_query"
selectable=
"true"
queryUrl=
"${/request/@context_path}/autocrud/hls.HLS536.hls_journal_import_reverse_wfl/query?journal_reverse_batch_id=${/parameter/@journal_submit_batch_id}"
>
>
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
<a:toolbarButton
click=
"hls536_journal_query"
text=
"HLS.QUERY"
/>
<a:toolbarButton
click=
"hls536_journal_reset"
text=
"HLS.RESET"
/>
</a:screenTopToolbar>
<a:form
column=
"5"
labelSeparator=
" "
labelWidth=
"100"
marginWidth=
"40"
title=
"HAP_QUERY_TITLE"
>
<a:textField
name=
"journal_num"
bindTarget=
"hls_journal_header_query"
prompt=
"凭证编号"
/>
<a:datePicker
name=
"journal_date_from"
bindTarget=
"hls_journal_header_query"
prompt=
"凭证日期从"
/>
<a:datePicker
name=
"journal_date_to"
bindTarget=
"hls_journal_header_query"
prompt=
"凭证日期到"
/>
<a:numberField
name=
"total_amount_dr_from"
allowFormat=
"true"
bindTarget=
"hls_journal_header_query"
prompt=
"金额从"
/>
<a:numberField
name=
"total_amount_dr_to"
allowFormat=
"true"
bindTarget=
"hls_journal_header_query"
prompt=
"金额到"
/>
<a:textField
name=
"description"
bindTarget=
"hls_journal_header_query"
prompt=
"凭证摘要"
/>
<a:comboBox
name=
"wfl_status_n"
bindTarget=
"hls_journal_header_query"
prompt=
"凭证导入状态"
/>
</a:form>
<a:grid
id=
"hls_journal_headers_grid"
bindTarget=
"hls_journal_header_result_ds"
marginHeight=
"250"
marginWidth=
"40"
navBar=
"true"
>
<a:columns>
<a:column
name=
"journal_num"
lock=
"true"
prompt=
"凭证编号"
renderer=
"hls536_journal_num_render"
width=
"120"
/>
<a:column
name=
"js_company_short_name"
prompt=
"记账公司"
width=
"90"
/>
<a:column
name=
"period_name"
align=
"center"
prompt=
"期间"
width=
"80"
/>
<a:column
name=
"journal_date"
align=
"center"
prompt=
"凭证日期"
renderer=
"Leaf.formatDate"
width=
"90"
/>
<a:column
name=
"currency_desc"
align=
"center"
prompt=
"币种"
width=
"80"
/>
<a:column
name=
"total_amount_fuc_dr"
align=
"right"
prompt=
"金额"
renderer=
"Leaf.formatMoney"
width=
"120"
/>
<a:column
name=
"description"
prompt=
"凭证摘要"
width=
"220"
/>
<a:column
name=
"je_detail_count"
prompt=
"凭证行数量"
width=
"50"
/>
<!--<a:column name="wfl_status_n" prompt="凭证导入状态" width="100"/>-->
<a:column
name=
"reverse_wfl_status_n"
prompt=
"凭证反冲状态"
width=
"100"
/>
<!--<a:column name="error_message" prompt="错误信息" width="150"/>-->
<!--<a:column name="attachment_file" prompt="附件" width="120" renderer="receipt_attachment_upload" align="center"/>-->
</a:columns>
</a:grid>
</a:screenBody>
</a:view>
</a:screen>
src/main/webapp/modules/hls/HLS536/hls_journal_import_upload.lview
View file @
a06e35ac
...
...
@@ -20,8 +20,7 @@
alert('请选择正确的导入文件!请使用xls或者xlsx后缀的文件');
} else {
doSubmit(templatetype);
//document.getElementById('importForm').submit();
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment