| | |
| | | <input type="text" class="layui-input" name="WorkCenter" id="WorkCenter"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ç©æä»£ç </label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="hidden" class="layui-input" lay-verify="HMaterID" name="HMaterID" id="HMaterID" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" lay-verify="HMaterNumber" name="HMaterNumber" id="HMaterNumber" value="" style="background-color:#efefef4d;width: 50%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHMaterID" id="btnHMaterID" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç产订åç»ç»</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 185px;"> |
| | | <select name="HOrgID" id="HOrgID" lay-verify="HOrgID"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" style="display:none;" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding: 0 5px; display: none;">éç½®</button> |
| | | <div class="layui-row" style="margin-top:10px;margin-left:5%;"> |
| | | <!--å
¶ä»æ¡ä»¶--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ç©æä»£ç </label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="hidden" class="layui-input" lay-verify="HMaterID" name="HMaterID" id="HMaterID" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" lay-verify="HMaterNumber" name="HMaterNumber" id="HMaterNumber" value="" style="background-color:#efefef4d;width: 50%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHMaterID" id="btnHMaterID" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 76px;">ç©æåç§°</label> |
| | | <div class="layui-input-block" style="margin-left: 107px;"> |
| | |
| | | <input type="text" class="layui-input" name="HModel" id="HModel"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px;margin-left:82px;margin-bottom:5px;"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç产订åç»ç»</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 185px;"> |
| | | <select name="HOrgID" id="HOrgID" lay-verify="HOrgID"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">项ç®å·</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 185px;"> |
| | | <select name="HProject" id="HProject" class=" ForFilteringSchemes" lay-verify="HProject"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" style="display:none;" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding: 0 5px; display: none;">éç½®</button> |
| | | </div> |
| | | <div class="layui-colla-content" style="padding: 0px; margin-left: 6%;"> |
| | | |
| | |
| | | var titleData = ["hmainid", "åæ®ç±»å", "HMaterID", "hunitid", "HOrgID", "HMainCenterID", "å·¥ä½", "HMainProcID", "å·¥åºåç§°", "主è¿è¡æ¶é´", "è¿è¡æ¶é´åä½", "主å å·¥æ°é", "æè´¨", "å¾å·çæ¬", "HMainGroupID", "çç»", "工价", "æ åèµæºæ°", "å èµæºå¢é", "åèµæºåé", "HItemID", "HPRDORGID"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData2 = ["hmainid", "hsubid", "ç¨åºå·", "æ¬å·¥åºç¡®è®¤è®°å½", "èªå¨ç§»è½¬", "æ¢åå夿¶é´", "æ¬éå夿¶é´", "ä¸é循ç¯å¨æ", "ä¸éåºå®å¤©æ°", "å¼å·¥ä½éï¼åºæ°ï¼", "å¼å·¥ä½éï¼å¤©æ°ï¼", "æ åå®é¢", "æ¥åºåä»·", "ä¸åæ ¼åä»·", "å·¥åºå·¥ä»·", "ç产å®é¢", "坿ä½è®¾å¤æ°", "æ å人æ°", "æµè½¬å·¥åº", "ä¸éæµè½¬å·¥åº", "åºå®ç产天æ°", "çäº§å¨æ", "ææ¾åº", "å¨è½¬ç®±", "å¨è½¬ç®±æ å", "æ¢æ¨¡æ¶é´", "转移æ¶é´", "æéæ¶é´", "å夿¶é´", "产线人æ°", "产线产è½", "产线ä¸å¿", "è¯ç", "å å·¥æ°é", "è¿è¡æ¶é´", "æ¶é´åä½", "å¾çº¸ç¼å·", "模å
·ç¼å·", "è¯åä»", "æ¥åºåä»", "ä¸è¯åä»", "å·¥åºç±»å", "hprocid", "HSupID", "HCenterID", "HCenterID_S", "工段", "å¼å·¥ä½é天æ°", "å¼å·¥ä½éåºæ°", "累计è¯ç", "è¶
颿¯ä¾", "HDayWorkQty", "HGroupID", "HWorkerID", "HSourceID", "å å·¥åä»·", "HNextProcFlag", "HBadWHID", "HBadWHName", "HWasterWHID", "HWasterWHName", "HWHID", "HWHName"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | | //è·ååæ° |
| | | function getUrlVars() { |
| | | var vars = [], hash; |
| | | var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
| | | for (var i = 0; i < hashes.length; i++) { |
| | | hash = hashes[i].split('='); |
| | | vars.push(hash[0]); |
| | | vars[hash[0]] = hash[1]; |
| | | } |
| | | return vars; |
| | | } |
| | | |
| | | var HMaterID = ""; |
| | | var HProID = 0; |
| | | var params = getUrlVars(); |
| | | if (params[params[0]] != "undefined") { |
| | | HMaterID = params[params[0]]; //ä»åæ°ä¸è·å |
| | | HProID = params[params[1]]; //ä»åæ°ä¸è·å |
| | | } |
| | | |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | //#endregion |
| | | |
| | |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | //åå§åè¡¨æ ¼ |
| | | DisPlay_HideColumn(); |
| | | //DisPlay_HideColumn(); |
| | | |
| | | //#endregion |
| | | |
| | |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | Organ(); |
| | | //æ¥è¯¢é¡¹ç®å· |
| | | Get_HProject(); |
| | | //æ¥è¯¢ |
| | | get_FastQuery(1); |
| | | |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | $("#HMaterNumber").val("");//ç©æ |
| | | $("#HModel").val("");//ç©æ |
| | | $("#HOrderProcNO").val("");//åæ®ç±»å |
| | | $("#HProject").val(""); |
| | | $("#ColContent").val(""); |
| | | $("#ColName").val("0"); |
| | | $("#Comparator").val("0"); |
| | |
| | | form.render('select'); |
| | | |
| | | $("#HInitTimeCycle").val("29"); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region è·å项ç®å· |
| | | function Get_HProject() { |
| | | //è·å项ç®å· |
| | | var HProjectList = '<option value="0" style="color:red;" selected></option>'; |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Gy_Material/Get_HProject", |
| | | async: false, |
| | | data: { "HOrgID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data; |
| | | for (var i = 0; i < data.length; i++) { |
| | | HProjectList += '<option style="color:blue;" value="' + data[i].HName + '" >' + data[i].HName + '</option>'; |
| | | } |
| | | $("#HProject").append(HProjectList); |
| | | form.render('select'); |
| | | |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | var HDate = $("#HBeginDate").val();//å¼å§æ¥æ |
| | | var HDate1 = $("#HEndDate").val();//ç»ææ¥æ |
| | | var HOrgID = ""; |
| | | var HProject = $("#HProject").val(); |
| | | var HOrderProcNO = $("#HOrderProcNO").val();//åæ®ç±»å |
| | | //var HMaterID = $("#HMaterID").val(); |
| | | var HMaterName = $("#HMaterName").val(); |
| | |
| | | sWhere += " and " + ColName2 + " " + com2; |
| | | } |
| | | |
| | | if (HDate) { |
| | | sWhere += " and CONVERT(varchar(100),æ¥æ, 23) >= '" + HDate + "'"; |
| | | |
| | | if (HMaterID != "" && HMaterID != "undefined" && HMaterID != null) { |
| | | //ä»å«ç页颿å¼ä¼ å
¥Hmateridå¼ï¼è®¾ç½®ç©æè¿æ»¤,æªå
³é |
| | | sWhere += " and HMaterID = " + HMaterID + " and isnull(å®¡æ ¸äºº,'''')<>'''' "; |
| | | } else { |
| | | if (HDate) { |
| | | sWhere += " and CONVERT(varchar(100),æ¥æ, 23) >= '" + HDate + "'"; |
| | | } |
| | | if (HDate1) { |
| | | sWhere += " and CONVERT(varchar(100),æ¥æ, 23) <= '" + HDate1 + "'"; |
| | | } |
| | | } |
| | | if (HDate1) { |
| | | sWhere += " and CONVERT(varchar(100),æ¥æ, 23) <= '" + HDate1 + "'"; |
| | | } |
| | | |
| | | if (number == 1) { |
| | | HOrgID = sessionStorage["OrganizationID"]; |
| | | } |
| | |
| | | if (HOrgID) { |
| | | sWhere += " and HOrgID = '" + HOrgID + "'"; |
| | | } |
| | | if (number==2) { |
| | | if (HProject) { |
| | | sWhere += " and 项ç®å· like '%" + HProject + "%'"; |
| | | } |
| | | } |
| | | |
| | | sWhere += " and HBillSubType<>'SUB' "; |
| | | get_Display(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |