• 大小: 466KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-06-26
  • 语言: C#
  • 标签: 新生  报到  管理  系统  C#  

资源简介

新生报到管理系统,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\Clientscript\calender.js

     文件        481  2003-03-26 00:00  新生报到管理系统\Students\Clientscript\tdlayer.js

     文件       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个文件信息

评论

共有 条评论