示例#1
0
        public CoreType(int typeId)
        {
            DataTable objTable = CoreBase.TL_GetTypeFull(typeId);

            if (objTable.Rows.Count > 0)
            {
                m_typeId          = typeId;
                m_isValid         = true;
                m_typeName        = objTable.Rows[0]["TypeName"].ToString();
                m_roleString      = objTable.Rows[0][2].ToString();
                m_objCollection   = new TypeRoleCollection(m_roleString);
                m_isUseXSL        = "true".Equals(objTable.Rows[0]["IsUseXSL"].ToString().ToLower());
                m_isUseFolder     = "true".Equals(objTable.Rows[0]["IsUseFolder"].ToString().ToLower());
                m_isUseToolTip    = "true".Equals(objTable.Rows[0]["IsUseToolTip"].ToString().ToLower());
                m_isUseApprove    = "true".Equals(objTable.Rows[0]["IsUseApprove"].ToString().ToLower());
                m_isUsePublic     = "true".Equals(objTable.Rows[0]["IsUsePublic"].ToString().ToLower());
                m_isUseIcon       = "true".Equals(objTable.Rows[0]["IsUseIcon"].ToString().ToLower());
                m_isUseTagGroup   = "true".Equals(objTable.Rows[0]["IsUseTagGroup"].ToString().ToLower());
                m_isUseRelated    = "true".Equals(objTable.Rows[0]["IsUseRelated"].ToString().ToLower());
                m_isUseRecycleBin = "true".Equals(objTable.Rows[0]["IsUseRecycleBin"].ToString().ToLower());
            }
            else
            {
            }
        }
示例#2
0
 public Role(int userId, bool isSuperUser, int portalId, int categoryId, bool isCategory)
 {
     m_objTable = CoreBase.RM_GetUserRolesByCategory(userId, isSuperUser, portalId, categoryId);
     m_strRoles = GetRoleString();
 }
示例#3
0
 public Role(int userId, bool isSuperUser, int portalId, int typeId)
 {
     m_objTable = CoreBase.RM_GetUserRolesByPortal(userId, isSuperUser, portalId, typeId);
     m_strRoles = GetRoleString();
 }
示例#4
0
 /// <summary>
 /// Get the core types that are installed.
 /// </summary>
 /// <returns>A table with the information of the installed core types.</returns>
 public static DataTable GetCoreType()
 {
     return(CoreBase.TL_GetType());
 }
示例#5
0
 /// <summary>
 /// Get an alias.
 /// </summary>
 /// <param name="portalAliasId">The alias's Id</param>
 /// <returns>The alias.</returns>
 public static string GetAlias(int portalAliasId)
 {
     return(CoreBase.TL_GetAlias(portalAliasId));
 }
示例#6
0
 public static DataTable GetFullTabs(int portalId, string strTabs)
 {
     return(CoreBase.TL_GetFullTabs_Batch(portalId, strTabs));
 }
示例#7
0
 public static DataTable GetFullTabs(int portalId, int parentId)
 {
     return(CoreBase.TL_GetFullTabs_Parent(portalId, parentId));
 }
示例#8
0
 public static DataTable GetFullTabs(int portalId)
 {
     return(CoreBase.TL_GetFullTabs(portalId));
 }