+ @*
*@
+
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 69e5d826c..e8de585b5 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 cdmajorname = '';
+ var cddeptname = '';
var page = {
init: function () {
page.inittree();
@@ -18,7 +18,7 @@ var bootstrap = function ($, learun) {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 250, 400);
- $('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' });
+ //$('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' });
$('#AcademicYearNo').lrselect({
placeholder: "请选择学年",
allowSearch: true,
@@ -34,15 +34,26 @@ var bootstrap = function ($, learun) {
value: 'value',
text: 'text'
});
- //学期
- $('#Semester').lrselect({
- placeholder: "请选择学期",
- allowSearch: true,
- url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData',
- value: 'value',
- text: 'text'
+ $('#Semester').lrDataItemSelect({ code: 'Semester' });
+ $('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
+ $('#MajorNo').lrselect({
+ url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
+ param: { strWhere: " 1=1 and CheckMark=1 " },
+ value: "majorno",
+ text: "majorname",
+ maxHeight: 200,
+ select: function (item) {
+ if (item) {
+ $('#LessonNo').lrselectRefresh({
+ url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=LessonInfo',
+ param: { strWhere: " 1=1 and CheckMark=1 and teachmajorno='" + item.majorno + "'" },
+ value: "lessonno",
+ text: "lessonname",
+ maxHeight: 200
+ });
+ }
+ }
});
- $("#MajorNo").lrselect();
$('#LessonNo').lrDataSourceSelect({ code: 'LessonInfo', value: 'lessonno', text: 'lessonname' });
// 刷新
$('#lr_refresh').on('click', function () {
@@ -157,28 +168,28 @@ var bootstrap = function ($, learun) {
}
});
} else {
- learun.alert.warning("不能选择已排课的课程计划");
+ learun.alert.warning("不嫩选择已排课的课程计划");
}
}
});
},
inittree: function () {
- $('#cdmajorTree').lrtree({
- url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetTree',
+ $('#cddeptTree').lrtree({
+ url: top.$.rootUrl + '/EducationalAdministration/CdDept/GetTree',
param: { parentId: '0' },
nodeClick: page.treeNodeClick
});
- //$('#cdmajorTree').lrtreeSet('setValue', '53298b7a-404c-4337-aa7f-80b2a4ca6681');
+ //$('#cddeptTree').lrtreeSet('setValue', '53298b7a-404c-4337-aa7f-80b2a4ca6681');
},
treeNodeClick: function (item) {
- cdmajorname = item.id;
+ cddeptname = item.id;
$('#titleinfo').text(item.text);
page.search();
- var NMajorNo = item.id;
- if (NMajorNo != null && NMajorNo != "" && NMajorNo != undefined) {
+ var NDeptNo = item.id;
+ 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 majorno in (" + NMajorNo + ")" },
+ param: { strWhere: " 1=1 and CheckMark=1 and deptno in (" + NDeptNo + ")" },
value: "majorno",
text: "majorname",
maxHeight: 200
@@ -186,7 +197,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 majorno ='' " },
+ param: { strWhere: " 1=1 and CheckMark=1 " },
value: "majorno",
text: "majorname",
maxHeight: 200
@@ -195,42 +206,43 @@ var bootstrap = function ($, learun) {
},
// 初始化列表
initGird: function () {
- $('#gridtable').lrAuthorizeJfGrid({
+ $('#gridtable').jfGrid({
url: top.$.rootUrl + '/EducationalAdministration/ClassPlan/GetPageList',
headData: [
+ { label: "学年", name: "AcademicYearNo", width: 80, align: "left" },
+ { label: "学期", name: "Semester", width: 50, align: "left" },
+ { label: "年级", name: "Grade", width: 50, align: "left" },
+ { label: "专业编码", name: "MajorNo", width: 80, align: "left" },
{
- label: "校区", name: "F_SchoolId", width: 200, 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=' + 'company',
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
key: value,
- keyId: 'f_companyid',
+ keyId: 'majorno',
callback: function (_data) {
- callback(_data['f_fullname']);
+ callback(_data['majorname']);
}
});
}
},
- { label: "学年", name: "AcademicYearNo", width: 80, align: "left" },
- { label: "学期", name: "Semester", width: 50, align: "left" },
+ { label: "课程编码", name: "LessonNo", width: 100, align: "left" },
+ { label: "课程名称", name: "LessonName", width: 200, align: "left", },
{
- label: "专业", name: "MajorNo", width: 100, align: "left",
+ label: "课程类型", name: "LessonTypeId", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
- url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdLessonType',
key: value,
- keyId: 'id',
+ keyId: 'ltid',
callback: function (_data) {
- callback(_data['majorname']);
+ callback(_data['lessontypename']);
}
});
}
},
- { label: "年级", name: "Grade", width: 50, align: "left" },
- { label: "课程编码", name: "LessonNo", width: 200, align: "left" },
- { label: "课程名称", name: "LessonName", width: 200, align: "left" },
{
- label: "状态", name: "State", width: 100, align: "left",
+ label: "状态", name: "State", width: 80, align: "left",
formatter: function (cellvalue, row) {
if (cellvalue == 0) {
return '
未排课';
@@ -239,14 +251,39 @@ var bootstrap = function ($, learun) {
}
}
},
+ {
+ label: "考试类型", name: "ExamType", width: 80, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'ExamType',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ { label: "学分", name: "StudyScore", width: 80, align: "left" },
{ label: "拟开教学班数", name: "TeachClassNum", width: 100, align: "left" },
- { label: "人数", name: "StuNum", width: 80, align: "left" },
+ //{ label: "人数", name: "StuNum", width: 80, align: "left" },
{ label: "周课时", name: "WeekLessonHour", width: 80, align: "left" },
- { label: "教室课时", name: "WeekHourClassroom", width: 80, align: "left" },
- { label: "上机课时", name: "PracticeHour", width: 80, align: "left" },
+ { label: "理论课时", name: "WeekHourClassroom", width: 80, align: "left" },
+ { label: "实践课时", name: "PracticeHour", width: 80, align: "left" },
{ label: "起始周次", name: "StartWeek", width: 80, align: "left" },
- { label: "结束周次", name: "EndWeek", width: 80, align: "left" },
- { label: "学分", name: "StudyScore", 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: "Remark", width: 100, align: "left" },
],
mainId: 'ID',
@@ -258,7 +295,7 @@ var bootstrap = function ($, learun) {
},
search: function (param) {
param = param || {};
- param.MajorNo = cdmajorname;
+ param.DeptNo = cddeptname;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/IndexSchool.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/IndexSchool.cshtml
new file mode 100644
index 000000000..7f499bb1f
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/IndexSchool.cshtml
@@ -0,0 +1,44 @@
+@{
+ ViewBag.Title = "开课计划";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/ClassPlan/IndexSchool.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/IndexSchool.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/IndexSchool.js
new file mode 100644
index 000000000..c034d9e2d
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/IndexSchool.js
@@ -0,0 +1,129 @@
+/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
+ * Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
+ * 创建人:超级管理员
+ * 日 期:2021-11-29 11:43
+ * 描 述:开课计划
+ */
+var refreshGirdData;
+var bootstrap = function ($, learun) {
+ "use strict";
+ var cddeptname = '';
+ var page = {
+ init: function () {
+ page.initGird();
+ page.bind();
+ },
+ bind: function () {
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 250, 400);
+ //$('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' });
+ $('#AcademicYearNo').lrselect({
+ placeholder: "请选择学年",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo',
+ value: 'value',
+ text: 'text'
+ });
+ //年级
+ $('#Grade').lrselect({
+ placeholder: "请选择年级",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetGradeData',
+ value: 'value',
+ text: 'text'
+ });
+ $('#Semester').lrDataItemSelect({ code: 'Semester' });
+ $("#MajorNo").lrselect();
+
+ $('#LessonNo').lrDataSourceSelect({ code: 'LessonInfo', value: 'lessonno', text: 'lessonname' });
+
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ },
+ // 初始化列表
+ initGird: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/EducationalAdministration/ClassPlan/GetPageListForSchool',
+ headData: [
+ { label: "学年", name: "AcademicYearNo", width: 80, align: "left" },
+ {
+ label: "学期", name: "Semester", width: 50, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'Semester',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ { label: "年级", name: "Grade", width: 50, align: "left" },
+ { label: "课程编码", name: "LessonNo", width: 200, align: "left" },
+ { label: "课程名称", name: "LessonName", width: 200, align: "left" },
+ {
+ label: "课程类型", name: "LessonTypeId", width: 200, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdLessonType',
+ key: value,
+ keyId: 'ltid',
+ callback: function (_data) {
+ callback(_data['lessontypename']);
+ }
+ });
+ }
+ },
+ {
+ label: "状态", name: "State", width: 100, align: "left",
+ formatter: function (cellvalue, row) {
+ if (cellvalue == 0) {
+ return '
未排课';
+ } if (cellvalue == 1) {
+ return '
已排课';
+ }
+ }
+ },
+ { label: "拟开教学班数", name: "TeachClassNum", width: 100, align: "left" },
+ //{ label: "人数", name: "StuNum", width: 80, align: "left" },
+ { label: "周课时", name: "WeekLessonHour", width: 80, align: "left" },
+ { label: "理论课时", name: "WeekHourClassroom", width: 80, align: "left" },
+ { 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" },
+ ],
+ mainId: 'ID',
+ sidx: 'MakeDate desc',
+ isPage: true
+ });
+ page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ param.DeptNo = cddeptname;
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ }
+ };
+ refreshGirdData = function () {
+ $('#gridtable').jfGridSet('reload');
+ };
+ page.init();
+}
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 746e3a92e..b0de850af 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
@@ -5,23 +5,27 @@
- 未选择专业 - 专业信息
+ 未选择系部 - 系部信息