| | |
| | | /// 托盘码 |
| | | /// </summary> |
| | | public string trayCode { get; set; } |
| | | /// <summary> |
| | | /// 托盘类型 |
| | | /// </summary> |
| | | public string trayType { get; set; } |
| | | public string locationGear { get; set; } |
| | | public List<ItemData> data { get; set; } |
| | | //public List<TimeData> TimeData { get; set; } |
| | |
| | | public string endBit { get; set; } |
| | | public string trayDimension { get; set; } |
| | | public string needCreateAMSTask { get; set; } |
| | | public string TrayType { get; set; } |
| | | public int priority { get; set; } |
| | | //public int isFull { get; set; } |
| | | public string projectCode { get; set; } |
| | |
| | | public string endBit { get; set; } |
| | | public string trayDimension { get; set; } |
| | | public string needCreateAMSTask { get; set; } |
| | | public string trayType { get; set; } |
| | | public int priority { get; set; } |
| | | //public int isFull { get; set; } |
| | | public string projectCode { get; set; } |
| | |
| | | //CMMLog.Info($"WMSIn-{startBit}:查询条件:item_code={info.materialCode},读出 ERPItemTable 表数据为:{JsonConvert.SerializeObject(erpItemTableInfo)}"); |
| | | model.locationGear = info.secondNg.ToString(); |
| | | model.trayCode = info.trayCode; |
| | | model.trayType = info.trayType == "1" ? "田字托" : info.trayType == "2" ? "川字托" : ""; |
| | | //string product = !string.IsNullOrEmpty(info.productType) ? info.productType : erpItemTableInfo.item_spec; |
| | | model.data.Add(new ItemData() |
| | | { |
| | |
| | | return result; |
| | | } |
| | | |
| | | public static bool WMSOut(string endBit, string ItemCode) { |
| | | public static bool WMSOut(string endBit, string ItemCode,string trayType) { |
| | | //endBit = endBit.Substring(0, 9); |
| | | bool result = false; |
| | | HardwareAccessObject hao = HardwareAccessHelper.Instance.GetEquipmentsHAO(Constants.WMS_DEVICE_TYPE_WMS); |
| | |
| | | model.endBit = endBit; |
| | | model.projectCode = "glm"; |
| | | model.needCreateAMSTask = "Y"; |
| | | model.TrayType = trayType; |
| | | //model.Data = new List<ItemData>(); |
| | | //if (!string.IsNullOrEmpty(ItemCode)) |
| | | //{ |
| | |
| | | return result; |
| | | } |
| | | |
| | | public static bool WMSEmptyOut(string endBit, string ItemCode, ref string taskNo, ref string trayCode) |
| | | public static bool WMSEmptyOut(string endBit, string ItemCode,string trayType, ref string taskNo, ref string trayCode) |
| | | { |
| | | bool result = false; |
| | | HardwareAccessObject hao = HardwareAccessHelper.Instance.GetEquipmentsHAO(Constants.WMS_DEVICE_TYPE_WMS); |
| | |
| | | model.endBit = endBit; |
| | | model.projectCode = "glm"; |
| | | model.needCreateAMSTask = "Y"; |
| | | model.trayType = trayType; |
| | | string msgData = JsonConvert.SerializeObject(model); |
| | | string reqStr = "物料名=" + ItemCode + ";"; |
| | | string feedback = ""; |