Beispiel #1
0
        protected async void Load()
        {
            var canErpDbAt132GetTblPoVendorsResult = await CanErpDbAt132.GetTblPoVendors();

            getTblPoVendorsResult = canErpDbAt132GetTblPoVendorsResult;

            tblpoapinvoice = new ErpCan.Models.CanErpDbAt132.TblPoApInvoice();
        }
Beispiel #2
0
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblPoApInvoice args)
        {
            try
            {
                var canErpDbAt132CreateTblPoApInvoiceResult = await CanErpDbAt132.CreateTblPoApInvoice(tblpoapinvoice);

                DialogService.Close(tblpoapinvoice);
            }
            catch (Exception canErpDbAt132CreateTblPoApInvoiceException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblPoApInvoice!");
            }
        }
Beispiel #3
0
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblPoApInvoice args)
        {
            try
            {
                var canErpDbAt132UpdateTblPoApInvoiceResult = await CanErpDbAt132.UpdateTblPoApInvoice($"{Vendor_ID}", $"{Invoice_No}", tblpoapinvoice);

                DialogService.Close(tblpoapinvoice);
            }
            catch (Exception canErpDbAt132UpdateTblPoApInvoiceException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblPoApInvoice");
            }
        }
        protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblPoApInvoice data)
        {
            try
            {
                var canErpDbAt132DeleteTblPoApInvoiceResult = await CanErpDbAt132.DeleteTblPoApInvoice($"{data.Vendor_ID}", $"{data.Invoice_No}");

                if (canErpDbAt132DeleteTblPoApInvoiceResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception canErpDbAt132DeleteTblPoApInvoiceException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblPoApInvoice");
            }
        }
        protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblPoApInvoice args)
        {
            var result = await DialogService.OpenAsync <EditTblPoApInvoice>("Edit Tbl Po Ap Invoice", new Dictionary <string, object>() { { "Vendor_ID", args.Vendor_ID }, { "Invoice_No", args.Invoice_No } });

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