DisplayZHPJ.aspx.cs 1.0 KB

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Web.UI.WebControls;
  7. public partial class Admin_DisplayZHPJ : System.Web.UI.Page
  8. {
  9. LYS.UserData1 myud = new LYS.UserData1();
  10. string username = "";
  11. string usertype = "";
  12. string userdemp = "";
  13. // string utype = "";
  14. protected void Page_Load(object sender, EventArgs e)
  15. {
  16. username =myud.ReadCookies("UserName").ToString();
  17. usertype =myud.ReadCookies("UserType").ToString();
  18. userdemp =myud.ReadCookies("UserDemp").ToString();
  19. //以下为管理员登录显示
  20. // Literal1.Text = myud.DispLineDataadmin("Select ID,教师姓名,系部,课程名,督导姓名,综合评价 from TKJL where 综合评价 IS NOT NULL").ToString();
  21. Literal1.Text = myud.DispLineDataModi("Select ID,教师姓名,系部,听课日期,课程名,督导姓名,综合评价 from TKJL where 系部='" + userdemp + "' order by 听课日期 Desc", "dispzhpjAdd").ToString();
  22. }
  23. }