1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- Ext.define('erp.view.ma.userGroup.userGroupForm',{
- extend: 'Ext.form.Panel',
- alias: 'widget.erpUserGroupForm',
- id: 'form',
- title : 'CS用户组权限维护',
- frame : true,
- layout: 'column',
- autoScroll : true,
- defaultType : 'textfield',
- cls: 'u-form-default',
- enableTools: true,
- fieldDefaults : {
- fieldStyle : "background:#FFFAFA;color:#515151;",
- focusCls: 'x-form-field-cir-focus',
- labelAlign : "right",
- msgTarget: 'side',
- blankText : $I18N.common.form.blankText
- },
- FormUtil: Ext.create('erp.util.FormUtil'),
- BaseUtil: Ext.create('erp.util.BaseUtil'),
- items : [{
- allowBlank:false,
- cls:"form-field-allowBlank",
- columnWidth:0.25,
- editable:true,
- fieldLabel:"<font color='red'>用户组</font>",
- labelSeparator : "",
- dataIndex:'eg_groupcode',
- fieldStyle:"background:#FFFAFA;color:#515151;",
- labelAlign:"left",
- xtype:"dbfindtrigger",
- editable:false,
- id:'eg_groupcode',
- name:'eg_groupcode',
- },{
- cls:"form-field-allowBlank",
- columnWidth:0.25,
- fieldLabel:"对应模块",
- labelSeparator : "",
- fieldStyle:"background:#FFFAFA;color:#515151;",
- labelAlign:"left",
- xtype:"combo",
- id:'sn_module',
- enableKeyEvents:true,
- editable:false,
- displayField: 'display',
- valueField: 'value',
- store:Ext.create('Ext.data.Store', {
- autoLoad: true,
- fields: ['display','value'],
- proxy: {
- type: 'ajax',
- url : basePath + 'ma/getCSSysNavigation.action',
- reader: {
- type: 'json',
- root: 'data'
- },
- headers: {
- 'Content-Type': 'application/json;charset=utf-8'
- }
- }
- })
- },{
- cls:"form-field-allowBlank",
- columnWidth:0.1,
- style:{
- 'margin-left':'20px'
- },
- id:'query',
- text:'筛选',
- fieldStyle:"background:#FFFAFA;color:#515151;",
- labelSeparator : ":",
- labelAlign:"left",
- xtype:"button"
- },{
- cls:"form-field-allowBlank",
- columnWidth:0.1,
- style:{
- 'margin-left':'20px'
- },
- id:'save',
- text:'保存',
- fieldStyle:"background:#FFFAFA;color:#515151;",
- labelSeparator : ":",
- labelAlign:"left",
- xtype:"button"
- }],
- initComponent : function(){
- var me = this;
- me.FormUtil=Ext.create('erp.util.FormUtil');
- me.GridUtil=Ext.create('erp.util.GridUtil');
- me.BaseUtil=Ext.create('erp.util.BaseUtil');
- this.callParent(arguments);
- }
- });
|