WebAPI/Controllers/CJGL/Cj_StationInBillController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
WebAPI/Controllers/CJGL/Cj_StationInBillController.cs
@@ -415,7 +415,44 @@ #endregion #region 工序进站接收单根据物料代码模糊回车查询 [Route("Cj_StationInBill/GetMessageByMaterNumber")] [HttpGet] public object GetMessageByMaterNumber(string HMaterNumber) { try { //得到信息 ds = oCN.RunProcReturn("select top 1 * from gy_material where hnumber like '%" + HMaterNumber + "%'", "gy_material"); //写入信息 if (ds == null || ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "未查询到物料信息!"; objJsonResult.data = null; return objJsonResult; } objJsonResult.code = "0"; objJsonResult.count = 1; objJsonResult.Message = "Sucess!"; objJsonResult.data = ds.Tables[0]; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "Exception!" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion #region 返回工序进站接收单列表 [Route("Cj_StationInBill/get_Display")] WebAPI/Controllers/CJGL/Cj_StationOutBillController.cs
@@ -489,7 +489,7 @@ oBill.omodel.HMainSourceInterID = list[i].HMainSourceInterID; oBill.omodel.HMainSourceBillNo = list[i].HMainSourceBillNo; oBill.omodel.HMainSourceBillType = list[i].HMainSourceBillType; oBill.omodel.HLastSubProc = list[i].HLastSubProc; oBill.omodel.HLastSubProc = true; oBill.omodel.HEmpID2 = list[i].HEmpID2; oBill.omodel.HEmpID3 = list[i].HEmpID3; oBill.omodel.HEmpID4 = list[i].HEmpID4; @@ -499,6 +499,7 @@ oBill.omodel.HPriceRate = list[i].HPriceRate; oBill.omodel.HWorkTimes = list[i].HWorkTimes; oBill.omodel.HQCCheckID = list[i].HQCCheckID; oBill.omodel.HMaker = msg4; //string HBillSubType = "3791"; //long HInterID = list[0].HInterID;//递入type得到的单据ID