var baseProductModel = Ext.create('Basedev.baseProduct.BaseProductModel'); baseProductModel.data.blFlag = 1; editBaseProductForm.loadRecord(baseProductModel); editBaseProductForm.oldValues=editBaseProductForm.getValues(true) if(editBaseProductForm.oldValues==editBaseProductForm.getValues(true)){ return; } jsonData:editBaseProductForm.getValues() payload {} params:productCode=3&productName=%E7%89%A9%E6%B5%81%E4%BB%B6&state=update formData String var json = Ext.JSON.decode(response.responseText); if (json.success == true) { var data = json.data; var model=new Ext.create(mm.stockDetailEdit.mainModel.cls,data); form.getForm().loadRecord(model); var baseProductModel = Ext.create('Basedev.baseProduct.BaseProductModel'); baseProductModel.data.blFlag = 1; editBaseProductForm.loadRecord(baseProductModel); var store=Ext.getCmp(mm.stockDetailEdit.grid.id).getStore(); for(var i=0;i<store.getCount();i++){ if(store.getAt(i).dirty){ goodDetailDatas.push(store.getAt(i).data); } }