protected async void Form0Submit(TblGnGender args) { try { var otErpUpdateTblGnGenderResult = await OtErp.UpdateTblGnGender(int.Parse(Gender_SEQ), tblgngender); DialogService.Close(tblgngender); } catch (Exception otErpUpdateTblGnGenderException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblGnGender"); } }
protected async void Form0Submit(TblGnGender args) { try { var otErpCreateTblGnGenderResult = await OtErp.CreateTblGnGender(tblgngender); DialogService.Close(tblgngender); } catch (Exception otErpCreateTblGnGenderException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblGnGender!"); } }
protected async void Load() { canEdit = true; try { var otErpGetTblGnGenderByGenderSeqResult = await OtErp.GetTblGnGenderByGenderSeq(int.Parse(Gender_SEQ)); tblgngender = otErpGetTblGnGenderByGenderSeqResult; } catch (Exception otErpGetTblGnGenderByGenderSeqException) { } }
protected async void GridDeleteButtonClick(MouseEventArgs args, TblGnGender data) { try { var otErpDeleteTblGnGenderResult = await OtErp.DeleteTblGnGender(data.Gender_SEQ); if (otErpDeleteTblGnGenderResult != null) { grid0.Reload(); } } catch (Exception otErpDeleteTblGnGenderException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblGnGender"); } }
protected async void Grid0RowSelect(TblGnGender args) { var result = await DialogService.OpenAsync <EditTblGnGender>("Edit Tbl Gn Gender", new Dictionary <string, object>() { { "Gender_SEQ", $"{args.Gender_SEQ}" } }); await InvokeAsync(() => { StateHasChanged(); }); }
protected async void Load() { tblgngender = new TblGnGender(); }