节进度
__gZxrYDgj8OpfztxSuUg
__gZxrYDgj8OpfztxSuUg
published
UTF-8
post
/sectionProgress
json
0) {
for (var iterator = datas.iterator(); iterator.hasNext();) {
var map1 = iterator.next();//取值
var docids = map1.get("id");
}
var process = getDocumentProcess();
var Info = findDocument(docids);
for (var key in json) {
var value = json[key];
Info.findItem(key).setValue(value);
}
process.doUpdate(Info);
result.put("type", "update");
} else {
var process = getDocumentProcess();
var formProcess = getFormProcess();
var subform = formProcess.doView("__wPIqJLPxHNYiwWfLb6R");
var Info = process.doNew(subform, getWebUser(), createParamsTable());
for (var key in json) {
var value = json[key];
Info.findItem(key).setValue(value);
}
result.put("type", "insert");
process.doCreate(Info);
}
result.put("msg", "success");
result.put("code", "0");
} else {
result.put("code", "-1");
result.put("msg", "身份证和节id不能为空");
}
return result;
})()]]>