예제 #1
0
 public ProductSKUs CreateProductSKUs(ProductSKU productsku)
 {
     this.ProductSPUName = productsku.ProductSPUName;
     this.ProductPrice   = productsku.DealerPrice;
     this.ProductPV      = productsku.PV;
     this.ProductSKUId   = productsku.Id;
     return(this);
 }
예제 #2
0
        public OrderItem CreateOrderItem(ProductSKU productsku, int count)
        {
            this.Id    = Guid.NewGuid();
            this.Code  = "OrderItem " + DateTime.Now.ToString();
            this.Count = count;

            this.OrderItemTotalPrice = new OrderItemTotalPrice().CreateOrderItemTotalPrice(productsku,
                                                                                           count);
            this.OrderItemTotalPV = new OrderItemTotalPV().CreateOrderItemTotalPV(productsku,
                                                                                  count);
            this.ProductSKUs = new ProductSKUs().CreateProductSKUs(productsku);
            return(this);
        }
예제 #3
0
 public OrderItemTotalPrice CreateOrderItemTotalPrice(ProductSKU productsku, int count)
 {
     this.SubTotalPrice = productsku.DealerPrice * count;
     return(this);
 }
예제 #4
0
 public OrderItemTotalPV CreateOrderItemTotalPV(ProductSKU productsku, int count)
 {
     this.SubTotalPV = productsku.PV * count;
     return(this);
 }