📄 helpteachinstance.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_helpteachinstance : System.Web.UI.Page
{
public DataTable dt = null;
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 PrintStationApplySuccess()
{
try
{
dt = Student.Student.GetAllFromStationApplySuccess(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 width=\"28%\" align=right class=mode4 style=\"height: 23px\">岗位名称:</td>");
Response.Write("<td width=\"72%\" align=left class=mode5 style=\"height: 23px\"><div align=\"center\">" + drow["StationName"].ToString() + "</div></td>");
Response.Write("</tr>");
}
}
}
catch (Exception ex)
{
Response.Write("<script> alert(\'" + ex.Message + "\');</script>");
}
}
public void PrintStationApplyFailure()
{
try
{
dt = Student.Student.GetAllFromStationApplyFailure(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 width=\"28%\" align=right class=mode4 style=\"height: 23px\">岗位名称:</td>");
Response.Write("<td width=\"72%\" align=left class=mode5 style=\"height: 23px\"><div align=\"center\">" + drow["StationName"].ToString() + "</div></td>");
Response.Write("</tr>");
}
}
}
catch (Exception ex)
{
Response.Write("<script> alert(\'" + ex.Message + "\');</script>");
}
}
public void PrintStationApplyDoing()
{
try
{
dt = Student.Student.GetAllFromStationApplyDoing(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 width=\"28%\" align=right class=mode4 style=\"height: 23px\">岗位名称:</td>");
Response.Write("<td width=\"72%\" align=left class=mode5 style=\"height: 23px\"><div align=\"center\">" + drow["StationName"].ToString() + "</div></td>");
Response.Write("</tr>");
}
}
}
catch (Exception ex)
{
Response.Write("<script> alert(\'" + ex.Message + "\');</script>");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -