开放性实验室管理系统论文

loading 分享 2026-10-17 下载文档

protected void initGrid() {

this.GridView1.DataSource = DataControl.GetData(\from V_课程 where 课程名称 like '%\

this.GridView1.DataBind(); }

protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)

{

this.GridView1.PageIndex = e.NewPageIndex; initGrid(); }

protected void Button2_Click(object sender, EventArgs e) {

initGrid(); }

4.6 实验设备使用查询

本功能与课程查询类似,主要实现实验室各种设备的使用情况查询,如图:

图4-7 实验设备使用情况

相关代码如下:

protected void Page_Load(object sender, EventArgs e) {

if (!Page.IsPostBack) {

//显示当前的学生信息列表 initGrid(); } }

protected void initGrid() {

this.GridView1.DataSource = DataControl.GetData(\V_实验室使用 where 设备名称 like '%\ this.GridView1.DataBind(); }

protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e) {

this.GridView1.PageIndex = e.NewPageIndex; initGrid(); }

protected void Button2_Click(object sender, EventArgs e) {

initGrid();

}

4.7 实验室信息

本功能主要是根据分配的实验室管理教师登录以后,动态显示此实验室的相关信息以及实验室的注意事项等,如图:

图4-8实验室信息

相关代码如下:

protected void Page_Load(object sender, EventArgs e) {

if (!Page.IsPostBack) {

DataTable dt = DataControl.GetData(\* from V_实验室 where 实验室代码=\ if (dt.Rows.Count > 0) {

this.txtSYSMC.Text = dt.Rows[0][\实验室名称\ this.txtSYSJS.Text = dt.Rows[0][\实验室介绍\ this.txtSYSWZ.Text = dt.Rows[0][\实验室位置\ this.txtLXDH.Text = dt.Rows[0][\联系电话\ this.txtZYSX.Text = dt.Rows[0][\注意事项\ this.txtGLJS.Text = dt.Rows[0][\姓名\

} } } }

4.8 实验室设备登记

本功能主要是实验室管理人员登记实验室的相关设备信息如图:

图4-9 实验室设备编辑页面

相关代码如下:

protected void Page_Load(object sender, EventArgs e) {

if (!Page.IsPostBack) {

//显示当前的学生信息列表 initGrid(); } }

protected void initGrid() {

this.GridView1.DataSource = DataControl.GetData(\设备管理 where 实验室代码=\this.GridView1.DataBind(); }

protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) {

if (e.CommandName == \{


开放性实验室管理系统论文.doc 将本文的Word文档下载到电脑
搜索更多关于: 开放性实验室管理系统论文 的文档
相关推荐
相关阅读