Ejemplo n.º 1
0
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblSoOrderDetail args)
        {
            try
            {
                var canErpDbAt132CreateTblSoOrderDetailResult = await CanErpDbAt132.CreateTblSoOrderDetail(tblsoorderdetail);

                DialogService.Close(tblsoorderdetail);
            }
            catch (Exception canErpDbAt132CreateTblSoOrderDetailException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblSoOrderDetail!");
            }
        }
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblSoOrderDetail args)
        {
            try
            {
                var canErpDbAt132UpdateTblSoOrderDetailResult = await CanErpDbAt132.UpdateTblSoOrderDetail(int.Parse($"{SODetail_SEQ}"), tblsoorderdetail);

                DialogService.Close(tblsoorderdetail);
            }
            catch (Exception canErpDbAt132UpdateTblSoOrderDetailException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblSoOrderDetail");
            }
        }
Ejemplo n.º 3
0
        protected async void Load()
        {
            var canErpDbAt132GetTblSoOrderDetailStatusesResult = await CanErpDbAt132.GetTblSoOrderDetailStatuses();

            getTblSoOrderDetailStatusesResult = canErpDbAt132GetTblSoOrderDetailStatusesResult;

            var canErpDbAt132GetTblSoSalesOrdersResult = await CanErpDbAt132.GetTblSoSalesOrders();

            getTblSoSalesOrdersResult = canErpDbAt132GetTblSoSalesOrdersResult;

            var canErpDbAt132GetTblIcInventoriesResult = await CanErpDbAt132.GetTblIcInventories();

            getTblIcInventoriesResult = canErpDbAt132GetTblIcInventoriesResult;

            tblsoorderdetail = new ErpCan.Models.CanErpDbAt132.TblSoOrderDetail();
        }
Ejemplo n.º 4
0
        protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblSoOrderDetail data)
        {
            try
            {
                var canErpDbAt132DeleteTblSoOrderDetailResult = await CanErpDbAt132.DeleteTblSoOrderDetail(data.SODetail_SEQ);

                if (canErpDbAt132DeleteTblSoOrderDetailResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception canErpDbAt132DeleteTblSoOrderDetailException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblSoOrderDetail");
            }
        }
Ejemplo n.º 5
0
        protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblSoOrderDetail args)
        {
            var result = await DialogService.OpenAsync <EditTblSoOrderDetail>("Edit Tbl So Order Detail", new Dictionary <string, object>() { { "SODetail_SEQ", args.SODetail_SEQ } });

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