public Disk(SKU sku, DataRow dr) { this.sku = sku; if (!dr.Table.Columns.Contains(this.GetColName4Pro("Id"))) { throw new Exception("料盘号为空,初始化数据失败!"); } Pro2Col.DataRow2Obj(this, dr); }
public SKU(DataRow dr) { if (!dr.Table.Columns.Contains(GetColName4Pro("Id"))) { throw new Exception("物料P/N为空,初始化数据失败!"); } Pro2Col.DataRow2Obj(this, dr); if (this.scanCount == this.count) { this.scanFinish = true; } }