protected void btnPrOperation_Click(object sender, EventArgs e)
    {
        DataTable dt = AddSQLStringToDAL.GetDatatableBySQL("TabTeachers");

        if (dt.Rows.Count > 0)
        {
            if (dt.Rows[0]["UserID"].ToString() == dt.Rows[0]["UserPWD"].ToString())
            {
                initalPWD();
            }
        }
    }
    //判断当前周次
    private void CurrentWeek()
    {
        DataTable dt = AddSQLStringToDAL.GetDatatableBySQL("TabCalendar");

        foreach (DataRow row in dt.Rows)
        {
            if (Convert.ToDateTime(row["StartWeek"]) < DateTime.Now && Convert.ToDateTime(row["EndWeek"]).AddDays(1) > DateTime.Now)
            {
                string strWeekNumber = row["WeekNumber"].ToString();
                Session["CurrentWeek"] = strWeekNumber;
                break;
            }
            else
            {
                Session["CurrentWeek"] = "0";//不满足所有周次,显示为0;
            }
        }
    }