protected async void Load() { canEdit = true; var canErpDbAt132GetTblGnPaymentTypeByPaymentTypeSeqResult = await CanErpDbAt132.GetTblGnPaymentTypeByPaymentTypeSeq(int.Parse($"{PaymentType_SEQ}")); tblgnpaymenttype = canErpDbAt132GetTblGnPaymentTypeByPaymentTypeSeqResult; }
protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnPaymentType args) { try { var canErpDbAt132CreateTblGnPaymentTypeResult = await CanErpDbAt132.CreateTblGnPaymentType(tblgnpaymenttype); DialogService.Close(tblgnpaymenttype); } catch (Exception canErpDbAt132CreateTblGnPaymentTypeException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblGnPaymentType!"); } }
protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnPaymentType args) { try { var canErpDbAt132UpdateTblGnPaymentTypeResult = await CanErpDbAt132.UpdateTblGnPaymentType(int.Parse($"{PaymentType_SEQ}"), tblgnpaymenttype); DialogService.Close(tblgnpaymenttype); } catch (Exception canErpDbAt132UpdateTblGnPaymentTypeException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblGnPaymentType"); } }
protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblGnPaymentType data) { try { var canErpDbAt132DeleteTblGnPaymentTypeResult = await CanErpDbAt132.DeleteTblGnPaymentType(data.PaymentType_SEQ); if (canErpDbAt132DeleteTblGnPaymentTypeResult != null) { grid0.Reload(); } } catch (Exception canErpDbAt132DeleteTblGnPaymentTypeException) { NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblGnPaymentType"); } }
protected async void Load() { tblgnpaymenttype = new ErpCan.Models.CanErpDbAt132.TblGnPaymentType(); }
protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblGnPaymentType args) { var result = await DialogService.OpenAsync <EditTblGnPaymentType>("Edit Tbl Gn Payment Type", new Dictionary <string, object>() { { "PaymentType_SEQ", args.PaymentType_SEQ } }); await InvokeAsync(() => { StateHasChanged(); }); }