protected virtual FieldValue[] CreateFieldValues(MyCompany.Data.Objects.ForcastMonthManual theForcastMonthManual, MyCompany.Data.Objects.ForcastMonthManual original_ForcastMonthManual) { List <FieldValue> values = new List <FieldValue>(); values.Add(new FieldValue("AutoId", original_ForcastMonthManual.AutoId, theForcastMonthManual.AutoId, true)); values.Add(new FieldValue("OrderBy", original_ForcastMonthManual.OrderBy, theForcastMonthManual.OrderBy)); values.Add(new FieldValue("DeliveryDestination", original_ForcastMonthManual.DeliveryDestination, theForcastMonthManual.DeliveryDestination)); values.Add(new FieldValue("CustomerMatCode", original_ForcastMonthManual.CustomerMatCode, theForcastMonthManual.CustomerMatCode)); values.Add(new FieldValue("PartsDevision", original_ForcastMonthManual.PartsDevision, theForcastMonthManual.PartsDevision)); values.Add(new FieldValue("CustomerPO", original_ForcastMonthManual.CustomerPO, theForcastMonthManual.CustomerPO)); values.Add(new FieldValue("Key1", original_ForcastMonthManual.Key1, theForcastMonthManual.Key1)); values.Add(new FieldValue("Key2", original_ForcastMonthManual.Key2, theForcastMonthManual.Key2)); values.Add(new FieldValue("Key3", original_ForcastMonthManual.Key3, theForcastMonthManual.Key3)); values.Add(new FieldValue("ReliabilityDevision", original_ForcastMonthManual.ReliabilityDevision, theForcastMonthManual.ReliabilityDevision)); values.Add(new FieldValue("DeliveryDate", original_ForcastMonthManual.DeliveryDate, theForcastMonthManual.DeliveryDate)); values.Add(new FieldValue("Quantity", original_ForcastMonthManual.Quantity, theForcastMonthManual.Quantity)); values.Add(new FieldValue("Unit", original_ForcastMonthManual.Unit, theForcastMonthManual.Unit)); values.Add(new FieldValue("PlngPeriod", original_ForcastMonthManual.PlngPeriod, theForcastMonthManual.PlngPeriod)); values.Add(new FieldValue("SAPCode", original_ForcastMonthManual.SAPCode, theForcastMonthManual.SAPCode)); values.Add(new FieldValue("CustomerId", original_ForcastMonthManual.CustomerId, theForcastMonthManual.CustomerId)); values.Add(new FieldValue("CreateBy", original_ForcastMonthManual.CreateBy, theForcastMonthManual.CreateBy)); values.Add(new FieldValue("CreateDate", original_ForcastMonthManual.CreateDate, theForcastMonthManual.CreateDate)); values.Add(new FieldValue("UpdateBy", original_ForcastMonthManual.UpdateBy, theForcastMonthManual.UpdateBy)); values.Add(new FieldValue("UpdateDate", original_ForcastMonthManual.UpdateDate, theForcastMonthManual.UpdateDate)); return(values.ToArray()); }
protected virtual int ExecuteAction(MyCompany.Data.Objects.ForcastMonthManual theForcastMonthManual, MyCompany.Data.Objects.ForcastMonthManual original_ForcastMonthManual, string lastCommandName, string commandName, string dataView) { ActionArgs args = new ActionArgs(); args.Controller = "ForcastMonthManual"; args.View = dataView; args.Values = CreateFieldValues(theForcastMonthManual, original_ForcastMonthManual); args.LastCommandName = lastCommandName; args.CommandName = commandName; ActionResult result = ControllerFactory.CreateDataController().Execute("ForcastMonthManual", dataView, args); result.RaiseExceptionIfErrors(); result.AssignTo(theForcastMonthManual); return(result.RowsAffected); }
public virtual int Delete(MyCompany.Data.Objects.ForcastMonthManual theForcastMonthManual) { return(ExecuteAction(theForcastMonthManual, theForcastMonthManual, "Select", "Delete", DeleteView)); }
public virtual int Insert(MyCompany.Data.Objects.ForcastMonthManual theForcastMonthManual) { return(ExecuteAction(theForcastMonthManual, new ForcastMonthManual(), "New", "Insert", InsertView)); }
public virtual int Update(MyCompany.Data.Objects.ForcastMonthManual theForcastMonthManual) { return(Update(theForcastMonthManual, SelectSingle(theForcastMonthManual.AutoId))); }
public virtual int Update(MyCompany.Data.Objects.ForcastMonthManual theForcastMonthManual, MyCompany.Data.Objects.ForcastMonthManual original_ForcastMonthManual) { return(ExecuteAction(theForcastMonthManual, original_ForcastMonthManual, "Edit", "Update", UpdateView)); }
public List <MyCompany.Data.Objects.ForcastMonthManual> Select(MyCompany.Data.Objects.ForcastMonthManual qbe) { return(Select(qbe.AutoId, qbe.OrderBy, qbe.DeliveryDestination, qbe.CustomerMatCode, qbe.PartsDevision, qbe.CustomerPO, qbe.Key1, qbe.Key2, qbe.Key3, qbe.ReliabilityDevision, qbe.DeliveryDate, qbe.Quantity, qbe.Unit, qbe.PlngPeriod, qbe.SAPCode, qbe.CustomerId, qbe.CreateBy, qbe.CreateDate, qbe.UpdateBy, qbe.UpdateDate)); }
public static List <MyCompany.Data.Objects.ForcastMonthManual> Select(MyCompany.Data.Objects.ForcastMonthManual qbe) { return(new ForcastMonthManualFactory().Select(qbe)); }