Commit 9273bbf4 authored by 18083's avatar 18083

电子档案流程及功能版式文件调整

parent 61038efe
...@@ -15,15 +15,30 @@ ...@@ -15,15 +15,30 @@
</bm:operation> </bm:operation>
<bm:operation name="execute"> <bm:operation name="execute">
<bm:update-sql><![CDATA[ <bm:update-sql><![CDATA[
declare
v_transaction_num varchar2(100)
begin begin
if ${@flag} = 'SUBMIT' then if ${@flag} = 'SUBMIT' then
update CSH_TRANSACTION update CSH_TRANSACTION
set confirmed_flag = 'WF_APPROVING' set confirmed_flag = 'WF_APPROVING'
where transaction_id = ${@transaction_id}; where transaction_id = ${@transaction_id};
elsif ${@flag} = 'RETURN' then 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 update CSH_TRANSACTION
set confirmed_flag = 'WF_REJECTED' set confirmed_flag = 'WF_REJECTED'
where transaction_id = ${@transaction_id}; 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 if;
end; end;
]]></bm:update-sql> ]]></bm:update-sql>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
faa.file_name, faa.file_name,
faa.file_path, faa.file_path,
faa.file_type_code, 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, lt.pwd,
fc.document_id, fc.document_id,
fc.content_id fc.content_id
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
hls_doc_file_templet lt, hls_doc_file_templet lt,
con_clause_templet t, con_clause_templet t,
hls_doc_file_content fc, hls_doc_file_content fc,
zj_wfl_workflow_instance_v z zj_wfl_workflow_instance z
WHERE WHERE
faa.attachment_id = m.attachment_id AND faa.attachment_id = m.attachment_id AND
m.table_name = 'HLS_DOC_FILE_TEMPLET' AND m.table_name = 'HLS_DOC_FILE_TEMPLET' AND
......
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