示例#1
0
        public static int GetMaxTopicTypesId()
        {
            DataTable topicTypes = TopicTypes.GetTopicTypes();

            if (topicTypes != null)
            {
                return(TypeConverter.ObjectToInt(topicTypes.Compute("Max(id)", "")));
            }
            return(0);
        }
示例#2
0
 public static bool IsExistTopicType(string topicTypeName, int typeid)
 {
     foreach (DataRow dataRow in TopicTypes.GetTopicTypes().Rows)
     {
         if (dataRow["name"].ToString() == topicTypeName && dataRow["id"].ToString() != typeid.ToString())
         {
             return(true);
         }
     }
     return(false);
 }
示例#3
0
 public static DataTable GetTopicTypes()
 {
     return(TopicTypes.GetTopicTypes(""));
 }