| | |
| | | else if ($.inArray(data[i].name, totalArray) > -1) { //计ç®å |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: false, totalRow: true, width: 120 }); |
| | | } else if (data[i].name == 'çäº§èµæºä»£ç ') { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: false, width: 200, event: 'çäº§èµæºä»£ç ' }); |
| | | col.push({ |
| | | field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: 'çäº§èµæºä»£ç ', templet: function (d) { |
| | | return '<span style="color: blue;">' + d.çäº§èµæºä»£ç + '</span>' |
| | | }, style: 'cursor: pointer;' |
| | | }); |
| | | } else { |
| | | switch (data[i].Type) { |
| | | //int |
| | |
| | | sWhere += " and " + ColName2 + " " + com2; |
| | | } |
| | | |
| | | if (number == 1) { |
| | | HOrgID = sessionStorage["OrganizationID"]; |
| | | } |
| | | else { |
| | | HOrgID = $("#HOrgID").val();//ç»ç» |
| | | } |
| | | //if (number == 1) { |
| | | // HOrgID = sessionStorage["OrganizationID"]; |
| | | //} |
| | | //else { |
| | | // HOrgID = $("#HOrgID").val();//ç»ç» |
| | | //} |
| | | |
| | | if (HOrgID) { |
| | | sWhere += " and HUSEORGID = '" + HOrgID + "'"; |
| | | } |
| | | //if (HOrgID) { |
| | | // sWhere += " and HUSEORGID = '" + HOrgID + "'"; |
| | | //} |
| | | |
| | | if (Htype != "") { |
| | | Htype = decodeURI(Htype); |
| | | sWhere += " and ç±»å = '" + Htype + "'"; |
| | | //sWhere += " and ç±»å = '" + Htype + "'"; |
| | | } |
| | | |
| | | if (HNumber) { |
| | | sWhere += " and çäº§èµæºä»£ç like '%" + HNumber + "%'"; |
| | | } |
| | | if (HName) { |
| | | sWhere += " and çäº§èµæºåç§° like '%" + HName + "%'"; |
| | | } |
| | | sWhere += " and çäº§èµæºåç§° like '%" + HName + "%'"; |
| | | } |
| | | |
| | | sWhere += addSWhereByOpenType(); |
| | | |
| | | sWhere += getOrgIDByUser();//ç¨æ·å
³èç»ç»æ¥è¯¢è¿æ»¤ |
| | | |
| | | get_Display(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | } |
| | |
| | | var params = get_UrlVars(); |
| | | |
| | | var openType = params[params[1]]; //ä»åæ°ä¸è·å æå¼æ¹å¼ 1ç´æ¥æå¼ 2å
¶å®é¡µé¢éè¿éæ©æé®æå¼ |
| | | if ( openType == "2") { |
| | | if (typeof (openType) != "undefined") { |
| | | sWhere += " and ç¦ç¨æ è®° != 'Y' and ISNULL(å®¡æ ¸äºº,'') != ''" |
| | | return sWhere; |
| | | } |
| | | return sWhere; |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //#region æ ¹æ®ç¨æ·è·åç¨æ·å
³èç»ç»çè¿æ»¤æ¡ä»¶ |
| | | function getOrgIDByUser() { |
| | | var res = ""; |
| | | $.ajax({ |
| | | type: "GET", |
| | | async: false, |
| | | url: GetWEBURL() + "/Xt_User/getOrgIDListByUser", //æ¹æ³æå¨é¡µé¢åæ¹æ³å ä¼ å ç»ç»å¿
é¡»æ¯åè¡¨å¤´é¨æ¥è¯¢çç»ç» ä¸è½ä½¿ç¨ç¨æ·é»è®¤ |
| | | data: { "UserID": sessionStorage["Czybm"], "UserName": sessionStorage["HUserName"], HOrgID: $("#HOrgID").val() }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | if (result.data[0].sWhere == "1") { |
| | | res = " and HUSEORGID = '" + $("#HOrgID").val() + "'"; |
| | | } else { |
| | | res = result.data[0].sWhere; |
| | | } |
| | | } |
| | | }, error: function (err) { |
| | | res = " and 1 = 0"; |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | return res; |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | //éèæ¾ç¤ºè¿æ»¤æ¹æ¡çæ ç¾ä¿¡æ¯ |
| | | document.getElementById("HFilterScheme_Now").style.display = "none"; |
| | | //æ§è¡æ¥è¯¢æ¹æ³ |
| | | // get_FastQuery(1); |
| | | form.render("select"); |
| | | } |
| | | }, error: function () { |