| | |
| | | <input type="text" class="layui-input" name="HName" id="HName"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ç»åç§°</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 185px;"> |
| | | <select name="HUSEORGID" id="HUSEORGID" class="ForFilteringSchemes" lay-verify="HUSEORGID"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | |
| | | |
| | | // åå§åçé¢ |
| | | function set_ClearBill() { |
| | | set_StockOrg(); |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | //æ¥è¯¢ |
| | | get_Display(sWhere); |
| | | get_FastQuery(); |
| | | DisPlay_HideColumn(); |
| | | } |
| | | |
| | |
| | | , { field: 'è§è²', title: 'è§è²' } |
| | | , { field: '级å«', title: '级å«' } |
| | | , { field: '说æ', title: '说æ' } |
| | | , { field: '使ç¨ç»ç»', title: '使ç¨ç»ç»' } |
| | | ]] |
| | | }; |
| | | } |
| | |
| | | sWhere += " and çº§å« like '%" + HName + "%'"; |
| | | } |
| | | |
| | | sWhere += getOrgIDByUser();//ç¨æ·å
³èç»ç»æ¥è¯¢è¿æ»¤ |
| | | |
| | | get_Display(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | } |
| | | |
| | | //#region è·åç»ç» |
| | | function set_StockOrg() { |
| | | //è·åç»å½é¡µç»ç»å |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Web/GetOrganizations", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | success: function (result) { |
| | | var Organization = ""; |
| | | Organization += '<option style="color:blue;" value="">å
¨é¨</option>'; |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data; |
| | | for (var i = 0; i < data.length; i++) { |
| | | Organization += '<option style="color:blue;" value="' + data[i].Name + '">' + data[i].Name + '</option>'; |
| | | } |
| | | $("#HUSEORGID").append(Organization); |
| | | $("#HUSEORGID").val(sessionStorage["Organization"]) |
| | | form.render('select'); |
| | | } |
| | | layer.closeAll("loading"); |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æ ¹æ®ç¨æ·è·åç¨æ·å
³èç»ç»çè¿æ»¤æ¡ä»¶ |
| | | function getOrgIDByUser() { |
| | | var res = ""; |
| | | $.ajax({ |
| | | type: "GET", |
| | | async: false, |
| | | url: GetWEBURL() + "/Xt_User/getOrgIDListByUser", //æ¹æ³æå¨é¡µé¢åæ¹æ³å ä¼ å ç»ç»å¿
é¡»æ¯åè¡¨å¤´é¨æ¥è¯¢çç»ç» ä¸è½ä½¿ç¨ç¨æ·é»è®¤ |
| | | data: { "UserID": sessionStorage["Czybm"], "UserName": sessionStorage["HUserName"], HOrgID: $("#HUSEORGID").val() }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | if (result.data[0].sWhere == "1") { |
| | | res = " and 使ç¨ç»ç» = '" + $("#HUSEORGID").val() + "'"; |
| | | } else { |
| | | res = result.data[0].sWhere; |
| | | } |
| | | } |
| | | }, error: function (err) { |
| | | res = " and 1 = 0"; |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | return res; |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |