protected async void Load() { canEdit = true; var canErpDbAt132GetTblGnIncotermByIncotermIdResult = await CanErpDbAt132.GetTblGnIncotermByIncotermId($"{Incoterm_ID}"); tblgnincoterm = canErpDbAt132GetTblGnIncotermByIncotermIdResult; }
protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnIncoterm args) { try { var canErpDbAt132CreateTblGnIncotermResult = await CanErpDbAt132.CreateTblGnIncoterm(tblgnincoterm); DialogService.Close(tblgnincoterm); } catch (Exception canErpDbAt132CreateTblGnIncotermException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblGnIncoterm!"); } }
protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblGnIncoterm data) { try { var canErpDbAt132DeleteTblGnIncotermResult = await CanErpDbAt132.DeleteTblGnIncoterm($"{data.Incoterm_ID}"); if (canErpDbAt132DeleteTblGnIncotermResult != null) { grid0.Reload(); } } catch (Exception canErpDbAt132DeleteTblGnIncotermException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblGnIncoterm"); } }
protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblGnIncoterm args) { var result = await DialogService.OpenAsync <EditTblGnIncoterm>("Edit Tbl Gn Incoterm", new Dictionary <string, object>() { { "Incoterm_ID", args.Incoterm_ID } }); await InvokeAsync(() => { StateHasChanged(); }); }
protected async void Load() { tblgnincoterm = new ErpCan.Models.CanErpDbAt132.TblGnIncoterm(); }