public ActionResult AllSchedule(DateTime? Date, int? Page)
        {
            Dictionary<string, string> sitemaster = GetSiteMaster();
            ViewData["SiteMaster"] = sitemaster;

            ScheduleDao dao = new ScheduleDao();
            DateTime TheDate = Date ?? DateTime.Now;
            //if (!CheckDate(TheDate))
            //    Response.Write("<script>alert('只能查询未来七天内数据!');history.go(-1);</script>");

            int PageNo = Page ?? 1;
            int PageSize = 1000;
            int PageCount = 0;

            IList<IDictionary> ProjectList = dao.GetScheduleList(PageNo, PageSize, out PageCount, TheDate, Int32.Parse(CurrentUserInfo.UserID));
            PagedList<IDictionary> List = new PagedList<IDictionary>(ProjectList, PageNo, PageSize, PageCount);
            //ViewData["Count"] = PageCount;
            ViewData["TheDate"] = string.Format("{0:D}", TheDate);
            //ViewData["PreBtn"] = "<a href=\"" + (CheckDate(TheDate.AddDays(-1)) ? Url.Action("AllSchedule", new { Date = string.Format("{0:yyyy-MM-dd}", TheDate.AddDays(-1)) }) : "#") + "\" style=\"margin-right: 20px;\">上一天</a>";
            //ViewData["NextBtn"] = "<a href=\"" + (CheckDate(TheDate.AddDays(1)) ? Url.Action("AllSchedule", new { Date = string.Format("{0:yyyy-MM-dd}", TheDate.AddDays(1)) }) : "#") + "\" style=\"margin-right: 20px;\">下一天</a>";
            ViewData["PreBtn"] = "<a href=\"" + Url.Action("AllSchedule", new { Date = string.Format("{0:yyyy-MM-dd}", TheDate.AddDays(-1)) }) + "\" style=\"margin-right: 20px;\">上一天</a>";
            ViewData["NextBtn"] = "<a href=\"" + Url.Action("AllSchedule", new { Date = string.Format("{0:yyyy-MM-dd}", TheDate.AddDays(1)) }) + "\" style=\"margin-right: 20px;\">下一天</a>";
            return View(List);
        }