KWD 2 月之前
父節點
當前提交
9b036c6eb3
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1 0
      TeamAAS-VM/Core/Management.cs
  2. 2 1
      TeamAAS-VM/ViewModels/Statistics/ProductionStatementViewModel.cs

+ 1 - 0
TeamAAS-VM/Core/Management.cs

@@ -5251,6 +5251,7 @@ namespace TeamAAS_VP.Core
             {
                 //获取当前产品
                 var currentproduct = _productService.GetCurrentProduct();
+                CurrentProduct = _productService.GetCurrentProduct();
                 if (currentproduct == null) return;
                 TotalQuantity = await _systemDatabaseService.GetOverallProductionAsync(currentproduct.Name);
 

+ 2 - 1
TeamAAS-VM/ViewModels/Statistics/ProductionStatementViewModel.cs

@@ -153,10 +153,11 @@ namespace TeamAAS_VP.ViewModels.Statistics
 
         #endregion
 
-        public ProductionStatementViewModel(IContainerProvider container, ISystemDatabaseService systemDatabaseService)
+        public ProductionStatementViewModel(IContainerProvider container, ISystemDatabaseService systemDatabaseService, IProductService productService)
         {
             _container = container;
             _systemDatabaseService = systemDatabaseService;
+            _productService = productService;
         }
 
         #region 方法