生产质量汇报单添加工序字段;工序出站汇报单列表添加下推生产质量汇报单功能;出站汇报单工序工价字段添加权限控制
| | |
| | | ",HMaterID,HUnitID,HQty,HResult,HEmpID,HSourceID,HBadReasonID" + |
| | | ",HICMOInterID,HICMOEntryID,HICMOBillNo,HProcExchInterID,HProcExchEntryID,HProcExchBillNo" + |
| | | ",HBarCode,HReportType,HBadProcID" + |
| | | ",HAddr,HMaker,HMakeDate" + |
| | | ",HAddr,HMaker,HMakeDate,HProcID" + |
| | | ") values(" + |
| | | "" + omodel.HInterID.ToString() + "" + |
| | | "," + oSub.HEntryID.ToString() + "" + |
| | |
| | | "','" + oSub.HAddr + "'" + |
| | | ",'" + oSub.HMaker + "'" + |
| | | ",'" + oSub.HMakeDate.ToShortDateString() + "'" + |
| | | "," + oSub.HProcID + |
| | | ") "; |
| | | oCn.RunProc(subSql); |
| | | } |
| | |
| | | ",HMaterID,HUnitID,HQty,HResult,HEmpID,HSourceID,HBadReasonID" + |
| | | ",HICMOInterID,HICMOEntryID,HICMOBillNo,HProcExchInterID,HProcExchEntryID,HProcExchBillNo" + |
| | | ",HBarCode,HReportType,HBadProcID" + |
| | | ",HAddr,HMaker,HMakeDate" + |
| | | ",HAddr,HMaker,HMakeDate,HProcID" + |
| | | ") values(" + |
| | | "" + omodel.HInterID.ToString() + "" + |
| | | "," + oSub.HEntryID.ToString() + "" + |
| | |
| | | ",'" + oSub.HAddr + "'" + |
| | | ",'" + oSub.HMaker + "'" + |
| | | ",'" + oSub.HMakeDate.ToShortDateString() + "'" + |
| | | "," + oSub.HProcID + |
| | | ") "; |
| | | oCn.RunProc(subSql); |
| | | } |
| | |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region 䏿¨è´¨éæ±æ¥åæ¶è¿åå·¥åºåºç«æ±æ¥åä¿¡æ¯ |
| | | [Route("Cj_StationOutBill/PushDownBackInfo")] |
| | | [HttpGet] |
| | | public object PushDownBackInfo(string linterid, string user) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | |
| | | ds = oCN.RunProcReturn("select * from h_v_Sc_StationOutBill_PushDownBackInfo where hmainid in (" + linterid + ")", "h_v_Sc_StationOutBill_PushDownBackInfo"); |
| | | |
| | | if (ds.Tables[0].Rows.Count > 0 && ds != null) |
| | | { |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.list = columnNameList; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ°æ®"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |
| | |
| | | if (oSystemParameter.ShowBill(ref Ret)) |
| | | { |
| | | //夿客æ·ä¸ºé¾å±±æ±½é
|
| | | if (oSystemParameter.omodel.WMS_CampanyName == "é¾å±±æ±½é
") |
| | | if (oSystemParameter.omodel.WMS_CampanyName == "é¾å±±æ±½é
" || oSystemParameter.omodel.WMS_CampanyName == "æ·»åº·ç§æ") |
| | | { |
| | | //夿æ¯å¦ææ¥è¯¢å·¥ä»·æé |
| | | if (!DBUtility.ClsPub.Security_Log("Gy_RoutingBill_CheckProcPrice", 1, false, UserName)) |