protected async void Form0Submit(TblGnShipVium args) { try { var otErpUpdateTblGnShipViumResult = await OtErp.UpdateTblGnShipVium(int.Parse(ShipVia_SEQ), tblgnshipvium); DialogService.Close(tblgnshipvium); } catch (Exception otErpUpdateTblGnShipViumException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblGnShipVium"); } }
protected async void Form0Submit(TblGnShipVium args) { try { var otErpCreateTblGnShipViumResult = await OtErp.CreateTblGnShipVium(tblgnshipvium); DialogService.Close(tblgnshipvium); } catch (Exception otErpCreateTblGnShipViumException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblGnShipVium!"); } }
protected async void Load() { canEdit = true; try { var otErpGetTblGnShipViumByShipViaSeqResult = await OtErp.GetTblGnShipViumByShipViaSeq(int.Parse(ShipVia_SEQ)); tblgnshipvium = otErpGetTblGnShipViumByShipViaSeqResult; } catch (Exception otErpGetTblGnShipViumByShipViaSeqException) { } }
protected async void GridDeleteButtonClick(MouseEventArgs args, TblGnShipVium data) { try { var otErpDeleteTblGnShipViumResult = await OtErp.DeleteTblGnShipVium(data.ShipVia_SEQ); if (otErpDeleteTblGnShipViumResult != null) { grid0.Reload(); } } catch (Exception otErpDeleteTblGnShipViumException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblGnShipVium"); } }
protected async void Load() { tblgnshipvium = new TblGnShipVium(); }
protected async void Grid0RowSelect(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(); }); }