Esempio n. 1
0
        /// <summary>
        /// 获取具体的时间列表
        /// </summary>
        /// <param name="time1">时间1</param>
        /// <param name="time2">时间2</param>
        /// <param name="corpName">具体表</param>
        /// <returns></returns>
        public static List <string> get_DateDetail(DateTime time1, DateTime time2, string corpName)
        {
            string str_datevalue = "select distinct MONITORTIME from " + corpName + " where MONITORTIME between @time1 and @time2";

            SqlParameter[] param_date = new SqlParameter[] {
                new SqlParameter("@time1", time1),
                new SqlParameter("@time2", time2)
            };
            List <string> date_list = DataBaseOperate.getIncludeTime(str_datevalue, param_date);

            return(date_list);
        }