计算机毕业设计查询部分实现:
4.3.3 查询界面功能实现
职位信息如下图:
public partial class Student_BmList : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
//绑定显示岗位信息列表
DropDownList1.DataTextField = "名称";
DropDownList1.DataValueField = "代码";
DropDownList1.DataSource = DataBase.Get_Table("select * from 综合 where 类别='岗位'");
DropDownList1.DataBind();
Button1_Click(null, null);
}
}
protected void Button1_Click(object sender, EventArgs e)
{
//显示招聘岗位信息列表
this.GridView1.DataSource = DataBase.Get_Table("select A.*,isnull(B.已报人数,0) as 已报人数,区县名称,岗位名称,专业名称 from 招聘岗位 A left join (select 岗位代码,count(*) as 已报人数 from 报名 group by 岗位代码) B on A.代码=B.岗位代码 left join (select 名称 as 区县名称,代码 from 综合 where 类别='区县') C on A.区县代码=C.代码 left join (select 名称 as 岗位名称,代码 from 综合 where 类别='岗位') D on A.岗位代码=D.代码 left join (select 名称 as 专业名称,代码 from 综合 where 类别='专业') E on A.专业代码=E.代码 where A.岗位代码="+ DropDownList1.SelectedValue +"");
this.GridView1.DataBind();
}
〖资料来源:计算机毕业论文 www.xiaoniu168.com〗
第8页为计算机毕业论文后台功能实现......