资源简介
使用vs-asp.net+sqlserver实现一个模拟大学自动排课的系统,包括excel的导入导出和简单的排课算法实现。源码可用!!!

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
namespace 排课系统
{
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender EventArgs e)
{
if (!IsPostBack)
{
//this.username.Text = “admin“;
//this.password.Text = “admin“;
//this.code.Value = Session[“LVNum“].ToString();
//submit_login(sendere);
//Session.Clear();
}
}
protected void submit_login(object sender EventArgs e)
{
//WebMessageBox.Show(“用户名不能为空“);
if (this.username.Text.Length < 1)
{
WebMessageBox.Show(“用户名不能为空“); return;
}
if (this.password.Text.Length < 1)
{
WebMessageBox.Show(“密码不能为空“); return;
}
if (this.code.Value.Length < 1)
{
WebMessageBox.Show(“验证码不能为空“); return;
}
String num = Session[“LVNum“].ToString();
if (!num.Equals(this.code.Value))
{
WebMessageBox.Show(“验证码输入错误“); return;
}
if (RadioButton2.Checked) //管理员
{
if (Operation.getDatatable(“select * from t_admin where username=‘“ + this.username.Text + “‘ and userpwd=‘“ + this.password.Text + “‘“).Rows.Count < 1)
{
WebMessageBox.Show(“用户或密码错误“); return;
}
Session[“username“] = username.Text;
Response.Redirect(“admin/index.aspx“);
}
else {
//教师
DataTable dt=Operation.getDatatable(“select * from t_teacher where teachid=‘“ + this.username.Text + “‘ and pwd=‘“ + this.password.Text + “‘“);
if (dt.Rows.Count < 1)
{
WebMessageBox.Show(“用户或密码错误“); return;
}
Session[“teachid“] = username.Text;
Session[“teachname“] = dt.Rows[0][“name“].ToString();
Response.Redirect(“teacher/index.aspx“);
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 341 2018-07-16 17:02 course_scheduling_system\.git\config
文件 73 2018-07-16 17:00 course_scheduling_system\.git\desc
文件 23 2018-07-16 17:02 course_scheduling_system\.git\HEAD
文件 478 2018-07-16 17:00 course_scheduling_system\.git\hooks\applypatch-msg.sample
文件 896 2018-07-16 17:00 course_scheduling_system\.git\hooks\commit-msg.sample
文件 3327 2018-07-16 17:00 course_scheduling_system\.git\hooks\fsmonitor-watchman.sample
文件 189 2018-07-16 17:00 course_scheduling_system\.git\hooks\post-update.sample
文件 424 2018-07-16 17:00 course_scheduling_system\.git\hooks\pre-applypatch.sample
文件 1642 2018-07-16 17:00 course_scheduling_system\.git\hooks\pre-commit.sample
文件 1348 2018-07-16 17:00 course_scheduling_system\.git\hooks\pre-push.sample
文件 4898 2018-07-16 17:00 course_scheduling_system\.git\hooks\pre-reba
文件 544 2018-07-16 17:00 course_scheduling_system\.git\hooks\pre-receive.sample
文件 1492 2018-07-16 17:00 course_scheduling_system\.git\hooks\prepare-commit-msg.sample
文件 3610 2018-07-16 17:00 course_scheduling_system\.git\hooks\update.sample
文件 23563 2018-07-16 17:03 course_scheduling_system\.git\index
文件 240 2018-07-16 17:00 course_scheduling_system\.git\info\exclude
文件 187 2018-07-16 17:02 course_scheduling_system\.git\logs\HEAD
文件 187 2018-07-16 17:02 course_scheduling_system\.git\logs\refs\heads\master
文件 187 2018-07-16 17:02 course_scheduling_system\.git\logs\refs\remotes\origin\HEAD
文件 6812 2018-07-16 17:02 course_scheduling_system\.git\ob
文件 3040485 2018-07-16 17:02 course_scheduling_system\.git\ob
文件 114 2018-07-16 17:02 course_scheduling_system\.git\packed-refs
文件 41 2018-07-16 17:02 course_scheduling_system\.git\refs\heads\master
文件 32 2018-07-16 17:02 course_scheduling_system\.git\refs\remotes\origin\HEAD
文件 492032 2018-07-16 17:02 course_scheduling_system\data\2015-2016-1学期课表(输出1).doc
文件 55296 2018-07-16 17:02 course_scheduling_system\data\2015-2016-2学期课表(输出2).xls
文件 597364 2018-07-16 17:02 course_scheduling_system\data\排课规则.docx
文件 16829 2018-07-16 17:02 course_scheduling_system\data\教学任务\信息对抗技术系教学任务表.xlsx
文件 15024 2018-07-16 17:02 course_scheduling_system\data\教学任务\微电子技术专业教学任务表.xlsx
文件 15758 2018-07-16 17:02 course_scheduling_system\data\教学任务\电子信息工程专业教学任务表.xlsx
............此处省略395个文件信息
相关资源
- c# winform 自动登录 百度账户 源代码
- 生命游戏C#
- C#鼠标自动点击软件
- 自动化监控系统
- 萤石云摄像头自动截图以及FTP上传
- 输入框自动切换中文(C#winform)vs20
- 《OA企业办公自动化》asp.net 源码(附
- .net 检测新版本-自动升级程序
- 自动属性,接口、类的继承
- VS2012保存时自动格式化代码插件(F
- 通过程序自动填充并提交ASP.NET表单(
- 企业OA办公自动化系统 v1.1源码(附数
- LiJie银行ATM自动取款机源码(附数据库
- 数据自动上传
- C# 图片亮度对比度,自动纠偏
- 数据库自动建表
- WPF窗口贴边自动隐藏
- 自动发送弹幕(定时模拟操作键盘)
- ASP.net MVC vcard名片二维码自动生成
- UPS断电后服务器自动关机工具+源码
- winform自动更新程序
- 自动搜索代理IP的浏览器(再次废弃)
- C#源码:批量自动去除图片白边
- WPF TreeListView
- 一个WPF实现的翻书效果的
- c# NHibernate 自动生成实体类及映射文件
- C#版ATM自动存款机源代码
- WPF 自动更新
- 实验课排课系统
- 中小学智能排课系统 c#
评论
共有 条评论