protected async void Load() { var canErpDbAt132GetTblGnAddressBooksResult = await CanErpDbAt132.GetTblGnAddressBooks(); getTblGnAddressBooksResult = canErpDbAt132GetTblGnAddressBooksResult; tblpocashdisbursement = new ErpCan.Models.CanErpDbAt132.TblPoCashDisbursement(); }
protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblPoCashDisbursement args) { try { var canErpDbAt132UpdateTblPoCashDisbursementResult = await CanErpDbAt132.UpdateTblPoCashDisbursement($"{PO_CashDisb_No}", tblpocashdisbursement); DialogService.Close(tblpocashdisbursement); } catch (Exception canErpDbAt132UpdateTblPoCashDisbursementException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblPoCashDisbursement"); } }
protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblPoCashDisbursement data) { try { var canErpDbAt132DeleteTblPoCashDisbursementResult = await CanErpDbAt132.DeleteTblPoCashDisbursement($"{data.PO_CashDisb_No}"); if (canErpDbAt132DeleteTblPoCashDisbursementResult != null) { grid0.Reload(); } } catch (Exception canErpDbAt132DeleteTblPoCashDisbursementException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblPoCashDisbursement"); } }
protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblPoCashDisbursement args) { var result = await DialogService.OpenAsync <EditTblPoCashDisbursement>("Edit Tbl Po Cash Disbursement", new Dictionary <string, object>() { { "PO_CashDisb_No", args.PO_CashDisb_No } }); await InvokeAsync(() => { StateHasChanged(); }); }