protected async void Form0Submit(TblGnCity args) { try { var otErpCreateTblGnCityResult = await OtErp.CreateTblGnCity(tblgncity); DialogService.Close(tblgncity); } catch (Exception otErpCreateTblGnCityException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblGnCity!"); } }
protected async void Form0Submit(TblGnCity args) { try { var otErpUpdateTblGnCityResult = await OtErp.UpdateTblGnCity(int.Parse(City_SEQ), tblgncity); DialogService.Close(tblgncity); } catch (Exception otErpUpdateTblGnCityException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblGnCity"); } }
protected async void Load() { canEdit = true; try { var otErpGetTblGnCityByCitySeqResult = await OtErp.GetTblGnCityByCitySeq(int.Parse(City_SEQ)); tblgncity = otErpGetTblGnCityByCitySeqResult; } catch (Exception otErpGetTblGnCityByCitySeqException) { } }
protected async void GridDeleteButtonClick(MouseEventArgs args, TblGnCity data) { try { var otErpDeleteTblGnCityResult = await OtErp.DeleteTblGnCity(data.City_SEQ); if (otErpDeleteTblGnCityResult != null) { grid0.Reload(); } } catch (Exception otErpDeleteTblGnCityException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblGnCity"); } }
protected async void Grid0RowSelect(TblGnCity args) { var result = await DialogService.OpenAsync <EditTblGnCity>("Edit Tbl Gn City", new Dictionary <string, object>() { { "City_SEQ", $"{args.City_SEQ}" } }); await InvokeAsync(() => { StateHasChanged(); }); }
protected async void Load() { tblgncity = new TblGnCity(); }