public override bool Equals(object obj) { if (obj is InventoryAdjustmentLine) { InventoryAdjustmentLine _obj = obj as InventoryAdjustmentLine; return(_obj.InventoryAdjustmentLineID == InventoryAdjustmentLineID); } return(false); }
public override void AssignFrom(Accounting.Core.Entity rhs) { base.AssignFrom(rhs); InventoryAdjustment _obj = rhs as InventoryAdjustment; mLines = new BindingList <InventoryAdjustmentLine>(); foreach (InventoryAdjustmentLine _line in _obj.Lines) { InventoryAdjustmentLine new_line = _line.Clone() as InventoryAdjustmentLine; new_line.InventoryAdjustment = this; mLines.Add(new_line); } }