Commit cd364332 authored by Luochenglong's avatar Luochenglong

电子档案改造

parent e61bf133
......@@ -51,8 +51,13 @@
for (var k in obj) {
// if (obj[k] instanceof Object) {
var datasRecord = newMap("record");
var str=obj[k].value;
str=str.replace('中左括号替换','(');
str=str.replace('中右括号替换',')');
str=str.replace('英左括号替换','(');
str=str.replace('英右括号替换',')');
datasRecord.code_value = obj[k].fieldCode;
datasRecord.code_value_name = obj[k].value;
datasRecord.code_value_name = str;
datas.addChild(datasRecord.getData());
//println(datasRecord.code_value+":"+datasRecord.code_value_name);
//} else {
......
......@@ -90,6 +90,10 @@
filelist='[]' ;
//}
}else{
fieldValueList=fieldValueList.replace('中左括号替换','(');
fieldValueList=fieldValueList.replace('中右括号替换',')');
fieldValueList=fieldValueList.replace('英左括号替换','(');
fieldValueList=fieldValueList.replace('英右括号替换',')');
fieldValueList=fieldValueList.substring(17);
fieldValueList=JSON.parse(fieldValueList);
//if(batch_data[i].je_check_flag=='Y'){
......@@ -358,6 +362,10 @@
filelist='[]' ;
// }
}else{
fieldValueList=fieldValueList.replace('中左括号替换','(');
fieldValueList=fieldValueList.replace('中右括号替换',')');
fieldValueList=fieldValueList.replace('英左括号替换','(');
fieldValueList=fieldValueList.replace('英右括号替换',')');
fieldValueList=fieldValueList.substring(17);
fieldValueList=JSON.parse(fieldValueList);
//if(req_date[i].je_check_flag=='Y'){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment