<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: hand $Date: 2016-6-20 下午5:42:46 $Revision: 1.0 $Purpose: --> <a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:init-procedure/> <a:view> <script type="text/javascript"><![CDATA[ function submitsuccess() { $('con_collection_group_result_ds').query(); } ]]></script> <a:dataSets> <a:dataSet id="con_collection_group_result_ds" bindName="con_collection_group" model="cont.CON630.con_collection_group" selectable="true" selectionModel="single" submitUrl="${/request/@context_path}/modules/cont/CON630/con_collection.lsc"> <a:fields> <a:field name="group_id"/> <a:field name="type_id"/> <a:field name="group_code"/> <a:field name="group_name"/> <a:field name="district"/> <a:field name="note"/> </a:fields> <!-- <a:events> <a:event name="submitsuccess" handler="submitsuccess"/> </a:events> --> </a:dataSet> <a:dataSet id="con_collection_persons_result_ds" bindName="con_collection_persons" bindTarget="con_collection_group_result_ds" model="cont.CON630.con_collection_persons" selectable="true" selectionModel="single"> <a:fields> <a:field name="staff_id"/> <a:field name="type_id"/> <a:field name="group_id"/> <a:field name="staff_name"/> <a:field name="district"/> <a:field name="note"/> </a:fields> </a:dataSet> </a:dataSets> <a:grid id="grid_id1" bindTarget="con_collection_group_result_ds" height="175" marginWidth="50" navBar="true"> <a:toolBar> <a:button type="add"/> <a:button type="delete"/> </a:toolBar> <a:columns> <a:column name="group_code" editor="grid_id_textField_id1" prompt="CON_COLLECTION_GROUP.GROUP_CODE" width="100"/> <a:column name="group_name" editor="grid_id_textField_id1" prompt="CON_COLLECTION_GROUP.GROUP_NAME" width="100"/> <a:column name="district" editor="grid_id_textField_id1" prompt="CON_COLLECTION_GROUP.DISTRICT" width="100"/> <a:column name="note" editor="grid_id_textField_id1" prompt="CON_COLLECTION_GROUP.NOTE" width="100"/> </a:columns> <a:editors> <a:numberField id="grid_id_numberField_id1"/> <a:textField id="grid_id_textField_id1"/> </a:editors> </a:grid> <!-- <a:screen-include screen="modules/cont/CON630/con_collection_persons.lview"/> --> <a:grid id="grid_id2" bindTarget="con_collection_persons_result_ds" height="175" marginWidth="50" navBar="true"> <a:toolBar> <a:button type="add"/> <a:button type="save"/> <a:button type="delete"/> </a:toolBar> <a:columns> <a:column name="staff_name" editor="grid_id_textField_id2" prompt="CON_COLLECTION_PERSONS.STAFF_NAME" width="100"/> <a:column name="district" editor="grid_id_textField_id2" prompt="CON_COLLECTION_PERSONS.DISTRICT" width="100"/> <a:column name="note" editor="grid_id_textField_id2" prompt="CON_COLLECTION_PERSONS.NOTE" width="100"/> </a:columns> <a:editors> <a:numberField id="grid_id_numberField_id2"/> <a:textField id="grid_id_textField_id2"/> </a:editors> </a:grid> <a:hBox/> </a:view> </a:screen>