liaoxujun@qq.com
2024-02-23 6e831c9dd9a46a1dbd727f5f06068c10aef99b46
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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);
        }
 
    }
}