private bool RecordHistory(NamedObject ndo_obj, ActionType actionType) { MfgOrder o = ndo_obj as MfgOrder; MfgOrderChangeHistory h; if (actionType == ActionType.Delete) h = new MfgOrderChangeHistory(null, this.TxnDate, actionType); else h = new MfgOrderChangeHistory(ndo_obj, this.TxnDate, actionType); o.AssignToMfgOrderChangeHistory(h); ObjScope.Transaction.Begin(); ObjScope.Add(h); ObjScope.Transaction.Commit(); return true; }
//public ERPBOM erpBOM; //public ERPRouter erpRouter; #region AssignTo public virtual void AssignToMfgOrderChangeHistory(MfgOrderChangeHistory t) { base.AssignToNamedObjectChangeHistory(t); t.Product = this.Product; t.BeginProduct = this.BeginProduct; t.PlannedStartDate = this.PlannedStartDate; t.PlannedCompletionDate = this.PlannedCompletionDate; t.ReleasedDate = this.ReleasedDate; t.PlanedQty = this.PlanedQty; t.UOM = this.UOM; t.ReportingFactory = this.ReportingFactory; t.SalesOrder = this.SalesOrder; t.OrderStatus = this.OrderStatus; }
public virtual void AssignToMfgOrderChangeHistory(MfgOrderChangeHistory t) { base.AssignToNamedObjectChangeHistory(t); t.Product = this.Product; t.BeginProduct = this.BeginProduct; t.PlannedStartDate = this.PlannedStartDate; t.PlannedCompletionDate = this.PlannedCompletionDate; t.ReleasedDate = this.ReleasedDate; t.PlanedQty = this.PlanedQty; t.UOM = this.UOM; t.ReportingFactory = this.ReportingFactory; t.SalesOrder = this.SalesOrder; t.OrderStatus = this.OrderStatus; }