• 大小: 3.41MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-11-06
  • 语言: C#
  • 标签: 排课  c#  

资源简介

该排课系统是在vs2008下用c#编写的,能实现自动排课,而且能自动检测冲突,系统自带数据库,针对中小学排课有一定的智能性!~

资源截图

代码片段和文件信息

using System.Collections.Generic;
using Telossoft.SimpleVC.Model;
using Telossoft.SimpleVC.Model.OrmEntity;


namespace Telossoft.SimpleVC.BizRule.DataRule
{
    internal class CrsDataRuleImpl : ICrsDataRule
    {
        protected DataRuleImpl ThisModule { get; private set; }
        public CrsDataRuleImpl(DataRuleImpl thisModule)
        {
            this.ThisModule = thisModule;
        }

        public IList GrpList
        {
            get
            {
                return ThisModule.Dac.Crs.GrpDAC.List;
            }
        }

        public EnCourseGroup GetGrp(long Id)
        {
            return ThisModule.Dac.Crs.GrpDAC.Get(Id);
        }

        public EnCourseGroup SaveNewGrp(EnCourseGroup Value)
        {
            return ThisModule.Dac.Crs.GrpDAC.SaveNew(Value);
        }

        public EnCourseGroup SaveExistGrp(EnCourseGroup Value)
        {
            EnCourseGroup Result =  ThisModule.Dac.Crs.GrpDAC.SaveExist(Value);
            ThisModule.SendDataChanged();

            return Result;
        }

        public bool GrpNameExist(EnCourseGroup grp string Name)
        {
            return ThisModule.Dac.Crs.GrpDAC.NameExist(grp Name);
        }

        public IList MbrList
        {
            get
            {
                return ThisModule.Dac.Crs.MbrDAC.List;
            }
        }

        public EnCourse GetMbr(long Id)
        {
            return ThisModule.Dac.Crs.MbrDAC.Get(Id);
        }

        public EnCourse SaveNewMbr(EnCourse Value)
        {
            return ThisModule.Dac.Crs.MbrDAC.SaveNew(Value);
        }

        public EnCourse SaveExistMbr(EnCourse Value)
        {
            EnCourse Result = ThisModule.Dac.Crs.MbrDAC.SaveExist(Value);
            ThisModule.SendDataChanged();

            return Result;
        }

        public bool MbrNameExist(EnCourse mbr string Name)
        {
            return ThisModule.Dac.Crs.MbrDAC.NameExist(mbr Name);
        }

        public void DeleteGrp(EnCourseGroup grp)
        {
            ThisModule.Dac.Rule.DeleteRuleOfEty(grp);
            ThisModule.Dac.Crs.DeleteGrp(grp);

            ThisModule.SendDataChanged();
        }

        public void DeleteMbr(EnCourse mbr)
        {
            //课程删除后对应的课务安排会被删除
            ThisModule.Lsn.CourseIsDelete(mbr);

            ThisModule.Dac.Rule.DeleteRuleOfEty(mbr);
            ThisModule.Dac.Crs.DeleteMbr(mbr);

            ThisModule.SendDataChanged();
        }

        public IList GetMembes(EnCourseGroup grp)
        {
            return ThisModule.Dac.Crs.GetMembes(grp);
        }

        public IList GetGroups(EnCourse mbr)
        {
            return ThisModule.Dac.Crs.GetGroups(mbr);
        }

        public void AddMember(EnCourseGroup grp EnCourse mbr)
        {
            ThisModule.Dac.Crs.CreateRelation(grp mbr);

  

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

    .CA....      3243  2009-09-09 23:45  SimpleVC\BizRule\BizRule.csproj

    .CA....      3273  2009-10-13 22:20  SimpleVC\BizRule\DataRule\CrsDataRuleImpl.cs

    .CA....      4510  2009-10-13 22:21  SimpleVC\BizRule\DataRule\DataRuleImpl.cs

    .CA....      7711  2009-10-14 19:19  SimpleVC\BizRule\DataRule\LsnDataRuleImpl.cs

    .CA....      1150  2009-10-14 00:35  SimpleVC\BizRule\DataRule\RuleDataRuleImpl.cs

    .CA....      3639  2009-10-13 22:20  SimpleVC\BizRule\DataRule\SqdDataRuleImpl.cs

    .CA....      3312  2009-10-13 22:20  SimpleVC\BizRule\DataRule\TchDataRuleImpl.cs

    .CA....     13414  2009-10-14 21:48  SimpleVC\BizRule\EngineV2\EngineV2_AI.cs

    .CA....     17788  2009-10-13 22:30  SimpleVC\BizRule\EngineV2\EngineV2_Algorithm.cs

    .CA....      4074  2009-10-14 19:14  SimpleVC\BizRule\EngineV2\EngineV2_DataModel.cs

    .CA....     10888  2009-10-13 21:46  SimpleVC\BizRule\EngineV2\EngineV2_Impl.cs

    .CA....      3124  2009-09-09 23:44  SimpleVC\BizRule\EngineV2\EngineV2_Select.cs

    .CA....      1426  2009-08-25 21:41  SimpleVC\BizRule\Properties\AssemblyInfo.cs

    .CA....       120  2009-08-25 21:41  SimpleVC\DataAccess\app.config

    .CA....      2973  2009-09-09 23:50  SimpleVC\DataAccess\DataAccess.csproj

    .CA....      3864  2009-10-11 19:18  SimpleVC\DataAccess\DataAccessImpl.cs

    .CA....      9229  2009-10-11 19:19  SimpleVC\DataAccess\GrpMbrDacImpl.cs

    .CA....     10917  2009-10-11 19:19  SimpleVC\DataAccess\GrpMbrDacImplV2.cs

    .CA....     14551  2009-09-09 23:44  SimpleVC\DataAccess\LsnDacImpl.cs

    .CA....     15890  2009-09-14 21:04  SimpleVC\DataAccess\LsnDacImplV2.cs

    .CA....      1432  2009-08-25 21:41  SimpleVC\DataAccess\Properties\AssemblyInfo.cs

    .CA....      5668  2009-09-09 23:44  SimpleVC\DataAccess\RuleDacImpl.cs

    .CA....       120  2009-08-25 21:41  SimpleVC\Model\app.config

    .CA....       403  2009-09-09 23:49  SimpleVC\Model\AppGlobal.cs

    .CA....       871  2009-09-10 00:35  SimpleVC\Model\BizEntity\EnFailAct.cs

    .CA....      1470  2009-09-09 23:44  SimpleVC\Model\BizEntity\VcActEtyRelation.cs

    .CA....      5895  2009-09-09 23:49  SimpleVC\Model\CommLogic.cs

    .CA....      3117  2009-09-09 23:49  SimpleVC\Model\Component.cs

    .CA....       439  2009-09-09 23:44  SimpleVC\Model\DataAccess\IEntityDac.cs

    .CA....       717  2009-09-09 23:44  SimpleVC\Model\DataAccess\IGrpMbrDac.cs

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

评论

共有 条评论