示例#1
0
        protected async void Load()
        {
            canEdit = true;

            var canErpDbAt132GetTblPoAccountsPayableAdjustmentByVoucherNoResult = await CanErpDbAt132.GetTblPoAccountsPayableAdjustmentByVoucherNo($"{Voucher_No}");

            tblpoaccountspayableadjustment = canErpDbAt132GetTblPoAccountsPayableAdjustmentByVoucherNoResult;
        }
示例#2
0
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblPoAccountsPayableAdjustment args)
        {
            try
            {
                var canErpDbAt132UpdateTblPoAccountsPayableAdjustmentResult = await CanErpDbAt132.UpdateTblPoAccountsPayableAdjustment($"{Voucher_No}", tblpoaccountspayableadjustment);

                DialogService.Close(tblpoaccountspayableadjustment);
            }
            catch (Exception canErpDbAt132UpdateTblPoAccountsPayableAdjustmentException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblPoAccountsPayableAdjustment");
            }
        }
示例#3
0
        protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblPoAccountsPayableAdjustment data)
        {
            try
            {
                var canErpDbAt132DeleteTblPoAccountsPayableAdjustmentResult = await CanErpDbAt132.DeleteTblPoAccountsPayableAdjustment($"{data.Voucher_No}");

                if (canErpDbAt132DeleteTblPoAccountsPayableAdjustmentResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception canErpDbAt132DeleteTblPoAccountsPayableAdjustmentException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblPoAccountsPayableAdjustment");
            }
        }
 protected async void Load()
 {
     tblpoaccountspayableadjustment = new ErpCan.Models.CanErpDbAt132.TblPoAccountsPayableAdjustment();
 }
示例#5
0
        protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblPoAccountsPayableAdjustment args)
        {
            var result = await DialogService.OpenAsync <EditTblPoAccountsPayableAdjustment>("Edit Tbl Po Accounts Payable Adjustment", new Dictionary <string, object>() { { "Voucher_No", args.Voucher_No } });

            await InvokeAsync(() => { StateHasChanged(); });
        }