コード例 #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
ファイル: Role.cs プロジェクト: NguyenNghia412/ThiChungChi
 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
ファイル: Role.cs プロジェクト: NguyenNghia412/ThiChungChi
 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));
 }