Commit b3a3198b authored by 18083's avatar 18083

非银企直连流程附件处理

parent 91dcf59a
...@@ -77,6 +77,13 @@ ...@@ -77,6 +77,13 @@
to_file_path = to_file_path + guid_file_name_tables[0].guid_file_name + 'doc' + record_data.content_id; to_file_path = to_file_path + guid_file_name_tables[0].guid_file_name + 'doc' + record_data.content_id;
copyFile(from_file_path, to_file_path); copyFile(from_file_path, to_file_path);
try {
$bm('csh.CSH501.csh_transaction_return_print').update({
document_id: $ctx.parameter.document_id,
document_table: $ctx.parameter.document_table
});
var brwt = new BookmarksReplaceWithText($instance('leaf.database.service.IDatabaseServiceFactory'), $instance('uncertain.ocm.IObjectRegistry'), $ctx.getData());
brwt.replaceBookmarkFromContent(to_file_path.toString(), record_data.content_id.toString(), 'COMMON');
//生成文件的大小 //生成文件的大小
var file_size=get_file_length(to_file_path.toString()); var file_size=get_file_length(to_file_path.toString());
$bm('csh.CSH501.csh_journal_get_atm').execute({ $bm('csh.CSH501.csh_journal_get_atm').execute({
...@@ -89,14 +96,6 @@ ...@@ -89,14 +96,6 @@
file_type_code:'docx', file_type_code:'docx',
mime_type:'application/msword', mime_type:'application/msword',
}); });
try {
$bm('csh.CSH501.csh_transaction_return_print').update({
document_id: $ctx.parameter.document_id,
document_table: $ctx.parameter.document_table
});
var brwt = new BookmarksReplaceWithText($instance('leaf.database.service.IDatabaseServiceFactory'), $instance('uncertain.ocm.IObjectRegistry'), $ctx.getData());
brwt.replaceBookmarkFromContent(to_file_path.toString(), record_data.content_id.toString(), 'COMMON');
} catch (e) { } catch (e) {
raise_app_error(e); raise_app_error(e);
} }
......
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