Exemplo n.º 1
0
 public SupplierQuoteDTO(SupplierQuote supplierQuote)
 {
     this.QuoteID       = supplierQuote.QuoteID;
     this.IssueID       = supplierQuote.IssueID;
     this.SupplierID    = supplierQuote.SupplierID;
     this.Price         = supplierQuote.Price;
     this.EffectiveDate = supplierQuote.EffectiveDate;
     this.Supplier      = supplierQuote.Supplier;
 }
Exemplo n.º 2
0
        public void placeOrder(int issueID, Int16 quantity, int supplierID)
        {
            Issue issue = new Issue();

            issue = issueRepo.GetById(issueID);
            var someissueID = issue.IssueID;
            //Check for supplier quote
            SupplierQuote theQuote    = supplierQuoteRepo.getSupplierQuote(issueID, supplierID);
            Supplier      theSupplier = supplierRepo.GetById(theQuote.SupplierID);
            Order         newOrder    = new Order();

            newOrder.IssueID    = issue.IssueID;
            newOrder.OrderDate  = DateTime.Now;
            newOrder.QtyOrdered = quantity;
            newOrder.Total      = quantity * theQuote.Price;
            newOrder.SupplierID = theSupplier.SupplierID;
            //These next few fields and their info must come from the supplier API
            newOrder.ShipmentRef    = null;
            newOrder.ShipmentDate   = null;
            newOrder.DeliveryStatus = "Pending Payment";
            orderRepo.Add(newOrder);
        }
Exemplo n.º 3
0
 /// <summary>
 /// 修改报价单信息
 /// </summary>
 /// <param name="supplierQuote"></param>
 /// <returns></returns>
 public bool PostQuoteStatusSave(SupplierQuote supplierQuote)
 {
     return(_parityBLL.PostQuoteStatusSave(supplierQuote));
 }
Exemplo n.º 4
0
 /// <summary>
 /// 保存报价表信息
 /// </summary>
 /// <param name="supplierQuote"></param>
 /// <returns></returns>
 public bool PostQuoteSave(SupplierQuote supplierQuote)
 {
     return(_quoteBll.PostQuoteSave(supplierQuote));
 }