From 9320ad1f5a6b277ffbe657faa7eb08104122a373 Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期四, 19 一月 2023 16:51:35 +0800 Subject: [PATCH] 设备档案维护 工序流转卡维护 批量出站汇报 新增 职员代码 --- Model/车间管理/ClsSc_StationOutBillMain.cs | 2 +- DAL/车间管理/ClsSc_StationOutBill.cs | 4 ++-- WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs | 6 ++++-- WebAPI/Controllers/CJGL/Cj_StationEntrustOutBillController.cs | 1 + 4 files changed, 8 insertions(+), 5 deletions(-) diff --git "a/DAL/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationOutBill.cs" "b/DAL/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationOutBill.cs" index 826bb5e..641fcc3 100644 --- "a/DAL/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationOutBill.cs" +++ "b/DAL/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationOutBill.cs" @@ -339,7 +339,7 @@ ",HSupID,HQty,HPrice,HMoney,HBadCount,HCenterID,HProcNo,HOrderProcNO,HSourceNameList" + ",HMainSourceInterID,HMainSourceBillNo,HMainSourceBillType,HLastSubProc" + ",HEmpID2,HEmpID3,HEmpID4,HEmpID5,HDSQty,HChongQty,HPriceRate,HWorkTimes,HQCCheckID" + - ",HPersonNums,HMachineNums" + + ",HPersonNums,HMachineNums,HEmpNum" + ") " + " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "'," + omodel.HBillStatus.ToString() + ",getdate(),'" + DBUtility.ClsPub.CurUserName + "',getdate(),'" + omodel.HMouldNum + "'" + "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + omodel.HSourceName + "'," + omodel.HPieceQty.ToString() + "," + omodel.HWasterQty.ToString() + "," + omodel.HPlanPieceQty.ToString() + "," + omodel.HBadPNL.ToString() + @@ -349,7 +349,7 @@ "," + omodel.HSupID.ToString() + "," + omodel.HQty.ToString() + "," + omodel.HPrice.ToString() + "," + omodel.HMoney.ToString() + "," + omodel.HBadCount.ToString() + "," + omodel.HCenterID.ToString() + "," + omodel.HProcNo.ToString() + ",'" + omodel.HOrderProcNO + "'" + ",'" + omodel.HSourceNameList + "'" + "," + omodel.HMainSourceInterID.ToString() + ",'" + omodel.HMainSourceBillNo + "','" + omodel.HMainSourceBillType + "'," + Convert.ToString(omodel.HLastSubProc ? 1 : 0) + "," + omodel.HEmpID2.ToString() + "," + omodel.HEmpID3.ToString() + "," + omodel.HEmpID4.ToString() + "," + omodel.HEmpID5.ToString() + "," + omodel.HDSQty.ToString() + "," + omodel.HChongQty.ToString() + "," + omodel.HPriceRate.ToString() + "," + omodel.HWorkTimes.ToString() + "," + omodel.HQCCheckID.ToString() + - "," + omodel.HPersonNums.ToString() + "," + omodel.HMachineNums.ToString() + + "," + omodel.HPersonNums.ToString() + "," + omodel.HMachineNums.ToString() + ",'" + omodel.HEmpNum.ToString() + "'" + ") "); //鎻掑叆瀛愯〃 foreach (Model.ClsSc_StationOutBillSub oSub in DetailColl) diff --git "a/Model/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationOutBillMain.cs" "b/Model/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationOutBillMain.cs" index 17f03e4..9c43109 100644 --- "a/Model/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationOutBillMain.cs" +++ "b/Model/\350\275\246\351\227\264\347\256\241\347\220\206/ClsSc_StationOutBillMain.cs" @@ -63,6 +63,6 @@ public string HSourceNameList;//设备清单 public Int64 HPersonNums; //人员数 public Int64 HMachineNums; //机器数 - + public string HEmpNum; //职员代码 } } diff --git a/WebAPI/Controllers/CJGL/Cj_StationEntrustOutBillController.cs b/WebAPI/Controllers/CJGL/Cj_StationEntrustOutBillController.cs index 69790d3..e72e378 100644 --- a/WebAPI/Controllers/CJGL/Cj_StationEntrustOutBillController.cs +++ b/WebAPI/Controllers/CJGL/Cj_StationEntrustOutBillController.cs @@ -301,6 +301,7 @@ ",HUpDater='" + HMaker + "'" + ",HUpDateDate=getdate()" + ",HInnerBillNo='" + HInnerBillNo + "'" + + ",HWWWorkOrderBillNo='" + HWWWorkOrderBillNo + "'" + ",HSupID=" + HSupID + ",HEmpID=" + HEmpID + ",HQty=" + HQty + diff --git a/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs b/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs index 9f7c6c7..ccf068c 100644 --- a/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs +++ b/WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs @@ -437,6 +437,7 @@ string msg2 = sArray[0].ToString(); string msg3 = sArray[1].ToString(); string msg4 = sArray[2].ToString(); + string msg5 = sArray[3].ToString(); List<Model.ClsSc_StationOutBillMain> list = new List<Model.ClsSc_StationOutBillMain>(); @@ -454,8 +455,8 @@ oBill.omodel.HBillNo = msg3 + "- " + j; oBill.omodel.HBillStatus = 0; oBill.omodel.HMouldNum = list[i].HMouldNum; - oBill.omodel.HYear = 2022; - oBill.omodel.HPeriod = 1; + oBill.omodel.HYear = DateTime.Now.Year; + oBill.omodel.HPeriod = DateTime.Now.Month; oBill.omodel.HRemark = list[i].HRemark; oBill.omodel.HSourceName = list[i].HSourceName; oBill.omodel.HPieceQty = list[i].HPieceQty; @@ -508,6 +509,7 @@ oBill.omodel.HWorkTimes = list[i].HWorkTimes; oBill.omodel.HQCCheckID = list[i].HQCCheckID; oBill.omodel.HMaker = msg4; + oBill.omodel.HEmpNum = msg5; //string HBillSubType = "3791"; //long HInterID = list[0].HInterID;//閫掑叆type寰楀埌鐨勫崟鎹甀D -- Gitblit v1.9.1