public void RejectQuote(int quoteID) { DataSvc.Quote q = client.GetQuote(quoteID); q.Status = DataSvc.StatusCode.Rejected; client.ModifyQuote(q); }
public void ApproveQuote(int quoteID) { DataSvc.Quote q = client.GetQuote(quoteID); if (q.Status == DataSvc.StatusCode.New) { q.Status = DataSvc.StatusCode.ApprovedCheckStock; } else if (q.Status == DataSvc.StatusCode.ETAPendingApproval) { q.Status = DataSvc.StatusCode.ApprovedETA; } client.ModifyQuote(q); }
public void ModifyQuote(DataSvc.Quote quote) { quote.TotalServiceTime = calcServiceTime(quote.Items); client.ModifyQuote(quote); }
public int AddNewQuote(DataSvc.Quote quote) { quote.TotalServiceTime = calcServiceTime(quote.Items); return(client.AddNewQuote(quote)); }