protected async void Form0Submit(TblGnPaymentType args) { try { var otErpCreateTblGnPaymentTypeResult = await OtErp.CreateTblGnPaymentType(tblgnpaymenttype); DialogService.Close(tblgnpaymenttype); } catch (Exception otErpCreateTblGnPaymentTypeException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblGnPaymentType!"); } }
protected async void Form0Submit(TblGnPaymentType args) { try { var otErpUpdateTblGnPaymentTypeResult = await OtErp.UpdateTblGnPaymentType(int.Parse(PaymentType_SEQ), tblgnpaymenttype); DialogService.Close(tblgnpaymenttype); } catch (Exception otErpUpdateTblGnPaymentTypeException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblGnPaymentType"); } }
protected async void Load() { canEdit = true; try { var otErpGetTblGnPaymentTypeByPaymentTypeSeqResult = await OtErp.GetTblGnPaymentTypeByPaymentTypeSeq(int.Parse(PaymentType_SEQ)); tblgnpaymenttype = otErpGetTblGnPaymentTypeByPaymentTypeSeqResult; } catch (Exception otErpGetTblGnPaymentTypeByPaymentTypeSeqException) { } }
protected async void GridDeleteButtonClick(MouseEventArgs args, TblGnPaymentType data) { try { var otErpDeleteTblGnPaymentTypeResult = await OtErp.DeleteTblGnPaymentType(data.PaymentType_SEQ); if (otErpDeleteTblGnPaymentTypeResult != null) { grid0.Reload(); } } catch (Exception otErpDeleteTblGnPaymentTypeException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblGnPaymentType"); } }
protected async void Load() { tblgnpaymenttype = new TblGnPaymentType(); }
protected async void Grid0RowSelect(TblGnPaymentType args) { var result = await DialogService.OpenAsync <EditTblGnPaymentType>("Edit Tbl Gn Payment Type", new Dictionary <string, object>() { { "PaymentType_SEQ", $"{args.PaymentType_SEQ}" } }); await InvokeAsync(() => { StateHasChanged(); }); }