日期:2014-05-17 浏览次数:20873 次
var recodes=docgrid.getSelectionModel().getSelections();
for(var i=0;i<count;i++){
var recode=recodes[i];
Ext.Ajax.request({
url: "otherdoc/importDocAc.action",
method:'post',
params: {status: docStatus,orgCode: docOrg,docTypeId: docType,path:docUrl,uploadName:docName},
success: function(response, config) {
var json= Ext.util.JSON.decode(response.responseText);
recode.set('uploadStatus',json.msg);
recode.set('id',json.docId);
recode.set('url',json.url);
recode.commit();
},
failure: function(){
Ext.MessageBox.alert("result", "请求失败");
}
});
}