資源簡介
新生報到管理系統,C#開發,歡迎大家交流學習。

代碼片段和文件信息
using?System;
using?System.Collections;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Web;
using?System.Web.SessionState;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.HtmlControls;
namespace?students
{
///?
///?WebForm1?的摘要說明。
///?
public?partial?class?WebForm1?:?System.Web.UI.Page
{
protected?Component.program?sp?=new?Component.program();?
protected?void?Page_Load(object?sender?System.EventArgs?e)
{
//?在此處放置用戶代碼以初始化頁面
if(!IsPostBack)
{
if(Session[“power“]==null||Session[“power“].ToString()!=“1“)
Response.Write(“ript>alert(‘〓新生報道系統提示〓\\n\\n您無權使用該功能!‘);document.location=‘login.aspx‘; ript>“);
sp.Bindddl(ddl_dept“select?*?from?departments““name““d_id“);
}
}
#region?Web?窗體設計器生成的代碼
override?protected?void?OnInit(EventArgs?e)
{
//
//?CODEGEN:?該調用是?ASP.NET?Web?窗體設計器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
///?
///?設計器支持所需的方法?-?不要使用代碼編輯器修改
///?此方法的內容。
///?
private?void?InitializeComponent()
{????
}
#endregion
protected?void?bt_sta_Click(object?sender?System.EventArgs?e)
{
string?sqlleideptoktemp;
lei=ddl_lei.SelectedValue.Trim();
dept=ddl_dept.SelectedValue.Trim();
ok=ddl_ok.SelectedValue.Trim();
sql=“select?s_idnameokfilespee?from?students“;
sql=sql+“?where?d_id?=‘“+dept+“‘“;
sql=sql+“?and?“+lei+“=‘“+ok+“‘“;
????Session[“sql“]=sql;
sp.Binddg(DataGrid1sql);
temp=ddl_lei.SelectedItem.Text.Substring(22);
DataSet?dst_temp?=?new?DataSet();
dst_temp=sp.dst(“select?count(*)?from?students?where?“+lei+“=‘是‘?and?d_id=“+dept);
lb1.Text=“該系“+ddl_lei.SelectedItem.Text.Trim()+“情況:???????已“+temp+“人數:“+dst_temp.Tables[0].Rows[0].ItemArray[0].ToString()+“人“;
dst_temp=sp.dst(“select?count(*)?from?students?where?“+lei+“=‘否‘?and?d_id=“+dept);
lb2.Text=“未“+temp+“人數:“+dst_temp.Tables[0].Rows[0].ItemArray[0].ToString()+“人“;
dst_temp=sp.dst(“select?count(*)?from?students?where?d_id=“+dept);
lb3.Text=“該系新生總人數:“+dst_temp.Tables[0].Rows[0].ItemArray[0].ToString()+“人“;
}
private?void?DataGrid1_PageIndexChanged(object?source?System.Web.UI.WebControls.DataGridPageChangedEventArgs?e)
{
string?sql;
sql=Session[“sql“].ToString();
DataGrid1.CurrentPageIndex=e.NewPageIndex;
sp.Binddg(DataGrid1sql);
}
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????296??2007-05-21?10:46??新生報到管理系統\ReadMe.txt
?????文件??????14855??2007-05-21?12:03??新生報到管理系統\Students\admin.aspx
?????文件???????2607??2007-05-21?12:03??新生報到管理系統\Students\admin.aspx.cs
?????文件???????5317??2003-03-26?00:00??新生報到管理系統\Students\admin.aspx.resx
?????文件???????2115??2007-05-21?12:03??新生報到管理系統\Students\App_Code\AssemblyInfo.cs
?????文件????????442??2007-05-31?14:36??新生報到管理系統\Students\App_Code\ClassDiagram.cd
?????文件???????1818??2007-05-31?14:33??新生報到管理系統\Students\App_Code\Component\Classconnection.cs
?????文件???????6187??2007-05-31?14:33??新生報到管理系統\Students\App_Code\Component\Classconnection.resx
?????文件???????3170??2007-05-21?12:03??新生報到管理系統\Students\App_Code\Component\program.cs
?????文件???????1374??2007-05-21?12:03??新生報到管理系統\Students\App_Code\Global.asax.cs
?????文件?????????15??2003-03-26?00:00??新生報到管理系統\Students\aspnet_client\system_web\1_1_4322\SmartNav.htm
?????文件???????8728??2003-03-26?00:00??新生報到管理系統\Students\aspnet_client\system_web\1_1_4322\SmartNav.js
?????文件??????14426??2003-03-26?00:00??新生報到管理系統\Students\aspnet_client\system_web\1_1_4322\WebUIValidation.js
?????文件??????16487??2007-05-21?12:03??新生報到管理系統\Students\class.aspx
?????文件??????10997??2007-05-21?12:03??新生報到管理系統\Students\class.aspx.cs
?????文件???????5317??2003-03-26?00:00??新生報到管理系統\Students\class.aspx.resx
?????文件??????10860??2003-03-26?00:00??新生報到管理系統\Students\Clientsc
?????文件????????481??2003-03-26?00:00??新生報到管理系統\Students\Clientsc
?????文件???????5780??2003-03-26?00:00??新生報到管理系統\Students\Component\Classconnection.resx
?????文件???????6302??2007-05-21?12:03??新生報到管理系統\Students\ConversionReport.txt
?????文件????1441792??2003-03-26?00:00??新生報到管理系統\Students\data\students_db_Data.MDF
?????文件????1048576??2003-03-26?00:00??新生報到管理系統\Students\data\students_db_Log.LDF
?????文件??????12989??2007-05-21?12:03??新生報到管理系統\Students\default.aspx
?????文件???????1463??2007-05-21?14:09??新生報到管理系統\Students\default.aspx.cs
?????文件???????5317??2003-03-26?00:00??新生報到管理系統\Students\default.aspx.resx
?????文件??????16153??2007-05-21?12:03??新生報到管理系統\Students\departments.aspx
?????文件???????8815??2007-05-21?12:03??新生報到管理系統\Students\departments.aspx.cs
?????文件???????5317??2003-03-26?00:00??新生報到管理系統\Students\departments.aspx.resx
?????文件????????630??2007-05-21?12:03??新生報到管理系統\Students\exit.aspx
?????文件????????904??2007-05-21?12:03??新生報到管理系統\Students\exit.aspx.cs
............此處省略135個文件信息
評論
共有 條評論