protected async void Load() { canEdit = true; var canErpDbAt132GetTblGnCityByCitySeqResult = await CanErpDbAt132.GetTblGnCityByCitySeq(int.Parse($"{City_SEQ}")); tblgncity = canErpDbAt132GetTblGnCityByCitySeqResult; }
protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnCity args) { try { var canErpDbAt132UpdateTblGnCityResult = await CanErpDbAt132.UpdateTblGnCity(int.Parse($"{City_SEQ}"), tblgncity); DialogService.Close(tblgncity); } catch (Exception canErpDbAt132UpdateTblGnCityException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblGnCity"); } }
protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnCity args) { try { var canErpDbAt132CreateTblGnCityResult = await CanErpDbAt132.CreateTblGnCity(tblgncity); DialogService.Close(tblgncity); } catch (Exception canErpDbAt132CreateTblGnCityException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblGnCity!"); } }
protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblGnCity data) { try { var canErpDbAt132DeleteTblGnCityResult = await CanErpDbAt132.DeleteTblGnCity(data.City_SEQ); if (canErpDbAt132DeleteTblGnCityResult != null) { grid0.Reload(); } } catch (Exception canErpDbAt132DeleteTblGnCityException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblGnCity"); } }
protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.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 ErpCan.Models.CanErpDbAt132.TblGnCity(); }