标签:
addItem: function(){ this.addDlg.show(); this.addDlg.setOper(‘add‘); }, /*修改用户信息操作*/ updItem : function(grid, rowIndex, colIndex) { /*if (!IsmpYH.common.isHasPermission(this.modAuth, 3)) { Ext.MessageBox.alert(‘提示‘, ‘对不起,您没有权限执行情况该操作!‘); return; }*/ this.addDlg.show(); this.addDlg.setOper(‘upd‘); var r=this.getStore().getAt(rowIndex); if(r!=null){ this.addDlg.panel.formPanel.site_name.setValue(r.data.site_name); this.addDlg.panel.formPanel.site_code.setValue(r.data.site_code); this.addDlg.panel.formPanel.site_addr.setValue(r.data.site_addr); } },
标签:
原文地址:http://www.cnblogs.com/JAYIT/p/4936434.html