| | |
| | | { |
| | | throw new Exception("新添加的桶只能绑定净桶区"); |
| | | } |
| | | //if (!string.IsNullOrEmpty(deviceCode)) |
| | | //{ |
| | | // var areaInfo = db.Queryable<SysStorageArea>().First(w => w.IsDel == "0" && w.DeviceCode.Contains(deviceCode)); |
| | | // if (areaInfo == null) |
| | | // { |
| | | // throw new Exception("未查到设备所属区域信息"); |
| | | // } |
| | | // //125设备是接料和混料一体机 |
| | | // if (deviceCode != "125") |
| | | // { |
| | | // if (!areaInfo.AreaName.Contains("接料设备")) |
| | | // { |
| | | // throw new Exception("只能绑定接料设备"); |
| | | // } |
| | | // if (areaInfo.WareHouseNo != "M03") |
| | | // { |
| | | // throw new Exception("只有大单体车间才能绑定设备"); |
| | | // } |
| | | // } |
| | | //} |
| | | |
| | | if (!string.IsNullOrEmpty(deviceCode)) |
| | | { |
| | | switch (deviceCode) |
| | |
| | | |
| | | //更新储位状态 |
| | | locatModel.Status = "1";//有物品 |
| | | locatModel.UpdateTime = DateTime.Now; |
| | | db.Updateable(locatModel).ExecuteCommand(); |
| | | |
| | | //下发AGV绑定载具接口 |