| | |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using Utility.Tools; |
| | | using WMS.BLL.LogServer; |
| | | using WMS.DAL; |
| | | using WMS.Entity.BllAsnEntity; |
| | |
| | | using WMS.Entity.LogEntity; |
| | | using WMS.Entity.SysEntity; |
| | | using WMS.IBLL.IBllTransServer; |
| | | using static Model.InterFaceModel.RCSModel; |
| | | |
| | | namespace WMS.BLL.BllTransServer |
| | | { |
| | |
| | | sd3.LocatNo = endLocatInfo2.LocatNo;//储位地址 |
| | | if (endLocatInfo2.AreaNo.Contains("01"))//洁净区 |
| | | { |
| | | sd3.PalletStatus = "0"; |
| | | sd3.PalletStatus = "0"; |
| | | } |
| | | else if (endLocatInfo2.AreaNo.Contains("02"))//预混区 |
| | | { |
| | |
| | | sd3.SkuNo = ""; |
| | | sd3.SkuName = ""; |
| | | sd3.InspectStatus = "0";//待检验 |
| | | } |
| | | } |
| | | } |
| | | else if (taskInfo.Type == "1")//出库任务 |
| | | { |
| | |
| | | //修改库存明细 |
| | | Db.Updateable(sd3).ExecuteCommand(); |
| | | |
| | | //回传桶状态给MES |
| | | BackPalletStatus(taskInfo.PalletNo, sd3.PalletStatus); |
| | | |
| | | break; |
| | | #endregion |
| | | } |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 回传桶状态给MES |
| | | /// </summary> |
| | | /// <param name="PalletNo">桶号</param> |
| | | /// <param name="Status">0:净桶 1:预混 2:半成品 3:脏桶</param> |
| | | /// <param name="url"></param> |
| | | public void BackPalletStatus(string PalletNo, string Status,string url="") |
| | | { |
| | | try |
| | | { |
| | | var obj = new |
| | | { |
| | | PalletNo = PalletNo, |
| | | Status = Status |
| | | }; |
| | | string jsonReq = JsonConvert.SerializeObject(obj); |
| | | var response = HttpHelper.DoPost(url, jsonReq, "回传MES桶状态", "MES").ToString(); |
| | | var result = JsonConvert.DeserializeObject<ReMes>(response);//解析返回数据 |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw ex; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 下发出库单 |
| | | /// </summary> |
| | | /// <param name="model"></param> |