<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: gaoyang $Date: 2013-3-13 上午11:24:43 $Revision: 1.0 $Purpose: --> <a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true"> <a:init-procedure> <a:model-query model="basic.sys_session_info" rootPath="chanceKyc_default_record"/> </a:init-procedure> <a:view> <script type="text/javascript"><![CDATA[ function onRemove_chanceKycDs(ds, record, index) { displayHandle('chanceKyc'); } function onAdd_chanceKycDs(ds, record, index) { displayHandle('chanceKyc'); } function onLoad_chanceKycDs(ds) { displayHandle('chanceKyc'); displayDom('chanceKyc_button'); } function onIndexChange_chanceKycDs(ds, record) { record_displayControl(ds, record); } ]]></script> <a:dataSets> <a:dataSet id="kycTypeDs" lookupCode="LCH502_TRACKING_AFFAIRS"/> <a:dataSet id="chanceKycDs" autoQuery="true" bindName="kyc_info" bindTarget="chanceCreateDs" fetchAll="true" model="lch.LCH502.lch_lease_chance_kyc" queryUrl="${/request/@context_path}/autocrud/lch.LCH502.lch_lease_chance_kyc/query?lease_chance_id=${/parameter/@lease_chance_id}" selectable="true" selectionModel="single"> <a:fields> <a:field name="lease_chance_id" defaultValue="${/parameter/@lease_chance_id}"/> <a:field name="kyc_id"/> <a:field name="contact_time" defaultValue="${/model/chanceKyc_default_record/record/@today}"/> <a:field name="contact_person"/> <a:field name="full_desc"/> <a:field name="kyc_type_desc" displayField="code_value_name" options="kycTypeDs" returnField="kyc_type" valueField="code_value"/> </a:fields> <a:events> <a:event name="remove" handler="onRemove_chanceKycDs"/> <a:event name="add" handler="onAdd_chanceKycDs"/> <a:event name="load" handler="onLoad_chanceKycDs"/> <a:event name="indexchange" handler="onIndexChange_chanceKycDs"/> </a:events> </a:dataSet> </a:dataSets> <a:grid id="chanceKycDs_grid" bindTarget="chanceKycDs" height="200" marginWidth="40"> <a:columns> <a:column name="employee_name" width="150"/> <a:column name="contact_person" width="150"/> <a:column name="contact_time" renderer="Leaf.formatDate"/> <a:column name="kyc_type_desc" width="150"/> <a:column name="short_desc" width="300"/> </a:columns> </a:grid> <div id="chanceKyc_button" class="hide_dom"> <script type="text/javascript"><![CDATA[ function chanceKycDelete() { $('chanceKycDs_grid').remove(); } function chanceKycAdd() { $('chanceKycDs_grid').showEditorByRecord($('chanceKycDs').create()); } ]]></script> <a:hBox> <a:button click="chanceKycAdd" text="HLS.NEW"/> <a:button click="chanceKycDelete" text="HLS.REMOVE"/> </a:hBox> </div> <div id="chanceKycInfo" class="hide_dom"> <a:form marginWidth="40" title="线索信息"> <a:hBox labelWidth="120"> <a:lov name="employee_name" bindTarget="chanceKycDs"/> <a:datePicker name="contact_time" bindTarget="chanceKycDs"/> <a:textField name="contact_person" bindTarget="chanceKycDs"/> <a:comboBox name="kyc_type_desc" bindTarget="chanceKycDs"/> </a:hBox> <a:hBox labelWidth="120"> <a:textField name="short_desc" bindTarget="chanceKycDs" width="428"/> </a:hBox> <a:hBox labelWidth="120"> <a:textArea name="full_desc" bindTarget="chanceKycDs" width="424"/> </a:hBox> </a:form> </div> </a:view> </a:screen>