protected async void Load()
        {
            canEdit = true;

            var canErpDbAt132GetTblIcTransactionTypeByTransactionIdResult = await CanErpDbAt132.GetTblIcTransactionTypeByTransactionId($"{Transaction_ID}");

            tblictransactiontype = canErpDbAt132GetTblIcTransactionTypeByTransactionIdResult;
        }
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblIcTransactionType args)
        {
            try
            {
                var canErpDbAt132CreateTblIcTransactionTypeResult = await CanErpDbAt132.CreateTblIcTransactionType(tblictransactiontype);

                DialogService.Close(tblictransactiontype);
            }
            catch (Exception canErpDbAt132CreateTblIcTransactionTypeException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblIcTransactionType!");
            }
        }
コード例 #3
0
        protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblIcTransactionType data)
        {
            try
            {
                var canErpDbAt132DeleteTblIcTransactionTypeResult = await CanErpDbAt132.DeleteTblIcTransactionType($"{data.Transaction_ID}");

                if (canErpDbAt132DeleteTblIcTransactionTypeResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception canErpDbAt132DeleteTblIcTransactionTypeException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblIcTransactionType");
            }
        }
コード例 #4
0
        protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblIcTransactionType args)
        {
            var result = await DialogService.OpenAsync <EditTblIcTransactionType>("Edit Tbl Ic Transaction Type", new Dictionary <string, object>() { { "Transaction_ID", args.Transaction_ID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
 protected async void Load()
 {
     tblictransactiontype = new ErpCan.Models.CanErpDbAt132.TblIcTransactionType();
 }