| | |
| | | com = " and (" + ColName + " " + com + ")"; |
| | | } |
| | | |
| | | //æ ¹æ®ç¨æ·è¿æ»¤ç¨æ·å
³è客æ·çè®°å½ |
| | | var OtherSearch = getSWhereByHUser(); |
| | | |
| | | sWhere = { |
| | | HBeginDate: HBeginDate |
| | | , HEndDate: HEndDate |
| | |
| | | , HProductName: HProductName |
| | | , HProductModel: HProductModel |
| | | , RandomSearch: com |
| | | , OtherSearch: (OtherSearch == null || OtherSearch == "undefine") ? " and 1=1 " : OtherSearch |
| | | } |
| | | sWhere = JSON.stringify(sWhere); |
| | | |
| | |
| | | com = " and (" + ColName + " " + com + ")"; |
| | | } |
| | | |
| | | //æ ¹æ®ç¨æ·è¿æ»¤ç¨æ·å
³è客æ·çè®°å½ |
| | | var OtherSearch = getSWhereByHUser(); |
| | | |
| | | sWhere = { |
| | | HBeginDate: HBeginDate |
| | | , HEndDate: HEndDate |
| | |
| | | , HProductName: HProductName |
| | | , HProductModel: HProductModel |
| | | , RandomSearch: com |
| | | , OtherSearch: (OtherSearch == null || OtherSearch == "undefine") ? " and 1=1 " : OtherSearch |
| | | } |
| | | //set_InitGrid(JSON.stringify(sWhere)); |
| | | get_Display(JSON.stringify(sWhere)); |
| | |
| | | }) |
| | | } |
| | | |
| | | |
| | | //#region æ ¹æ®ç¨æ·è·åç¨æ·å
³è客æ·çè¿æ»¤æ¡ä»¶ |
| | | function getSWhereByHUser() { |
| | | var res = ""; |
| | | $.ajax({ |
| | | type: "GET", |
| | | async: false, |
| | | url: GetWEBURL() + "/Xs_SeOrderBill/getCusIDListByUser", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "CurUserID": sessionStorage["Czybm"], "CurUserName": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | res = result.data; |
| | | } else { |
| | | res = result.data; |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function (err) { |
| | | res = " and 1 = 0"; |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | res = res.replaceAll("'", "''"); |
| | | return res; |
| | | } |
| | | //#endregion |
| | | |
| | | //#endregion |
| | | }); |
| | | </script> |