using System;
|
using System.Collections.Generic;
|
using System.ComponentModel.DataAnnotations;
|
using System.Linq;
|
using System.Threading.Tasks;
|
using WalkingTec.Mvvm.Core;
|
using WalkingTec.Mvvm.Core.Extensions;
|
using cy_scdz.Model.Set;
|
|
|
namespace cy_scdz.ViewModel.dictionary.DictionaryVMs
|
{
|
public partial class DictionarySearcher : BaseSearcher
|
{
|
[Display(Name = "名称")]
|
public String Name { get; set; }
|
[Display(Name = "Key")]
|
public String Key { get; set; }
|
[Display(Name = "是否有效")]
|
public Boolean? IsEn { get; set; }
|
public List<ComboSelectListItem> AllParents { get; set; }
|
[Display(Name = "_Admin.Parent")]
|
public Guid? ParentId { get; set; }
|
|
protected override void InitVM()
|
{
|
AllParents = DC.Set<Dictionary>().Where(x=>x.Parent==null).GetSelectListItems(Wtm, y => y.Name);
|
}
|
|
}
|
}
|