资源简介
【系统简介】
1:该系统是本人今年暑假期间编写的,现在拿出来大家一起讨论讨论.取长补短.
2:开发环境:VS2005+SQL Server 2000 |开发语言:C#语言
3:该系统首发于51aspx,适合初学者学习。
4:系统功能有:用户管理,管理员管理,添加用户,会议室管理,会议管理,会议查询,我的会议,等等。
5:系统的后台和前台共享一个页面,但有"权限"限制,有的页面"普通用户"只可以远观,而不可以亵玩矣!
6:用户名和密码为:admin,身份:管理员 用户名和密码为:zhang ,身份:普通用户
代码片段和文件信息
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 System.Data.SqlClient;
public partial class addmeeting : System.Web.UI.Page
{
ArrayList year month dayhourm;
int i;
SqlConnection cn;
protected void Page_Load(object sender EventArgs e)
{
if (!Page.IsPostBack)
{
cn = new SqlConnection(System.Configuration.ConfigurationManager.AppSettings[“cn“]);
cn.Open();
SqlCommand cmd = new SqlCommand(“select * from userinfo“cn);
SqlDataReader dr = cmd.ExecuteReader();
this.CheckBoxList1.DataSource = dr;
this.CheckBoxList1.DataTextField = “username“;
this.CheckBoxList1.DataBind();
dr.Close();
cn.Close();
year = new ArrayList();
month = new ArrayList();
day = new ArrayList();
hour = new ArrayList();
m=new ArrayList ();
for (i =2000; i <=2100; i++)
year.Add(i.ToString());
for (i = 1; i <= 12; i++)
month.Add(i.ToString());
for (i = 1; i <= 31; i++)
day.Add(i.ToString());
for (i = 1; i <= 24; i++)
hour.Add(i.ToString ());
for (i = 00; i <= 59; i++)
m.Add(i.ToString());
ddlyear.DataSource = year;
ddlyear.DataBind();
ddlyear.Text = System.DateTime.Now.Year.ToString ();
DropDownList1 . Text = System.DateTime.Now.Year.ToString();
ddlmonth.DataSource = month;
ddlmonth.DataBind();
ddlmonth.Text = System.DateTime.Now.Month.ToString();
DropDownList2 . Text = System.DateTime.Now.Month.ToString();
ddlday.DataSource = day;
ddlday.DataBind();
ddlday.Text = System.DateTime.Now.Day.ToString();
DropDownList3 .Text = System.DateTime.Now.Day.ToString();
ddlhour.DataSource = hour;
ddlhour.DataBind();
ddlhour.Text = System.DateTime.Now.Hour.ToString();
DropDownList4.Text = System.DateTime.Now.Hour.ToString();
ddlm.DataSource = m;
ddlm.DataBind();
ddlm.Text = System.DateTime.Now.Minute.ToString();
this.DropDownList1.DataSource = year;
this.DropDownList1.DataBind();
this.DropDownList2.DataSource = month;
this.DropDownList2.DataBind();
this.DropDownList3.DataSource = day;
this.DropDownList3.DataBind();
this.DropDownList4.DataSource =hour ;
this.DropDownList4.DataBind();
this.DropDownList5.DataSource =m;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6166 2007-08-15 10:55 Meeting\addmeeting.aspx
文件 6916 2007-08-12 22:10 Meeting\addmeeting.aspx.cs
文件 4158 2007-08-10 14:17 Meeting\addroom.aspx
文件 2677 2007-08-10 12:45 Meeting\addroom.aspx.cs
文件 3909 2007-08-09 18:15 Meeting\adduser.aspx
文件 2717 2007-08-10 12:34 Meeting\adduser.aspx.cs
文件 3256 2007-08-09 15:43 Meeting\adminchangpwd.aspx
文件 2420 2007-08-09 15:19 Meeting\adminchangpwd.aspx.cs
目录 0 2007-08-06 22:45 Meeting\App_Data
文件 69632 2005-03-18 08:22 Meeting\Bin\EeekSoft.Web.PopupWin.DLL
文件 134 2007-08-24 09:33 Meeting\Bin\EeekSoft.Web.PopupWin.DLL.refresh
文件 192512 2007-04-15 15:47 Meeting\Bin\me
文件 108 2007-08-07 22:40 Meeting\Bin\me
目录 0 2007-08-24 09:33 Meeting\Bin
文件 1262 2007-08-09 18:13 Meeting\Control\foot.ascx
文件 771 2007-07-10 18:03 Meeting\Control\foot.ascx.cs
文件 2155 2007-08-14 11:07 Meeting\Control\login.ascx
文件 2175 2007-08-14 11:07 Meeting\Control\login.ascx.cs
文件 2245 2007-08-14 10:26 Meeting\Control\menu.ascx
文件 420 2007-08-09 15:13 Meeting\Control\menu.ascx.cs
目录 0 2007-08-14 11:07 Meeting\Control
文件 1179648 2007-08-21 21:19 Meeting\data\meeting_Data.MDF
文件 1048576 2007-08-21 21:19 Meeting\data\meeting_Log.LDF
目录 0 2007-08-21 21:20 Meeting\data
文件 5342 2007-08-24 10:01 Meeting\Default.aspx
文件 3332 2007-08-24 10:02 Meeting\Default.aspx.cs
文件 4515 2007-08-21 21:04 Meeting\editadmin.aspx
文件 4955 2007-08-21 21:06 Meeting\editadmin.aspx.cs
文件 9112 2007-08-13 13:19 Meeting\editmeeting.aspx
文件 8177 2007-08-13 13:06 Meeting\editmeeting.aspx.cs
............此处省略86个文件信息
- 上一篇:C#校园卡信息管理系统
- 下一篇:C#.kgtemp转换.mp3文件源码请勿商用
评论
共有 条评论