Merge branch 'master' of http://192.168.0.12:13000/sc/Audit_APP
This commit is contained in:
commit
06a4257126
6 files changed
+131
-11
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user