Exemplo n.º 1
0
 public static int GetTotalOfCreateHtmlCommonModelInfo(int nodeId, int created, ContentSortType sortType, bool isEshop)
 {
     return(dal.GetTotalOfCommonModelInfo());
 }
Exemplo n.º 2
0
 public static int GetTotalOfCommonModelInfoBySpecialIdOrSpecialCategoryId(int specialId, int specialCategoryId, ContentSortType sortType, int status)
 {
     if ((specialCategoryId > 0) && (specialId == 0))
     {
         return(GetTotalOfCommonModelInfoBySpecialCategoryId(specialCategoryId, sortType, status));
     }
     return(GetTotalOfCommonModelInfoBySpecialId(specialId, sortType, status));
 }
Exemplo n.º 3
0
 public static int GetTotalOfCommonModelInfoByUserName(string userName, int nodeId, ContentSortType sortType, int status, string title)
 {
     return(dal.GetTotalOfCommonModelInfo());
 }
Exemplo n.º 4
0
 public static int GetTotalOfCommonModelInfoBySignInType(int nodeId, int signInType, ContentSortType sortType, int status, string searchType, string keyword)
 {
     return(dal.GetTotalOfCommonModelInfo());
 }
Exemplo n.º 5
0
 public static int GetTotalOfCommonModelInfoBySpecialId(int specialId, ContentSortType sortType, int status)
 {
     return(dal.GetTotalOfCommonModelInfoBySpecialId());
 }
Exemplo n.º 6
0
        public static IList <CommonModelInfo> GetSearchContentList(int startRowIndexId, int maxNumberRows, int nodeId, ContentSortType sortType, int status, string searchType, string keyword)
        {
            string nodeIds = "";
            string roles   = "";

            CommonMethod(nodeId, ref nodeIds, ref roles);
            string cacheContentModelIdList = ModelManager.GetCacheContentModelIdList();

            if (!string.IsNullOrEmpty(keyword) && (nodeId > 0))
            {
                return(dal.GetSearchContentList(startRowIndexId, maxNumberRows, nodeIds, cacheContentModelIdList, sortType, status, roles, searchType, keyword, nodeId, ModelManager.GetNodeFieldList(nodeId)));
            }
            return(dal.GetSearchContentList(startRowIndexId, maxNumberRows, nodeIds, cacheContentModelIdList, sortType, status, roles, searchType, keyword, nodeId, null));
        }
Exemplo n.º 7
0
 public static int GetTotalOfCommonModelInfo(string nodeId, int modelId, ContentSortType sortType, int status)
 {
     return(dal.GetTotalOfCommonModelInfo());
 }
Exemplo n.º 8
0
        public static IList <CommonModelInfo> GetCommonModelInfoListByUserName(int startRowIndexId, int maxNumberRows, string userName, int nodeId, ContentSortType sortType, int status, string title)
        {
            string nodeArrChildId = GetNodeArrChildId(nodeId);

            return(dal.GetCommonModelInfoListByUserName(startRowIndexId, maxNumberRows, userName, nodeArrChildId, sortType, status, title));
        }
Exemplo n.º 9
0
        public static IList <CommonModelInfo> GetCreateHtmlCommonModelInfoList(int startRowIndexId, int maxNumberRows, int nodeId, int created, ContentSortType sortType, bool isEshop)
        {
            string nodeArrChildId = GetNodeArrChildId(nodeId);

            return(dal.GetCreateHtmlCommonModelInfoList(startRowIndexId, maxNumberRows, nodeArrChildId, created, sortType, isEshop));
        }
Exemplo n.º 10
0
        public static IList <SpecialCommonModelInfo> GetCommonModelInfoListBySpecialIdOrSpecialCategoryId(int startRowIndexId, int maxNumberRows, int specialId, int specialCategoryId, ContentSortType sortType, int status)
        {
            IList <SpecialCommonModelInfo> list = new List <SpecialCommonModelInfo>();

            if ((specialCategoryId > 0) && (specialId == 0))
            {
                return(GetCommonModelInfoListBySpecialCategoryId(startRowIndexId, maxNumberRows, specialCategoryId, sortType, status));
            }
            return(GetCommonModelInfoListBySpecialId(startRowIndexId, maxNumberRows, specialId, sortType, status));
        }
Exemplo n.º 11
0
        public static IList <SpecialCommonModelInfo> GetCommonModelInfoListBySpecialId(int startRowIndexId, int maxNumberRows, int specialId, ContentSortType sortType, int status)
        {
            string roleIds = "";

            if (!PEContext.Current.Admin.IsSuperAdmin)
            {
                roleIds = PEContext.Current.Admin.Roles;
            }
            return(dal.GetCommonModelInfoListBySpecialId(startRowIndexId, maxNumberRows, specialId, sortType, status, roleIds, false));
        }
Exemplo n.º 12
0
        public static IList <CommonModelInfo> GetCommonModelInfoListBySignInType(int startRowIndexId, int maxNumberRows, int nodeId, int signInType, ContentSortType sortType, int status, string searchType, string keyword)
        {
            string nodeArrChildId = GetNodeArrChildId(nodeId);

            return(dal.GetCommonModelInfoListBySignInType(startRowIndexId, maxNumberRows, nodeArrChildId, signInType, sortType, status, searchType, DataSecurity.FilterBadChar(keyword)));
        }
Exemplo n.º 13
0
        public static IList <CommonModelInfo> GetCommonModelInfoListByShop(int startRowIndexId, int maxNumberRows, int nodeId, ContentSortType sortType, int status)
        {
            string nodeIds = "";
            string roles   = "";

            CommonMethod(nodeId, ref nodeIds, ref roles);
            return(dal.GetCommonModelInfoListByShop(startRowIndexId, maxNumberRows, nodeIds, sortType, status, roles));
        }
Exemplo n.º 14
0
        public static IList <CommonModelInfo> GetAdvancedSearchContentList(int startRowIndexId, int maxNumberRows, string nodeId, int modelId, ContentSortType sortType, int status)
        {
            if (((HttpContext.Current.Session["SearchFieldName"] == null) || string.IsNullOrEmpty(HttpContext.Current.Session["SearchFieldName"].ToString())) || (modelId == 0))
            {
                return(new List <CommonModelInfo>());
            }
            ModelInfo cacheModelById = ModelManager.GetCacheModelById(modelId);

            if (cacheModelById.IsNull)
            {
                return(new List <CommonModelInfo>());
            }
            IList <FieldInfo> fieldList = Field.GetFieldList(modelId);

            return(dal.GetAdvancedSearchContentList(startRowIndexId, maxNumberRows, nodeId, cacheModelById, fieldList, sortType, status, HttpContext.Current.Session["SearchFieldName"].ToString(), HttpContext.Current.Session["SearchFieldValue"].ToString()));
        }