/// <summary> /// 显示当前天的信息 /// </summary> /// <param name="todayss"></param> private void show(DateTime todayss) { try { DateTime todays = todayss; // System.DateTime.Now.Date; Label_now.Text = commons.makeDateToDateAndWeek(todayss.ToString()); Calendar1.VisibleDate = todays; Calendar1.SelectedDate = System.DateTime.Now.Date; setZhouci(todayss.ToString()); string nextMoth = todays.AddMonths(1).Year.ToString() + "年" + "-" + todays.AddMonths(1).Month.ToString() + "月"; string preMoth = todays.AddMonths(-1).Year.ToString() + "年" + "-" + todays.AddMonths(-1).Month.ToString() + "月"; ImageButton_left.AlternateText = "切换到" + preMoth; ImageButton_right.AlternateText = "切换到" + nextMoth; string thedays = todays.Year.ToString() + "-" + todays.Month.ToString() + "-" + todays.Day.ToString(); H_time.Value = todayss.ToString(); userModel = (Dianda.Model.USER_Users)Session["USER_Users"]; string userid = userModel.ID; string strDateTime = DateTime.Now.ToString(); //ShowNote(userid); ShowPersonProject(userid, thedays); ShowClassProject(userModel.REALNAME, userModel.USERNAME, thedays); } catch { } }