protected async void Form0Submit(TblGnPaymentTerm args) { try { var otErpCreateTblGnPaymentTermResult = await OtErp.CreateTblGnPaymentTerm(tblgnpaymentterm); DialogService.Close(tblgnpaymentterm); } catch (Exception otErpCreateTblGnPaymentTermException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblGnPaymentTerm!"); } }
protected async void Form0Submit(TblGnPaymentTerm args) { try { var otErpUpdateTblGnPaymentTermResult = await OtErp.UpdateTblGnPaymentTerm(int.Parse(PaymentTerm_SEQ), tblgnpaymentterm); DialogService.Close(tblgnpaymentterm); } catch (Exception otErpUpdateTblGnPaymentTermException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblGnPaymentTerm"); } }
protected async void Load() { canEdit = true; try { var otErpGetTblGnPaymentTermByPaymentTermSeqResult = await OtErp.GetTblGnPaymentTermByPaymentTermSeq(int.Parse(PaymentTerm_SEQ)); tblgnpaymentterm = otErpGetTblGnPaymentTermByPaymentTermSeqResult; } catch (Exception otErpGetTblGnPaymentTermByPaymentTermSeqException) { } }
protected async void GridDeleteButtonClick(MouseEventArgs args, TblGnPaymentTerm data) { try { var otErpDeleteTblGnPaymentTermResult = await OtErp.DeleteTblGnPaymentTerm(data.PaymentTerm_SEQ); if (otErpDeleteTblGnPaymentTermResult != null) { grid0.Reload(); } } catch (Exception otErpDeleteTblGnPaymentTermException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblGnPaymentTerm"); } }
protected async void Load() { tblgnpaymentterm = new TblGnPaymentTerm(); }
protected async void Grid0RowSelect(TblGnPaymentTerm args) { var result = await DialogService.OpenAsync <EditTblGnPaymentTerm>("Edit Tbl Gn Payment Term", new Dictionary <string, object>() { { "PaymentTerm_SEQ", $"{args.PaymentTerm_SEQ}" } }); await InvokeAsync(() => { StateHasChanged(); }); }