资源简介
排课系统C#&ASP;.net(内有三个样本),有四个文件,其中有一个是重复的,排课系统比较复杂,这个做的功能相对简单,可以参考下,供毕业设计,项目研究等使用。

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.xml;
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
namespace PaiKe
{
class Program
{
static void Main(string[] args)
{
PaiKe paike = new PaiKe();
paike.Test1();
Console.ReadLine();
}
}
class ClassUnit
{
static List CourseList = new List();
public const int WeekDay = 5;
public const int CourseCount = 6;
public int ID;
public int[] XuLie = new int[WeekDay * ClassUnit.CourseCount];
public ClassUnit(int id int[] xulie)
{
ID = id;
XuLie = xulie;
}
}
[Serializable()]
class Course
{
static int Seed = 0;
public int ID;
public int ClassID;
public string TeacherName;
public int TeacherID;
public string Name;
public int Priority = 0;
public Course(int id int techerid string name string teacherName int priority)
{
Seed++;
Name = name;
ID = id;
TeacherID = id;// techerid;
TeacherName = teacherName;
Priority = priority;
}
}
class CoursePriority
{
public static int[] Priority=new int[ClassUnit.CourseCount]{554421};
}
class PaiKe
{
Random rnd = new Random();
ClassUnit tClassUnit;// = new ClassUnit(1);
List ClassList = new List();
List CourseList = new List();
//---------------惩罚值列表--------------
//冲突
const int ChongTu = 200;
//一天有2节相同的课
const int OneDayForTowCourse = 150;
//连续2天有2节相同课
const int TowDayForTowCourse = 40;
//课程优先级单位值
const int CoursePr = 15;
void Init()
{
int[] Tshuzu ;
Tshuzu = new int[ClassUnit.CourseCount * ClassUnit.WeekDay]
{
111112
222233
333444
556668
8997710
};
tClassUnit = new ClassUnit(1 Tshuzu);
ClassList.Add(tClassUnit);
Tshuzu = new int[ClassUnit.CourseCount * ClassUnit.WeekDay]
{
111112
222233
333444
556668
8997710
};
tClassUnit = new ClassUnit(1 Tshuzu);
ClassList.Add(tClassUnit);
Tshuzu = new int[ClassUnit.CourseCount * ClassUnit.WeekDay]
{
111111111112
121212121313
131313141414
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1157 2007-02-27 11:16 PaiKe\PaiKe\Properties\AssemblyInfo.cs
文件 1944 2007-02-27 11:16 PaiKe\PaiKe\PaiKe.csproj
文件 5632 2005-12-08 14:51 PaiKe\PaiKe\bin\Debug\PaiKe.vshost.exe
文件 24576 2007-03-01 18:41 PaiKe\PaiKe\bin\Debug\PaiKe.exe
文件 26112 2007-03-01 18:41 PaiKe\PaiKe\bin\Debug\PaiKe.pdb
文件 24576 2007-03-01 18:41 PaiKe\PaiKe\obj\Debug\PaiKe.exe
文件 26112 2007-03-01 18:41 PaiKe\PaiKe\obj\Debug\PaiKe.pdb
文件 126 2007-03-01 19:32 PaiKe\PaiKe\obj\PaiKe.csproj.FileList.txt
文件 18998 2007-03-01 18:41 PaiKe\PaiKe\Program.cs
文件 1382 2007-02-27 21:42 PaiKe\PaiKe.sln
..A..H. 30720 2007-03-01 19:33 PaiKe\PaiKe.suo
文件 5612 2007-02-27 21:36 PaiKe\WinPaike\Properties\Resources.resx
文件 249 2007-02-27 21:36 PaiKe\WinPaike\Properties\Settings.settings
文件 1164 2007-02-27 21:36 PaiKe\WinPaike\Properties\AssemblyInfo.cs
文件 2870 2007-02-27 21:36 PaiKe\WinPaike\Properties\Resources.Designer.cs
文件 1091 2007-02-27 21:36 PaiKe\WinPaike\Properties\Settings.Designer.cs
文件 3290 2007-02-28 19:57 PaiKe\WinPaike\WinClass.cs
文件 1558 2007-03-01 19:26 PaiKe\WinPaike\WinPaiKe.cs
文件 6213 2007-03-01 19:24 PaiKe\WinPaike\WinMain.resx
文件 4933 2007-03-01 16:05 PaiKe\WinPaike\WinPaike.csproj
文件 49152 2007-03-01 19:32 PaiKe\WinPaike\bin\Debug\WinPaike.exe
文件 85504 2007-03-01 19:32 PaiKe\WinPaike\bin\Debug\WinPaike.pdb
文件 5632 2005-12-08 14:51 PaiKe\WinPaike\bin\Debug\WinPaike.vshost.exe
文件 1808 2007-03-01 17:04 PaiKe\WinPaike\bin\Debug\Course.dat
文件 1087 2007-03-01 18:55 PaiKe\WinPaike\bin\Debug\Class.dat
文件 880 2007-02-28 10:14 PaiKe\WinPaike\bin\Debug\复件 Course.dat
文件 731 2007-02-28 09:45 PaiKe\WinPaike\bin\Debug\复件 Class.dat
文件 1404 2007-03-01 23:11 PaiKe\WinPaike\bin\Debug\CourseInClass.dat
文件 650 2007-02-28 10:34 PaiKe\WinPaike\bin\Debug\复件 CourseInClass.dat
文件 180 2007-02-27 21:42 PaiKe\WinPaike\obj\Debug\WinPaike.Properties.Resources.resources
............此处省略50个文件信息
相关资源
- 简单的asp课程网站
- 酒店管理系统(ASP.NET)
- asp.net文档管理系统
- 教材管理系统Asp.net
- asp.net使用 百度 Ueditor 完整实例,可以
- Mysql asp.net 数据库管理源代码
- 聊天室系统 课程设计 asp.net
- 网上教学系统 asp.net
- ASP.NET员工绩效考核系统
- asp.net sqlserver单选题考试系统
- 小学生四则运算试题产生系统(asp.
- asp.net 2.0 sql sever 2000 购物车网站
- 图书馆管理系统(ASP.NET)附带数据库
- Asp.Net投票SQL版
- 简单的ASP.NET购物网
- 初学Asp.net必会的几个Demo.rar
- asp.net超市管理系统(源码+数据库)
- 宿舍管理系统(ASP.NET;学生宿舍管理
- 完整asp.net进销存系统源码
- asp.net网上书城(源码+数据库脚本)
- asp.net+sql数据库学生成绩管理系统
- asp.net 网上购书系统源码(附数据库)
- asp.net 网上选课系统(源码+数据库)
- 课设:asp.net 学生信息管理系统(ac
- Aspose.Words 18.7破解版本,含.net core版本
- 大学生综合素质测评
- Aspose.word.dll文件,修复The document app
- Aspose.Cellsdll 18.4+demo.zip 支持Excel各种
- 医药进销存管理系统源码
- 基于ASP NET在线考试系统实现 源码
评论
共有 条评论