username@email.com
2024-07-24 294494e5559dcc92670dd9800caf976853aff876
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
using System;
using System.Collections.Generic;
using System.Text;
 
namespace DTO
{
    [Serializable]
    public class ActionEntity
    {
        /// <summary>
        /// 行为名称
        /// </summary>
        public string ActionName { get; set; }
        /// <summary>
        /// 行为函数
        /// </summary>
        public string ActionFun { get; set; }
        public string PageIco { get; set; }
 
 
        /// <summary>
        /// 行为地址:
        /// </summary>
        public string ActionUrl { get; set; }
        /// <summary>
        /// 开发方式  3 函数  4 选项卡地址 5  新浏览器选项卡
        /// </summary>
        public int OpenType { get; set; }
 
        public int PageSuperior { get; set; }
 
        public int PageId { get; set; }
    }
 
    public class ActionEntityIdComparer : IEqualityComparer<ActionEntity>
    {
        public bool Equals(ActionEntity x, ActionEntity y)
        {
            if (x == null)
                return y == null;
            return x.PageId == y.PageId;
        }
 
        public int GetHashCode(ActionEntity obj)
        {
            if (obj == null)
                return 0;
            return obj.PageId.GetHashCode();
        }
    }
}