/// <summary>
 /// 全构造函数
 /// </summary>
 public SystemMenuEntity(int menuID, string menuName, string menuDescription, string menuUrl, string menuUrlTarget, string menuIconUrl, bool menuIsCategory, SystemMenuEntity parentMenuID, int?menuOrder, string menuType, bool?menuIsSystemMenu, bool?menuIsEnable, SystemApplicationEntity applicationID)
 {
     _menuID           = menuID;
     _menuName         = menuName;
     _menuDescription  = menuDescription;
     _menuUrl          = menuUrl;
     _menuUrlTarget    = menuUrlTarget;
     _menuIconUrl      = menuIconUrl;
     _menuIsCategory   = menuIsCategory;
     _parentMenuID     = parentMenuID;
     _menuOrder        = menuOrder;
     _menuType         = menuType;
     _menuIsSystemMenu = menuIsSystemMenu;
     _menuIsEnable     = menuIsEnable;
     _applicationID    = applicationID;
 }
 /// <summary>
 /// 默认构造函数
 /// </summary>
 public SystemMenuEntity()
 {
     _menuID           = 0;
     _menuName         = String.Empty;
     _menuDescription  = null;
     _menuUrl          = null;
     _menuUrlTarget    = null;
     _menuIconUrl      = null;
     _menuIsCategory   = false;
     _parentMenuID     = null;
     _menuOrder        = null;
     _menuType         = String.Empty;
     _menuIsSystemMenu = null;
     _menuIsEnable     = null;
     _applicationID    = null;
 }
        /// <summary>
        /// local implementation of Equals based on unique value members
        /// </summary>
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }

            if ((obj == null) || (obj.GetType() != this.GetType()))
            {
                return(false);
            }

            SystemMenuEntity castObj = (SystemMenuEntity)obj;

            return((castObj != null) && (this._menuID == castObj.MenuID));
        }
 /// <summary>
 /// 全构造函数
 /// </summary>
 public SystemMenuEntity(int menuID, string menuName, string menuCode, string menuDescription, string menuUrl, string menuUrlTarget, string menuIconUrl, bool menuIsCategory, SystemMenuEntity parentMenuID, int?menuOrder, string menuType, bool?menuIsSystemMenu, bool?menuIsEnable, SystemApplicationEntity applicationID, int?createBy, DateTime?createAt, int?lastModifyBy, DateTime?lastModifyAt, string lastModifyComment)
 {
     _menuID            = menuID;
     _menuName          = menuName;
     _menuCode          = menuCode;
     _menuDescription   = menuDescription;
     _menuUrl           = menuUrl;
     _menuUrlTarget     = menuUrlTarget;
     _menuIconUrl       = menuIconUrl;
     _menuIsCategory    = menuIsCategory;
     _parentMenuID      = parentMenuID;
     _menuOrder         = menuOrder;
     _menuType          = menuType;
     _menuIsSystemMenu  = menuIsSystemMenu;
     _menuIsEnable      = menuIsEnable;
     _applicationID     = applicationID;
     _createBy          = createBy;
     _createAt          = createAt;
     _lastModifyBy      = lastModifyBy;
     _lastModifyAt      = lastModifyAt;
     _lastModifyComment = lastModifyComment;
 }
예제 #5
0
 /// <summary>
 /// 全构造函数
 /// </summary>
 public SystemRoleMenuRelationEntity(int menuRoleID, SystemMenuEntity menuID, SystemRoleEntity roleID)
 {
     _menuRoleID = menuRoleID;
     _menuID     = menuID;
     _roleID     = roleID;
 }
예제 #6
0
 /// <summary>
 /// 默认构造函数
 /// </summary>
 public SystemRoleMenuRelationEntity()
 {
     _menuRoleID = 0;
     _menuID     = null;
     _roleID     = null;
 }