public ArrivalReceiptDetail(ArrivalNoticeDetail purchaseNoticeDetail, ArrivalReceipt purchaseReceipt, int qty, string note, string createUserId)
 {
     this.ArrivalNoticeDetail = purchaseNoticeDetail;
     this.ArrivalReceipt      = purchaseReceipt;
     this.Qty          = qty;
     this.Note         = note;
     this.IsValid      = true;
     this.CreateUserId = createUserId;
     this.CreateDate   = DateTime.Now;
 }
Ejemplo n.º 2
0
        public virtual void AddArrivalNoticeDetail(string operatorId, int itemId, Product product, int qty)
        {
            if (this.ArrivalNoticeDetail == null)
            {
                this.ArrivalNoticeDetail = new List <ArrivalNoticeDetail>();
            }
            ArrivalNoticeDetail one = new ArrivalNoticeDetail(this, itemId, product, qty, operatorId);

            this.ArrivalNoticeDetail.Add(one);
        }