Admin/InstructionDiaryManage.aspx.cs
(完整代码) 1KBusing 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;
using LaboratoryOrder.DataBase;
using System.Data.SqlClient;
namespace LaboratoryOrder.Admin
{
public partial class InstructionDiaryManage : System.Web.UI.Page
{
protected DataTable table = null;
protected string term = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
table = SqlBase.ExecuteDataTable("select * from param where paramname = 'term'", CommandType.Text);
if (table != null && table.Rows.Count > 0)
{
term = table.Rows[0]["paramValue"].ToString();
}
SqlParameter[] para = new SqlParameter[2];
para[0] = SqlBase.CreateParam("@term", SqlDbType.VarChar, 12, ParameterDirection.Input, term);
para[1] = SqlBase.CreateParam("@userID", SqlDbType.VarChar, 16, ParameterDirection.Input, Context.User.Identity.Name);
table = SqlBase.ExecuteDataTable("select * from InstructionDiary where term = @term and userID = @userID order by courseName,weeks", para, CommandType.Text);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
