SysManage/JiaoShiList.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 System.Data.SqlClient;
public partial class SysManage_JiaoShiList : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DB.Bind_Dropdownlist("select * from xueqi order by xueqiid desc", ddlXueQi, "xueqiid", "xueqiname");
Get_Data();
}
}
/// <summary>
/// 绑定数据
/// </summary>
void Get_Data()
{
string sql = "select * ";
sql += " ,(select count(0) from pingfen where jiaoshiid=a.jiaoshiid and xueqiid='" + ddlXueQi.SelectedValue + "') as isxs";
sql += " ,(select count(0) from teshu where jiaoshiid=a.jiaoshiid and xueqiid='" + ddlXueQi.SelectedValue + "') as isjs";
sql += " ,(select count(0) from dudao where jiaoshiid=a.jiaoshiid and xueqiid='" + ddlXueQi.SelectedValue + "') as isdd";
sql += " from JiaoShi a";
sql += " order by JiaoShiId desc";
this.rptList.DataSource = DB.getDataTable(sql);
this.rptList.DataBind();
}
protected void ddlXueQi_SelectedIndexChanged(object sender, EventArgs e)
{
Get_Data();
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。