protected async void Load() { canEdit = true; var canErpDbAt132GetTblGnProductByProductSeqResult = await CanErpDbAt132.GetTblGnProductByProductSeq(int.Parse($"{Product_SEQ}")); tblgnproduct = canErpDbAt132GetTblGnProductByProductSeqResult; }
protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnProduct args) { try { var canErpDbAt132UpdateTblGnProductResult = await CanErpDbAt132.UpdateTblGnProduct(int.Parse($"{Product_SEQ}"), tblgnproduct); DialogService.Close(tblgnproduct); } catch (Exception canErpDbAt132UpdateTblGnProductException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblGnProduct"); } }
protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnProduct args) { try { var canErpDbAt132CreateTblGnProductResult = await CanErpDbAt132.CreateTblGnProduct(tblgnproduct); DialogService.Close(tblgnproduct); } catch (Exception canErpDbAt132CreateTblGnProductException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblGnProduct!"); } }
protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblGnProduct data) { try { var canErpDbAt132DeleteTblGnProductResult = await CanErpDbAt132.DeleteTblGnProduct(data.Product_SEQ); if (canErpDbAt132DeleteTblGnProductResult != null) { grid0.Reload(); } } catch (Exception canErpDbAt132DeleteTblGnProductException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblGnProduct"); } }
protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblGnProduct args) { var result = await DialogService.OpenAsync <EditTblGnProduct>("Edit Tbl Gn Product", new Dictionary <string, object>() { { "Product_SEQ", args.Product_SEQ } }); await InvokeAsync(() => { StateHasChanged(); }); }
protected async void Load() { tblgnproduct = new ErpCan.Models.CanErpDbAt132.TblGnProduct(); }