コード例 #1
0
        public void UpdateOrderDetailQty(int orderID, string sku, float qty)
        {
            var model = EOrderDetailList.FirstOrDefault(t => t.OrderID == orderID && t.Sku == sku);

            model.Orderqty = qty;
            EOrderDetailRepository.Update(model);
        }
コード例 #2
0
        public OperationResult Update(UpdateEOrderDetailModel model)
        {
            var entity = EOrderDetailList.First(t => t.OrderID == model.OrderID && t.Sku == model.Sku);

            entity.OrderType  = model.OrderType;
            entity.OrderID    = model.OrderID;
            entity.Sn         = model.Sn;
            entity.Sku        = model.Sku;
            entity.Skudesc    = model.Skudesc;
            entity.WareId     = model.WareId;
            entity.Unit       = model.Unit;
            entity.UnitCost   = model.UnitCost;
            entity.UnitPrice  = model.UnitPrice;
            entity.QtyonSales = model.QtyonSales;
            entity.Orderqty   = model.Orderqty;
            entity.Bkoqty     = model.Bkoqty;
            entity.Fullqty    = model.Fullqty;
            entity.Discount   = model.Discount;
            entity.Tax        = model.Tax;
            entity.OrderStats = model.OrderStats;
            entity.CommText   = model.CommText;
            entity.FullDate   = model.FullDate;
            entity.CretDate   = model.CretDate;
            entity.ModiDate   = model.ModiDate;
            entity.CretID     = model.CretID;
            entity.Class1     = model.Class1;

            EOrderDetailRepository.Update(entity);
            return(new OperationResult(OperationResultType.Success, "update completed"));
        }