日期:2014-05-16 浏览次数:20406 次
for (var i = 0; i < renyuandanganguanli_jleditStore.data.items.length; i++) {
// 这里是取到这个store的数据
var re = renyuandanganguanli_jleditStore.data.items[i];
employeeUserProList += re.data["proPkID"] + ","
+ encodeURI(re.data["companyName"]) + ","
+ encodeURI(re.data["position"]) + ","
+ Go_dateType(re.data["enterDate"]) + ","
+ Go_dateType(re.data["exitDate"]) + ","
+ encodeURI(re.data["workDetail"]);
employeeUserProList += ";";
}
// 这里是执行Ajax请求
Ext.Ajax.request({
url : 'employeeEdit.action',
// 这里是传递参数,在action中接收然后在操作
params : {
employeeVo : employeeVo,
employeeEducationList : employeeEducationList,
employeeCertificateList : employeeCertificateList,
employeeUserProList : employeeUserProList,
employeeRewardPenaltyList : employeeRewardPenaltyList
},
success : function(response, obj) {
editWin.close();
danganguanli_gridStore.loadPage(1, {
params : {
pagingFlag : "true"
}
})
Ext.example.msg('消息', "修改操作成功!");
},
failure : function() {
alert("后台出错了!");
}
});