1234567891011121314151617181920212223242526272829303132333435363738 |
- Ext.define('erp.view.hr.emplmana.ReandpunishGrid',{
- extend: 'Ext.grid.Panel',
- alias: 'widget.reandpunishgrid',
- layout : 'fit',
- id: 'reandpunishgrid',
- caller: 'Arreandpunish',
- emptyText : $I18N.common.grid.emptyText,
- columnLines : true,
- autoScroll : true,
- detno: 'ar_detno',
- keyField: 'ar_id',
- mainField: 'ar_arid',
- columns: [],
- bodyStyle:'background-color:#f1f1f1;',
- plugins: Ext.create('Ext.grid.plugin.CellEditing', {
- clicksToEdit: 1
- }),
- bbar: {xtype: 'erpToolbar'},
- GridUtil: Ext.create('erp.util.GridUtil'),
- initComponent : function(){
- this.callParent(arguments);
- },
- getMyData: function(id){
- if(!id){
- id = 0;
- }
- var me = this;
- var params = {
- caller: "Arreandpunish",
- condition: "ar_arid=" + id
- };
- if(me.columns && me.columns.length > 2){
- me.GridUtil.loadNewStore(me, params);
- } else {
- me.GridUtil.getGridColumnsAndStore(me, 'common/singleGridPanel.action', params);
- }
- }
- });
|