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();
|
}
|
}
|
}
|