Ejemplo n.º 1
0
        protected async System.Threading.Tasks.Task Load()
        {
            var dbAtVdc2GetTblPoPurchaseOrdersResult = await DbAtVdc2.GetTblPoPurchaseOrders();

            getTblPoPurchaseOrdersResult = dbAtVdc2GetTblPoPurchaseOrdersResult;

            var dbAtVdc2GetTblIcInventoriesResult = await DbAtVdc2.GetTblIcInventories();

            getTblIcInventoriesResult = dbAtVdc2GetTblIcInventoriesResult;

            tblpopurchaseorderdetail = new CanErp2.Models.DbAtVdc2.TblPoPurchaseOrderDetail();
        }
Ejemplo n.º 2
0
        protected async System.Threading.Tasks.Task Form0Submit(CanErp2.Models.DbAtVdc2.TblPoPurchaseOrderDetail args)
        {
            try
            {
                var dbAtVdc2UpdateTblPoPurchaseOrderDetailResult = await DbAtVdc2.UpdateTblPoPurchaseOrderDetail($"{PO_FK}", int.Parse($"{Inventory_FK}"), tblpopurchaseorderdetail);

                DialogService.Close(tblpopurchaseorderdetail);
            }
            catch (Exception dbAtVdc2UpdateTblPoPurchaseOrderDetailException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblPoPurchaseOrderDetail");
            }
        }
Ejemplo n.º 3
0
        protected async System.Threading.Tasks.Task Form0Submit(CanErp2.Models.DbAtVdc2.TblPoPurchaseOrderDetail args)
        {
            try
            {
                var dbAtVdc2CreateTblPoPurchaseOrderDetailResult = await DbAtVdc2.CreateTblPoPurchaseOrderDetail(tblpopurchaseorderdetail);

                DialogService.Close(tblpopurchaseorderdetail);
            }
            catch (Exception dbAtVdc2CreateTblPoPurchaseOrderDetailException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblPoPurchaseOrderDetail!");
            }
        }
Ejemplo n.º 4
0
        protected async System.Threading.Tasks.Task Grid0RowSelect(CanErp2.Models.DbAtVdc2.TblPoPurchaseOrderDetail args)
        {
            var result = await DialogService.OpenAsync <EditTblPoPurchaseOrderDetail>("Edit Tbl Po Purchase Order Detail", new Dictionary <string, object>() { { "PO_FK", args.PO_FK }, { "Inventory_FK", args.Inventory_FK } });

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