Merge branch 'master' of http://101.37.171.70:10101/r/MESWMS-LayUI
| | |
| | | <Content Include="views\åºç¡èµæ\å
¬ç¨åºç¡èµæ\xmlLBM_EquipTypeBill.aspx" /> |
| | | <Content Include="views\åºç¡èµæ\å
¬ç¨åºç¡èµæ\xmlLBM_Gy_Material.aspx" /> |
| | | <Content Include="views\åºç¡èµæ\å
¬ç¨åºç¡èµæ\Gy_DepartmentList.html" /> |
| | | <Content Include="views\åºç¡èµæ\å
¬ç¨åºç¡èµæ\xmlLBM_HGy_BarCodeBill.aspx" /> |
| | | <Content Include="views\åºç¡èµæ\å
¬ç¨åºç¡èµæ\xmlLBM_ICStockBill.aspx" /> |
| | | <Content Include="views\åºç¡èµæ\å
¬ç¨åºç¡èµæ\xmlLBM_MouldDotCheckBill.aspx" /> |
| | | <Content Include="views\åºç¡èµæ\å
¬ç¨åºç¡èµæ\xmlLBM_MouldDotCheckPlanBill.aspx" /> |
| | |
| | | <Compile Include="views\åºç¡èµæ\å
¬ç¨åºç¡èµæ\xmlLBM_Gy_Department_Edit.aspx.designer.cs"> |
| | | <DependentUpon>xmlLBM_Gy_Department_Edit.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="views\åºç¡èµæ\å
¬ç¨åºç¡èµæ\xmlLBM_HGy_BarCodeBill.aspx.cs"> |
| | | <DependentUpon>xmlLBM_HGy_BarCodeBill.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | | </Compile> |
| | | <Compile Include="views\åºç¡èµæ\å
¬ç¨åºç¡èµæ\xmlLBM_HGy_BarCodeBill.aspx.designer.cs"> |
| | | <DependentUpon>xmlLBM_HGy_BarCodeBill.aspx</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="views\åºç¡èµæ\å
¬ç¨åºç¡èµæ\xmlLBM_ICStockBill.aspx.cs"> |
| | | <DependentUpon>xmlLBM_ICStockBill.aspx</DependentUpon> |
| | | <SubType>ASPXCodeBehind</SubType> |
| | |
| | | <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">éç½®</button> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillno2" id="HBillno2" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnResCnz" id="btnReSearch" style="padding:0 5px">鿰忥</button> |
| | | |
| | | |
| | | <div class="layui-colla-content"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">é¨é¨</label> |
| | |
| | | //#endregion |
| | | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | |
| | | //鿰忥æé® |
| | | form.on('submit(btnResCnz)', function (data) { |
| | | set_ResCnz(); |
| | | }); |
| | | |
| | | |
| | | // æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) { |
| | |
| | | sWhere = ""; |
| | | get_Display(sWhere); |
| | | } |
| | | //鿰忥æé® |
| | | function set_ResCnz() { |
| | | var HBillno2 = $('#HBillno2').val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cg_POOrderBill/Resynchronize', |
| | | type: "GET", |
| | | data: { "HBillNo": HBillno2, "HBillType": 1243 }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //以䏿¯layui模å |
| | |
| | | case "ICStockBill"://éå®éè´§åæå° |
| | | CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_ICStockBill.aspx?linterid=" + value, true, ""); |
| | | break; |
| | | case "HGy_BarCodeBill"://æ¡ç æå° |
| | | CreateDisplayViewerEx("100%", "100%", "../../grf/" + OpenTmp + ".grf", "xmlLBM_HGy_BarCodeBill.aspx?linterid=" + value, true, ""); |
| | | break; |
| | | |
| | | } |
| | | </script> |
| New file |
| | |
| | | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="xmlLBM_HGy_BarCodeBill.aspx.cs" Inherits="WebTM.views.åºç¡èµæ.å
¬ç¨åºç¡èµæ.xmlLBM_HGy_BarCodeBill" %> |
| | | |
| | | <!DOCTYPE html> |
| | | |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head runat="server"> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| | | <title></title> |
| | | <script runat="server"> |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | //â
ç¹å«æç¤ºâ
ï¼ |
| | | //ä¸åçæ°æ®åºåºè¯¥éç¨ä¸åçæ¥è¡¨XMLæ°æ®çæç±»ï¼SQL Serveræ°æ®åºç¨SqlXMLReportDataï¼Oracleæ°æ®åºç¨OracleXMLReportData |
| | | //OledbXMLReportDataéåäºAccessçæ¬å°æ°æ®åºï¼ä¸ºäºæ¼ç¤ºæ¹ä¾¿ï¼è¿éä»Grid++ReportçAccessä¾åæ°æ®åºä¸è·åæ¥è¡¨æ°æ® |
| | | |
| | | //OledbXMLReportData.GenOneRecordset(this, "select * from Customers order by CustomerID"); |
| | | //SqlXMLReportData.GenOneRecordset(this, "select * from h_v_Kf_POStockInBillList_K3 where hmainid=1781"); |
| | | SqlXMLReportData.GenOneRecordset(this, "select * from h_v_IF_BarCodeBillList where hmainid=" + Request.Params["linterid"]+ "order by hmainid desc"); |
| | | } |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <form id="form1" runat="server"> |
| | | <div> |
| | | </div> |
| | | </form> |
| | | </body> |
| | | </html> |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using System.Web.UI; |
| | | using System.Web.UI.WebControls; |
| | | |
| | | namespace WebTM.views.åºç¡èµæ.å
¬ç¨åºç¡èµæ |
| | | { |
| | | public partial class xmlLBM_HGy_BarCodeBill : System.Web.UI.Page |
| | | { |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | //------------------------------------------------------------------------------ |
| | | // <èªå¨çæ> |
| | | // æ¤ä»£ç ç±å·¥å
·çæã |
| | | // |
| | | // å¯¹æ¤æä»¶çæ´æ¹å¯è½å¯¼è´ä¸æ£ç¡®çè¡ä¸ºï¼å¦æ |
| | | // éæ°çæä»£ç ï¼åæåæ´æ¹å°ä¸¢å¤±ã |
| | | // </èªå¨çæ> |
| | | //------------------------------------------------------------------------------ |
| | | |
| | | namespace WebTM.views.åºç¡èµæ.å
¬ç¨åºç¡èµæ |
| | | { |
| | | |
| | | |
| | | public partial class xmlLBM_HGy_BarCodeBill |
| | | { |
| | | |
| | | /// <summary> |
| | | /// form1 æ§ä»¶ã |
| | | /// </summary> |
| | | /// <remarks> |
| | | /// èªå¨çæçåæ®µã |
| | | /// è¥è¦è¿è¡ä¿®æ¹ï¼è¯·å°å段声æä»è®¾è®¡å¨æä»¶ç§»å°ä»£ç éèæä»¶ã |
| | | /// </remarks> |
| | | protected global::System.Web.UI.HtmlControls.HtmlForm form1; |
| | | } |
| | | } |
| | |
| | | , laydate = layui.laydate |
| | | , util = layui.util |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = " å®é
ä½ç½®ç±»å=è´¦é¢ä½ç½®ç±»å and å®é
ä½ç½®=è´¦é¢ä½ç½®"; |
| | | var sWhere = " HRealPotType=HBookPotType and HRealPot=HBookPot"; |
| | | var option1 = []; |
| | | var option2 = []; |
| | | var option3 = []; |
| | |
| | | var col = [ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'HItemID', title: 'HItemID', width: 200,hide: true} |
| | | , { field: 'æ¡ç ', title: 'å¨å
·æ¡ç ', width: 200 } |
| | | , { field: 'å¨å
·ç¼å·', title: 'å¨å
·ç¼å·', width: 200 } |
| | | , { field: 'çç¹æ¹æ¡', title: 'çç¹æ¹æ¡', width: 200 } |
| | | , { field: 'å®é
ä½ç½®ç±»å', title: 'å®é
ä½ç½®ç±»å', width: 200 } |
| | | , { field: 'å®é
ä½ç½®', title: 'å®é
ä½ç½®', width: 200 } |
| | | , { field: 'è´¦é¢ä½ç½®ç±»å', title: 'è´¦é¢ä½ç½®ç±»å', width: 200 } |
| | | , { field: 'è´¦é¢ä½ç½®', title: 'è´¦é¢ä½ç½®', width: 200 } |
| | | , { field: 'HBarCode', title: 'å¨å
·æ¡ç ', width: 200 } |
| | | , { field: 'HMouldNo', title: 'å¨å
·ç¼å·', width: 200 } |
| | | , { field: 'HStockCheck', title: 'çç¹æ¹æ¡', width: 200 } |
| | | , { field: 'HRealPotType', title: 'å®é
ä½ç½®ç±»å', width: 200 } |
| | | , { field: 'HRealPot', title: 'å®é
ä½ç½®', width: 200 } |
| | | , { field: 'HBookPotType', title: 'è´¦é¢ä½ç½®ç±»å', width: 200 } |
| | | , { field: 'HBookPot', title: 'è´¦é¢ä½ç½®', width: 200 } |
| | | ]; |
| | | //#endregion |
| | | |
| | |
| | | } |
| | | //è°æ¨æ¥è¯¢ |
| | | function db_Display() { |
| | | var sWhere = " å®é
ä½ç½®ç±»å=è´¦é¢ä½ç½®ç±»å and å®é
ä½ç½®ç±»å='ä»åº' and å®é
ä½ç½®!=è´¦é¢ä½ç½®"; |
| | | var sWhere = " HRealPotType=HBookPotType and HRealPotType='ä»åº' and HRealPot!=HBookPot"; |
| | | var HItemID = $("#HItemID").val();//çç¹ |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | |
| | | } |
| | | //åºåºæ¥è¯¢ |
| | | function ck_Display() { |
| | | var sWhere = " è´¦é¢ä½ç½®ç±»å='ä»åº' and isnull(è´¦é¢ä½ç½®,'')!='' and (å®é
ä½ç½®ç±»å='ä¾åºå' or å®é
ä½ç½®ç±»å='客æ·') and isnull(å®é
ä½ç½®,'')!=''"; |
| | | var sWhere = " HBookPotType='ä»åº' and isnull(HBookPot,'')!='' and (HRealPotType='ä¾åºå' or HRealPotType='客æ·') and isnull(HRealPot,'')!=''"; |
| | | var HItemID = $("#HItemID").val();//åæ®ç±»å |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | |
| | | } |
| | | //å
¥åºæ¥è¯¢ |
| | | function rk_Display() { |
| | | var sWhere = " (å®é
ä½ç½®ç±»å='ä¾åºå' or å®é
ä½ç½®ç±»å='客æ·') and (è´¦é¢ä½ç½®ç±»å='ä¾åºå' or è´¦é¢ä½ç½®ç±»å='客æ·') and å®é
ä½ç½®!=è´¦é¢ä½ç½®"; |
| | | var sWhere = " (HRealPotType='ä¾åºå' or HRealPotType='客æ·') and (HBookPotType='ä¾åºå' or HBookPotType='客æ·') and HRealPot!=HBookPot"; |
| | | var HItemID = $("#HItemID").val();//åæ®ç±»å |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | |
| | | } |
| | | //ççæ¥è¯¢ |
| | | function py_Display() { |
| | | var sWhere = "isnull(è´¦é¢ä½ç½®,'')='' and isnull(å®é
ä½ç½®,'')!=''"; |
| | | var sWhere = "isnull(HBookPot,'')='' and isnull(HRealPot,'')!=''"; |
| | | var HItemID = $("#HItemID").val();//åæ®ç±»å |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | |
| | | } |
| | | //çäºæ¥è¯¢ |
| | | function pk_Display() { |
| | | var sWhere = "isnull(è´¦é¢ä½ç½®,'')!='' and isnull(å®é
ä½ç½®,'')=''"; |
| | | var sWhere = "isnull(HBookPot,'')!='' and isnull(HRealPot,'')=''"; |
| | | var HItemID = $("#HItemID").val();//åæ®ç±»å |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | |
| | | } |
| | | //éåºæ¥è¯¢ |
| | | function tk_Display() { |
| | | var sWhere = " å®é
ä½ç½®ç±»å='ä»åº' and isnull(å®é
ä½ç½®,'')!='' and (è´¦é¢ä½ç½®ç±»å='ä¾åºå' or è´¦é¢ä½ç½®ç±»å='客æ·')"; |
| | | var sWhere = " HRealPotType='ä»åº' and isnull(HRealPot,'')!='' and (HBookPotType='ä¾åºå' or HBookPotType='客æ·')"; |
| | | var HItemID = $("#HItemID").val();//åæ®ç±»å |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | |
| | | function set_CheckBill2() { |
| | | var checkStatus = table.checkStatus('mainTable2') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].æ¡ç .toString(); |
| | | var HItemID = data[0].HItemID.toString(); |
| | | if (checkStatus.data.length >= 1) { |
| | | var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"]; |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeProdMove", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID}, |
| | | data: { "msg": sSubStr }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | layer.msg('请æå°éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | //å®¡æ ¸ åºåº |
| | | function set_CheckBill3() { |
| | | var checkStatus = table.checkStatus('mainTable3') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].æ¡ç .toString(); |
| | | var HItemID = data[0].HItemID.toString(); |
| | | if (checkStatus.data.length >= 1) { |
| | | var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"]; |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeProdOut", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID}, |
| | | data: { "msg": sSubStr }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | layer.msg('请æå°éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | //å®¡æ ¸ å
éåºååºåº |
| | | function set_CheckBill4() { |
| | | var checkStatus = table.checkStatus('mainTable4') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].æ¡ç .toString(); |
| | | var HItemID = data[0].HItemID.toString(); |
| | | if (checkStatus.data.length >= 1) { |
| | | var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"]; |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeProdOutBack", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID }, |
| | | data: { "msg": sSubStr }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | layer.msg('请æå°éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | //å®¡æ ¸ çç |
| | | function set_CheckBill5() { |
| | | var checkStatus = table.checkStatus('mainTable5') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].æ¡ç .toString(); |
| | | var HItemID = data[0].HItemID.toString(); |
| | | $.ajax({ |
| | | if (checkStatus.data.length >= 1) { |
| | | var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"]; |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeOtherIn", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID }, |
| | | data: { "msg": sSubStr }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | layer.msg('请æå°éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | //å®¡æ ¸ çäº |
| | | function set_CheckBill6() { |
| | | var checkStatus = table.checkStatus('mainTable6') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].æ¡ç .toString(); |
| | | var HItemID = data[0].HItemID.toString(); |
| | | if (checkStatus.data.length >= 1) { |
| | | var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"]; |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeScrapOut", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID }, |
| | | data: { "msg": sSubStr }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | layer.msg('请æå°éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | //å®¡æ ¸ éåº |
| | | function set_CheckBill7() { |
| | | var checkStatus = table.checkStatus('mainTable7') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].æ¡ç .toString(); |
| | | var HItemID = data[0].HItemID.toString(); |
| | | if (checkStatus.data.length >= 1) { |
| | | var sSubStr = JSON.stringify(data) + ";" + sessionStorage["HUserName"] + ";" + sessionStorage["OrganizationID"]; |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_StockCheckItemBill/MakeProdBack", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HBarCode": HInterID, "user": sessionStorage["HUserName"], "userID": sessionStorage["OrganizationID"], "HItemID": HItemID}, |
| | | data: { "msg": sSubStr }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | layer.msg('请æå°éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | |
| | |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div class="layui-collapse"> |
| | | <div class="layui-colla-item"> |
| | | <div class="layui-colla-title layui-inline"> |
| | | <div class="layui-inline"> |
| | | <span>æ´å¤</span> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ¡ç ç¼å·</label> |
| | | <div class="layui-input-block"> |
| | |
| | | <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> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button> |
| | | </div> |
| | | </div> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | |
| | | <div class="layui-btn-container"> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>é¢è§</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>确认</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>驳å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>详æ
</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>çæéè´§å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print"><i class="layui-icon layui-icon-print"></i>æå°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Delete"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>éåº</button> |
| | | |
| | | </div> |
| | |
| | | , util = layui.util |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | set_ClearBill(); |
| | | |
| | | var option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-50' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , limit: 50 |
| | | , cols: [[ |
| | | { field: 'hmainid', title: '忮ID', hide: true } |
| | | , { field: 'æ¡ç ç±»å', title: 'æ¡ç ç±»å', width: 160 } |
| | | , { field: 'æ¡ç ç¼å·', title: 'æ¡ç ç¼å·', width: 160 } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 160, hide: true } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 200 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 200 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 200 } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 200 } |
| | | , { field: '计éåä½', title: '计éåä½', width: 200 } |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true } |
| | | , { field: 'HAuxPropID', title: 'HAuxPropID', width: 200 } |
| | | , { field: 'è¾
å©å±æ§ä»£ç ', title: 'è¾
å©å±æ§ä»£ç ', width: 160 } |
| | | , { field: 'è¾
å©å±æ§', title: 'è¾
å©å±æ§', width: 160 } |
| | | , { field: 'æ¹å·', title: 'æ¹å·', width: 160 } |
| | | , { field: 'æ°é', title: 'æ°é', width: 200 } |
| | | , { field: '计åè·è¸ªå·', title: '计åè·è¸ªå·', width: 200 } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 200 } |
| | | , { field: 'HSupID', title: 'HSupID', width: 200, hide: true } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', width: 200 } |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå', width: 200 } |
| | | , { field: 'è¿ææ¥æ', title: 'è¿ææ¥æ', width: 200 } |
| | | , { field: 'è¿ææ¥æå¨', title: 'è¿ææ¥æå¨', width: 115 } |
| | | , { field: '客æ·åå·', title: '客æ·åå·', width: 115 } |
| | | , { field: '徿¥åä½', title: '徿¥åä½', width: 200 } |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true } |
| | | , { field: '车é´', title: '车é´', width: 115 } |
| | | , { field: '计åå®å·¥æ¥æ', title: '计åå®å·¥æ¥æ', width: 200 } |
| | | , { field: 'æå·', title: 'æå·', width: 200 } |
| | | , { field: 'æ»ææ°', title: 'æ»ææ°', width: 200 } |
| | | , { field: '夿³¨', title: '夿³¨', width: 200 } |
| | | , { field: 'å¶ä½äºº', title: 'å¶ä½äºº', width: 115 } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', width: 200 } |
| | | , { field: 'æå°æ¬¡æ°', title: 'æå°æ¬¡æ°', width: 200 } |
| | | , { field: 'ä½åºæ è®°', title: 'ä½åºæ è®°', width: 200 } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº', width: 115 } |
| | | , { field: 'ç产å
¥åºæ¥æ', title: 'ç产å
¥åºæ¥æ', width: 200 } |
| | | , { field: 'éå®åºåºæ¥æ', title: 'éå®åºåºæ¥æ', width: 200 } |
| | | ]] |
| | | }; |
| | | |
| | | var index = layer.load(0); |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | | //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum", |
| | | url: GetWEBURL() + '/Gy_BarCodeBillList/GetBarCodeBillList', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]}, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | layer.close(index); |
| | | } else { |
| | | layer.close(index); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(index); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | |
| | | //éç½®æé® |
| | | //#region éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | | $("#HBarCode").val("");//åæ®ç±»å |
| | | $("#HMaterName").val("");//åæ®å· |
| | | $("#btnSearch").click(); |
| | | $("#HBarCode").val(""); |
| | | $("#HMaterName").val(""); |
| | | sWhere = ""; |
| | | get_Display(sWhere); |
| | | }); |
| | | //#endregion |
| | | |
| | | //æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) {//éæ©ä»ä½ |
| | | var HBarCode = $("#HBarCode").val(); |
| | | var HMaterName = $("#HMaterName").val(); |
| | | //#region æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) { |
| | | var HBarCode = $("#HBarCode").val();//å¼å§æ¥æ |
| | | var HMaterName = $("#HMaterName").val();//ç»ææ¥æ |
| | | if (HBarCode) { |
| | | sWhere += " and æ¡ç ç¼å· like '%" + HBarCode + "%'"; |
| | | sWhere += " and æ¡ç ç¼å· like '" + HBarCode + "'"; |
| | | } |
| | | if (HMaterName) { |
| | | sWhere += " and ç©æåç§° like '%" + HMaterName + "%'"; |
| | | sWhere += " and ç©æåç§° like'" + HMaterName + "'"; |
| | | } |
| | | var index = layer.load(0); |
| | | get_Display(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region åå§åçé¢ |
| | | function set_ClearBill() { |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | //æ¥è¯¢ |
| | | get_Display(sWhere); |
| | | } |
| | | function set_InitGrid() { |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-50' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , limit: 50 |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | ,{ field: 'hmainid', title: '忮ID', hide: true } |
| | | , { field: 'æ¡ç ç±»å', title: 'æ¡ç ç±»å', width: 160 } |
| | | , { field: 'æ¡ç ç¼å·', title: 'æ¡ç ç¼å·', width: 160 } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 160, hide: true } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 200 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 200 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 200 } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 200 } |
| | | , { field: '计éåä½', title: '计éåä½', width: 200 } |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true } |
| | | , { field: 'HAuxPropID', title: 'HAuxPropID', width: 200 } |
| | | , { field: 'è¾
å©å±æ§ä»£ç ', title: 'è¾
å©å±æ§ä»£ç ', width: 160 } |
| | | , { field: 'è¾
å©å±æ§', title: 'è¾
å©å±æ§', width: 160 } |
| | | , { field: 'æ¹å·', title: 'æ¹å·', width: 160 } |
| | | , { field: 'æ°é', title: 'æ°é', width: 200 } |
| | | , { field: '计åè·è¸ªå·', title: '计åè·è¸ªå·', width: 200 } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 200 } |
| | | , { field: 'HSupID', title: 'HSupID', width: 200, hide: true } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', width: 200 } |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå', width: 200 } |
| | | , { field: 'è¿ææ¥æ', title: 'è¿ææ¥æ', width: 200 } |
| | | , { field: 'è¿ææ¥æå¨', title: 'è¿ææ¥æå¨', width: 115 } |
| | | , { field: '客æ·åå·', title: '客æ·åå·', width: 115 } |
| | | , { field: '徿¥åä½', title: '徿¥åä½', width: 200 } |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true } |
| | | , { field: '车é´', title: '车é´', width: 115 } |
| | | , { field: '计åå®å·¥æ¥æ', title: '计åå®å·¥æ¥æ', width: 200 } |
| | | , { field: 'æå·', title: 'æå·', width: 200 } |
| | | , { field: 'æ»ææ°', title: 'æ»ææ°', width: 200 } |
| | | , { field: '夿³¨', title: '夿³¨', width: 200 } |
| | | , { field: 'å¶ä½äºº', title: 'å¶ä½äºº', width: 115 } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', width: 200 } |
| | | , { field: 'æå°æ¬¡æ°', title: 'æå°æ¬¡æ°', width: 200 } |
| | | , { field: 'ä½åºæ è®°', title: 'ä½åºæ è®°', width: 200 } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº', width: 115 } |
| | | , { field: 'ç产å
¥åºæ¥æ', title: 'ç产å
¥åºæ¥æ', width: 200 } |
| | | , { field: 'éå®åºåºæ¥æ', title: 'éå®åºåºæ¥æ', width: 200 } |
| | | ]] |
| | | }; |
| | | |
| | | } |
| | | |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | function get_Display(sWhere) { |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | | //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum", |
| | | url: GetWEBURL1() + '/Gy_BarCodeBillList/GetBarCodeBillList', |
| | | url: GetWEBURL() + '/Gy_BarCodeBillList/GetBarCodeBillList', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]}, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | layer.close(index); |
| | | layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | } else { |
| | | layer.close(index); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(index); |
| | | layer.alert("æ¥å£å¤±æ!", { icon: 5 }); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | sWhere = ""; |
| | | $("#HBarCode").val("");//åæ®ç±»å |
| | | $("#HMaterName").val("");//åæ®å· |
| | | } |
| | | |
| | | //头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | var checkStatus = table.checkStatus(obj.config.id); |
| | | switch (obj.event) { |
| | | case 'btn-Delete': |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "Gy_MaterialController/DeltetBarCodeBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | break; |
| | | case 'btn-view': |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | | , title: 'æå°æ¨¡çéæ©' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=HMouldProdBackBill', 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®æå°ï¼'); |
| | | } |
| | | break; |
| | | case 'btn-print': |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | | , title: 'æå°æ¨¡çéæ©' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=HMouldProdBackBill', 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®æå°ï¼'); |
| | | } |
| | | break; |
| | | //å·æ° |
| | | case 'btn-reload': |
| | | $("#HBarCode").val(""); |
| | | $("#HMaterName").val(""); |
| | | sWhere = ""; |
| | | get_Display(sWhere); |
| | | break; |
| | | //éåºæé® |
| | | case 'btn-exit': Pub_Close(2); |
| | | break; |
| | | }; |
| | | }); |
| | | |
| | | //çå¬è¡åå»äºä»¶ |
| | | table.on('rowDouble(mainTable)', function (obj) { |
| | | layer.alert("åå»äºä»¶", { icon: 1 }); |
| | | }); |
| | | |
| | | |
| | | //laydate.render({ |
| | | // elem: '#HDate' |
| | | // , type: 'datetime' |
| | | // , trigger: 'click' |
| | | // , format:'yyyy-MM-dd HH:mm' |
| | | //}); |
| | | |
| | | |
| | | |
| | | //以䏿¯layui模å |
| | | }); |
| | |
| | | shift: 2, |
| | | area: ['80%', '80%'], |
| | | maxmin: true, |
| | | content: ['../../PublicPage/MouldMaintainRuleInterList.html', 'yes'], |
| | | content: ['Sc_MouldMaintainRuleBillList.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | //æé®ãæé®ä¸ãçåè° |
| | |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillno2" id="HBillno2" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnResCnz" id="btnReSearch" style="padding:0 5px">鿰忥</button> |
| | | |
| | | |
| | | |
| | | <div class="layui-colla-content"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline"> |
| | |
| | | case 'get_Exit': Pub_Close(2); |
| | | break; |
| | | }; |
| | | }); |
| | | |
| | | //鿰忥æé® |
| | | form.on('submit(btnResCnz)', function (data) { |
| | | set_ResCnz(); |
| | | }); |
| | | |
| | | //éç½®æé® |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | //鿰忥æé® |
| | | function set_ResCnz() { |
| | | var HBillno2 = $('#HBillno2').val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cg_POOrderBill/Resynchronize', |
| | | type: "GET", |
| | | data: { "HBillNo": HBillno2, "HBillType": 3710 }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | //laydate.render({ |
| | | // elem: '#HDate' |
| | |
| | | <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">éç½®</button> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillno2" id="HBillno2" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnResCnz" id="btnReSearch" style="padding:0 5px">鿰忥</button> |
| | | |
| | | |
| | | <div class="layui-colla-content"> |
| | | <!--<div class="layui-inline"> |
| | | <div class="layui-inline"> |
| | | <span>å
¶ä»æ¡ä»¶></span> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-inline"> |
| | | <span>å
¶ä»æ¡ä»¶></span> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | |
| | | }; |
| | | }); |
| | | |
| | | //鿰忥æé® |
| | | form.on('submit(btnResCnz)', function (data) { |
| | | set_ResCnz(); |
| | | }); |
| | | |
| | | //éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | |
| | | sWhere = ""; |
| | | get_Display(sWhere); |
| | | } |
| | | |
| | | //鿰忥æé® |
| | | function set_ResCnz() { |
| | | var HBillno2 = $('#HBillno2').val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cg_POOrderBill/Resynchronize', |
| | | type: "GET", |
| | | data: { "HBillNo": HBillno2, "HBillType": 1601 }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //#endregion |
| | | //å·æ° |
| | | function set_Refresh() { |
| | |
| | | <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">éç½®</button> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillno2" id="HBillno2" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnResCnz" id="btnReSearch" style="padding:0 5px">鿰忥</button> |
| | | |
| | | |
| | | <div class="layui-colla-content"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline"> |
| | |
| | | set_ClearBill(); |
| | | |
| | | //#endregion |
| | | |
| | | //鿰忥æé® |
| | | form.on('submit(btnResCnz)', function (data) { |
| | | set_ResCnz(); |
| | | }); |
| | | |
| | | //#region éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | |
| | | $("#HMangerID").val(""); |
| | | sWhere = ""; |
| | | } |
| | | |
| | | //鿰忥æé® |
| | | function set_ResCnz() { |
| | | var HBillno2 = $('#HBillno2').val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cg_POOrderBill/Resynchronize', |
| | | type: "GET", |
| | | data: { "HBillNo": HBillno2, "HBillType": 1103 }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å·æ° |
| | |
| | | <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">éç½®</button> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillno2" id="HBillno2" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnResCnz" id="btnReSearch" style="padding:0 5px">鿰忥</button> |
| | | |
| | | |
| | | <div class="layui-colla-content"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline"> |
| | |
| | | set_ClearBill(); |
| | | |
| | | //#endregion |
| | | |
| | | //鿰忥æé® |
| | | form.on('submit(btnResCnz)', function (data) { |
| | | set_ResCnz(); |
| | | }); |
| | | |
| | | //#region éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | |
| | | $("#HMangerID").val(""); |
| | | sWhere = ""; |
| | | } |
| | | //鿰忥æé® |
| | | function set_ResCnz() { |
| | | var HBillno2 = $('#HBillno2').val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cg_POOrderBill/Resynchronize', |
| | | type: "GET", |
| | | data: { "HBillNo": HBillno2, "HBillType": 1105 }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å·æ° |
| | |
| | | <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">éç½®</button> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillno2" id="HBillno2" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnResCnz" id="btnReSearch" style="padding:0 5px">鿰忥</button> |
| | | |
| | | |
| | | <div class="layui-colla-content"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | |
| | | }; |
| | | }); |
| | | |
| | | //鿰忥æé® |
| | | form.on('submit(btnResCnz)', function (data) { |
| | | set_ResCnz(); |
| | | }); |
| | | |
| | | //éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | |
| | | sWhere = ""; |
| | | get_Display(sWhere); |
| | | } |
| | | //鿰忥æé® |
| | | function set_ResCnz() { |
| | | var HBillno2 = $('#HBillno2').val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cg_POOrderBill/Resynchronize', |
| | | type: "GET", |
| | | data: { "HBillNo": HBillno2,"HBillType":1102 }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //#endregion |
| | | //å·æ° |
| | | function set_Refresh() { |
| | |
| | | <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">éç½®</button> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillno2" id="HBillno2" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnResCnz" id="btnReSearch" style="padding:0 5px">鿰忥</button> |
| | | |
| | | |
| | | <div class="layui-colla-content"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline"> |
| | |
| | | set_ClearBill(); |
| | | |
| | | //#endregion |
| | | |
| | | //鿰忥æé® |
| | | form.on('submit(btnResCnz)', function (data) { |
| | | set_ResCnz(); |
| | | }); |
| | | |
| | | //#region éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | |
| | | set_ClearQuery(); |
| | | get_Display(sWhere); |
| | | } |
| | | |
| | | //鿰忥æé® |
| | | function set_ResCnz() { |
| | | var HBillno2 = $('#HBillno2').val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cg_POOrderBill/Resynchronize', |
| | | type: "GET", |
| | | data: { "HBillNo": HBillno2, "HBillType": 1402 }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | |
| | | <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">éç½®</button> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillno2" id="HBillno2" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnResCnz" id="btnReSearch" style="padding:0 5px">鿰忥</button> |
| | | |
| | | |
| | | <div class="layui-colla-content"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline"> |
| | |
| | | |
| | | //#endregion |
| | | |
| | | //鿰忥æé® |
| | | form.on('submit(btnResCnz)', function (data) { |
| | | set_ResCnz(); |
| | | }); |
| | | //#region éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | | //æ¸
ç©ºè¿æ»¤æ¡ä»¶ |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //鿰忥æé® |
| | | function set_ResCnz() { |
| | | var HBillno2 = $('#HBillno2').val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cg_POOrderBill/Resynchronize', |
| | | type: "GET", |
| | | data: { "HBillNo": HBillno2, "HBillType": 1403 }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //以䏿¯layui模å |
| | | }); |
| | | |
| | |
| | | <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">éç½®</button> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillno2" id="HBillno2" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnResCnz" id="btnReSearch" style="padding:0 5px">鿰忥</button> |
| | | |
| | | |
| | | <div class="layui-colla-content"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline"> |
| | |
| | | set_ClearBill(); |
| | | |
| | | //#endregion |
| | | |
| | | //鿰忥æé® |
| | | form.on('submit(btnResCnz)', function (data) { |
| | | set_ResCnz(); |
| | | }); |
| | | |
| | | //#region éç½®æé® |
| | | form.on('submit(btnReSearch)', function (data) { |
| | |
| | | $("#HMangerID").val(""); |
| | | sWhere = ""; |
| | | } |
| | | //鿰忥æé® |
| | | function set_ResCnz() { |
| | | var HBillno2 = $('#HBillno2').val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cg_POOrderBill/Resynchronize', |
| | | type: "GET", |
| | | data: { "HBillNo": HBillno2, "HBillType": 1401 }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å·æ° |