Ejemplo n.º 1
0
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblPoApInvoicesDetail args)
        {
            try
            {
                var canErpDbAt132UpdateTblPoApInvoicesDetailResult = await CanErpDbAt132.UpdateTblPoApInvoicesDetail($"{Vendor_ID}", $"{Invoice_No}", tblpoapinvoicesdetail);

                DialogService.Close(tblpoapinvoicesdetail);
            }
            catch (Exception canErpDbAt132UpdateTblPoApInvoicesDetailException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblPoApInvoicesDetail");
            }
        }
Ejemplo n.º 2
0
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblPoApInvoicesDetail args)
        {
            try
            {
                var canErpDbAt132CreateTblPoApInvoicesDetailResult = await CanErpDbAt132.CreateTblPoApInvoicesDetail(tblpoapinvoicesdetail);

                DialogService.Close(tblpoapinvoicesdetail);
            }
            catch (Exception canErpDbAt132CreateTblPoApInvoicesDetailException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblPoApInvoicesDetail!");
            }
        }
Ejemplo n.º 3
0
        protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblPoApInvoicesDetail data)
        {
            try
            {
                var canErpDbAt132DeleteTblPoApInvoicesDetailResult = await CanErpDbAt132.DeleteTblPoApInvoicesDetail($"{data.Vendor_ID}", $"{data.Invoice_No}");

                if (canErpDbAt132DeleteTblPoApInvoicesDetailResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception canErpDbAt132DeleteTblPoApInvoicesDetailException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblPoApInvoicesDetail");
            }
        }
Ejemplo n.º 4
0
        protected async void Load()
        {
            var canErpDbAt132GetTblPoVendorsResult = await CanErpDbAt132.GetTblPoVendors();

            getTblPoVendorsResult = canErpDbAt132GetTblPoVendorsResult;

            var canErpDbAt132GetTblIcInventoriesResult = await CanErpDbAt132.GetTblIcInventories();

            getTblIcInventoriesResult = canErpDbAt132GetTblIcInventoriesResult;

            var canErpDbAt132GetTblIcUnitsResult = await CanErpDbAt132.GetTblIcUnits();

            getTblIcUnitsResult = canErpDbAt132GetTblIcUnitsResult;

            tblpoapinvoicesdetail = new ErpCan.Models.CanErpDbAt132.TblPoApInvoicesDetail();
        }
Ejemplo n.º 5
0
        protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblPoApInvoicesDetail args)
        {
            var result = await DialogService.OpenAsync <EditTblPoApInvoicesDetail>("Edit Tbl Po Ap Invoices Detail", new Dictionary <string, object>() { { "Vendor_ID", args.Vendor_ID }, { "Invoice_No", args.Invoice_No } });

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