(SELECT c.code_value_name FROM sys_code_values_v c where c.code='DATA_CLASSIFICATION' and c.code_value = t1.archive_type) archive_type_desc,
(SELECT c.code_value_name FROM sys_code_values_v c where c.code='YES_NO' and c.code_value = 'Y') suppl_trans_flag, t1.hly_req_number as post_batch_num,
nvl((select gps.monthly_closed_flag from gld_periods gp,gld_period_status gps where replace(gp.period_name,'-','')=t1.internal_period_num and gps.company_id = ${/session/@company_id} and gp.internal_period_num=gps.internal_period_num and gps.period_set_code=gp.period_set_code),'N') monthly_closed_flag ,
(SELECT c.code_value_name FROM sys_code_values_v c where c.code='DATA_CLASSIFICATION' and c.code_value = t1.archive_type) archive_type_desc,
(SELECT c.code_value_name FROM sys_code_values_v c where c.code='DATA_CLASSIFICATION' and c.code_value = t1.archive_type) archive_type_desc,
(SELECT c.code_value_name FROM sys_code_values_v c where c.code='YES_NO' and c.code_value = 'Y') suppl_trans_flag,
(SELECT c.code_value_name FROM sys_code_values_v c where c.code='YES_NO' and c.code_value = 'Y') suppl_trans_flag,
(SELECT c.code_value_name FROM sys_code_values_v c where c.code='POST_STATUS_DESC' and c.code_value =t1.post_status) post_status_desc,
<!--<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')) 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')) 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)
<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 (t1.APPROVE_USER_CODE = (
or( ((t1.SUBMITTED_BY = ${/session/@user_id}) or (t1.APPROVE_USER_CODE in (
Select distinct e.employee_code From exp_employees e, exp_employee_assigns ea Where e.employee_id =
Select distinct e.employee_code From exp_employees e, exp_employee_assigns ea Where e.employee_id =
ea.employee_id And nvl(e.enabled_flag, 'N') = 'Y' And nvl(ea.enabled_flag, 'N') =
ea.employee_id And nvl(e.enabled_flag, 'N') = 'Y' And nvl(ea.enabled_flag, 'N') =
'Y' And
'Y' And
e.employee_id = (Select t.employee_id From sys_user t Where t.user_id = ${/session/@user_id})
e.employee_id in (Select t.employee_id From sys_user t Where t.user_id = ${/session/@user_id})
) ) ) and t1.workflow_code = 'HLS_JOURNAL_WFL'))"/>
) ) ) and t1.workflow_code in('HLS_JOURNAL_WFL','HLS_JOURNAL_REVERSE_WFL')))"/>
var file_templet_get_atm_path = $bm('zjwfl.ZJWFL1060.wfl_instance_pdf').queryAsMap({
var file_templet_get_atm_path = $bm('zjwfl.ZJWFL1060.wfl_instance_pdf').queryAsMap({
instance_id: instance_id
instance_id: instance_id,
user_id :user_id
});
});
var from_file_data = file_templet_get_atm_path.getChildren();
var from_file_data = file_templet_get_atm_path.getChildren();
...
@@ -53,6 +57,7 @@
...
@@ -53,6 +57,7 @@
copyFile(from_file_path, to_file_path);
copyFile(from_file_path, to_file_path);
//放入实例id方便表单参数取值
//放入实例id方便表单参数取值
$ctx.current_parameter.document_id = instance_id;
$ctx.current_parameter.document_id = instance_id;
$ctx.current_parameter.user_id = user_id;
try {
try {
var brwt = new BookmarksReplaceWithText($instance('leaf.database.service.IDatabaseServiceFactory'), $instance('uncertain.ocm.IObjectRegistry'), $ctx.getData());
var brwt = new BookmarksReplaceWithText($instance('leaf.database.service.IDatabaseServiceFactory'), $instance('uncertain.ocm.IObjectRegistry'), $ctx.getData());
...
@@ -70,7 +75,8 @@
...
@@ -70,7 +75,8 @@
instance_id: instance_id,
instance_id: instance_id,
file_name: to_file_name.toString(),
file_name: to_file_name.toString(),
file_path: to_file_path.toString(),
file_path: to_file_path.toString(),
file_size: file_size
file_size: file_size,
user_id :user_id
});
});
var attachment_update = $bm('zjwfl.ZJWFL1060.wfl_instance_pdf');
var attachment_update = $bm('zjwfl.ZJWFL1060.wfl_instance_pdf');