Example #1
0
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblSoSalesOrder args)
        {
            try
            {
                var canErpDbAt132CreateTblSoSalesOrderResult = await CanErpDbAt132.CreateTblSoSalesOrder(tblsosalesorder);

                DialogService.Close(tblsosalesorder);
            }
            catch (Exception canErpDbAt132CreateTblSoSalesOrderException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblSoSalesOrder!");
            }
        }
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblSoSalesOrder args)
        {
            try
            {
                var canErpDbAt132UpdateTblSoSalesOrderResult = await CanErpDbAt132.UpdateTblSoSalesOrder(int.Parse($"{SO_SEQ}"), tblsosalesorder);

                DialogService.Close(tblsosalesorder);
            }
            catch (Exception canErpDbAt132UpdateTblSoSalesOrderException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblSoSalesOrder");
            }
        }
        protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblSoSalesOrder data)
        {
            try
            {
                var canErpDbAt132DeleteTblSoSalesOrderResult = await CanErpDbAt132.DeleteTblSoSalesOrder(data.SO_SEQ);

                if (canErpDbAt132DeleteTblSoSalesOrderResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception canErpDbAt132DeleteTblSoSalesOrderException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblSoSalesOrder");
            }
        }
Example #4
0
        protected async void Load()
        {
            var canErpDbAt132GetTblSoOrderStatusesResult = await CanErpDbAt132.GetTblSoOrderStatuses();

            getTblSoOrderStatusesResult = canErpDbAt132GetTblSoOrderStatusesResult;

            var canErpDbAt132GetTblSoCustomersResult = await CanErpDbAt132.GetTblSoCustomers();

            getTblSoCustomersResult = canErpDbAt132GetTblSoCustomersResult;

            var canErpDbAt132GetTblGnShipViaResult = await CanErpDbAt132.GetTblGnShipVia();

            getTblGnShipViaResult = canErpDbAt132GetTblGnShipViaResult;

            var canErpDbAt132GetTblGnPaymentTermsResult = await CanErpDbAt132.GetTblGnPaymentTerms();

            getTblGnPaymentTermsResult = canErpDbAt132GetTblGnPaymentTermsResult;

            var canErpDbAt132GetTblGnPaymentTypesResult = await CanErpDbAt132.GetTblGnPaymentTypes();

            getTblGnPaymentTypesResult = canErpDbAt132GetTblGnPaymentTypesResult;

            tblsosalesorder = new ErpCan.Models.CanErpDbAt132.TblSoSalesOrder();
        }
        protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblSoSalesOrder args)
        {
            var result = await DialogService.OpenAsync <EditTblSoSalesOrder>("Edit Tbl So Sales Order", new Dictionary <string, object>() { { "SO_SEQ", args.SO_SEQ } });

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