Esempio n. 1
0
        protected virtual int ExecuteAction(MyCompany.Data.Objects.APCForcastMonthImport theAPCForcastMonthImport, MyCompany.Data.Objects.APCForcastMonthImport original_APCForcastMonthImport, string lastCommandName, string commandName, string dataView)
        {
            ActionArgs args = new ActionArgs();

            args.Controller      = "APCForcastMonthImport";
            args.View            = dataView;
            args.Values          = CreateFieldValues(theAPCForcastMonthImport, original_APCForcastMonthImport);
            args.LastCommandName = lastCommandName;
            args.CommandName     = commandName;
            ActionResult result = ControllerFactory.CreateDataController().Execute("APCForcastMonthImport", dataView, args);

            result.RaiseExceptionIfErrors();
            result.AssignTo(theAPCForcastMonthImport);
            return(result.RowsAffected);
        }
Esempio n. 2
0
        protected virtual FieldValue[] CreateFieldValues(MyCompany.Data.Objects.APCForcastMonthImport theAPCForcastMonthImport, MyCompany.Data.Objects.APCForcastMonthImport original_APCForcastMonthImport)
        {
            List <FieldValue> values = new List <FieldValue>();

            values.Add(new FieldValue("AutoId", original_APCForcastMonthImport.AutoId, theAPCForcastMonthImport.AutoId, true));
            values.Add(new FieldValue("OrderBy", original_APCForcastMonthImport.OrderBy, theAPCForcastMonthImport.OrderBy));
            values.Add(new FieldValue("DeliveryDestination", original_APCForcastMonthImport.DeliveryDestination, theAPCForcastMonthImport.DeliveryDestination));
            values.Add(new FieldValue("CustomerMatCode", original_APCForcastMonthImport.CustomerMatCode, theAPCForcastMonthImport.CustomerMatCode));
            values.Add(new FieldValue("PartsDevision", original_APCForcastMonthImport.PartsDevision, theAPCForcastMonthImport.PartsDevision));
            values.Add(new FieldValue("CustomerPO", original_APCForcastMonthImport.CustomerPO, theAPCForcastMonthImport.CustomerPO));
            values.Add(new FieldValue("Key1", original_APCForcastMonthImport.Key1, theAPCForcastMonthImport.Key1));
            values.Add(new FieldValue("Key2", original_APCForcastMonthImport.Key2, theAPCForcastMonthImport.Key2));
            values.Add(new FieldValue("Key3", original_APCForcastMonthImport.Key3, theAPCForcastMonthImport.Key3));
            values.Add(new FieldValue("ReliabilityDevision", original_APCForcastMonthImport.ReliabilityDevision, theAPCForcastMonthImport.ReliabilityDevision));
            values.Add(new FieldValue("DeliveryDate", original_APCForcastMonthImport.DeliveryDate, theAPCForcastMonthImport.DeliveryDate));
            values.Add(new FieldValue("Quantity", original_APCForcastMonthImport.Quantity, theAPCForcastMonthImport.Quantity));
            values.Add(new FieldValue("Unit", original_APCForcastMonthImport.Unit, theAPCForcastMonthImport.Unit));
            values.Add(new FieldValue("PlngPeriod", original_APCForcastMonthImport.PlngPeriod, theAPCForcastMonthImport.PlngPeriod));
            values.Add(new FieldValue("SAPCode", original_APCForcastMonthImport.SAPCode, theAPCForcastMonthImport.SAPCode));
            values.Add(new FieldValue("FileId", original_APCForcastMonthImport.FileId, theAPCForcastMonthImport.FileId));
            values.Add(new FieldValue("StatusCode", original_APCForcastMonthImport.StatusCode, theAPCForcastMonthImport.StatusCode));
            return(values.ToArray());
        }
Esempio n. 3
0
 public virtual int Delete(MyCompany.Data.Objects.APCForcastMonthImport theAPCForcastMonthImport)
 {
     return(ExecuteAction(theAPCForcastMonthImport, theAPCForcastMonthImport, "Select", "Delete", DeleteView));
 }
Esempio n. 4
0
 public virtual int Insert(MyCompany.Data.Objects.APCForcastMonthImport theAPCForcastMonthImport)
 {
     return(ExecuteAction(theAPCForcastMonthImport, new APCForcastMonthImport(), "New", "Insert", InsertView));
 }
Esempio n. 5
0
 public virtual int Update(MyCompany.Data.Objects.APCForcastMonthImport theAPCForcastMonthImport)
 {
     return(Update(theAPCForcastMonthImport, SelectSingle(theAPCForcastMonthImport.AutoId)));
 }
Esempio n. 6
0
 public virtual int Update(MyCompany.Data.Objects.APCForcastMonthImport theAPCForcastMonthImport, MyCompany.Data.Objects.APCForcastMonthImport original_APCForcastMonthImport)
 {
     return(ExecuteAction(theAPCForcastMonthImport, original_APCForcastMonthImport, "Edit", "Update", UpdateView));
 }
Esempio n. 7
0
 public List <MyCompany.Data.Objects.APCForcastMonthImport> Select(MyCompany.Data.Objects.APCForcastMonthImport 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.FileId, qbe.StatusCode));
 }
Esempio n. 8
0
 public static List <MyCompany.Data.Objects.APCForcastMonthImport> Select(MyCompany.Data.Objects.APCForcastMonthImport qbe)
 {
     return(new APCForcastMonthImportFactory().Select(qbe));
 }