protected async void Load()
        {
            var canErpDbAt132GetTblGnAddressBooksResult = await CanErpDbAt132.GetTblGnAddressBooks();

            getTblGnAddressBooksResult = canErpDbAt132GetTblGnAddressBooksResult;

            var canErpDbAt132GetTblPoOrderStatusesResult = await CanErpDbAt132.GetTblPoOrderStatuses();

            getTblPoOrderStatusesResult = canErpDbAt132GetTblPoOrderStatusesResult;

            var canErpDbAt132GetTblPoVendorsResult = await CanErpDbAt132.GetTblPoVendors();

            getTblPoVendorsResult = canErpDbAt132GetTblPoVendorsResult;

            var canErpDbAt132GetTblGnIncotermsResult = await CanErpDbAt132.GetTblGnIncoterms();

            getTblGnIncotermsResult = canErpDbAt132GetTblGnIncotermsResult;

            var canErpDbAt132GetTblGnShipViaResult = await CanErpDbAt132.GetTblGnShipVia();

            getTblGnShipViaResult = canErpDbAt132GetTblGnShipViaResult;

            var canErpDbAt132GetTblGnPaymentTermsResult = await CanErpDbAt132.GetTblGnPaymentTerms();

            getTblGnPaymentTermsResult = canErpDbAt132GetTblGnPaymentTermsResult;

            var canErpDbAt132GetTblGnPaymentTypesResult = await CanErpDbAt132.GetTblGnPaymentTypes();

            getTblGnPaymentTypesResult = canErpDbAt132GetTblGnPaymentTypesResult;

            tblpopurchaseorder = new ErpCan.Models.CanErpDbAt132.TblPoPurchaseOrder();
        }
        protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblPoPurchaseOrder args)
        {
            master = args;

            var canErpDbAt132GetTblPoPurchaseOrderDetailsResult = await CanErpDbAt132.GetTblPoPurchaseOrderDetails(new Query()
            {
                Filter = $"i => i.PO_FK == '{args.PO_ID}'"
            });

            TblPoPurchaseOrderDetails = canErpDbAt132GetTblPoPurchaseOrderDetailsResult;
        }
        protected async void Grid0RowExpand(ErpCan.Models.CanErpDbAt132.TblPoPurchaseOrder args)
        {
            master = args;

            var canErpDbAt132GetTblPoPurchaseOrderDetailsResult = await CanErpDbAt132.GetTblPoPurchaseOrderDetails(new Query()
            {
                Filter = $"i => i.PO_FK == '{args.PO_ID}'"
            });

            canErpDbAt132GetTblPoPurchaseOrderDetailsResult.ToList().ForEach(args.TblPoPurchaseOrderDetails.Add);
        }
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblPoPurchaseOrder args)
        {
            try
            {
                var canErpDbAt132CreateTblPoPurchaseOrderResult = await CanErpDbAt132.CreateTblPoPurchaseOrder(tblpopurchaseorder);

                DialogService.Close(tblpopurchaseorder);
            }
            catch (Exception canErpDbAt132CreateTblPoPurchaseOrderException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblPoPurchaseOrder!");
            }
        }
        protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblPoPurchaseOrder data)
        {
            try
            {
                var canErpDbAt132DeleteTblPoPurchaseOrderResult = await CanErpDbAt132.DeleteTblPoPurchaseOrder($"{data.PO_ID}");

                if (canErpDbAt132DeleteTblPoPurchaseOrderResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception canErpDbAt132DeleteTblPoPurchaseOrderException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblPoPurchaseOrder");
            }
        }
        protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblPoPurchaseOrder args)
        {
            var result = await DialogService.OpenAsync <EditTblPoPurchaseOrder>("Edit Tbl Po Purchase Order", new Dictionary <string, object>() { { "PO_ID", args.PO_ID } });

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