<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: zhangxing5129 $Date: 2013-12-11 上午10:59:25 $Revision: 1.0 $Purpose: 固定授权用户定义 --> <a:screen xmlns:a="http://www.leaf-framework.org/application"> <a:view> <script type="text/javascript"><![CDATA[ function aut_owner_user_default_ef(record, name) { if (record.isNew) { return 'aut_owner_user_default_lov'; } else { return ''; } } function aut_owner_user_default_save(){ $('aut_owner_user_default_ds').submit(); } function aut_owner_user_default_new(){ $('aut_owner_user_default_grid').showEditorByRecord($('aut_owner_user_default_ds').create()); } function aut_owner_user_default_clear(){ $('aut_owner_user_default_grid').clear(); } function aut_owner_user_default_query() { $('aut_owner_user_default_ds').query(); } ]]></script> <a:dataSets> <a:dataSet id="user_nature" lookupCode="USER_NATURE"/> <a:dataSet id="user_natrue_ds" lookupCode="SYS_USER_BP_CATEGORY"/> <a:dataSet id="aut_authorize_user_batch_fix_query_ds"> <a:fields> <a:field name="unit_name" displayField="code_value_name" options="user_natrue_ds" returnField="unit_name" valueField="code_value_name"/> <a:field name="province_description" lovGridHeight="350" lovHeight="500" lovService="aut.AUT106.fnd_province" lovWidth="500"> <a:mapping> <a:map from="description" to="province_description"/> </a:mapping> </a:field> <a:field name="name"/> <a:field name="bp_category_n" displayField="code_value_name" options="user_nature" returnField="bp_category" valueField="code_value"/> <a:field name="bp_category" /> </a:fields> </a:dataSet> <a:dataSet id="aut_owner_user_default_ds" autoQuery="true" fetchAll="true" model="aut.AUT109.aut_owner_user_default" selectable="true" queryDataSet="aut_authorize_user_batch_fix_query_ds"> <a:fields> <a:field name="user_id" required="true"/> <a:field name="enabled_flag" checkedValue="Y" defaultValue="Y" prompt="HLS.ENABLED_FLAG" uncheckedValue="N"/> <a:field name="employee_name" prompt="HLS.EMPLOYEE_NAME"/> <a:field name="employee_code" prompt="HLS.EMPLOYEE_CODE"/> <a:field name="authorized_user_desc" prompt="HLS.DESCRIPTION"/> <a:field name="user_name" lovGridHeight="300" lovHeight="450" lovService="basic.sys_user_for_lov" lovWidth="500" prompt="HLS.USER_NAME" required="true" title="AUT106.CHOOSE_USER"> <a:mapping> <a:map from="user_name" to="user_name"/> <a:map from="description" to="authorized_user_desc"/> <a:map from="employee_code" to="employee_code"/> <a:map from="employee_name" to="employee_name"/> <a:map from="user_id" to="user_id"/> </a:mapping> </a:field> </a:fields> </a:dataSet> </a:dataSets> <a:screenBody> <a:screenTopToolbar> <a:screenTitle/> <a:gridButton click="aut_owner_user_default_new" text="HLS.NEW"/> <a:gridButton click="aut_owner_user_default_clear" text="HLS.CLEAR"/> <a:gridButton click="aut_owner_user_default_save" text="HLS.SAVE"/> <a:gridButton click="aut_owner_user_default_query" text="查询"/> </a:screenTopToolbar> <a:form column="4" labelWidth="100" marginWidth="100" title="查询条件"> <!-- <a:lov name="authorized_user_desc" bindTarget="sys_user_ds"/> --> <!-- <a:comboBox name="unit_name" bindTarget="aut_authorize_user_batch_fix_query_ds" prompt="用户性质"/> --> <!-- <a:lov name="province_description" bindTarget="aut_authorize_user_batch_fix_query_ds" prompt="经销商的省份"/> --> <a:textField name="unit_name" bindTarget="aut_authorize_user_batch_fix_query_ds" prompt="部门"/> <a:textField name="position_desc" bindTarget="aut_authorize_user_batch_fix_query_ds" prompt="主岗位"/> <a:textField name="employee_name" bindTarget="aut_authorize_user_batch_fix_query_ds" prompt="员工"/> <a:textField name="user_name" bindTarget="aut_authorize_user_batch_fix_query_ds" prompt="用户"/> <a:comboBox name="bp_category_n" bindTarget="aut_authorize_user_batch_fix_query_ds" prompt="账号类型"/> <a:textField name="bp_name" bindTarget="aut_authorize_user_batch_fix_query_ds" prompt="商业伙伴名称"/> <a:textField name="extra_nam" bindTarget="aut_authorize_user_batch_fix_query_ds" prompt="商业伙伴简称"/> <a:textField name="bp_code" bindTarget="aut_authorize_user_batch_fix_query_ds" prompt="商业伙伴编号"/> </a:form> <a:grid id="aut_owner_user_default_grid" bindTarget="aut_owner_user_default_ds" marginHeight="170" marginWidth="30" navBar="true"> <a:toolBar> <a:button type="delete"/> </a:toolBar> <a:columns> <a:column name="user_name" editorFunction="aut_owner_user_default_ef"/> <a:column name="authorized_user_desc"/> <a:column name="employee_code"/> <a:column name="employee_name"/> <a:column name="unit_name" prompt="部门" width="120"/> <a:column name="position_desc" prompt="主岗位" width="180"/> <a:column name="bp_category_n" prompt="账号类型" width="180"/> <a:column name="bp_name" prompt="商业伙伴名称" width="180"/> <a:column name="extra_nam" prompt="商业伙伴简称" width="180"/> <a:column name="bp_code" prompt="商业伙伴编号" width="180"/> <a:column name="enabled_flag" editor="aut_owner_user_default_cb"/> </a:columns> <a:editors> <a:lov id="aut_owner_user_default_lov"/> <a:checkBox id="aut_owner_user_default_cb"/> </a:editors> </a:grid> </a:screenBody> </a:view> </a:screen>