Commit 85a8cd56 authored by Darming's avatar Darming

Merge branch 'feature/csh_write_off' into develop

parents 3b55b0c8 21bff150
......@@ -48,6 +48,7 @@
<bm:field name="history_flag" expression="(SELECT ct.history_flag FROM csh_transaction ct WHERE ct.transaction_id = t1.csh_transaction_id)" forInsert="false" forUpdate="false"/>
<bm:field name="ref_bp_name" expression="(select cc.bp_name from con_contract_v cc where cc.contract_id = nvl(t1.contract_id,t1.ASSIGNS_CONTRACT_ID))" forInsert="false" forUpdate="false"/>
<bm:field name="ref_contract_number" expression="(select cc.contract_number from con_contract cc where cc.contract_id = nvl(t1.contract_id,t1.ASSIGNS_CONTRACT_ID))" forInsert="false" forUpdate="false"/>
<bm:field name="gld_batch_id"/>
<!-- <bm:field name="ref_agent_name" expression="(select cc.extra_nam from con_contract_v cc where cc.contract_id = nvl(t1.contract_id,t1.ASSIGNS_CONTRACT_ID))" forInsert="false" forUpdate="false"/>-->
</bm:fields>
<bm:features>
......
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features">
<bm:operations>
<bm:operation name="query">
<bm:query-sql><![CDATA[
select p.position_code, 'Y' approval_enbale
FROM exp_emp_user_e_v e, exp_org_position p where e.position_id = p.POSITION_ID and e.user_id = ${/session/@user_id}
and p.position_code in ('00321','00217') and p.ENABLED_FLAG = 'Y'
]]>
</bm:query-sql>
</bm:operation>
</bm:operations>
</bm:model>
......@@ -170,5 +170,6 @@
<bm:data-filter name="query" expression="(t1.company_id=${/session/@company_id})"/>
<!-- <bm:data-filter name="type" expression="t1.transaction_type in ('ADVANCE_RECEIPT','RECEIPT') and t1.returned_flag != 'FULL' and t1.reversed_flag = 'N' and nvl(t1.deposit_flag,'N')='N' "/>-->
<bm:data-filter name="type" expression="t1.transaction_type in ('ADVANCE_RECEIPT','RECEIPT') and t1.returned_flag != 'FULL' and nvl(t1.deposit_flag,'N')='N' and t1.confirmed_flag in ('WF_APPROVING','ACCAUDITED','APPROVED','WF_REJECTED') "/>
<bm:data-filter name="position_code" expression="(${@position_code} = '00217' and t1.bp_category = 'TENANT' and t1.paid_byother_flag = 'N') or (${@position_code} = '00321' and t1.bp_category != 'TENANT' and t1.paid_byother_flag != 'N') or (${/session/@user_id} = 1)" />
</bm:data-filters>
</bm:model>
\ No newline at end of file
......@@ -5,195 +5,195 @@
$Revision: 1.0
$Purpose:
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" xmlns:c="leaf.application.action" xmlns:p="uncertain.proc" xmlns:s="leaf.plugin.script" customizationEnabled="true" dynamiccreateenabled="true" trace="true">
<a:screen xmlns:c="leaf.application.action" xmlns:p="uncertain.proc" xmlns:a="http://www.leaf-framework.org/application" xmlns:s="leaf.plugin.script" cacheEnabled="true" cacheKey="${/parameter/@layout_code}_screen" customizationEnabled="true" trace="true">
<a:init-procedure>
<!-- <s:server-script import="aut_authority_validate.js"/>-->
<!-- <s:server-script import="aut_authority_validate.js"/> -->
<a:model-query fetchAll="true" model="hls.HLS030.hls_doc_layout_main" rootPath="layout_main_path"/>
<a:model-query fetchAll="true" model="cont.CON500.hls_doc_layout_button" rootPath="layout_main_button_path"/>
<a:model-query defaultWhereClause="t1.parent_table is null and t1.tab_type!=&apos;TAB&apos; and t1.enabled_flag=&apos;Y&apos; and rownum=1" fetchAll="true" model="cont.CON500.con_hls_doc_layout_tab_query" rootPath="base_table_path"/>
<!-- <s:server-script><![CDATA[-->
<!-- var m=$ctx.get('/model/layout_main_button_path');-->
<!-- println(m.toXML());-->
<!-- println('**************');-->
<!-- ]]></s:server-script>-->
<a:model-query fetchAll="true" model="cont.CON500.hls_doc_layout_button" rootPath="layout_main_button_path"/>
<a:model-query defaultWhereClause="t1.parent_table is null and t1.tab_type!=&apos;TAB&apos; and t1.enabled_flag=&apos;Y&apos; and rownum=1" fetchAll="true" model="cont.CON500.con_hls_doc_layout_tab_query" rootPath="base_table_path"/>
<!-- <s:server-script><![CDATA[
var m=$ctx.get('/model/layout_main_button_path');
println(m.toXML());
println('**************');
]]></s:server-script> -->
</a:init-procedure>
<a:view>
<script type="text/javascript"><![CDATA[
var dynamic_document_id = '$c{/parameter/@document_id}';
if ('$c{/parameter/@document_id}') {
var detail_mask;
if ('${/parameter/@winid}') {
if (parent.$L.CmpManager.get('${/parameter/@winid}')) {
detail_mask = parent.$('${/parameter/@winid}').wrap;
// parent.Leaf.Masker.mask(detail_mask, '${l:HLS.LOADING}');
} else {
detail_mask = $('${/parameter/@winid}').wrap;
// Leaf.Masker.mask(detail_mask, '${l:HLS.LOADING}');
}
} else {
detail_mask = Ext.getBody();
// Leaf.Masker.mask(detail_mask, '${l:HLS.LOADING}');
}
}
var dynamic_document_id = '$c{/parameter/@document_id}';
if ('$c{/parameter/@document_id}') {
var detail_mask;
if ('${/parameter/@winid}') {
if (parent.$L.CmpManager.get('${/parameter/@winid}')) {
detail_mask = parent.$('${/parameter/@winid}').wrap;
parent.Leaf.Masker.mask(detail_mask, '${l:HLS.LOADING}');
} else {
detail_mask = $('${/parameter/@winid}').wrap;
Leaf.Masker.mask(detail_mask, '${l:HLS.LOADING}');
}
} else {
detail_mask = Ext.getBody();
Leaf.Masker.mask(detail_mask, '${l:HLS.LOADING}');
}
}
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record, bp_seq) {
var link_function = '';
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'bp_link' && record.get('bp_id') && record.get('record_id')) {
link_function = '${/parameter/@layout_code}_open_bp_detail_window';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + config_record.get('prompt') + '</a>';
} else if (name == 'car_detail' && record.get('contract_lease_item_id')) {
link_function = '${/parameter/@layout_code}_open_lease_item_detail_window';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + config_record.get('prompt') + '</a>';
}
};
window['${/parameter/@layout_code}_dynamic_link_renderer'] = function(value, record, name, config_record, bp_seq) {
var link_function = '';
window['${/parameter/@layout_code}_hls_link_render_record'][record.id + '---' + name] = record;
if (name == 'bp_link' && record.get('bp_id') && record.get('record_id')) {
link_function = '${/parameter/@layout_code}_open_bp_detail_window';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + config_record.get('prompt') + '</a>';
} else if (name == 'car_detail' && record.get('contract_lease_item_id')) {
link_function = '${/parameter/@layout_code}_open_lease_item_detail_window';
return '<a href="javascript:window[\'' + link_function + '\'](\'' + record.id + '\',\'' + name + '\');">' + config_record.get('prompt') + '</a>';
}
};
window['${/parameter/@layout_code}_open_lease_item_detail_window'] = function(id, name) {
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
var param = record.data;
var contract_lease_item_id = record.get('contract_lease_item_id');
new Leaf.Window({
id: 'contract_lease_item_maintain_window',
url: $('contract_lease_item_maintain_link').getUrl(),
params: {
contract_lease_item_id: contract_lease_item_id,
winid: 'contract_lease_item_maintain_window'
},
draggable: true,
fullScreen: true
});
};
window['${/parameter/@layout_code}_open_lease_item_detail_window'] = function(id, name) {
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
var param = record.data;
var contract_lease_item_id = record.get('contract_lease_item_id');
new Leaf.Window({
id: 'contract_lease_item_maintain_window',
url: $('contract_lease_item_maintain_link').getUrl(),
params: {
contract_lease_item_id: contract_lease_item_id,
winid: 'contract_lease_item_maintain_window'
},
draggable: true,
fullScreen: true
});
};
window['${/parameter/@layout_code}_open_bp_detail_window'] = function(id, name) {
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
var param = record.data;
param['function_code'] = 'CON501H';
param['function_usage'] = 'MODIFY';
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con713_hls_bp_master_modify_link', record.ds.id, '${/parameter/@layout_code}');
};
window['${/parameter/@layout_code}_open_bp_detail_window'] = function(id, name) {
var record = window['${/parameter/@layout_code}_hls_link_render_record'][id + '---' + name];
var param = record.data;
param['function_code'] = 'CON501H';
param['function_usage'] = 'MODIFY';
param['url_title'] = '${l:HLS212.BP_MASTER_MAINTAIN}';
hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'con713_hls_bp_master_modify_link', record.ds.id, '${/parameter/@layout_code}');
};
function con500_contract_save(nextStep) {
var root_ds = $('${/model/base_table_path/record/@tab_code}_${/model/base_table_path/record/@base_table}_ds');
if (root_ds.validate()) {
var winid = '${/parameter/@winid}';
if (winid) {
Leaf.Masker.mask($(winid).wrap, '${l:HLS.EXECUTING}');
} else {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
}
lock_current_window();
var root_record = root_ds.getAt(0);
root_ds.setSubmitParameter('layout_code', '${/parameter/@layout_code}');
on_con_save_dynamic(root_ds, root_record, nextStep, winid);
}
}
function con500_contract_save(nextStep) {
var root_ds = $('${/model/base_table_path/record/@tab_code}_${/model/base_table_path/record/@base_table}_ds');
if (root_ds.validate()) {
var winid = '${/parameter/@winid}';
if (winid) {
Leaf.Masker.mask($(winid).wrap, '${l:HLS.EXECUTING}');
} else {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
}
lock_current_window();
var root_record = root_ds.getAt(0);
root_ds.setSubmitParameter('layout_code', '${/parameter/@layout_code}');
on_con_save_dynamic(root_ds, root_record, nextStep, winid);
}
}
function con500_contract_submit() {
function con500_contract_submit() {
Leaf.SideBar.enable = false;
con500_contract_save(con500_contract_submit_final);
}
Leaf.SideBar.enable = false;
con500_contract_save(con500_contract_submit_final);
}
function con500_contract_exit() {
if ('${/parameter/@winid}') {
$('${/parameter/@winid}').close();
} else {
window.location.go(-1);
}
}
function con500_contract_exit() {
if ('${/parameter/@winid}') {
$('${/parameter/@winid}').close();
} else {
window.location.go(-1);
}
}
function con500_contract_save_exit() {
con500_contract_save(con500_contract_exit);
}
function con500_contract_save_exit() {
con500_contract_save(con500_contract_exit);
}
function con500_contract_quote() {
var root_ds = $('${/model/base_table_path/record/@tab_code}_${/model/base_table_path/record/@base_table}_ds');
con500_contract_quote_execute(root_ds);
}
function con500_contract_quote() {
var root_ds = $('${/model/base_table_path/record/@tab_code}_${/model/base_table_path/record/@base_table}_ds');
con500_contract_quote_execute(root_ds);
}
function con500_contract_upload() {
if (!dynamic_document_id) {
Leaf.showMessage('${l:HLS.PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return;
} else {
var dynamic_base_table = '${/model/base_table_path/record/@base_table}'.toUpperCase();
var url = '${/request/@context_path}/uploadFile.lview?table_name=' + dynamic_base_table + '&header_id=' + dynamic_document_id;
new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: '${/parameter/@attach_tab_code}_con500_cdd_uploadFile_screen_id',
width: 850,
height: 400
});
}
}
]]></script>
function con500_contract_upload() {
if (!dynamic_document_id) {
Leaf.showMessage('${l:HLS.PROMPT}', '${l:HLS.EXECUTE_AFTER_SAVE}');
return;
} else {
var dynamic_base_table = '${/model/base_table_path/record/@base_table}'.toUpperCase();
var url = '${/request/@context_path}/uploadFile.lview?table_name=' + dynamic_base_table + '&header_id=' + dynamic_document_id;
new Leaf.Window({
url: url,
title: '${l:HLS.SUPPORTING_DOCUMENT}',
id: '${/parameter/@attach_tab_code}_con500_cdd_uploadFile_screen_id',
width: 850,
height: 400
});
}
}
]]></script>
<a:freeMarker><![CDATA[
<#if model.getObject("/model/layout_main_button_path").getChilds()??>
<#if model.getObject("/parameter/@tab_tab_code")??>
<#else>
<a:screenTopToolbar>
<#list model.getObject('/model/layout_main_button_path').getChilds() as item>
<#if item.getString('button_code') =='SAVE'>
<a:gridButton click="con500_contract_save" text="${item.getString('prompt')!""}"/>
<#elseif item.getString('button_code') =='EXIT'>
<a:gridButton click="con500_contract_exit" text="${item.getString('prompt')!""}"/>
<#elseif item.getString('button_code') =='SAVE_EXIT'>
<a:gridButton click="con500_contract_save_exit" text="${item.getString('prompt')!""}"/>
<#elseif item.getString('button_code') =='QUOTE'>
<a:gridButton click="con500_contract_quote" text="${item.getString('prompt')!""}"/>
<#elseif item.getString('button_code') =='SUBMIT_APPROVAL'>
<a:gridButton click="con500_contract_submit" text="${item.getString('prompt')!""}"/>
<#elseif item.getString('button_code') =='PRINT'>
<a:gridButton click="function(){con500_contract_print&amp;&amp;con500_contract_print()}" text="${item.getString('prompt')!""}"/>
<#elseif item.getString('button_code') =='UPLOAD'>
<a:gridButton click="con500_contract_upload" text="${item.getString('prompt')!""}"/>
<#else>
<a:gridButton id="${item.getString('button_code')!""}" click="function(btn){con500_define_button&amp;&amp;con500_define_button(btn,$('${model.getObject("/model/base_table_path/record/@tab_code")!""}_${model.getObject("/model/base_table_path/record/@base_table")}_ds'))}" text="${item.getString('prompt')!""}"/>
</#if>
</#list>
</a:screenTopToolbar>
</#if>
</#if>
]]></a:freeMarker>
<a:screenBody padding="5" style="width:98%">
<a:placeHolder id="dynamicMain_id"/>
</a:screenBody>
</a:view>
<a:view-config>
<c:create-config targetId="dynamicMain_id">
<p:loop source="/model/layout_main_path">
<p:switch test="@tab_type">
<p:case value="FORM">
<c:process-config>
<a:screen-include screen="modules/cont/CON500/con_contract_update_form.lview?form_tab_code=${@tab_code}&amp;layout_code=${/parameter/@layout_code}&amp;document_id=$c{/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=$c{/parameter/@document_type}&amp;winid=${/parameter/@winid}&amp;function_code=${/parameter/@function_code}&amp;function_usage=$c{/parameter/@function_usage}&amp;maintain_type=${/parameter/@maintain_type}&amp;calc_type=$c{/parameter/@calc_type}&amp;default_value_dsid=$c{/parameter/@default_value_dsid}"/>
</c:process-config>
</p:case>
<p:case value="GRID">
<c:process-config>
<a:screen-include screen="modules/cont/CON500/con_contract_update_grid.lview?grid_tab_code=${@tab_code}&amp;layout_code=${/parameter/@layout_code}&amp;document_id=$c{/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=$c{/parameter/@document_type}&amp;winid=${/parameter/@winid}&amp;function_code=${/parameter/@function_code}&amp;function_usage=$c{/parameter/@function_usage}&amp;maintain_type=${/parameter/@maintain_type}&amp;calc_type=$c{/parameter/@calc_type}&amp;default_value_dsid=$c{/parameter/@default_value_dsid}"/>
</c:process-config>
</p:case>
<p:case value="TEXTAREA">
<c:process-config>
<a:screen-include screen="modules/cont/CON500/con_contract_update_textarea.lview?textarea_tab_code=${@tab_code}&amp;layout_code=${/parameter/@layout_code}&amp;document_id=$c{/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=$c{/parameter/@document_type}&amp;winid=${/parameter/@winid}&amp;function_code=${/parameter/@function_code}&amp;function_usage=$c{/parameter/@function_usage}&amp;maintain_type=${/parameter/@maintain_type}&amp;calc_type=$c{/parameter/@calc_type}&amp;default_value_dsid=$c{/parameter/@default_value_dsid}"/>
</c:process-config>
</p:case>
<p:case value="ATTACH">
<c:process-config>
<a:screen-include screen="modules/cont/CON500/con_contract_update_attach.lview?attach_tab_code=${@tab_code}&amp;layout_code=${/parameter/@layout_code}&amp;document_id=$c{/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=$c{/parameter/@document_type}&amp;winid=${/parameter/@winid}&amp;function_code=${/parameter/@function_code}&amp;function_usage=$c{/parameter/@function_usage}&amp;maintain_type=${/parameter/@maintain_type}&amp;calc_type=$c{/parameter/@calc_type}&amp;cdd_list_id=$c{/parameter/@cdd_list_id}&amp;default_value_dsid=$c{/parameter/@default_value_dsid}"/>
</c:process-config>
</p:case>
<p:case value="TAB">
<c:process-config>
<a:screen-include screen="modules/cont/CON500/con_contract_update_tabpanel.lview?tab_group=${@tab_group}&amp;parent_tab_code=${/parameter/@tab_tab_code}&amp;layout_code=${/parameter/@layout_code}&amp;document_id=$c{/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=$c{/parameter/@document_type}&amp;winid=${/parameter/@winid}&amp;function_code=${/parameter/@function_code}&amp;function_usage=$c{/parameter/@function_usage}&amp;maintain_type=${/parameter/@maintain_type}&amp;calc_type=$c{/parameter/@calc_type}&amp;cdd_list_id=$c{/parameter/@cdd_list_id}&amp;default_value_dsid=$c{/parameter/@default_value_dsid}"/>
</c:process-config>
</p:case>
</p:switch>
</p:loop>
</c:create-config>
</a:view-config>
<#if model.getObject("/model/layout_main_button_path").getChilds()??>
<#if model.getObject("/parameter/@tab_tab_code")??>
<#else>
<a:screenTopToolbar>
<#list model.getObject('/model/layout_main_button_path').getChilds() as item>
<#if item.getString('button_code') =='SAVE'>
<a:gridButton click="con500_contract_save" text="${item.getString('prompt')!""}"/>
<#elseif item.getString('button_code') =='EXIT'>
<a:gridButton click="con500_contract_exit" text="${item.getString('prompt')!""}"/>
<#elseif item.getString('button_code') =='SAVE_EXIT'>
<a:gridButton click="con500_contract_save_exit" text="${item.getString('prompt')!""}"/>
<#elseif item.getString('button_code') =='QUOTE'>
<a:gridButton click="con500_contract_quote" text="${item.getString('prompt')!""}"/>
<#elseif item.getString('button_code') =='SUBMIT_APPROVAL'>
<a:gridButton click="con500_contract_submit" text="${item.getString('prompt')!""}"/>
<#elseif item.getString('button_code') =='PRINT'>
<a:gridButton click="function(){con500_contract_print&amp;&amp;con500_contract_print()}" text="${item.getString('prompt')!""}"/>
<#elseif item.getString('button_code') =='UPLOAD'>
<a:gridButton click="con500_contract_upload" text="${item.getString('prompt')!""}"/>
<#else>
<a:gridButton id="${item.getString('button_code')!""}" click="function(btn){con500_define_button&amp;&amp;con500_define_button(btn,$('${model.getObject("/model/base_table_path/record/@tab_code")!""}_${model.getObject("/model/base_table_path/record/@base_table")}_ds'))}" text="${item.getString('prompt')!""}"/>
</#if>
</#list>
</a:screenTopToolbar>
</#if>
</#if>
]]></a:freeMarker>
<a:screenBody padding="5" style="width:98%">
<a:placeHolder id="dynamicMain_id"/>
</a:screenBody>
</a:view>
<a:view-config>
<c:create-config targetId="dynamicMain_id">
<p:loop source="/model/layout_main_path">
<p:switch test="@tab_type">
<p:case value="FORM">
<c:process-config>
<a:screen-include screen="modules/cont/CON500/con_contract_update_form.lview?form_tab_code=${@tab_code}&amp;layout_code=${/parameter/@layout_code}&amp;document_id=$c{/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=$c{/parameter/@document_type}&amp;winid=${/parameter/@winid}&amp;function_code=${/parameter/@function_code}&amp;function_usage=$c{/parameter/@function_usage}&amp;maintain_type=${/parameter/@maintain_type}&amp;calc_type=$c{/parameter/@calc_type}&amp;default_value_dsid=$c{/parameter/@default_value_dsid}"/>
</c:process-config>
</p:case>
<p:case value="GRID">
<c:process-config>
<a:screen-include screen="modules/cont/CON500/con_contract_update_grid.lview?grid_tab_code=${@tab_code}&amp;layout_code=${/parameter/@layout_code}&amp;document_id=$c{/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=$c{/parameter/@document_type}&amp;winid=${/parameter/@winid}&amp;function_code=${/parameter/@function_code}&amp;function_usage=$c{/parameter/@function_usage}&amp;maintain_type=${/parameter/@maintain_type}&amp;calc_type=$c{/parameter/@calc_type}&amp;default_value_dsid=$c{/parameter/@default_value_dsid}"/>
</c:process-config>
</p:case>
<p:case value="TEXTAREA">
<c:process-config>
<a:screen-include screen="modules/cont/CON500/con_contract_update_textarea.lview?textarea_tab_code=${@tab_code}&amp;layout_code=${/parameter/@layout_code}&amp;document_id=$c{/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=$c{/parameter/@document_type}&amp;winid=${/parameter/@winid}&amp;function_code=${/parameter/@function_code}&amp;function_usage=$c{/parameter/@function_usage}&amp;maintain_type=${/parameter/@maintain_type}&amp;calc_type=$c{/parameter/@calc_type}&amp;default_value_dsid=$c{/parameter/@default_value_dsid}"/>
</c:process-config>
</p:case>
<p:case value="ATTACH">
<c:process-config>
<a:screen-include screen="modules/cont/CON500/con_contract_update_attach.lview?attach_tab_code=${@tab_code}&amp;layout_code=${/parameter/@layout_code}&amp;document_id=$c{/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=$c{/parameter/@document_type}&amp;winid=${/parameter/@winid}&amp;function_code=${/parameter/@function_code}&amp;function_usage=$c{/parameter/@function_usage}&amp;maintain_type=${/parameter/@maintain_type}&amp;calc_type=$c{/parameter/@calc_type}&amp;cdd_list_id=$c{/parameter/@cdd_list_id}&amp;default_value_dsid=$c{/parameter/@default_value_dsid}"/>
</c:process-config>
</p:case>
<p:case value="TAB">
<c:process-config>
<a:screen-include screen="modules/cont/CON500/con_contract_update_tabpanel.lview?tab_group=${@tab_group}&amp;parent_tab_code=${/parameter/@tab_tab_code}&amp;layout_code=${/parameter/@layout_code}&amp;document_id=$c{/parameter/@document_id}&amp;document_category=${/parameter/@document_category}&amp;document_type=$c{/parameter/@document_type}&amp;winid=${/parameter/@winid}&amp;function_code=${/parameter/@function_code}&amp;function_usage=$c{/parameter/@function_usage}&amp;maintain_type=${/parameter/@maintain_type}&amp;calc_type=$c{/parameter/@calc_type}&amp;cdd_list_id=$c{/parameter/@cdd_list_id}&amp;default_value_dsid=$c{/parameter/@default_value_dsid}"/>
</c:process-config>
</p:case>
</p:switch>
</p:loop>
</c:create-config>
</a:view-config>
</a:screen>
......@@ -251,6 +251,7 @@
<!-- <a:column name="project_name" prompt="PRJ501.PRJ_PROJECT.PROJECT_NAME"/> -->
<a:column name="bp_name" prompt="CSH513.BP_TENANT"/>
<a:column name="write_off_classification_desc" prompt="核销分类"/>
<a:column name="gld_batch_id" prompt="核销批次号"/>
</a:columns>
</a:grid>
</a:screenBody>
......
......@@ -8,6 +8,7 @@
<a:screen xmlns:a="http://www.leaf-framework.org/application">
<a:init-procedure>
<a:model-query model="csh.CSH531N.csh_batch_status_default" rootPath="batch_status_default"/>
<a:model-query model="csh.CSH531N.csh_query_position" rootPath="result_position" />
<a:model-query
defaultWhereClause="v.code=&apos;CSH511_TRANSACTION_TYPE&apos; and v.code_value in (&apos;RECEIPT&apos;,&apos;ADVANCE_RECEIPT&apos;)"
fetchAll="true" model="basic.sys_code_default_value" rootPath="sys_code_default_value_path"/>
......@@ -344,6 +345,7 @@
if (transaction_type != 'ADVANCE_RECEIPT'){
advanceDisplayFlag = 'Y';
}
var approval_flag = '${/model/result_position/record/@approval_enbale}' || 'N';
var win = new Leaf.Window({
id: 'csh_write_off_window',
params: {
......@@ -359,6 +361,7 @@
bp_id: record.get('bp_id'),
advanceDisplayFlag: advanceDisplayFlag,
readOnly: readOnly,
approval_flag: approval_flag,
winid: 'csh_write_off_window'
},
url: $('batch_detail_link').getUrl(),
......@@ -520,6 +523,7 @@
<a:map from="bp_name" to="bp_name"/>
</a:mapping>
</a:field>
<a:field name="position_code" defaultValue="${/model/result_position/record/@position_code}" />
<a:field name="receipt_type_desc" options="receipt_type_ds" valueField="code_value"
defaultValue="code_value_name" returnField="receipt_type"/>
</a:fields>
......
......@@ -627,7 +627,7 @@
<a:field name="contract_id"/>
<a:field name="trx_interface_id" defaultValue="${/parameter/@transaction_id}"/>
<a:field name="contract_number" prompt="合同编号" autoComplete="true" lovAutoQuery="true"
lovHeight="880"
lovHeight="850"
lovUrl="${/request/@context_path}/modules/csh/CSH531N/csh_write_off_ref_contract.lview"
lovWidth="1350" title="合同号选择">
<a:mapping>
......
......@@ -123,7 +123,7 @@
</a:form>
<a:hBox>
<a:vBox>
<a:grid bindTarget="csh_lov_con_contract_ds" width="450" id="csh_con_contract_ds" marginHeight="300"
<a:grid bindTarget="csh_lov_con_contract_ds" width="450" id="csh_con_contract_ds" marginHeight="360"
navBar="true">
<a:columns>
<a:column name="contract_number" align="center" prompt="HLS.CONTRACT_NUMBER" width="120"/>
......@@ -133,7 +133,7 @@
</a:grid>
</a:vBox>
<a:vBox>
<a:grid bindTarget="csh_write_off_lov_ds" marginHeight="300" id="csh_con_contract_cashflow_ds"
<a:grid bindTarget="csh_write_off_lov_ds" marginHeight="360" id="csh_con_contract_cashflow_ds"
width="800" navBar="true">
<a:columns>
<a:column name="times" prompt="HLS.TIMES" align="center" width="60"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment