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

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

            tblpoaccountspayableadjustment = canErpDbAt132GetTblPoAccountsPayableAdjustmentByVoucherNoResult;
        }
Beispiel #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");
            }
        }
Beispiel #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();
 }
Beispiel #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(); });
        }