Backstage back to the foreground list, the foreground Ajax after receiving the traversal method

Source: Internet
Author: User

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>&nbsp '; $.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>&nbsp '; }/* else {s+= ' <a class= "Edit_button" href= "Javascript:yichangchakan (\ ' + uid + ' \ ')"
                        ; normal </a>&nbsp ';
                     } */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; }
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.