|
@ -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); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|