var jsonarr = new Array;;
Jsonstr = ' {' +
' Objuid ': ' + ' ' + abp.common.json2string ($.trim (objuid)) + ' ", ' +
' Scx_uid ': ' + ' ' + abp.common.json2string ($.trim (scx_uid)) + ' ", ' +
' ph ': ' + ' ' + abp.common.json2string ($.trim (ph)) + ' ", ' +
' PM ': ' + ' ' + abp.common.json2string ($.trim (PM)) + ' ", ' +
' GG ': ' + ' ' + abp.common.json2string ($.trim (GG)) + ' ", ' +
' ZT ': ' + ' + abp.common.json2string ($.trim (json.stringify (GX)) + ', ' +
' ts ': ' + ' + abp.common.json2string ($.trim (json.stringify (GX)) + ', ' +
"}";
Jsonarr.push (JSONSTR);
var jsparams = new Abp.common.JSParams ();
Jsparams.push ("Jsons", "[" + Jsonarr.join (",") + "]");
var url = "/" +globalurl+ "/servicecontroller?";
$.ajax ({
Type: "Post",
Url:url,
Data: "Userdefineclass=com.anolesoft.mes.stk.action.touliaoaction&calltype=ao" + "&" + Jsparams.paramstostring (),
DataType: "Text",
Success:function (data) {
if ($.trim (data) = = "Success") {
Alert ("Save success!") ");
}else if ($.trim (data) = = "Error") {
Alert ("Save failed! ");
}else{
Alert ($.trim (data));
}
},error:function (data) {
Alert ("An error occurred.");
$ ("#button_4028818251dc9f220151dcb3ca8c017b"). Closeopenpane ();
}
});
JSON string mosaic template