From c261cd3998b032b4cb110176d951d22ad249a5ac Mon Sep 17 00:00:00 2001 From: "xueyu.liu" Date: Fri, 29 Apr 2022 11:26:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B4=AF=E8=AE=A1=E5=8F=91=E8=B4=A7=E9=9B=B6?= =?UTF-8?q?=E4=BB=B6=E5=8F=B7=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Stone.WinForm/Stone.WinBiz/BasicData/F_PartOutQty.cs | 8 ++++++++ 1 file changed, 8 insertions(+) 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); + }