fnd_request_responsibility.lview 7.43 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: likun $
    $Date: 2012/03/29 07:25:18 $
    $Revision: 1.5 $
    $Purpose: “可执行定义
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure/>
    <a:view>
        <a:link id="fnd_request_program_edit_link" url="${/request/@context_path}/modules/fnd/FND5020/fnd_request_program_insert.lview"/>
        <a:link id="fnd_request_program_job_edit_link" url="${/request/@context_path}/modules/fnd/FND5020/fnd_request_program_job_edit.lview"/>
        <script type="text/javascript"><![CDATA[
        
            function query(){
                $('fnd_request_responsibility_result_ds').query();
            }
			function reset(){
				$('fnd_request_responsibility_query_ds').reset();
			}
			
			     
        ]]></script>
        <a:dataSets>
            <a:dataSet id="enable_flag_ds">
                <a:datas>
                    <a:record name="是" code="Y"/>
                    <a:record name="否" code="N"/>
                </a:datas>
            </a:dataSet>
            <a:dataSet id="cycle_flag_ds">
                <a:datas>
                    <a:record name="是" code="Y"/>
                    <a:record name="否" code="N"/>
                </a:datas>
            </a:dataSet>
            <a:dataSet id="fnd_request_responsibility_query_ds" model="fnd.FND5040.fnd_request_responsibility">
                <a:fields>
                    <a:field name="request_name" lovHeight="500" lovService="fnd.FND5030.fnd_request_info_lov" lovWidth="500" title="请求编码">
                        <a:mapping>
                            <a:map from="request_info_id" to="request_info_id"/>
                            <a:map from="request_name" to="request_name"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="role_name" lovHeight="500" lovService="public.sys_role" lovWidth="500" title="职责">
                        <a:mapping>
                            <a:map from="role_id" to="role_id"/>
                            <a:map from="role_name" to="role_name"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="user_name" lovHeight="500" lovService="public.sys_user" lovWidth="500" title="用户">
                        <a:mapping>
                            <a:map from="user_id" to="user_id"/>
                            <a:map from="user_name" to="user_name"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="company_name" lovHeight="500" lovService="public.fnd_company" lovWidth="500" title="公司">
                        <a:mapping>
                            <a:map from="company_id" to="company_id"/>
                            <a:map from="company_short_name" to="company_name"/>
                        </a:mapping>
                    </a:field>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="fnd_request_responsibility_result_ds" autoCount="true" autoQuery="false" fetchAll="false" model="fnd.FND5040.fnd_request_responsibility" queryDataSet="fnd_request_responsibility_query_ds" selectable="true">
                <a:fields>
                    <a:field name="request_name" lovHeight="500" lovService="fnd.FND5030.fnd_request_info_lov" lovWidth="500" title="请求编码">
                        <a:mapping>
                            <a:map from="request_info_id" to="request_info_id"/>
                            <a:map from="request_name" to="request_name"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="role_name" lovHeight="500" lovService="public.sys_role" lovWidth="500" title="职责">
                        <a:mapping>
                            <a:map from="role_id" to="role_id"/>
                            <a:map from="role_name" to="role_name"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="user_name" lovHeight="500" lovService="public.sys_user" lovWidth="500" title="用户">
                        <a:mapping>
                            <a:map from="user_id" to="user_id"/>
                            <a:map from="user_name" to="user_name"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="company_name" lovHeight="500" lovService="public.fnd_company" lovWidth="500" title="公司">
                        <a:mapping>
                            <a:map from="company_id" to="company_id"/>
                            <a:map from="company_short_name" to="company_name"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="start_date" required="true"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:form column="3" labelWidth="100" marginWidth="65" title="请求权限定义" width="750">
                <a:lov name="request_name" bindTarget="fnd_request_responsibility_query_ds" prompt="请求编码">
                    <a:events>
                        <a:event name="enterdown" handler="query"/>
                    </a:events>
                </a:lov>
                <a:lov name="role_name" bindTarget="fnd_request_responsibility_query_ds" prompt="职责">
                    <a:events>
                        <a:event name="enterdown" handler="query"/>
                    </a:events>
                </a:lov>
                <a:lov name="user_name" bindTarget="fnd_request_responsibility_query_ds" prompt="用户">
                    <a:events>
                        <a:event name="enterdown" handler="query"/>
                    </a:events>
                </a:lov>
                <a:lov name="company_name" bindTarget="fnd_request_responsibility_query_ds" prompt="公司">
                    <a:events>
                        <a:event name="enterdown" handler="query"/>
                    </a:events>
                </a:lov>
            </a:form>
            <a:hBox>
                <a:button click="query" text="HAP_QUERY"/>
                <a:button click="reset" text="HAP_RESET"/>
            </a:hBox>
            <a:grid id="grid" bindTarget="fnd_request_responsibility_result_ds" height="450" marginWidth="65" navBar="true" width="750">
                <a:toolBar>
                    <a:button type="add"/>
                    <a:button type="clear"/>
                    <a:button type="save"/>
                </a:toolBar>
                <a:columns>
                    <a:column name="request_name" align="left" editor="grid_lov" prompt="请求编码" width="100"/>
                    <a:column name="role_name" align="left" editor="grid_lov" prompt="职责" width="100"/>
                    <a:column name="user_name" align="left" editor="grid_lov" prompt="用户" width="80"/>
                    <a:column name="company_name" align="left" editor="grid_lov" prompt="公司" width="100"/>
                    <a:column name="start_date" align="left" editor="grid_dp" prompt="起始日期" renderer="Leaf.formatDate" width="80"/>
                    <a:column name="end_date" align="left" editor="grid_dp" prompt="终止日期" renderer="Leaf.formatDate" width="80"/>
                </a:columns>
                <a:editors>
                    <a:lov id="grid_lov"/>
                    <a:datePicker id="grid_dp"/>
                </a:editors>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>