<bm:fieldname="receipt_type_des"expression="(select v.code_value_name from sys_code_values_v v where v.code='RECEIPT_TYPE' and v.code_value=t1.receipt_type)"/>
<bm:fieldname="ref_contract_id"/>
<bm:fieldname="contract_number"expression="(select cc.contract_number from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:fieldname="contract_name"expression="(select cc.contract_number from con_contract cc where cc.contract_id = t1.ref_contract_id)"/>
<bm:fieldname="collection_classes"/>
<bm:fieldname="collection_classes_desc"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'DS_COLLECTION_CLASSES' and v.code_value =t1.collection_classes)"forInsert="false"forUpdate="false"/>
<bm:fieldname="confirmed_flag_desc"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'CONFIRMED_FLAG' and v.code_value =t1.confirmed_flag)"forInsert="false"forUpdate="false"/>
...
...
@@ -101,6 +102,7 @@
<bm:fieldname="acc_confirmed_by_desc"expression="(select description from sys_user where user_id=t1.acc_confirmed_by)"forInsert="false"forUpdate="false"/>
<bm:fieldname="receipt_type_n"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'RECEIPT_TYPE' and v.code_value =t1.receipt_type)"forInsert="false"forUpdate="false"/>
<bm:fieldname="deposit_trans_type"/>
<bm:fieldname="bp_id_telnet_code"expression="(select hb.bp_code from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_tenant)"forInsert="false"forUpdate="false"/>
<bm:fieldname="bp_id_telnet_n"expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_tenant)"forInsert="false"forUpdate="false"/>
<bm:fieldname="bp_name_n"expression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_agent_level1)"forInsert="false"forUpdate="false"/>
<bm:fieldname="deposit_trans_type_desc"expression="(select v.code_value_name from sys_code_values_v v where v.code = 'DEPOSIT_TRANS_TYPE' and v.code_value =t1.deposit_trans_type)"forInsert="false"forUpdate="false"/>
<bm:query-fieldname="description"queryExpression="t1.description like '%'||${@description}||'%'"/>
<bm:query-fieldname="bank_account_num"queryExpression="(select a.bank_account_num from csh_bank_account a where a.bank_account_id=t1.bank_account_id) like '%'||upper(${@bank_account_num})||'%'"/>
<!--<bm:query-field name="contract_number" queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like '%'||upper(${@contract_number})||'%'"/>--><bm:query-fieldname="bp_id_telnet_n"queryExpression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_tenant) like ${@bp_id_telnet_n}"/>
<!--<bm:query-field name="contract_number" queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like '%'||upper(${@contract_number})||'%'"/>-->
<bm:query-fieldname="bp_id_telnet_n"queryExpression="(select hb.bp_name from hls_bp_master hb,con_contract ct where ct.contract_id=t1.ref_contract_id and hb.bp_id=ct.bp_id_tenant) like '%'||${@bp_id_telnet_n}||'%' "/>
<bm:query-fieldname="contract_number"queryExpression="(SELECT cc.contract_number FROM con_contract cc WHERE cc.contract_id = t1.ref_contract_id) like '%'||${@contract_number}||'%'"/>
<bm:query-fieldname="bp_name_n"queryExpression="(select d.bp_name from hls_bp_master_v d where d.bp_id=t1.bp_id) like ${@bp_name_n} "/>
<bm:query-fieldname="bp_name_n"queryExpression="(select d.bp_name from hls_bp_master_v d where d.bp_id=t1.bp_id) like '%'||${@bp_name_n}||'%' "/>
end ),t1.comment_text),t1.comment_text) comment_text,
-- t1.comment_text,
...
...
@@ -140,16 +140,17 @@
WHERE
t1.instance_id =${@instance_id} ) v where (v.bp_category = 'AGENT' and v.record_type not like 'TRANSFER')
UNION
SELECT
NULL AS node_id,
SELECT NULL AS node_id,
NULL AS workflow_code,
NULL AS workflow_desc,
00 AS node_sequence_num,
'00--提交节点' AS node_desc,
pp.wfl_instance_id AS instance_id,
zw.instance_id AS instance_id,
NULL AS action_taken,
NULL AS action_type,
'提交--租赁申请流程' AS action_type_desc,
('提交--' || (select zww.workflow_desc
from zj_wfl_workflow zww
where zww.workflow_id = zw.workflow_id)) AS action_type_desc,
NULL AS record_type,
'提交' AS comment_text,
NULL AS comment_text_out,
...
...
@@ -158,10 +159,11 @@
NULL AS rcpt_record_id,
NULL AS disabled_flag,
NULL AS note,
to_char((select zi.creation_date from zj_wfl_workflow_instance zi where zi.instance_id=pp.wfl_instance_id),'yyyy-mm-dd hh24:mi:ss') AS create_date_fmt,
(SELECT su.description FROM sys_user su WHERE su.user_id = pp.owner_user_id
) approver,
'Y' AS agent_flag,
to_char(zw.creation_date, 'yyyy-mm-dd hh24:mi:ss') AS create_date_fmt,
var brwt = new BookmarksReplaceWithText($instance('leaf.database.service.IDatabaseServiceFactory'), $instance('uncertain.ocm.IObjectRegistry'), $ctx.getData());