admin
11 小时以前 a7d02dd61f54a1b07914c6e4e0b08ca44a0e3c68
AddExportNotice的出库数量Qty<0校验
1个文件已修改
14 ■■■■ 已修改文件
Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs
@@ -1231,7 +1231,7 @@
                    //添加出库单
                    foreach (var d in model.Detail)
                    {
                        if (d.Qty < 1)
                        if (d.Qty < 0)
                        {
                            throw new Exception("出库数量必须大于0");
                        }
@@ -2395,7 +2395,7 @@
                var allot = new AllotLocation();
                #region 集合 
                Db.BeginTran();
                try
                {
@@ -2836,7 +2836,7 @@
                            {
                                s.Status = "1";
                            }
                            var sd = Db.Updateable(s).UpdateColumns(it => new { it.LockQty, it.Status }).ExecuteCommand();
                        }
@@ -2913,7 +2913,7 @@
                            notice.Status = "3";//正在执行
                        }
                    }
                    notice.UpdateUser = userId;
                    notice.UpdateTime = DateTime.Now;
                    var zd = Db.Updateable(notice).ExecuteCommand();
@@ -4370,7 +4370,7 @@
                                }
                            }
                        }
                        if(string.IsNullOrEmpty(newAddress))
                        if (string.IsNullOrEmpty(newAddress))
                        {
                            //已有物品的巷道
                            var roadwayHave = Db.Queryable<DataStockDetail>().Where(w => w.IsDel == "0" && w.WareHouseNo == "W01").GroupBy(g => g.RoadwayNo).Select(s => s.RoadwayNo).ToList();
@@ -4401,7 +4401,7 @@
                                }
                            }
                        }
                    }
                }
@@ -4582,7 +4582,7 @@
                else
                {
                    // 取最上面一排
                    location = slotModel[0].LocatNo;
                    location = slotModel[0].LocatNo;
                }
                bl = true;