📄 teachpratise_history.aspx.cs
字号:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class student_teachpratise_history : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (Session["Student"].ToString() != "true")
{
Response.Write("<script>parent.window.href=\"../login.aspx\"</script>");
Response.End();
}
}
catch
{
Response.Write("<script>parent.window.href=\"../login.aspx\"</script>");
Response.End();
}
}
public void PrintTeachPracApplySuccess()
{
try
{
DataTable dt = Student.Student.GetIndividualTeaPracApplySuccess(Session["StuID"].ToString());
if (dt != null)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
DataRow drow = dt.Rows[i];
Response.Write("<tr>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"width: 85px; height: 23px\">");
Response.Write(drow["UnderCourseID"].ToString());
Response.Write("</td>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"width: 141px; height: 23px\">");
Response.Write(drow["CourseName"].ToString());
Response.Write("</td>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"width: 106px; height: 23px\">");
Response.Write(drow["Teacher"].ToString());
Response.Write("</td>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"width: 100px; height: 23px\">");
Response.Write(drow["CourseID"].ToString());
Response.Write("</td>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"width: 91px; height: 23px\">");
Response.Write(drow["TeaClassID"].ToString());
Response.Write("</td>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"height: 23px\">");
Response.Write("<a href=\"#\" OnClick=\"showModalDialog('seeteachpratiseDid.aspx?undercourseid=" + drow["UnderCourseID"].ToString() + "','','dialogHeight:490px;dialogWidth:650px')\">查看</a>");
Response.Write("</td>");
Response.Write("</tr>");
}
}
}
catch (Exception ex)
{
Response.Write("<script> alert(\'" + ex.Message + "\');</script>");
}
}
public void PrintTeachPracApplyFailure()
{
try
{
DataTable dt = Student.Student.GetIndividualTeaPracApplyFailure(Session["StuID"].ToString());
if (dt != null)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
DataRow drow = dt.Rows[i];
Response.Write("<tr>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"width: 85px; height: 23px\">");
Response.Write(drow["UnderCourseID"].ToString());
Response.Write("</td>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"width: 141px; height: 23px\">");
Response.Write(drow["CourseName"].ToString());
Response.Write("</td>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"width: 106px; height: 23px\">");
Response.Write(drow["Teacher"].ToString());
Response.Write("</td>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"width: 100px; height: 23px\">");
Response.Write(drow["CourseID"].ToString());
Response.Write("</td>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"width: 91px; height: 23px\">");
Response.Write(drow["TeaClassID"].ToString());
Response.Write("</td>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"height: 23px\">");
Response.Write("<a href=\"#\" OnClick=\"showModalDialog('seeteachpratiseDid.aspx?undercourseid=" + drow["UnderCourseID"].ToString() + "','','dialogHeight:490px;dialogWidth:650px')\">查看</a>");
Response.Write("</td>");
Response.Write("</tr>");
}
}
}
catch (Exception ex)
{
Response.Write("<script> alert(\'" + ex.Message + "\');</script>");
}
}
public void PrintTeachPracApplyDoing()
{
try
{
DataTable dt = Student.Student.GetIndividualTeaPracApplyDoing(Session["StuID"].ToString());
if (dt != null)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
DataRow drow = dt.Rows[i];
Response.Write("<tr>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"width: 85px; height: 23px\">");
Response.Write(drow["UnderCourseID"].ToString());
Response.Write("</td>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"width: 141px; height: 23px\">");
Response.Write(drow["CourseName"].ToString());
Response.Write("</td>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"width: 106px; height: 23px\">");
Response.Write(drow["Teacher"].ToString());
Response.Write("</td>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"width: 100px; height: 23px\">");
Response.Write(drow["CourseID"].ToString());
Response.Write("</td>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"width: 91px; height: 23px\">");
Response.Write(drow["TeaClassID"].ToString());
Response.Write("</td>");
Response.Write("<td align=\"center\" class=\"mode4\" style=\"height: 23px\">");
Response.Write("<a href=\"#\" OnClick=\"showModalDialog('seeteachpratiseDid.aspx?undercourseid=" + drow["UnderCourseID"].ToString() + "','','dialogHeight:490px;dialogWidth:650px')\">查看</a>");
Response.Write("</td>");
Response.Write("</tr>");
}
}
}
catch (Exception ex)
{
Response.Write("<script> alert(\'" + ex.Message + "\');</script>");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -