protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblSoCustomer args)
        {
            try
            {
                var canErpDbAt132CreateTblSoCustomerResult = await CanErpDbAt132.CreateTblSoCustomer(tblsocustomer);

                DialogService.Close(tblsocustomer);
            }
            catch (Exception canErpDbAt132CreateTblSoCustomerException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblSoCustomer!");
            }
        }
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblSoCustomer args)
        {
            try
            {
                var canErpDbAt132UpdateTblSoCustomerResult = await CanErpDbAt132.UpdateTblSoCustomer(int.Parse($"{Customer_SEQ}"), tblsocustomer);

                DialogService.Close(tblsocustomer);
            }
            catch (Exception canErpDbAt132UpdateTblSoCustomerException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblSoCustomer");
            }
        }
        protected async void Load()
        {
            var canErpDbAt132GetTblGnAddressBooksResult = await CanErpDbAt132.GetTblGnAddressBooks();

            getTblGnAddressBooksResult = canErpDbAt132GetTblGnAddressBooksResult;

            var canErpDbAt132GetTblGnPaymentTermsResult = await CanErpDbAt132.GetTblGnPaymentTerms();

            getTblGnPaymentTermsResult = canErpDbAt132GetTblGnPaymentTermsResult;

            var canErpDbAt132GetTblGnPaymentTypesResult = await CanErpDbAt132.GetTblGnPaymentTypes();

            getTblGnPaymentTypesResult = canErpDbAt132GetTblGnPaymentTypesResult;

            tblsocustomer = new ErpCan.Models.CanErpDbAt132.TblSoCustomer();
        }
Example #4
0
        protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblSoCustomer data)
        {
            try
            {
                var canErpDbAt132DeleteTblSoCustomerResult = await CanErpDbAt132.DeleteTblSoCustomer(data.Customer_SEQ);

                if (canErpDbAt132DeleteTblSoCustomerResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception canErpDbAt132DeleteTblSoCustomerException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblSoCustomer");
            }
        }
Example #5
0
        protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblSoCustomer args)
        {
            var result = await DialogService.OpenAsync <EditTblSoCustomer>("Edit Tbl So Customer", new Dictionary <string, object>() { { "Customer_SEQ", args.Customer_SEQ } });

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