protected async void Load() { canEdit = true; var canErpDbAt132GetTblGnShipViumByShipViaSeqResult = await CanErpDbAt132.GetTblGnShipViumByShipViaSeq(int.Parse($"{ShipVia_SEQ}")); tblgnshipvium = canErpDbAt132GetTblGnShipViumByShipViaSeqResult; }
protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnShipVium args) { try { var canErpDbAt132UpdateTblGnShipViumResult = await CanErpDbAt132.UpdateTblGnShipVium(int.Parse($"{ShipVia_SEQ}"), tblgnshipvium); DialogService.Close(tblgnshipvium); } catch (Exception canErpDbAt132UpdateTblGnShipViumException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblGnShipVium"); } }
protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnShipVium args) { try { var canErpDbAt132CreateTblGnShipViumResult = await CanErpDbAt132.CreateTblGnShipVium(tblgnshipvium); DialogService.Close(tblgnshipvium); } catch (Exception canErpDbAt132CreateTblGnShipViumException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblGnShipVium!"); } }
protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblGnShipVium data) { try { var canErpDbAt132DeleteTblGnShipViumResult = await CanErpDbAt132.DeleteTblGnShipVium(data.ShipVia_SEQ); if (canErpDbAt132DeleteTblGnShipViumResult != null) { grid0.Reload(); } } catch (Exception canErpDbAt132DeleteTblGnShipViumException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblGnShipVium"); } }
protected async void Load() { tblgnshipvium = new ErpCan.Models.CanErpDbAt132.TblGnShipVium(); }
protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblGnShipVium args) { var result = await DialogService.OpenAsync <EditTblGnShipVium>("Edit Tbl Gn Ship Vium", new Dictionary <string, object>() { { "ShipVia_SEQ", args.ShipVia_SEQ } }); await InvokeAsync(() => { StateHasChanged(); }); }