示例#1
0
        public OperationResult Update(EOrderModel model)
        {
            var entity = EOrderList.First(t => t.OrderID == model.OrderID);

            entity.OrderType     = model.OrderType;
            entity.OrderID       = model.OrderID;
            entity.ORIGTYPE      = model.ORIGTYPE;
            entity.ORIGNUMB      = model.ORIGNUMB;
            entity.BACHNUMB      = model.BACHNUMB;
            entity.CustID        = model.CustID;
            entity.ShopID        = model.ShopID;
            entity.EmplID        = model.EmplID;
            entity.OrderDate     = model.OrderDate;
            entity.RequiredDate  = model.RequiredDate;
            entity.ShippedDate   = model.ShippedDate;
            entity.ShipID        = model.ShipID;
            entity.Freight       = model.Freight;
            entity.Ship_Name     = model.Ship_Name;
            entity.Ship_Address  = model.Ship_Address;
            entity.Ship_City     = model.Ship_City;
            entity.TerrID        = model.TerrID;
            entity.Ship_zip      = model.Ship_zip;
            entity.Ship_Country  = model.Ship_Country;
            entity.Ship_state    = model.Ship_state;
            entity.Ship_phone    = model.Ship_phone;
            entity.Auth_code     = model.Auth_code;
            entity.Bill_name     = model.Bill_name;
            entity.Bill_address  = model.Bill_address;
            entity.Bill_city     = model.Bill_city;
            entity.Bill_state    = model.Bill_state;
            entity.Bill_zip      = model.Bill_zip;
            entity.Bill_country  = model.Bill_country;
            entity.Bill_phone    = model.Bill_phone;
            entity.RepID         = model.RepID;
            entity.OrderStats    = model.OrderStats;
            entity.VoidStats     = model.VoidStats;
            entity.CommText      = model.CommText;
            entity.CretDate      = model.CretDate;
            entity.ModiDate      = model.ModiDate;
            entity.CretID        = model.CretID;
            entity.Cc_name       = model.Cc_name;
            entity.Cc_expmonth   = model.Cc_expmonth;
            entity.Cc_expyear    = model.Cc_expyear;
            entity.Cc_number     = model.Cc_number;
            entity.Cc_type       = model.Cc_type;
            entity.Verify_with   = model.Verify_with;
            entity.Pono          = model.Pono;
            entity.Prnstats      = model.Prnstats;
            entity.PROC_STATUS   = model.PROC_STATUS;
            entity.Miscellaneous = model.Miscellaneous;

            EOrderRepository.Update(entity);
            return(new OperationResult(OperationResultType.Success, "update completed"));
        }
示例#2
0
 public int UpdateByRepository(EOrder entity)
 {
     return(EOrderRepository.Update(entity));
 }