(select sv.code_value_name from sys_code_values_v sv where sv.code='HLS050.HLS_PRICE_LIST.CALC_METHOD' and sv.code_value=p.calc_method) calc_method_name,
lower(t.lov_cascade_para1) lov_cascade_para1,
lower(t.lov_cascade_para2) lov_cascade_para2,
lower(t.lov_cascade_para3) lov_cascade_para3,
t.lower_limit,
t.upper_limit,
(select h.source_doc_category from hls_fin_calculator_hd h where h.calc_session_id = ${@calc_session_id} )source_doc_category
<bm:query-fieldfield="display_flag"queryExpression="(t.display_flag=${@display_flag} or (t.display_flag='C' and exists(select 1 from hls_fin_calc_config_quote q where q.calc_session_id=${@calc_session_id} and q.layout_area_seq=t.layout_area_seq and q.column_name=t.column_name and q.display_flag='Y')))"/>
</bm:query-fields>
<bm:data-filters>
<bm:data-filterenforceOperations="query"expression="(t.layout_area_seq = 'H' and t.price_list=p.price_list and t.price_list = nvl(${@price_list},(select h.price_list from hls_fin_calculator_hd h where h.calc_session_id=${@calc_session_id})))"/>
<bm:data-filterenforceOperations="query"expression=" (t.column_name not in('BTB_INT_RATE') )"></bm:data-filter>
<bm:data-filtername="query"expression="(d.price_list =nvl(${@price_list},(select h.price_list from hls_fin_calculator_hd h where h.calc_session_id=${@calc_session_id})) and d.layout_area_seq = 'L' and lower(d.column_name)=nvl(${@column_name},lower(d.column_name)) and d.price_list=p.price_list)"/>
<bm:data-filterenforceOperations="query"expression=" (d.column_name not in('BTB_INTEREST','BTB_FEE') )"></bm:data-filter>
<bm:data-filterenforceOperations="query"expression="(v.role_code not in('0018','0019') or (v.role_code in('0018','0019') and hl_asset_manage_fee_pkg.check_function_show(v.role_code, ${/session/@user_id},v.function_code)='Y' ))"></bm:data-filter>
<bm:data-filterenforceOperations="query"expression="((not exists (select 1 from sys_role_user_function f where f.role_id = v.role_id and f.function_id = v.function_id)) or (exists (select 1 from sys_role_user_function f where f.role_id = v.role_id and f.user_id = ${/session/@user_id} and f.function_id = v.function_id)))"/>
<!--<bm:data-filter enforceOperations="query" expression="((v.function_code != 'CON3200') or(v.function_code = 'CON3200' AND ((v.role_code not in ('0018', '0019')) or (v.role_code in ('0018', '0019') and exists (select 1 from sys_user u, sys_user_role_groups r where u.user_id = r.user_id and r.role_id = v.role_id AND u.user_id = ${/session/@user_id} and u.user_name in ('MJ001', 'MJ002'))))))"/>
-->
</bm:data-filters>
<bm:data-filters>
<bm:data-filterenforceOperations="query"expression="(v.role_code not in('0018','0019') or (v.role_code in('0018','0019') and hl_asset_manage_fee_pkg.check_function_show(v.role_code, ${/session/@user_id},v.function_code)='Y' ))"></bm:data-filter>
<bm:data-filterenforceOperations="query"expression="((not exists (select 1 from sys_role_user_function f where f.role_id = v.role_id and f.function_id = v.function_id)) or (exists (select 1 from sys_role_user_function f where f.role_id = v.role_id and f.user_id = ${/session/@user_id} and f.function_id = v.function_id)))"/>
<!--<bm:data-filter enforceOperations="query" expression="((v.function_code != 'CON3200') or(v.function_code = 'CON3200' AND ((v.role_code not in ('0018', '0019')) or (v.role_code in ('0018', '0019') and exists (select 1 from sys_user u, sys_user_role_groups r where u.user_id = r.user_id and r.role_id = v.role_id AND u.user_id = ${/session/@user_id} and u.user_name in ('MJ001', 'MJ002'))))))"/>
<a:model-querydefaultWhereClause="d.enabled_flag='Y' and nvl(d.display_flag,'N')!='N'"fetchAll="true"model="hls.HLS500.hls_fin_calc_config_ln"rootPath="calc_config_ln_path"/>
<a:model-querydefaultWhereClause="d.enabled_flag='Y' and nvl(d.display_flag,'N')!='N'"fetchAll="true"model="cont.CON_REPO001.hls_fin_calc_config_ln"rootPath="calc_config_ln_path"/>
<a:model-querydefaultWhereClause="t.enabled_flag='Y' and (t.display_flag='Y' or (t.display_flag='C' and exists(select 1 from hls_fin_calc_config_quote q where q.calc_session_id=${/parameter/@calc_session_id} and q.layout_area_seq='H' and q.column_name=t.column_name and q.display_flag='Y')))"fetchAll="true"model="hls.HLS500N.hls_fin_calc_config_hd_n"rootPath="calc_config_hd_path"/>
<a:model-querydefaultWhereClause="t.enabled_flag='Y' and (t.display_flag='N' or (t.display_flag='C' and not exists(select 1 from hls_fin_calc_config_quote q where q.calc_session_id=${/parameter/@calc_session_id} and q.layout_area_seq='H' and q.column_name=t.column_name and q.display_flag='Y')))"fetchAll="true"model="hls.HLS500N.hls_fin_calc_config_hd_n"rootPath="temp_config_hd_path"/>
<a:model-querydefaultWhereClause="t.enabled_flag='Y' and (t.display_flag='Y' or (t.display_flag='C' and exists(select 1 from hls_fin_calc_config_quote q where q.calc_session_id=${/parameter/@calc_session_id} and q.layout_area_seq='H' and q.column_name=t.column_name and q.display_flag='Y')))"fetchAll="true"model="cont.CON_REPO001.hls_fin_calc_config_hd_n"rootPath="calc_config_hd_path"/>
<a:model-querydefaultWhereClause="t.enabled_flag='Y' and (t.display_flag='N' or (t.display_flag='C' and not exists(select 1 from hls_fin_calc_config_quote q where q.calc_session_id=${/parameter/@calc_session_id} and q.layout_area_seq='H' and q.column_name=t.column_name and q.display_flag='Y')))"fetchAll="true"model="cont.CON_REPO001.hls_fin_calc_config_hd_n"rootPath="temp_config_hd_path"/>
var brwt = new BookmarksReplaceWithText($instance('leaf.database.service.IDatabaseServiceFactory'), $instance('uncertain.ocm.IObjectRegistry'), $ctx.getData());