<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: Icon $Date: 2014-10-27 上午11:10:36 $Revision: 1.0 $Purpose: --> <a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:init-procedure> <a:model-query autoCount="false" defaultWhereClause=" document_category='PAYMENT_REQ' and enabled_flag='Y'" fetchAll="true" model="hls.HLS003.hls_document_type" rootPath="payment_document_type"/> </a:init-procedure> <a:view> <script type="text/javascript"><![CDATA[ function csh506_payment_back() { $('csh_payment_readOnly_window').close(); } ]]></script> <a:dataSets> <a:dataSet id="document_type_ds"> <a:datas dataSource="/model/payment_document_type"/> </a:dataSet> <a:dataSet id="csh_payment_req_create_ds" loadData="true" model="csh.CSH504.csh_payment_req_hd_upd_query"> <a:fields> <!-- <a:field name="tenant_bp_id" defaultValue="${/model/payment_req_selected/record/@tenant_bp_id}"/> --> <a:field name="document_type_dis" displayField="description" options="document_type_ds" readOnly="true" returnField="document_type" valueField="document_type"/> <!-- <a:field name="document_type" displayField="rate_method_code_display" options="exchangerate_types_ds" returnField="rate_method_code" valueField="rate_method_code"/> --> <a:field name="bp_code" lovGridHeight="300" lovHeight="500" lovLabelWidth="100" lovService="basic.hls_bp_master_v_for_lov" lovWidth="530" readOnly="true" title="付款对象"> <a:mapping> <a:map from="bp_code" to="bp_code"/> <a:map from="bp_name" to="bp_name"/> <a:map from="bp_id" to="bp_id"/> <a:map from="bp_category" to="bp_category"/> </a:mapping> </a:field> <a:field name="bp_name" readOnly="true"/> <a:field name="amount" readOnly="true"/> <a:field name="currency_code" readOnly="true"/> <a:field name="req_date" readOnly="true"/> <a:field name="description" readOnly="true"/> </a:fields> </a:dataSet> <a:dataSet id="csh_payment_req_ln_ds" autoQuery="true" bindName="sub" bindTarget="csh_payment_req_create_ds" model="csh.CSH504.csh_payment_req_ln_upd_query" queryUrl="${/request/@context_path}/autocrud/csh.CSH504.csh_payment_req_ln_upd_query/query?payment_req_id=${/parameter/@payment_req_id}" selectable="true"> <!-- <a:datas dataSource="/model/csh_payment_req_ln_query"/> --> <a:fields> <a:field name="residual_amount" readOnly="true"/> <a:field name="apply_pay_date" readOnly="true"/> <a:field name="due_date" readOnly="true"/> <a:field name="amount" readOnly="true"/> <a:field name="bp_code" lovGridHeight="300" lovHeight="500" lovLabelWidth="100" lovService="basic.hls_bp_master_v_for_lov" lovWidth="530" readOnly="true" title="付款对象"> <a:mapping> <a:map from="bp_code" to="bp_code"/> <a:map from="bp_name" to="bp_name"/> <a:map from="bp_id" to="bp_id"/> <a:map from="bp_category" to="bp_category"/> </a:mapping> </a:field> </a:fields> </a:dataSet> </a:dataSets> <a:screenBody> <a:screenTopToolbar> <a:gridButton click="csh506_payment_back" text="HLS.BACK"/> </a:screenTopToolbar> <a:form title="付款申请" width="1250"> <a:box column="4" labelWidth="120"> <a:datePicker name="req_date" bindTarget="csh_payment_req_create_ds" prompt="CSH501.CSH_REQ_DATE" width="150"/> <!-- <a:datePicker name="apply_pay_date" bindTarget="csh_payment_req_create_ds" prompt="CSH501.CSH_REQ_PAY_DATE" width="150"/> --> <a:comboBox name="document_type_dis" bindTarget="csh_payment_req_create_ds" prompt="CSH501.CSH_REQ_TYPE" typeCase="upper" width="150"/> <a:lov name="bp_code" bindTarget="csh_payment_req_create_ds" prompt="CSH501.CSH_PAYMENT_OBJ" width="150"> <a:events> <a:event name="focus" handler="function(object){on_std_focus(object,'BP')}"/> </a:events> </a:lov> <a:textField name="bp_name" bindTarget="csh_payment_req_create_ds" prompt="CSH501.CSH_PAYMENT_OBJ_NAME" width="150"/> </a:box> <a:box column="4" labelWidth="120"> <a:numberField name="amount" bindTarget="csh_payment_req_create_ds" prompt="CSH501.CSH_PAYMENT_AMOUNT" renderer="Leaf.formatMoney" typeCase="upper" width="150"/> <a:textField name="currency_code" bindTarget="csh_payment_req_create_ds" prompt="HLS.CURRENCY" width="150"/> <a:textField name="description" bindTarget="csh_payment_req_create_ds" prompt="HLS.COMMENT" width="428"/> </a:box> </a:form> <a:grid id="csh_payment_req_create_grid_ds" bindTarget="csh_payment_req_ln_ds" marginHeight="220" marginWidth="30" navBar="true"> <a:columns> <a:column name="contract_number" lock="true" prompt="HLS.CONTRACT_NUMBER" width="100"/> <a:column name="contract_name" lock="true" prompt="HLS.CONTRACT_NAME" width="150"/> <a:column name="bp_code" editor="create_grid_bp_lov" prompt="CSH501.CSH_PAYMENT_OBJ"/> <a:column name="bp_name" prompt="CSH501.CSH_PAYMENT_OBJ_NAME" width="150"/> <a:column name="amount" align="right" editor="numberField" prompt="CSH501.CSH_REQ_AMOUNT" renderer="Leaf.formatMoney"/> <a:column name="apply_pay_date" editor="datepicker" prompt="CSH501.CSH_REQ_PAY_DATE" renderer="Leaf.formatDate"/> <a:column name="project_name" prompt="HLS.PROJECT_NAME" width="150"/> <a:column name="bp_tenant_name" prompt="HLS.TENANT_NAME" width="150"/> <a:column name="cf_description" prompt="CSH501.CSH_PAYMENT_PRJ" width="150"/> <a:column name="due_amount" prompt="CSH501.CSH_PAYMENT_AMOUNT" renderer="Leaf.formatMoney"/> <a:column name="currency_code" prompt="HLS.CURRENCY"/> <a:column name="due_date" prompt="CSH501.CSH_DUE_DATE" renderer="Leaf.formatDate"/> <a:column name="residual_amount" prompt="CSH501.CSH_RESIDUAL_AMOUNT" renderer="Leaf.formatMoney"/> </a:columns> <a:editors> <a:datePicker id="datepicker"/> <a:numberField id="numberField" allowFormat="true" allowNegative="false" decimalPrecision="2"/> <a:lov id="create_grid_bp_lov"> <a:events> <a:event name="focus" handler="function(object){on_std_focus(object,'BP')}"/> </a:events> </a:lov> </a:editors> </a:grid> </a:screenBody> </a:view> </a:screen>