protected async void Load() { canEdit = true; var canErpDbAt132GetTblIcUnitByUnitSeqResult = await CanErpDbAt132.GetTblIcUnitByUnitSeq(int.Parse($"{Unit_SEQ}")); tblicunit = canErpDbAt132GetTblIcUnitByUnitSeqResult; }
protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblIcUnit args) { try { var canErpDbAt132CreateTblIcUnitResult = await CanErpDbAt132.CreateTblIcUnit(tblicunit); DialogService.Close(tblicunit); } catch (Exception canErpDbAt132CreateTblIcUnitException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblIcUnit!"); } }
protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblIcUnit args) { try { var canErpDbAt132UpdateTblIcUnitResult = await CanErpDbAt132.UpdateTblIcUnit(int.Parse($"{Unit_SEQ}"), tblicunit); DialogService.Close(tblicunit); } catch (Exception canErpDbAt132UpdateTblIcUnitException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblIcUnit"); } }
protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblIcUnit data) { try { var canErpDbAt132DeleteTblIcUnitResult = await CanErpDbAt132.DeleteTblIcUnit(data.Unit_SEQ); if (canErpDbAt132DeleteTblIcUnitResult != null) { grid0.Reload(); } } catch (Exception canErpDbAt132DeleteTblIcUnitException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblIcUnit"); } }
protected async void Load() { tblicunit = new ErpCan.Models.CanErpDbAt132.TblIcUnit(); }
protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblIcUnit args) { var result = await DialogService.OpenAsync <EditTblIcUnit>("Edit Tbl Ic Unit", new Dictionary <string, object>() { { "Unit_SEQ", args.Unit_SEQ } }); await InvokeAsync(() => { StateHasChanged(); }); }