liaoxujun@qq.com
2024-02-18 b73ffe97fc885b652b20328c1c3d079a9124fb89
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
32
33
34
// WTM默认页面 Wtm buidin page
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;
 
namespace WalkingTec.Mvvm.Mvc.Admin.ViewModels.DataPrivilegeVMs
{
    public enum DpTypeEnum
    {
        [Display(Name = "_Admin.GroupDp")]
        UserGroup,
        [Display(Name = "_Admin.UserDp")]
        User
    }
 
    public class DataPrivilegeSearcher : BaseSearcher
    {
        [Display(Name = "_Admin.Account")]
        public string Name { get; set; }
        [Display(Name = "_Admin.Privileges")]
        public string TableName { get; set; }
        public List<ComboSelectListItem> TableNames { get; set; }
 
        [Display(Name = "_Admin.DpType")]
        public DpTypeEnum DpType { get; set; }
        public Guid? DomainID { get; set; }
        public List<ComboSelectListItem> AllDomains { get; set; }
        protected override void InitVM()
        {
            TableNames = new List<ComboSelectListItem>();
        }
    }
}