//used by ubf.. public void FromEntityData(ProductBarCodeByShipDTOData data, IDictionary dict) { if (data == null) { return; } if (dict == null) { dict = new Hashtable(); } dict[data] = this; DeSerializeKey(data); this.OrgID = data.OrgID; this.ItemID = data.ItemID; this.BarCode = data.BarCode; this.ActualLength = data.ActualLength; this.QcOperator = data.QcOperator; this.ShipPlan = data.ShipPlan; this.ShipPlanLine = data.ShipPlanLine; this.ScanOn = data.ScanOn; this.ScanBy = data.ScanBy; this.SOShipLine = data.SOShipLine; }
/// <summary> /// Create EntityData From Entity - used by ubf /// </summary> public ProductBarCodeByShipDTOData ToEntityData(ProductBarCodeByShipDTOData data, IDictionary dict) { if (data == null) { data = new ProductBarCodeByShipDTOData(); } if (dict == null) { dict = new Hashtable(); } else { if (dict.Contains(this)) { data = (ProductBarCodeByShipDTOData)dict[this]; return(data); } } dict[this] = data; data.OrgID = this.OrgID; data.ItemID = this.ItemID; data.BarCode = this.BarCode; data.ActualLength = this.ActualLength; data.QcOperator = this.QcOperator; data.ShipPlan = this.ShipPlan; data.ShipPlanLine = this.ShipPlanLine; data.ScanOn = this.ScanOn; data.ScanBy = this.ScanBy; data.SOShipLine = this.SOShipLine; return(data); }
/// <summary> /// Copy Entity From EntityData /// </summary> public void FromEntityData(ProductBarCodeByShipDTOData data) { this.FromEntityData(data, new Hashtable()); }
//反序化Key到Data的ID中 --由FromEntityData自动调用,不处理层次关系 private void DeSerializeKey(ProductBarCodeByShipDTOData data) { }