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

            args.Controller      = "HATCForcastMonthExcelImport";
            args.View            = dataView;
            args.Values          = CreateFieldValues(theHATCForcastMonthExcelImport, original_HATCForcastMonthExcelImport);
            args.LastCommandName = lastCommandName;
            args.CommandName     = commandName;
            ActionResult result = ControllerFactory.CreateDataController().Execute("HATCForcastMonthExcelImport", dataView, args);

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

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