Exemplo n.º 1
0
        protected virtual int ExecuteAction(MyCompany.Data.Objects.TYMForcastMonthImport theTYMForcastMonthImport, MyCompany.Data.Objects.TYMForcastMonthImport original_TYMForcastMonthImport, string lastCommandName, string commandName, string dataView)
        {
            ActionArgs args = new ActionArgs();

            args.Controller      = "TYMForcastMonthImport";
            args.View            = dataView;
            args.Values          = CreateFieldValues(theTYMForcastMonthImport, original_TYMForcastMonthImport);
            args.LastCommandName = lastCommandName;
            args.CommandName     = commandName;
            ActionResult result = ControllerFactory.CreateDataController().Execute("TYMForcastMonthImport", dataView, args);

            result.RaiseExceptionIfErrors();
            result.AssignTo(theTYMForcastMonthImport);
            return(result.RowsAffected);
        }
Exemplo n.º 2
0
        protected virtual FieldValue[] CreateFieldValues(MyCompany.Data.Objects.TYMForcastMonthImport theTYMForcastMonthImport, MyCompany.Data.Objects.TYMForcastMonthImport original_TYMForcastMonthImport)
        {
            List <FieldValue> values = new List <FieldValue>();

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