private async void CloseWait(object sender, RoutedEventArgs e) { DocAction.Status = "waiting_for_administration"; await B10DH.SaveDocumentAction(DocAction); this.Close(); }
private async void FinishPurchaseInvoiceLine(object sender, RoutedEventArgs e) { DocAction.PurchaseInvoice.InvoiceLines = PurchaseInvoiceLineGrid.ItemsSource as List <InvoiceLine>; DocAction.Status = "done"; DocAction.Result = "success"; await B10DH.SaveDocumentAction(DocAction); this.Close(); }
private async void FinishPurchaseInvoiceDueDate(object sender, RoutedEventArgs e) { if (GetPurchaseInvoiceDueDate.SelectedDate != null) { DocAction.PurchaseInvoice.PaymentDueDate = (DateTime)GetPurchaseInvoiceDueDate.SelectedDate; DocAction.Status = "done"; DocAction.Result = "success"; await B10DH.SaveDocumentAction(DocAction); } this.Close(); }
private async void FinishPostPurchaseInvoice(object sender, RoutedEventArgs e) { DocAction.PurchaseInvoice.AdministrationCode = PostPurchaseInvoiceAdminitrationCode.Text; if (PostPurchaseInvoiceDueDate.SelectedDate != null) { DocAction.PurchaseInvoice.PaymentDueDate = (DateTime)PostPurchaseInvoiceDueDate.SelectedDate; } DocAction.Status = "done"; DocAction.Result = "success"; await B10DH.SaveDocumentAction(DocAction); this.Close(); }
private async void FinishUnblockInvoice(object sender, RoutedEventArgs e) { DocAction.Status = "done"; if (!string.IsNullOrEmpty(UnblockInvoiceText.Text)) { DocAction.Message = UnblockInvoiceText.Text; DocAction.Result = "success_warning"; } else { DocAction.Result = "success"; } await B10DH.SaveDocumentAction(DocAction); this.Close(); }