This commit is contained in:
sc committed 2022-02-20 21:35:10 +08:00
commit 06a4257126
6 files changed
+131 -11

No files matched your search

+31 -2
View File
@@ -1,4 +1,6 @@
using System;
using GalaSoft.MvvmLight;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -6,7 +8,34 @@ using System.Threading.Tasks;
namespace Audit.ViewModel
{
internal class StuffViewModel
///<Summary>
/// StuffViewModel
///</Summary>
public class StuffViewModel : ViewModelBase
{
private List<Product> products = new List<Product>();
/// <summary>
/// 所有工单
/// </summary>
public List<Product> Product
{
get
{
return products;
}
set
{
products = value;
RaisePropertyChanged();
}
}
/// <summary>
///
/// </summary>
public StuffViewModel()
{
products = new ProductProvider().Select();
}
}
}
+11
View File
@@ -47,6 +47,7 @@ namespace Audit.ViewModel
SimpleIoc.Default.Register<LogViewModel>();
SimpleIoc.Default.Register<StatisticsViewModel>();
SimpleIoc.Default.Register<QueryViewModel>();
SimpleIoc.Default.Register<StuffViewModel>();
}
///<Summary>
@@ -93,6 +94,16 @@ namespace Audit.ViewModel
}
}
///<Summary>
/// QueryViewModel
///</Summary>
public StuffViewModel Stuff
{
get
{
return ServiceLocator.Current.GetInstance<StuffViewModel>();
}
}
///<Summary>
/// Cleanup
///</Summary>