hao.jin 3 years ago
parent
commit
12e52901c1
  1. 8
      Stone.WinForm/Stone.WinBiz/BasicData/F_PartOutQty.cs

8
Stone.WinForm/Stone.WinBiz/BasicData/F_PartOutQty.cs

@ -31,7 +31,15 @@ namespace Stone.WinBiz.BasicData
public override void Checking(DataRow drData, bool isNew) 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); base.Checking(drData, isNew);
} }

Loading…
Cancel
Save