Browse Source

累计发货零件号验证

master
xueyu.liu 3 years ago
parent
commit
c261cd3998
  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