BrowseMenu.aspx.cs 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 EditMenu_BrowseMenu : System.Web.UI.Page
  8. {
  9. //UserData myud = new UserData();
  10. //protected void Page_Load(object sender, EventArgs e)
  11. //{
  12. // UserData myu = new UserData();
  13. // //Literal1.Text = myu.UpdateMenuBrowse("", "PY", 12, "../UpFiles/", true).ToString();
  14. // //Literal1.Text = myud.DispLineDataadmin("Select ID,教师姓名,系部,课程名,督导姓名,综合评价 from TKJL where 综合评价 IS NOT NULL").ToString();
  15. // //Literal1.Text = myud.DispLineDataadmin("Select ID,教师姓名,系部,课程名,督导姓名,综合评价 from TKJL").ToString();
  16. // Literal1.Text = myud.DispLineDataadmin("Select ID,教师姓名,系部,课程名,督导姓名,综合评价 from TKJL where id="+Request.QueryString["ID"]).ToString();
  17. //}
  18. LYS.UserData1 myud = new LYS.UserData1();
  19. // string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + HttpContext.Current.Server.MapPath("~\\App_Data\\ZY.mdb");
  20. protected void Page_Load(object sender, EventArgs e)
  21. {
  22. string myURL = myud.GetAddressUrl().ToString();
  23. if (myURL.LastIndexOf("ID") < 0 )
  24. {
  25. Response.Write("<script>alert('错误!非法的程序调用!不能正常显示')</script>");
  26. Response.End();
  27. }
  28. int ID = Convert.ToInt16(Request.QueryString["ID"].ToString());
  29. Literal2.Text = "《"+myud.GetFieldValue(1, ID, "TKJL").ToString()+"》老师教学效果综合评价意见";
  30. Literal3.Text = "(综合评价意见)";
  31. if (!IsPostBack)
  32. {
  33. ZJ.Text = Convert.ToDateTime(myud.GetFieldValue(5, ID, "TKJL").ToString()).ToShortDateString();
  34. DD.Text = myud.GetFieldValueFromFieldName("上课地点", ID, "TKJL").ToString();
  35. JSXM.Text = myud.GetFieldValueFromFieldName("教师姓名", ID, "TKJL").ToString();
  36. XB.Text = myud.GetFieldValueFromFieldName("系部", ID, "TKJL").ToString();
  37. KM.Text = myud.GetFieldValueFromFieldName("课程名", ID, "TKJL").ToString();
  38. BJ.Text = myud.GetFieldValueFromFieldName("班级", ID, "TKJL").ToString();
  39. XQ.Text = myud.GetFieldValueFromFieldName("星期", ID, "TKJL").ToString();
  40. JC.Text = myud.GetFieldValueFromFieldName("节次", ID, "TKJL").ToString();
  41. PF.Text = myud.GetFieldValueFromFieldName("总评分", ID, "TKJL").ToString();
  42. ZHPJ.Text = myud.GetFieldValueFromFieldName("综合评价", ID, "TKJL").ToString();
  43. }
  44. if (myURL.LastIndexOf("disp") > 0)
  45. {
  46. string disp = Request.QueryString["disp"].ToString();
  47. if (disp == "disppj")
  48. {
  49. Literal2.Text = "《" + myud.GetFieldValue(1, ID, "TKJL").ToString() + "》老师教学效果评价意见";
  50. Literal3.Text = "(评价意见)";
  51. ZHPJ.Text = myud.GetFieldValueFromFieldName("点评评价", ID, "TKJL").ToString();
  52. }
  53. if (disp == "dispzhpj")
  54. {
  55. Literal2.Text = "《" + myud.GetFieldValue(1, ID, "TKJL").ToString() + "》老师教学效果综合评价意见";
  56. Literal3.Text = "(综合评价意见)";
  57. ZHPJ.Text = myud.GetFieldValueFromFieldName("综合评价", ID, "TKJL").ToString();
  58. }
  59. // Response.Write(disp);
  60. }
  61. }
  62. }