diff --git a/Stone.WinForm/Stone.WinBiz/BasicData/F_PartOutQty.cs b/Stone.WinForm/Stone.WinBiz/BasicData/F_PartOutQty.cs index 32e1728..8bb9e8e 100644 --- a/Stone.WinForm/Stone.WinBiz/BasicData/F_PartOutQty.cs +++ b/Stone.WinForm/Stone.WinBiz/BasicData/F_PartOutQty.cs @@ -31,7 +31,15 @@ namespace Stone.WinBiz.BasicData public override void Checking(DataRow drData, bool isNew) { + Entity_t_Product product = new Entity_t_Product(); + if (product.GetData("", "Code='" + drData["Code"].ToString() + "'", "id asc").Tables[0].Rows.Count < 1) + { + //这NM的是个魔鬼~! + throw new Exception(drData["Code"].ToString()+"不存在"); + } + base.Checking(drData, isNew); + }