<bm:fieldname="workflow_desc"forInsert="false"expression="(SELECT c.workflow_desc FROM zj_wfl_workflow c where c.workflow_id= t1.workflow_id)"forUpdate="false"/>
<bm:fieldname="archive_type_desc"forInsert="false"expression="(SELECT c.code_value_name FROM sys_code_values_v c where c.code='DATA_CLASSIFICATION' and c.code_value = t1.archive_type)"forUpdate="false"/>
<bm:fieldname="is_workflow_desc"forInsert="false"expression="(SELECT c.code_value_name FROM sys_code_values_v c where c.code='YES_NO' and c.code_value = t1.is_workflow)"forUpdate="false"/>
<bm:fieldname="post_stru_data_flag_desc"forInsert="false"expression="(SELECT c.code_value_name FROM sys_code_values_v c where c.code='YES_NO' and c.code_value = t1.post_stru_data_flag)"forUpdate="false"/>
<bm:fieldname="post_atm_flag_desc"forInsert="false"expression="(SELECT c.code_value_name FROM sys_code_values_v c where c.code='YES_NO' and c.code_value = t1.post_atm_flag)"forUpdate="false"/>
<bm:fieldname="je_check_flag_desc"forInsert="false"expression="(SELECT c.code_value_name FROM sys_code_values_v c where c.code='YES_NO' and c.code_value = t1.je_check_flag)"forUpdate="false"/>
'建机审批流版式文件-' ||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
FROM
fnd_atm_attachment faa,
fnd_atm_attachment_multi m,
hls_doc_file_templet lt,
con_clause_templet t,
hls_doc_file_content fc,
zj_wfl_workflow_instance z
WHERE
faa.attachment_id = m.attachment_id AND
m.table_name = 'HLS_DOC_FILE_TEMPLET' AND
m.table_pk_value = lt.templet_id AND
lt.templet_id = t.doc_template_id AND
t.doc_plugin_flag = 'Y' AND
t.templet_id = fc.templet_Id AND
fc.document_id = z.instance_id AND
fc.document_table = 'ZJ_WFL_WORKFLOW_INSTANCE' and
<bm:query-fieldname="approve_user_code"queryExpression="t1.approve_user_code like ${@approve_user_code}"/>
</bm:query-fields>
<bm:data-filters>
<bm:data-filtername="query"expression="( (${/session/@role_id} = (select role_id from sys_role where role_code = '0006') and t1.workflow_code in ('CONTRACT_INCEPT_WFL', 'DCFL_CSH_PAYMENT_REQ')) or (${/session/@role_id} in (select role_id from sys_role where role_code in ('0012', '0013', '0014')) and t1.workflow_code in ('DCFL_CSH_PAYMENT_REQ', 'DEPOSIT_RETURN')) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0005') and t1.workflow_code in ('PROJECT_WFL')) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0008') and t1.workflow_code in ('CON_ET_WFL','TENANT_CHANGE_WFL','CON_BUYBACK_WFL','DEPOSIT_RETURN','WFL_FEE_REMIT')) or (${/session/@role_id} not in (select role_id from sys_role where role_code in('0005', '0006', '0008', '0012', '0013', '0014')) and 1 = 1))"/>
<!--<bm:data-filter name="query" expression="( (${/session/@role_id} = (select role_id from sys_role where role_code = '0006') and t1.workflow_code in ('CONTRACT_INCEPT_WFL', 'DCFL_CSH_PAYMENT_REQ')) or (${/session/@role_id} in (select role_id from sys_role where role_code in ('0012', '0013', '0014')) and t1.workflow_code in ('DCFL_CSH_PAYMENT_REQ', 'DEPOSIT_RETURN')) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0005') and t1.workflow_code in ('PROJECT_WFL')) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0008') and t1.workflow_code in ('CON_ET_WFL','TENANT_CHANGE_WFL','CON_BUYBACK_WFL','DEPOSIT_RETURN','WFL_FEE_REMIT')) or (${/session/@role_id} not in (select role_id from sys_role where role_code in('0005', '0006', '0008', '0012', '0013', '0014')) and 1 = 1))"/>-->
<bm:data-filtername="query"expression="( (${/session/@role_id} = (select role_id from sys_role where role_code = '0006') and t1.workflow_code in ('CONTRACT_INCEPT_WFL', 'DCFL_CSH_PAYMENT_REQ')) or (${/session/@role_id} in (select role_id from sys_role where role_code in ('0012', '0013', '0014')) and t1.workflow_code in ('DCFL_CSH_PAYMENT_REQ', 'DEPOSIT_RETURN')) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0005') and t1.workflow_code in ('PROJECT_WFL')) or (${/session/@role_id} = (select role_id from sys_role where role_code = '0008') and t1.workflow_code in ('CON_ET_WFL','TENANT_CHANGE_WFL','CON_BUYBACK_WFL','DEPOSIT_RETURN')) or (${/session/@role_id} not in (select role_id from sys_role where role_code in('0005', '0006', '0008', '0012', '0013', '0014')) and 1 = 1)
or( ((t1.SUBMITTED_BY = ${/session/@user_id}) or (
(${/session/@user_id}
in (Select t.user_id
From zj_wfl_instance_node_recipient t
Where t.instance_id = t1.instance_id
And t.record_type = 'APPROVER')
and t1.instance_status = 1)
or
(${/session/@user_id}
in (Select t.user_id
From zj_wfl_instance_node_rcpt_ht t
Where t.instance_id = t1.instance_id
And t.record_type = 'APPROVER')
and t1.instance_status in (-1000,-1,10))
) ) and t1.workflow_code in('HLS_JOURNAL_WFL','HLS_JOURNAL_REVERSE_WFL')))"/>
var templatetype = $('template_ds').getAt(0).get('template_type');
if (document.getElementById('importFile').value) {
var fileName = document.getElementById('importFile').value;
var fileType = fileName.substr(fileName.lastIndexOf("."));
fileType = fileType.toLowerCase();
if (fileType != '.xls'&&fileType != '.xlsx') {
alert('请选择正确的导入文件!请使用xls或者xlsx后缀的文件');
} else {
doSubmit(templatetype);
//document.getElementById('importForm').submit();
}
}
}
function doSubmit(templatetype) {
var form = document.getElementById('importForm');
var url = '${/request/@context_path}/modules/hls/HLS536/hls_journal_import_trans_upload.lview?_csrf=${/session/@_csrf.token}&template_type='+templatetype;
var brwt = new BookmarksReplaceWithText($instance('leaf.database.service.IDatabaseServiceFactory'), $instance('uncertain.ocm.IObjectRegistry'), $ctx.getData());