diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/CdMajorController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/CdMajorController.cs index 8c247613b..8c77076f7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/CdMajorController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/CdMajorController.cs @@ -102,6 +102,19 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers }; return Success(jsonData); } + + /// + /// 获取树形数据 + /// + /// 父级id + /// + [HttpGet] + [AjaxOnly] + public ActionResult GetTree(string parentId) + { + var data = cdMajorIBLL.GetTree(parentId); + return JsonResult(data); + } #endregion #region 提交数据 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ClassPlanController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ClassPlanController.cs index cdb33e70f..428b71244 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ClassPlanController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ClassPlanController.cs @@ -119,7 +119,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers entity.State = 0; entity.IsAllowEdit = true; entity.MakeDate = DateTime.Now; - var model = classPlanIBLL.GetRepetitions(entity.F_SchoolId, entity.AcademicYearNo, entity.Semester, entity.DeptNo, entity.MajorNo, entity.Grade, entity.LessonNo); + var model = classPlanIBLL.GetRepetitions(entity.F_SchoolId, entity.AcademicYearNo, entity.Semester, entity.MajorNo, entity.Grade, entity.LessonNo); if (model != null) { if (keyValue != model.ID.ToString()) @@ -149,7 +149,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers for (int i = 0; i < entity.Count; i++) { var lessonList = classInfoIBLL.GetAllClass(). - Where(x => x.DeptNo == entity[i].DeptNo && x.MajorNo == entity[i].MajorNo && x.Grade == entity[i].Grade) + Where(x => x.MajorNo == entity[i].MajorNo && x.Grade == entity[i].Grade) .OrderBy(x => x.ClassNo).Select(x => x.ClassNo).ToList(); if (lessonList.Count > 0) { @@ -158,7 +158,6 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers TeachClassEntity TeachEntity = new TeachClassEntity(); TeachEntity.TeachClassNo = lessonList[j]; TeachEntity.AcademicYearNo = entity[i].AcademicYearNo; - TeachEntity.DeptNo = entity[i].DeptNo; TeachEntity.MajorNo = entity[i].MajorNo; TeachEntity.Grade = entity[i].Grade; TeachEntity.Semester = entity[i].Semester; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ClassPlanTeachController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ClassPlanTeachController.cs index 0b10baebb..003d22918 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ClassPlanTeachController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ClassPlanTeachController.cs @@ -155,7 +155,6 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers { StuSelectLessonListEntity TeachEntity = new StuSelectLessonListEntity(); TeachEntity.StuNo = stuDataList[j].StuNo; - TeachEntity.DeptNo = entityList[i].DeptNo; TeachEntity.MajorNo = entityList[i].MajorNo; TeachEntity.ClassNo = stuDataList[j].ClassNo; TeachEntity.MajorDetailNo = entityList[i].MajorDetailNo; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Form.cshtml index 9f664a33d..eb807f5b4 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Form.cshtml @@ -15,15 +15,11 @@
学期*
-
-
系部*
-
-
-
+
专业*
-
+
年级*
@@ -32,10 +28,6 @@
- @*
-
课程类别码
-
-
*@
课程细类码
@@ -44,38 +36,34 @@
开合课
-
+
拟开教学班数
-
+
人数
-
+
周课时
-
+
教室课时
-
+
上机课时
-
+
起始周次
-
+
结束周次
-
-
负责开课院系
-
-
学分
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Form.js index 28d19bcfd..4fef293f4 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Form.js @@ -33,33 +33,7 @@ var bootstrap = function ($, learun) { text: 'text' }); $('#Semester').lrDataItemSelect({ code: 'Semester' }); - $('#DeptNo').lrselect({ - url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', - value: 'deptno', - text: 'deptname', - maxHeight: 200, - select: function (item) { - var NDeptNo = $("#DeptNo").lrselectGet(); - if (NDeptNo != null && NDeptNo != "" && NDeptNo != undefined) { - $('#MajorNo').lrselectRefresh({ - url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', - param: { strWhere: " 1=1 and CheckMark=1 and deptno in (" + NDeptNo + ")" }, - value: "majorno", - text: "majorname", - maxHeight: 200 - }); - } else { - $('#MajorNo').lrselectRefresh({ - url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', - param: { strWhere: " 1=1 and CheckMark=1 and deptno ='' " }, - value: "majorno", - text: "majorname", - maxHeight: 200 - }); - } - } - }) - $("#MajorNo").lrselect(); + $('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); $('#LessonNo').lrselect({ placeholder: "请选择课程", allowSearch: true, diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Index.cshtml index 670778a6d..609fe905a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Index.cshtml @@ -6,7 +6,7 @@
学校信息
-
+
@@ -23,10 +23,6 @@
学校
-
-
专业
-
-
学年
@@ -35,10 +31,6 @@
学期
- @*
-
系部
-
-
*@
年级
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Index.js index c22726aea..5d3fac978 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Index.js @@ -7,7 +7,7 @@ var refreshGirdData; var bootstrap = function ($, learun) { "use strict"; - var cddeptname = ''; + var cdmajorname = ''; var page = { init: function () { page.inittree(); @@ -163,22 +163,22 @@ var bootstrap = function ($, learun) { }); }, inittree: function () { - $('#cddeptTree').lrtree({ - url: top.$.rootUrl + '/EducationalAdministration/CdDept/GetTree', + $('#cdmajorTree').lrtree({ + url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetTree', param: { parentId: '0' }, nodeClick: page.treeNodeClick }); - //$('#cddeptTree').lrtreeSet('setValue', '53298b7a-404c-4337-aa7f-80b2a4ca6681'); + //$('#cdmajorTree').lrtreeSet('setValue', '53298b7a-404c-4337-aa7f-80b2a4ca6681'); }, treeNodeClick: function (item) { - cddeptname = item.id; + cdmajorname = item.id; $('#titleinfo').text(item.text); page.search(); - var NDeptNo = item.id; - if (NDeptNo != null && NDeptNo != "" && NDeptNo != undefined) { + var NMajorNo = item.id; + if (NMajorNo != null && NMajorNo != "" && NMajorNo != undefined) { $('#MajorNo').lrselectRefresh({ url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', - param: { strWhere: " 1=1 and CheckMark=1 and deptno in (" + NDeptNo + ")" }, + param: { strWhere: " 1=1 and CheckMark=1 and majorno in (" + NMajorNo + ")" }, value: "majorno", text: "majorname", maxHeight: 200 @@ -186,7 +186,7 @@ var bootstrap = function ($, learun) { } else { $('#MajorNo').lrselectRefresh({ url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', - param: { strWhere: " 1=1 and CheckMark=1 and deptno ='' " }, + param: { strWhere: " 1=1 and CheckMark=1 and majorno ='' " }, value: "majorno", text: "majorname", maxHeight: 200 @@ -224,19 +224,6 @@ var bootstrap = function ($, learun) { }); } }, - { - label: "系部", name: "DeptNo", width: 100, align: "left", - formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('custmerData', { - url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', - key: value, - keyId: 'deptno', - callback: function (_data) { - callback(_data['deptname']); - } - }); - } - }, { label: "专业", name: "MajorNo", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { @@ -270,19 +257,6 @@ var bootstrap = function ($, learun) { { label: "上机课时", name: "PracticeHour", width: 80, align: "left" }, { label: "起始周次", name: "StartWeek", width: 80, align: "left" }, { label: "结束周次", name: "EndWeek", width: 80, align: "left" }, - { - label: "负责开课院系", name: "TeachDeptNo", width: 100, align: "left", - formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('custmerData', { - url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', - key: value, - keyId: 'deptno', - callback: function (_data) { - callback(_data['deptname']); - } - }); - } - }, { label: "学分", name: "StudyScore", width: 80, align: "left" }, { label: "备注", name: "Remark", width: 100, align: "left" }, ], @@ -295,7 +269,7 @@ var bootstrap = function ($, learun) { }, search: function (param) { param = param || {}; - param.DeptNo = cddeptname; + param.MajorNo = cdmajorname; $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlanTeach/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlanTeach/Index.cshtml index 4a6fdd314..a6615ae42 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlanTeach/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlanTeach/Index.cshtml @@ -6,7 +6,7 @@
学校信息
-
+
@@ -23,10 +23,6 @@
学校
-
-
专业
-
-
学年
@@ -35,10 +31,6 @@
学期
- @*
-
系部
-
-
*@
年级
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlanTeach/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlanTeach/Index.js index 2755e71ab..cc1005cfb 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlanTeach/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlanTeach/Index.js @@ -7,7 +7,7 @@ var refreshGirdData; var bootstrap = function ($, learun) { "use strict"; - var cddeptname = ''; + var cdmajorname = ''; var page = { init: function () { page.inittree(); @@ -108,22 +108,22 @@ var bootstrap = function ($, learun) { }); }, inittree: function () { - $('#cddeptTree').lrtree({ - url: top.$.rootUrl + '/EducationalAdministration/CdDept/GetTree', + $('#cdmajorTree').lrtree({ + url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetTree', param: { parentId: '0' }, nodeClick: page.treeNodeClick }); //$('#cddeptTree').lrtreeSet('setValue', '53298b7a-404c-4337-aa7f-80b2a4ca6681'); }, treeNodeClick: function (item) { - cddeptname = item.id; + cdmajorname = item.id; $('#titleinfo').text(item.text); page.search(); - var NDeptNo = item.id; - if (NDeptNo != null && NDeptNo != "" && NDeptNo != undefined) { + var NMajorNo = item.id; + if (NMajorNo != null && NMajorNo != "" && NMajorNo != undefined) { $('#MajorNo').lrselectRefresh({ url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', - param: { strWhere: " 1=1 and CheckMark=1 and deptno in (" + NDeptNo + ")" }, + param: { strWhere: " 1=1 and CheckMark=1 and majorno in (" + NMajorNo + ")" }, value: "majorno", text: "majorname", maxHeight: 200 @@ -131,7 +131,7 @@ var bootstrap = function ($, learun) { } else { $('#MajorNo').lrselectRefresh({ url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', - param: { strWhere: " 1=1 and CheckMark=1 and deptno ='' " }, + param: { strWhere: " 1=1 and CheckMark=1 and majorno ='' " }, value: "majorno", text: "majorname", maxHeight: 200 @@ -183,7 +183,7 @@ var bootstrap = function ($, learun) { } }, { - label: "专业", name: "MajorNo", width: 100, align: "left", + label: "专业", name: "MajorNo", width: 200, align: "left", formatterAsync: function (callback, value, row, op, $cell) { learun.clientdata.getAsync('custmerData', { url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', @@ -239,7 +239,7 @@ var bootstrap = function ($, learun) { }, search: function (param) { param = param || {}; - param.DeptNo = cddeptname; + param.MajorNo = cdmajorname; $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorBLL.cs index 12d8144a7..9da9eb18c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorBLL.cs @@ -2,6 +2,8 @@ using System; using System.Data; using System.Collections.Generic; +using Learun.Cache.Factory; +using Learun.Cache.Base; namespace Learun.Application.TwoDevelopment.EducationalAdministration { @@ -15,6 +17,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration public class CdMajorBLL : CdMajorIBLL { private CdMajorService cdMajorService = new CdMajorService(); + #region 缓存定义 + private ICache cache = CacheFactory.CaChe(); + private string cacheKey = "Learun_adms_cdmajor"; + #endregion #region 获取数据 @@ -279,5 +285,70 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration #endregion + #region 扩展数据 + /// + /// 获取列表数据 + /// + /// + public List GetList() + { + try + { + List list = cache.Read>(cacheKey); + if (list == null) + { + list = (List)cdMajorService.GetList(); + cache.Write>(cacheKey, list, CacheId.company); + } + return list; + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + public List GetTree(string parentId) + { + try + { + List list = GetList(); + List treeList = new List(); + foreach (var item in list) + { + TreeModel node = new TreeModel + { + id = item.MajorNo, + text = item.MajorName, + value = item.MajorNo, + showcheck = false, + checkstate = 0, + isexpand = true, + parentId = item.ID + }; + treeList.Add(node); + } + return treeList; + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + #endregion } } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorIBLL.cs index 311086017..c1c354ac3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorIBLL.cs @@ -65,5 +65,20 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration #endregion IEnumerable GetAllList(); + + #region 扩展数据 + /// + /// 获取树形数据 + /// + /// 父级id + /// + List GetTree(string parentId); + + /// + /// 获取列表数据 + /// + /// + List GetList(); + #endregion } } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorService.cs index d9a477e9b..a9e9214c0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorService.cs @@ -442,5 +442,34 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } } } + + #region 扩展数据 + /// + /// 获取公司列表信息(全部) + /// + /// + public IEnumerable GetList() + { + try + { + var strSql = new StringBuilder(); + strSql.Append("SELECT "); + strSql.Append(" * "); + strSql.Append(" FROM CdMajor t WHERE 1=1 and CheckMark=1 "); + return this.BaseRepository("CollegeMIS").FindList(strSql.ToString()); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + #endregion } } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassPlan/ClassPlanBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassPlan/ClassPlanBLL.cs index 44d709d8a..568a6b046 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassPlan/ClassPlanBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassPlan/ClassPlanBLL.cs @@ -128,17 +128,15 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// /// /// - /// /// /// /// /// - public OpenLessonPlanEntity GetRepetitions(string School, string Year, string Semester, string Dept, - string Major, string Grade, string Lesson) + public OpenLessonPlanEntity GetRepetitions(string School, string Year, string Semester, string Major, string Grade, string Lesson) { try { - return classPlanService.GetRepetitions(School, Year, Semester, Dept, Major, Grade, Lesson); + return classPlanService.GetRepetitions(School, Year, Semester, Major, Grade, Lesson); } catch (Exception ex) { diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassPlan/ClassPlanIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassPlan/ClassPlanIBLL.cs index 012eb2fa5..cb0263da8 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassPlan/ClassPlanIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassPlan/ClassPlanIBLL.cs @@ -58,7 +58,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// 年级 /// 课程 /// - OpenLessonPlanEntity GetRepetitions(string School, string Year, string Semester, string Dept, string Major, string Grade, string Lesson); + OpenLessonPlanEntity GetRepetitions(string School, string Year, string Semester, string Major, string Grade, string Lesson); /// /// 编辑时删除关联数据 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassPlan/ClassPlanService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassPlan/ClassPlanService.cs index 822519c21..ada13c545 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassPlan/ClassPlanService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/ClassPlan/ClassPlanService.cs @@ -132,8 +132,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration if (OpList != null) { var TeachList = this.BaseRepository("CollegeMIS").FindList( - x => x.DeptNo == OpList.DeptNo && - x.MajorNo == OpList.MajorNo && + x => x.MajorNo == OpList.MajorNo && x.Grade == OpList.Grade && x.Semester == OpList.Semester && x.LessonNo == OpList.LessonNo && @@ -146,8 +145,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration if (StrTeach.Count() > 0) { var LessonList = this.BaseRepository("CollegeMIS").FindList( - y => y.DeptNo == OpList.DeptNo && - y.MajorNo == OpList.MajorNo && + y => y.MajorNo == OpList.MajorNo && y.Grade == OpList.Grade && y.Semester == OpList.Semester && y.LessonNo == OpList.LessonNo && @@ -233,19 +231,18 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// 年级 /// 课程 /// - public OpenLessonPlanEntity GetRepetitions(string School, string Year, string Semester, string Dept, + public OpenLessonPlanEntity GetRepetitions(string School, string Year, string Semester, string Major, string Grade, string Lesson) { try { return this.BaseRepository("CollegeMIS").FindEntity( - x => x.F_SchoolId == School - && x.AcademicYearNo == Year - && x.Semester == Semester - && x.DeptNo == Dept - && x.MajorNo == Major - && x.Grade == Grade - && x.LessonNo == Lesson + x => x.F_SchoolId == School + && x.AcademicYearNo == Year + && x.Semester == Semester + && x.MajorNo == Major + && x.Grade == Grade + && x.LessonNo == Lesson ); } @@ -266,8 +263,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration if (OpList != null) { var TeachList = this.BaseRepository("CollegeMIS").FindList( - x => x.DeptNo == OpList.DeptNo && - x.MajorNo == OpList.MajorNo && + x => x.MajorNo == OpList.MajorNo && x.Grade == OpList.Grade && x.Semester == OpList.Semester && x.LessonNo == OpList.LessonNo && @@ -280,8 +276,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration if (StrTeach.Count > 0) { var LessonList = this.BaseRepository("CollegeMIS").FindList( - y => y.DeptNo == OpList.DeptNo && - y.MajorNo == OpList.MajorNo && + y => y.MajorNo == OpList.MajorNo && y.Grade == OpList.Grade && y.Semester == OpList.Semester && y.LessonNo == OpList.LessonNo && diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuSelectLessonList/StuSelectLessonListService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuSelectLessonList/StuSelectLessonListService.cs index c3dfede79..99656f9c0 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuSelectLessonList/StuSelectLessonListService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuSelectLessonList/StuSelectLessonListService.cs @@ -167,7 +167,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration stuLessonList.F_SchoolId = item.F_SchoolId; stuLessonList.NoticeBookNo = item.NoticeBookNo; stuLessonList.StuNo = item.StuNo; - stuLessonList.DeptNo = item.DeptNo; stuLessonList.MajorNo = item.MajorNo; stuLessonList.ClassNo = item.ClassNo; stuLessonList.MajorDetailNo = item.MajorDetailNo;