• 大小: 205KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-01
  • 语言: C#
  • 标签:

资源简介

我为大家奉献的asp.net+sqlserver2000的学生公寓信息管理系统 系统功能: (1)学生信息管理:包括学生信息的登记,查询及维护功能 (2)房间信息管理:包括公寓房间信息的登记,查询以维护功能 (3)住宿管理:包括学生入住公寓房间,学生改变房间,学生离开公寓退房及各种查询及维护功能 (4)交费管理:包括学生每学期交纳住宿费用,水电费,统计欠住宿费学生名单详细信息 (5)信息查询:可以按条件查询学生信息,房间信息,住宿信息功能 (6)系统设置:可以设置系统的登陆密码,对学生的专业进行设置。

资源截图

代码片段和文件信息

using 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 StudentApartment.DataAccesslayer;
using StudentApartment.DataAccessHelper;
public partial class fieldSet : System.Web.UI.Page
{
    protected void Page_Load(object sender EventArgs e)
    {
        if (Session[“adminUserName“] == null)
        {
            Response.Redirect(“login.aspx“);
        }
    }
    protected void check_ALL_CheckedChanged(object sender EventArgs e)
    {
        for (int i = 0; i < this.GridView1.Rows.Count; i++)
        {
            GridViewRow gr = this.GridView1.Rows[i];
            CheckBox chk = (CheckBox)gr.Cells[0].FindControl(“checkBox“);
            chk.Checked = this.check_ALL.Checked; //跟随全选按扭的状态变化;
        }
    }
   
    protected void Btn_Add_Click(object sender EventArgs e)
    {
        string collegeName = this.CollegeName.SelectedValue;
        string specialFieldName = this.specialFieldName.Text;
        if (specialFieldName == ““)
        {
            Response.Write (“ript>alert(‘专业输入不能为空!‘);ript>“);
            return;
        }
        string queryString = “select * from specialFieldInfo where specialFieldName=“ + SqlString.GetQuotedString(specialFieldName);
        Database db = new Database();
        if (db.GetRecord(queryString))
        {
            Response.Write(“ript>alert(‘该专业已经存在!‘);ript>“);
            return;
        }

        string insertString = “insert into specialFieldInfo(specialFieldNamecollegeName) values (“;
        insertString += SqlString.GetQuotedString(specialFieldName) + ““;
        insertString += SqlString.GetQuotedString(collegeName) + “)“;
        if (db.InsertOrUpdate(insertString)<0)
            Response.Write(“ript>alert(‘添加专业失败!‘);ript>“);
        Response.Write(“ript>alert(‘添加专业成功!‘);location.href=‘fieldSet.aspx‘;ript>“);

    }
    protected void GridView1_RowDataBound(object sender GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            //当鼠标选择某行时变颜色
            e.Row.Attributes.Add(“onmouseover“ “c=this.style.backgroundColor;this.style.backgroundColor=‘#00ffee‘;“);
            e.Row.Attributes.Add(“onmouseout“ “this.style.backgroundColor=c;“);
        }
    }
    protected void Button1_Click(object sender EventArgs e)
    {
        foreach (GridViewRow gr in GridView1.Rows)
        {
            CheckBox chk = (CheckBox)gr.Cells[0].FindControl(“checkBox“);
            if (chk.Checked) //如果要删除该学生
            {
                string specialFieldName = gr.Cells[1].Text;
                string queryString = “select * from studentInfo where studentSpec=“ + SqlString.GetQuotedString(specialFieldName);

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ICA....      2745  2008-12-09 12:37  双鱼林asp.net学生公寓信息管理系统\About\about1.html

    ICA....      2926  2008-12-08 22:36  双鱼林asp.net学生公寓信息管理系统\App_Code\BusinessLogiclayer\Admin.cs

    ICA....      2696  2008-12-09 09:49  双鱼林asp.net学生公寓信息管理系统\App_Code\BusinessLogiclayer\GiveMoneyInfo.cs

    ICA....     11959  2008-12-09 09:53  双鱼林asp.net学生公寓信息管理系统\App_Code\BusinessLogiclayer\Live.cs

    ICA....     11585  2008-12-09 10:12  双鱼林asp.net学生公寓信息管理系统\App_Code\BusinessLogiclayer\Money.cs

    ICA....      9813  2008-12-07 22:19  双鱼林asp.net学生公寓信息管理系统\App_Code\BusinessLogiclayer\Room.cs

    ICA....     12332  2008-12-08 09:20  双鱼林asp.net学生公寓信息管理系统\App_Code\BusinessLogiclayer\Student.cs

    ICA....       594  2008-12-02 10:44  双鱼林asp.net学生公寓信息管理系统\App_Code\DataAccessHelper\SqlString.cs

    ICA....      5338  2008-12-07 10:28  双鱼林asp.net学生公寓信息管理系统\App_Code\DataAccesslayer\Database.cs

    ICA....   1198592  2008-12-09 11:26  双鱼林asp.net学生公寓信息管理系统\Database\StudentAapartmentInfo.bak

    ICA....      2429  2008-12-09 10:25  双鱼林asp.net学生公寓信息管理系统\desk.aspx

    ICA....      3474  2008-12-09 11:10  双鱼林asp.net学生公寓信息管理系统\fieldSet.aspx

    ICA....      3834  2008-12-09 11:14  双鱼林asp.net学生公寓信息管理系统\fieldSet.aspx.cs

    ICA....       110  2004-03-27 16:47  双鱼林asp.net学生公寓信息管理系统\images\ADD.gif

    ICA....       194  2008-11-23 20:12  双鱼林asp.net学生公寓信息管理系统\images\default_3.gif

    ICA....       130  2008-11-23 20:12  双鱼林asp.net学生公寓信息管理系统\images\default_6.gif

    ICA....       434  2008-11-23 20:12  双鱼林asp.net学生公寓信息管理系统\images\default_8.gif

    ICA....       107  2004-03-27 16:47  双鱼林asp.net学生公寓信息管理系统\images\Edit.gif

    ICA....       154  2008-05-13 17:44  双鱼林asp.net学生公寓信息管理系统\images\folder.gif

    ICA....       366  2008-05-13 17:44  双鱼林asp.net学生公寓信息管理系统\images\folderopen.gif

    ICA....      1155  2002-04-14 00:30  双鱼林asp.net学生公寓信息管理系统\images\help.gif

    ICA....      1554  2002-04-14 00:30  双鱼林asp.net学生公寓信息管理系统\images\ico29.gif

    ICA....       261  2004-07-13 17:24  双鱼林asp.net学生公寓信息管理系统\images\ico48.gif

    ICA....      1745  2006-05-26 14:21  双鱼林asp.net学生公寓信息管理系统\images\print.jpg

    ICA....      1653  2008-10-30 21:23  双鱼林asp.net学生公寓信息管理系统\images\studentApartment.css

    ICA.SH.     48128  2007-07-03 15:01  双鱼林asp.net学生公寓信息管理系统\images\Thumbs.db

    ICA....     27294  2008-07-30 17:04  双鱼林asp.net学生公寓信息管理系统\images\title.gif

    ICA....      7800  2006-06-04 19:09  双鱼林asp.net学生公寓信息管理系统\inc\CoolButton.htc

    ICA....      9801  2008-09-16 22:21  双鱼林asp.net学生公寓信息管理系统\inc\md5.asp

    ICA....     14566  2008-11-10 09:57  双鱼林asp.net学生公寓信息管理系统\js\MyJs.js

............此处省略52个文件信息

评论

共有 条评论

相关资源