| | |
| | | string msg = "储位状态 储位号:" + storage.RoadwayNo; |
| | | if (model.Id.Count > 1) |
| | | { |
| | | foreach (var item in model.Id) |
| | | var sstorage = _locatSvc.GetStorageLocat(model.Id); |
| | | foreach (var item in sstorage) |
| | | { |
| | | storage = _locatSvc.GetStorageLocat(item); |
| | | _operation.InsertOperation("仓库设置", "储位管理", storage.LocatNo, "批量编辑", "批量修改储位信息 储位号:" + storage.LocatNo, Convert.ToInt32(userId)); |
| | | _operation.InsertOperation("仓库设置", "储位管理", item.LocatNo, "批量编辑", "批量修改储位信息 储位号:" + item.LocatNo, Convert.ToInt32(userId)); |
| | | } |
| | | //foreach (var item in model.Id) |
| | | //{ |
| | | // storage = _locatSvc.GetStorageLocat(item); |
| | | // _operation.InsertOperation("仓库设置", "储位管理", storage.LocatNo, "批量编辑", "批量修改储位信息 储位号:" + storage.LocatNo, Convert.ToInt32(userId)); |
| | | //} |
| | | } |
| | | else |
| | | { |
| | |
| | | { |
| | | throw new Exception("当前显示的条码不是最新条码,请重新添加"); |
| | | } |
| | | string str = model.PalletNo.Substring(3, 5); |
| | | string remove = model.PalletNo.Substring(0, 3); |
| | | string str = model.PalletNo.Substring(2, 6); |
| | | string remove = model.PalletNo.Substring(0, 2); |
| | | int sibelius = Convert.ToInt16(str); |
| | | for (int i = 0; i < model.GroupCount; i++) |
| | | { |
| | | if (sibelius>999999) |
| | | { |
| | | throw new Exception("托盘组中已有托盘码位数已达上线"); |
| | | } |
| | | if (i != 0) |
| | | { |
| | | sibelius += 1; |
| | | } |
| | | |
| | | string code = remove + Convert.ToString(sibelius).PadLeft(5, '0'); |
| | | string code = remove + Convert.ToString(sibelius).PadLeft(6, '0'); |
| | | for (int j = 0; j < model.SameCount; j++) |
| | | { |
| | | var re = BarcodeHelper.GetCodeBarBase64(code, 80, 50); |