<bm:data-filterexpression="((nvl(${@project_flag},'N')='Y' and ${@project_id}=t1.project_id) or(nvl(${@project_flag},'N')='N' and t1.project_id is null))"></bm:data-filter>
<bm:data-filterenforceOperations="query"expression="exists (select 1 from rsc_fin_statement_prj_lns ln where ln.fin_statement_id=t1.fin_statement_id)"/>
<bm:data-filterenforceOperations="query"expression="exists (select 1 from rsc_fin_statement_prj_lns ln where ln.fin_statement_id=t1.fin_statement_id)"/>
(select m.bp_id from sys_user su,hls_bp_master m where su.bp_id = m.bp_id and su.bp_category in ('AGENT_DF') and su.user_id = ${/session/@user_id}) bp_id,
(select m.bp_name from sys_user su,hls_bp_master m where su.bp_id = m.bp_id and su.bp_category in ('AGENT_DF') and su.user_id = ${/session/@user_id}) bp_name
<bm:data-filtername="status"enforceOperations="query"expression="status not in ('NEW') and exists (select 1 from sys_user su where (su.bp_category = 'EMPLOYEE' or ( v.bp_id=su.bp_id AND su.bp_category in ('AGENT_DF'))) and su.user_id = ${/session/@user_id})"/>
<bm:data-filtername="status"enforceOperations="query"expression="t1.status = 'NEW' and exists (select 1 from sys_user su where (su.bp_category = 'EMPLOYEE' or ( t1.bp_id=su.bp_id AND su.bp_category in ('AGENT_DF'))) and su.user_id = ${/session/@user_id})"/>
<bm:query-fieldfield="bp_name"queryExpression="t1.bp_name like '%'||${@bp_name}||'%'"/>
<bm:query-fieldfield="bp_category"queryExpression="(t1.bp_category = ${@bp_category} or exists(select 1 from hls_bp_master_role br where br.bp_id = t1.bp_id and br.bp_category = ${@bp_category} and br.bp_type = ${@bp_category}))"/>
<a:model-querydefaultWhereClause="fin_statement_type ='BALANCE_SHEET' and fin_statement_templet_id=${/parameter/@fin_statement_templet_id} and fin_statement_id=${/parameter/@fin_statement_id}"fetchAll="true"model="rsc.RSC303.rsc_fin_statement_prj_lns_v_query"rootPath="/model/balance_statement"/>
<a:model-querydefaultWhereClause="fin_statement_type ='INCOME_STATEMENT' and fin_statement_templet_id=${/parameter/@fin_statement_templet_id} and fin_statement_id=${/parameter/@fin_statement_id}"fetchAll="true"model="rsc.RSC303.rsc_fin_statement_prj_lns_v_query"rootPath="/model/income_statement"/>
<a:model-querydefaultWhereClause="fin_statement_type ='CASHFLOW_STATEMENT' and fin_statement_templet_id=${/parameter/@fin_statement_templet_id} and fin_statement_id=${/parameter/@fin_statement_id}"fetchAll="true"model="rsc.RSC303.rsc_fin_statement_prj_lns_v_query"rootPath="/model/cashflow_statement"/>
<a:model-querydefaultWhereClause="fin_statement_type ='SUPPLEMENTARY' and fin_statement_templet_id=${/parameter/@fin_statement_templet_id} and fin_statement_id=${/parameter/@fin_statement_id}"fetchAll="true"model="rsc.RSC303.rsc_fin_statement_prj_lns_v_query"rootPath="/model/supplementary"/>
<a:model-querydefaultWhereClause="fin_statement_templet_id=${/model/datasource/record/@fin_statement_templet_id} and bp_id=${/parameter/@bp_id}"fetchAll="true"model="rsc.RSC303.rsc_fin_statement_prj_hds_v"rootPath="rsc_fin_statement_prj_hds"/>
<a:model-querydefaultWhereClause="fin_statement_templet_id=${/model/datasource/record/@fin_statement_templet_id} and ((bp_id=${/parameter/@bp_id} and nvl(${/parameter/@project_flag},'N')='N' and v.project_id is null ) or(nvl(${/parameter/@project_flag},'N')='Y' and v.project_id=${/parameter/@project_id}))"fetchAll="true"model="rsc.RSC303.rsc_fin_statement_prj_hds_v"rootPath="rsc_fin_statement_prj_hds"/>
<a:model-queryfetchAll="true"defaultWhereclause="((nvl(${/parameter/@project_flag},'N')='N' and v.project_id is null) or(nvl(${/parameter/@project_flag},'N')='Y' and v.project_id=${/parameter/@project_id}))"model="rsc.RSC303.rsc_fin_statement_prj_hds_v"rootPath="rsc_fin_statement_prj_hds"/>
<a:model-querydefaultWhereClause="fin_statement_templet_id=${/model/datasource/record/@fin_statement_templet_id} and bp_id=${/parameter/@bp_id}"fetchAll="true"model="rsc.RSC303.rsc_fin_statement_prj_hds_v"rootPath="rsc_fin_statement_prj_hds"/>
<a:model-querydefaultWhereClause="fin_statement_templet_id=${/model/datasource/record/@fin_statement_templet_id} and ((bp_id=${/parameter/@bp_id} and nvl(${/parameter/@project_flag},'N')='N' and v.project_id is null) or(nvl(${/parameter/@project_flag},'N')='Y' and v.project_id=${/parameter/@project_id}))"fetchAll="true"model="rsc.RSC303.rsc_fin_statement_prj_hds_v"rootPath="rsc_fin_statement_prj_hds"/>
<a:model-querydefaultWhereClause="fin_statement_templet_id=${/model/datasource/record/@fin_statement_templet_id} and bp_id=${/parameter/@bp_id}"fetchAll="true"model="rsc.RSC303.rsc_fin_statement_prj_hds_v"rootPath="rsc_fin_statement_prj_hds"/>
<a:model-querydefaultWhereClause="fin_statement_templet_id=${/model/datasource/record/@fin_statement_templet_id} and ((bp_id=${/parameter/@bp_id} and nvl(${/parameter/@project_flag},'N')='N' and project_id is null) or(nvl(${/parameter/@project_flag},'N')='Y' and project_id=${/parameter/@project_id}))"fetchAll="true"model="rsc.RSC303.rsc_fin_statement_prj_hds_v"rootPath="rsc_fin_statement_prj_hds"/>
<a:model-querydefaultWhereClause="fin_statement_templet_id=${/parameter/@fin_statement_templet_id} and bp_id=${/parameter/@bp_id}"fetchAll="true"model="rsc.RSC303.rsc_fin_statement_prj_hds_v"rootPath="rsc_fin_statement_prj_hds"/>
<a:model-querydefaultWhereClause="fin_statement_templet_id=${/parameter/@fin_statement_templet_id} and ((bp_id=${/parameter/@bp_id} and nvl(${/parameter/@project_flag},'N')='N' and v.project_id is null ) or(nvl(${/parameter/@project_flag},'N')='Y' and v.project_id=${/parameter/@project_id})) "fetchAll="true"model="rsc.RSC303.rsc_fin_statement_prj_hds_v"rootPath="rsc_fin_statement_prj_hds"/>
<a:model-querydefaultWhereClause="fin_statement_templet_id=${/parameter/@fin_statement_templet_id} and ((bp_id=${/parameter/@bp_id} and nvl(${/parameter/@project_flag},'N')='N' and v.project_id is null ) or(nvl(${/parameter/@project_flag},'N')='Y' and v.project_id=${/parameter/@project_id})) "fetchAll="true"model="rsc.RSC303.rsc_fin_statement_prj_hds_v"rootPath="rsc_fin_statement_prj_hds"/>
<a:model-querydefaultWhereClause="fin_statement_templet_id=${/parameter/@fin_statement_templet_id} and ((bp_id=${/parameter/@bp_id} and nvl(${/parameter/@project_flag},'N')='N' and v.project_id is null ) or(nvl(${/parameter/@project_flag},'N')='Y' and v.project_id=${/parameter/@project_id})) "fetchAll="true"model="rsc.RSC303.rsc_fin_statement_prj_hds_v"rootPath="rsc_fin_statement_prj_hds"/>