ningshuxia
2025-03-17 ecac1f13b6d1ad22b69687197ee49836d3a84220
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
using System.ComponentModel.DataAnnotations;
using Yw.Auth;
 
namespace HStation.WinFrmUI
{
    public class UserLoginViewModel
    {
        public UserLoginViewModel()
        {
        }
 
        public UserLoginViewModel(Yw.Dto.UserLoginLogStandardDto rhs)
        {
            this.ID = rhs.ID;
            this.CorpName = rhs.CorpName;
            this.UserName = rhs.UserName;
            this.LoginPlatform = rhs.LoginPlatform;
            this.LoginTypeName = rhs.LoginTypeName;
            this.LoginAccountName = rhs.LoginAccountName;
            this.ProjectName = rhs.ProjectName;
            this.SoftwareName = rhs.SoftwareName;
            this.UserName = rhs.UserName;
            switch (rhs.LoginOperation)
            {
                case eLoginOperation.LoginIn:
                    this.LoginOperation = "登录";
                    break;
 
                case eLoginOperation.LoginOut:
                    this.LoginOperation = "登出";
                    break;
            }
            this.LoginIP = rhs.LoginIP;
            this.LoginTime = rhs.LoginTime.ToString("yyyy-MM-dd HH:mm:ss");
            this.Message = rhs.Message;
        }
 
        /// <summary>
        /// id
        /// </summary>
        [Display(Name = "ID")]
        public long ID { get; set; }
 
        /// <summary>
        /// 客户名称
        /// </summary>
        [Display(Name = "客户名称")]
        public string CorpName { get; set; }
 
        /// <summary>
        /// 用户名称
        /// </summary>
        [Display(Name = "用户名称")]
        public string UserName { get; set; }
 
        /// <summary>
        /// 登录平台
        /// </summary>
        [Display(Name = "登录平台")]
        public eLoginPlatform LoginPlatform { get; set; }
 
        /// <summary>
        /// 登录类型名称
        /// </summary>
        [Display(Name = "登录类型")]
        public string LoginTypeName { get; set; }
 
        /// <summary>
        /// 账户名称
        /// </summary>
        [Display(Name = "账户名称")]
        public string LoginAccountName { get; set; }
 
        /// <summary>
        /// 项目名称
        /// </summary>
        [Display(Name = "项目名称")]
        public string ProjectName { get; set; }
 
        /// <summary>
        /// 软件名称
        /// </summary>
        [Display(Name = "软件名称")]
        public string SoftwareName { get; set; }
 
        /// <summary>
        /// 登录操作
        /// </summary>
        [Display(Name = "登录操作")]
        public string LoginOperation { get; set; }
 
        /// <summary>
        /// 登录IP
        /// </summary>
        [Display(Name = "登录IP")]
        public string LoginIP { get; set; }
 
        /// <summary>
        /// 登录时间
        /// </summary>
        [Display(Name = "登录时间")]
        public string LoginTime { get; set; }
 
        /// <summary>
        /// 登录信息
        /// </summary>
        [Display(Name = "登录信息")]
        public string Message { get; set; }
    }
}