public InBoundOfShelf(InBound inBound, WarehouseShelf warehouseShelf, int qty, string note, string createUserId)
 {
     this.InBound        = inBound;
     this.WarehouseShelf = warehouseShelf;
     this.Qty            = qty;
     this.Note           = note;
     this.CreateUserId   = createUserId;
     this.CreateDate     = DateTime.Now;
 }
Exemple #2
0
        /// <summary>
        /// 添加货架
        /// </summary>
        /// <param name="capacity"></param>
        /// <param name="note"></param>
        public virtual void AddWarehouseShelf(string name, int capacity, string note)
        {
            if (this.Shelf == null)
            {
                Shelf = new List <WarehouseShelf> {
                };
            }

            WarehouseShelf model = new WarehouseShelf(name, capacity, note, this.Id);

            this.Shelf.Add(model);
        }
Exemple #3
0
        public InBound(Product product, Warehouse warehouse, WarehouseShelf warehouseShelf, int qty, float price, string currency
                       , string note, int createUserId
                       )
        {
            this.Product      = product;
            this.Warehouse    = warehouse;
            this.Qty          = qty;
            this.CurrentQty   = qty;
            this.Price        = price;
            this.Currency     = currency;
            this.Note         = note;
            this.CreateUserId = createUserId;
            this.CreateDate   = DateTime.Now;
            InBoundOfShelf one = new InBoundOfShelf(this, warehouseShelf, qty, note, createUserId);

            this.AddInBoundOfShelf(one);
        }
        public InBound(Product product, Warehouse warehouse, WarehouseShelf warehouseShelf, InOutReason inOutReason, int qty, float price, string currency
                       , string note, Users user
                       )
        {
            this.Product     = product;
            this.Warehouse   = warehouse;
            this.InOutReason = inOutReason;
            this.Qty         = qty;
            this.CurrentQty  = qty;
            this.Price       = price;
            this.Currency    = currency;
            this.Note        = note;
            this.User        = user;
            this.CreateDate  = DateTime.Now;
            InBoundOfShelf one = new InBoundOfShelf(this, warehouseShelf, qty, note, user.Id);

            this.AddInBoundOfShelf(one);
        }