日期:2014-05-17 浏览次数:20506 次
public int[] PerChannelCount(string str,string Time)
{
int[] PerUserCount = new int[27];
int[] Channel_1 = new int[27];
DB db = new DB();
DataTable dt = db.reDt(str);
int TimeStart = 0;
int TimeEnd = 0;
//时间选择,每小时
#region
switch (Time)
{
case "00:00-01:00": TimeStart = 1; TimeEnd = 12; break; //00:00-00:55
case "01:00-02:00": TimeStart = 13; TimeEnd = 24; break;
case "02:00-03:00": TimeStart = 25; TimeEnd = 36; break;
case "03:00-04:00": TimeStart = 37; TimeEnd = 48; break;
case "04:00-05:00": TimeStart = 49; TimeEnd = 60; break;
case "05:00-06:00": TimeStart = 61; TimeEnd = 72; break;
case "06:00-07:00": TimeStart = 73; TimeEnd = 84; break;//06:00-06:55
case "07:00-08:00": TimeStart = 85; TimeEnd = 104; break;//07:00-07:57
case "08:00-09:00": TimeStart = 105; TimeEnd = 124; break;
case "09:00-10:00": TimeStart = 125; TimeEnd = 144; break;
case "10:00-11:00": TimeStart = 145; TimeEnd = 164; break;
case "11:00-12:00": TimeStart = 165; TimeEnd = 184; break;
case "12:00-13:00": TimeStart = 185; TimeEnd