<?xml version="1.0" encoding="UTF-8"?>
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure/>
    <a:view>
        <script type="text/javascript"><![CDATA[
			function hls810_signer_add(){
	           $('hls810_signer_result_gd').showEditorByRecord($('hls810_signer_result_ds').create());
			}
			function hls810_signer_del(){
			    $('hls810_signer_result_gd').remove();
			}
			function hls810_signer_save(){
			    $('hls810_signer_result_ds').submit();
			}
						
		]]></script>
        <a:dataSets>
            <a:dataSet id="signer_category_ds" lookupCode="HL_SIGNER_CATEGORY"/>
            <a:dataSet id="indentity_type_ds" lookupCode="HL_INDENTITY_TYPE"/>
            <a:dataSet id="sign_type_ds" lookupCode="HL_SIGN_TYPE"/>
            <a:dataSet id="hls810_signer_query_ds" autoCreate="true">
                <a:fields>
                    <a:field name="templet_id" defaultValue="${/parameter/@templet_id}"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="hls810_signer_result_ds" autoQuery="true" model="hls.HLS810.hls_doc_file_templet_signer" queryDataSet="hls810_signer_query_ds" queryUrl="${/request/@context_path}/autocrud/hls.HLS810.hls_doc_file_templet_signer/query?templet_id=${/parameter/@templet_id}" selectable="true">
                <a:fields>
                    <a:field name="templet_id" defaultValue="${/parameter/@templet_id}"/>
                    <a:field name="enable_flag" checkedValue="Y" defaultValue="Y" uncheckedValue="N"/>
                    <a:field name="auto_sign" checkedValue="Y" defaultValue="N" uncheckedValue="N"/>
                    <a:field name="signer_category_desc" displayField="code_value_name" options="signer_category_ds" returnField="signer_category" valueField="code_value"/>
                    <a:field name="indentity_type_desc" displayField="code_value_name" options="indentity_type_ds" returnField="indentity_type" valueField="code_value"/>
                    <a:field name="sign_type_desc" displayField="code_value_name" options="sign_type_ds" returnField="sign_type" valueField="code_value"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="hls810_signer_add" text="新增"/>
                <a:gridButton click="hls810_signer_del" text="删除"/>
                <a:gridButton click="hls810_signer_save" text="HLS.SAVE"/>
            </a:screenTopToolbar>
            <a:grid id="hls810_signer_result_gd" bindTarget="hls810_signer_result_ds" height="320" navBar="true" width="790">
                <a:columns>
                    <a:column name="signer_category_desc" align="center" editor="hls810_signer_combox" prompt="签署对象"/>
                    <a:column name="indentity_type_desc" align="center" editor="hls810_signer_combox" prompt="签署人签约类别"/>
                    <a:column name="key_word" align="center" editor="text_ed" prompt="关键字"/>
                    <a:column name="auto_sign" editor="hls810_signer_checked" prompt="是否自动签署" width="50"/>
                    <a:column name="sign_order" align="center" editor="text_ed" prompt="签署顺序"/>
                    <a:column name="sign_type_desc" align="center" editor="hls810_signer_combox" prompt="签署类型"/>
                    <a:column name="enable_flag" editor="hls810_signer_checked" prompt="启用" width="50"/>
                </a:columns>
                <a:editors>
                    <a:textField id="text_ed"/>
                    <a:checkBox id="hls810_signer_checked"/>
                    <a:comboBox id="hls810_signer_combox"/>
                </a:editors>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>
