コード例 #1
0
ファイル: OrdersForcastMonth.cs プロジェクト: thanakritv8/EDI
        protected virtual FieldValue[] CreateFieldValues(MyCompany.Data.Objects.OrdersForcastMonth theOrdersForcastMonth, MyCompany.Data.Objects.OrdersForcastMonth original_OrdersForcastMonth)
        {
            List <FieldValue> values = new List <FieldValue>();

            values.Add(new FieldValue("AutoId", original_OrdersForcastMonth.AutoId, theOrdersForcastMonth.AutoId, true));
            values.Add(new FieldValue("OrderBy", original_OrdersForcastMonth.OrderBy, theOrdersForcastMonth.OrderBy));
            values.Add(new FieldValue("DeliveryDestination", original_OrdersForcastMonth.DeliveryDestination, theOrdersForcastMonth.DeliveryDestination));
            values.Add(new FieldValue("CustomerMatCode", original_OrdersForcastMonth.CustomerMatCode, theOrdersForcastMonth.CustomerMatCode));
            values.Add(new FieldValue("PartsDevision", original_OrdersForcastMonth.PartsDevision, theOrdersForcastMonth.PartsDevision));
            values.Add(new FieldValue("CustomerPO", original_OrdersForcastMonth.CustomerPO, theOrdersForcastMonth.CustomerPO));
            values.Add(new FieldValue("Key1", original_OrdersForcastMonth.Key1, theOrdersForcastMonth.Key1));
            values.Add(new FieldValue("Key2", original_OrdersForcastMonth.Key2, theOrdersForcastMonth.Key2));
            values.Add(new FieldValue("Key3", original_OrdersForcastMonth.Key3, theOrdersForcastMonth.Key3));
            values.Add(new FieldValue("ReliabilityDevision", original_OrdersForcastMonth.ReliabilityDevision, theOrdersForcastMonth.ReliabilityDevision));
            values.Add(new FieldValue("DeliveryDate", original_OrdersForcastMonth.DeliveryDate, theOrdersForcastMonth.DeliveryDate));
            values.Add(new FieldValue("Quantity", original_OrdersForcastMonth.Quantity, theOrdersForcastMonth.Quantity));
            values.Add(new FieldValue("Unit", original_OrdersForcastMonth.Unit, theOrdersForcastMonth.Unit));
            values.Add(new FieldValue("PlngPeriod", original_OrdersForcastMonth.PlngPeriod, theOrdersForcastMonth.PlngPeriod));
            values.Add(new FieldValue("SAPCode", original_OrdersForcastMonth.SAPCode, theOrdersForcastMonth.SAPCode));
            values.Add(new FieldValue("CustomerId", original_OrdersForcastMonth.CustomerId, theOrdersForcastMonth.CustomerId));
            values.Add(new FieldValue("CreateBy", original_OrdersForcastMonth.CreateBy, theOrdersForcastMonth.CreateBy));
            values.Add(new FieldValue("CreateDate", original_OrdersForcastMonth.CreateDate, theOrdersForcastMonth.CreateDate));
            values.Add(new FieldValue("UpdateBy", original_OrdersForcastMonth.UpdateBy, theOrdersForcastMonth.UpdateBy));
            values.Add(new FieldValue("UpdateDate", original_OrdersForcastMonth.UpdateDate, theOrdersForcastMonth.UpdateDate));
            return(values.ToArray());
        }
コード例 #2
0
ファイル: OrdersForcastMonth.cs プロジェクト: thanakritv8/EDI
        protected virtual int ExecuteAction(MyCompany.Data.Objects.OrdersForcastMonth theOrdersForcastMonth, MyCompany.Data.Objects.OrdersForcastMonth original_OrdersForcastMonth, string lastCommandName, string commandName, string dataView)
        {
            ActionArgs args = new ActionArgs();

            args.Controller      = "OrdersForcastMonth";
            args.View            = dataView;
            args.Values          = CreateFieldValues(theOrdersForcastMonth, original_OrdersForcastMonth);
            args.LastCommandName = lastCommandName;
            args.CommandName     = commandName;
            ActionResult result = ControllerFactory.CreateDataController().Execute("OrdersForcastMonth", dataView, args);

            result.RaiseExceptionIfErrors();
            result.AssignTo(theOrdersForcastMonth);
            return(result.RowsAffected);
        }
コード例 #3
0
ファイル: OrdersForcastMonth.cs プロジェクト: thanakritv8/EDI
 public virtual int Delete(MyCompany.Data.Objects.OrdersForcastMonth theOrdersForcastMonth)
 {
     return(ExecuteAction(theOrdersForcastMonth, theOrdersForcastMonth, "Select", "Delete", DeleteView));
 }
コード例 #4
0
ファイル: OrdersForcastMonth.cs プロジェクト: thanakritv8/EDI
 public virtual int Insert(MyCompany.Data.Objects.OrdersForcastMonth theOrdersForcastMonth)
 {
     return(ExecuteAction(theOrdersForcastMonth, new OrdersForcastMonth(), "New", "Insert", InsertView));
 }
コード例 #5
0
ファイル: OrdersForcastMonth.cs プロジェクト: thanakritv8/EDI
 public virtual int Update(MyCompany.Data.Objects.OrdersForcastMonth theOrdersForcastMonth)
 {
     return(Update(theOrdersForcastMonth, SelectSingle(theOrdersForcastMonth.AutoId)));
 }
コード例 #6
0
ファイル: OrdersForcastMonth.cs プロジェクト: thanakritv8/EDI
 public virtual int Update(MyCompany.Data.Objects.OrdersForcastMonth theOrdersForcastMonth, MyCompany.Data.Objects.OrdersForcastMonth original_OrdersForcastMonth)
 {
     return(ExecuteAction(theOrdersForcastMonth, original_OrdersForcastMonth, "Edit", "Update", UpdateView));
 }
コード例 #7
0
ファイル: OrdersForcastMonth.cs プロジェクト: thanakritv8/EDI
 public List <MyCompany.Data.Objects.OrdersForcastMonth> Select(MyCompany.Data.Objects.OrdersForcastMonth 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));
 }
コード例 #8
0
ファイル: OrdersForcastMonth.cs プロジェクト: thanakritv8/EDI
 public static List <MyCompany.Data.Objects.OrdersForcastMonth> Select(MyCompany.Data.Objects.OrdersForcastMonth qbe)
 {
     return(new OrdersForcastMonthFactory().Select(qbe));
 }