Commit 61bffbba authored by TIANZHI.HU's avatar TIANZHI.HU

工作流合同文本打印 add by 39135 HuTianzhi

parent 48c2efa2
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.aurora-framework.org/schema/bm" needAccessControl="false">
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
<bm:operations>
<bm:operation name="update">
<bm:update-sql><![CDATA[
......@@ -15,7 +15,7 @@
BEGIN
wfl_instance_pdf_pkg.insert_fnd_atm(
p_table_name =>${@table_name},
p_table_pk_value =>${@content_id},
p_table_pk_value =>${@instance_id},
p_file_name =>${@file_name},
p_file_path =>${@file_path},
p_user_id =>nvl(${/session/@user_id},1),
......@@ -56,7 +56,7 @@
<bm:operation name="insert">
<bm:update-sql><![CDATA[
begin
HL_CONTRACT_PKG.save_prj_credit_pdf_atm(p_content_id =>${@content_id},
wfl_instance_pdf_pkg.save_pdf_atm(p_instance_id =>${@instance_id},
p_table_name =>${@table_name});
end;
]]></bm:update-sql>
......
<?xml version="1.0" encoding="UTF-8"?>
<a:service xmlns:a="http://www.aurora-framework.org/application" xmlns:s="aurora.plugin.script" trace="true">
<a:service xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" trace="true">
<a:init-procedure>
<s:server-script import="con_print_path.js"><![CDATA[
set_parameter_file_path();
]]></s:server-script>
<s:server-script><![CDATA[
importPackage(Packages.hls.plugin.docx4j);
importPackage(java.io);
importPackage(Packages.hls.plugin.jacob.engine);
importPackage(Packages.aurora.plugin.mail);
importPackage(Packages.uncertain.proc);
//importPackage(Packages.leaf.plugin.script.scriptobject);
importPackage(Packages.hls.plugin.docx4j);
importPackage(Packages.leaf.plugin.word2pdf);
function copyFile(fOld, fNew) {
......@@ -71,7 +67,7 @@
//关联附件表
$bm('zjwfl.ZJWFL1060.wfl_instance_pdf').execute({
table_name: 'ZJ_WFL_WORKFLOW_INSTANCE',
content_id: instance_id,
instance_id: instance_id,
file_name: to_file_name.toString(),
file_path: to_file_path.toString(),
file_size: file_size
......@@ -81,7 +77,7 @@
//更新转换的pdf附件,其附件表的字段
//这里的附件关联表是工作流监控表
attachment_update.insert({
content_id: instance_id,
instance_id: instance_id,
table_name: 'ZJ_WFL_WORKFLOW_INSTANCE'
});
......
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