protected async void Form0Submit(TblSoCustomer args)
        {
            try
            {
                var otErpCreateTblSoCustomerResult = await OtErp.CreateTblSoCustomer(tblsocustomer);

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

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

            getTblGnAddressBooksResult = otErpGetTblGnAddressBooksResult;

            var otErpGetTblGnPaymentTermsResult = await OtErp.GetTblGnPaymentTerms();

            getTblGnPaymentTermsResult = otErpGetTblGnPaymentTermsResult;

            var otErpGetTblGnPaymentTypesResult = await OtErp.GetTblGnPaymentTypes();

            getTblGnPaymentTypesResult = otErpGetTblGnPaymentTypesResult;

            tblsocustomer = new TblSoCustomer();
        }
        protected async void GridDeleteButtonClick(MouseEventArgs args, TblSoCustomer data)
        {
            try
            {
                var otErpDeleteTblSoCustomerResult = await OtErp.DeleteTblSoCustomer(data.Customer_SEQ);

                if (otErpDeleteTblSoCustomerResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception otErpDeleteTblSoCustomerException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblSoCustomer");
            }
        }
예제 #5
0
        protected async void Load()
        {
            var otErpGetViwGnAddBookCustsResult = await OtErp.GetViwGnAddBookCusts();

            CustomersResult = otErpGetViwGnAddBookCustsResult;

            var otErpGetTblGnPaymentTermsResult = await OtErp.GetTblGnPaymentTerms();

            PaymentTermsResult = otErpGetTblGnPaymentTermsResult;

            var otErpGetTblGnPaymentTypesResult = await OtErp.GetTblGnPaymentTypes();

            PaymentTypesResult = otErpGetTblGnPaymentTypesResult;

            var otErpGetViwGnAddBookEmpsResult = await OtErp.GetViwGnAddBookEmps();

            EmployeesResult = otErpGetViwGnAddBookEmpsResult;

            tblsocustomer = new TblSoCustomer();
        }
        protected async void Grid0RowSelect(TblSoCustomer args)
        {
            var result = await DialogService.OpenAsync <EditTblSoCustomer>("Edit Tbl So Customer", new Dictionary <string, object>() { { "Customer_SEQ", $"{args.Customer_SEQ}" } });

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