The
Background code is as follows:
/** * Method Description: Check whether the case information conforms to the filing standard * */@RequestMapping (value = "/checklianlist.action") @ResponseBody public Strin
G Checklianlist (httpservletrequest request,httpservletresponse response) {systemuser su = getloginuser (request);
String Xm=null;
String Personname=null;
list<map> Personnamemap = new arraylist<map> ();
map<string,object> map = new hashmap<string,object> ();
List List = new ArrayList ();
String jsonstr = "";
try {String Flowdefid = Request.getparameter ("Flowdefid");
String Courttype = Request.getparameter ("Courttype");
Map.put ("Flowdefid", Flowdefid);
Map.put ("Courttype", Courttype);
Personnamemap = tbxfsentencealterationservice.checklianlist (map);
for (int i = 0;i < Personnamemap.size (); i++) {map<string,object> map1 = Personnamemap.get (i); PersonName = (String) map1.get ("PersonnaME ");
List.add (PersonName);
}//jsonobject List1 = Jsonobject.fromobject (list);
Jsonstr = com.alibaba.fastjson.JSONObject.toJSONString (list);
}catch (Exception e) {e.printstacktrace ();
}//system.out.println (list);
return personname;
return jsonstr; }
Foreground code:
function Onactionrenderer (e) {var grid = E.sender;
var record = E.record;
var uid = record._uid;
var rowIndex = E.rowindex;
var Flowdefid = mini.get ("Flowdefid"). GetValue ();
var courttype = mini.get ("Courttype"). GetValue ();
var row = grid.getselected ();
var name=record.name;
var s = ';
var personname= '; if (Flowdefid = = ' Other_fyjxjssp ') {s + = ' <a class= "Edit_button" href= "Javascript:view (\ ' + uid + ' \ ')
"> View </a>";
} s+= ' <a class= "Edit_button" href= "Javascript:courtlian (\ ' + uid + ' \ ') ' > Filing </a>  '; $.ajax ({url: "<%=path%>/checklianlist.action", data: {Courttype:courttype, FL Owdefid:flowdefid}, type: "POST", DataType: "JSON", Async:false, succes
S:function (text) { Debugger
var jsonobj = eval (' (' + text + ') '); for (Var i=0;i<jsonobj.length;i++) {if (name ==jsonobj[i]) {s+= ' <a
class= "Edit_button" href= "Javascript:yichangchakan (\ ' + uid + ' \ ')" > Abnormal </a>  '; }/* else {s+= ' <a class= "Edit_button" href= "Javascript:yichangchakan (\ ' + uid + ' \ ')"
; normal </a>  ';
} */Debugger;
}
}
}); if (flowdefid== ' other_fyjxjsjdsp ') {s+= ' <a class= "Edit_button" href= "Javascript:lookwenshu ()
"> Decision book </a>";
s+= ' <a class= "Edit_button" href= "JAVASCRIPT:LOOKJZBDJX ()" > correction of improper commutation of judgment </a> ";
} return s; }