diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/AllStuScoreQueryIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/AllStuScoreQueryIndex.js
index a8553a604..31f813eb2 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/AllStuScoreQueryIndex.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/AllStuScoreQueryIndex.js
@@ -79,7 +79,8 @@ var bootstrap = function ($, learun) {
{ label: '班级', name: 'ClassName', width: 100, align: "left" },
{ label: '学年', name: 'AcademicYearNo', width: 50, align: "left" },
{ label: '学期', name: 'Semester', width: 50, align: "left" },
- { label: '科目类型', name: 'LessonSortName', width: 60, align: "left" },
+ { label: '课程分类', name: 'LessonSortName', width: 60, align: "left" },
+ { label: '课程类型', name: 'LessonTypeName', width: 100, align: "left" },
{ label: '科目', name: 'LessonName', width: 300, align: "left" },
{ label: '学分', name: 'StudyScore', width: 50, align: "left" },
{ label: '成绩', name: 'Score', width: 100, align: "left" },
@@ -92,6 +93,22 @@ var bootstrap = function ($, learun) {
isPage: false,
sidx: '',
sord: '',
+ onRenderComplete: function (data) {
+ var studyscoreall = 0;
+ var studyscore = 0;
+ for (var i = 0; i < data.length; i++) {
+ if (!!data[i].LessonSortNo && data[i].LessonSortNo == "1") {
+ if (!!data[i].StudyScore) {
+ studyscoreall += data[i].StudyScore;
+ }
+ }
+ if (!!data[i].Score && data[i].Score >= 60) {
+ studyscore += data[i].StudyScore;
+ }
+ }
+ $("#spanstudyscoreall").html(studyscoreall + 10);
+ $("#spanstudyscore").html(studyscore);
+ }
});
//page.search();
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndex.js
index 30a4ef6a1..ebe979926 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndex.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndex.js
@@ -112,7 +112,7 @@ var bootstrap = function ($, learun) {
{ label: "年级", name: "Grade", width: 40, align: "left" },
{ label: '学年', name: 'AcademicYearNo', width: 50, align: "left" },
{ label: '学期', name: 'Semester', width: 40, align: "left" },
- { label: '课程名称', name: 'LessonName', width: 150, align: "left" }
+ { label: '课程名称', name: 'LessonName', width: 150, align: "left" },
//{
// label: '课程名称', name: 'LessonNo', width: 150, align: "left",
// formatterAsync: function (callback, value, row, op, $cell) {
@@ -126,6 +126,11 @@ var bootstrap = function ($, learun) {
// });
// }
//},
+ {
+ label: '是否缓考', name: 'IsSlow', width: 60, align: "left", formatter: function (cellvalue) {
+ return cellvalue == true ? "是" : "否";
+ }
+ },
];
headDataEdit = [
{
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexInTeacher.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexInTeacher.js
index ca6b5f3c3..376e64f1a 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexInTeacher.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexInTeacher.js
@@ -118,7 +118,7 @@ var bootstrap = function ($, learun) {
{ label: "年级", name: "Grade", width: 40, align: "left" },
{ label: '学年', name: 'AcademicYearNo', width: 50, align: "left" },
{ label: '学期', name: 'Semester', width: 40, align: "left" },
- { label: '课程名称', name: 'LessonName', width: 150, align: "left" }
+ { label: '课程名称', name: 'LessonName', width: 150, align: "left" },
//{
// label: '课程名称', name: 'LessonNo', width: 150, align: "left",
// formatterAsync: function (callback, value, row, op, $cell) {
@@ -132,6 +132,11 @@ var bootstrap = function ($, learun) {
// });
// }
//},
+ {
+ label: '是否缓考', name: 'IsSlow', width: 60, align: "left", formatter: function (cellvalue) {
+ return cellvalue == true ? "是" : "否";
+ }
+ },
];
headDataEdit = [
{
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/ScoreQueryAllIndexTeacher.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/ScoreQueryAllIndexTeacher.js
index c6df00e6d..8233b9cca 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/ScoreQueryAllIndexTeacher.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/ScoreQueryAllIndexTeacher.js
@@ -37,22 +37,23 @@ var bootstrap = function ($, learun) {
learun.alert.warning("请选择班级!");
return;
}
- $.lrSetFormWithParam(top.$.rootUrl + '/EducationalAdministration/StuScore/GetLessonNoData', p,
- function (data) {
- var temparr = [];
- for (var i = 0; i < data.length; i++) {
- var item = {};
- item.label = data[i].text;
- item.name = data[i].value;
- item.width = 150;
- item.align = "left";
- temparr.push(item);
- }
- LessonTemp = temparr;
-
- page.initGird();
- page.search(p);
- });
+ //$.lrSetFormWithParam(top.$.rootUrl + '/EducationalAdministration/StuScore/GetLessonNoData', { },
+ // function (data) {
+ // var temparr = [];
+ // for (var i = 0; i < data.length; i++) {
+ // var item = {};
+ // item.label = data[i].text;
+ // item.name = data[i].value;
+ // item.width = 150;
+ // item.align = "left";
+ // temparr.push(item);
+ // }
+ // LessonTemp = temparr;
+ // page.initGird();
+ // page.search(p);
+ // });
+ page.initGird();
+ page.search(p);
});
// 刷新
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/SlowIndex.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/SlowIndex.cshtml
new file mode 100644
index 000000000..1c6109349
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/SlowIndex.cshtml
@@ -0,0 +1,66 @@
+@{ ViewBag.Title = "全院学生成绩缓考"; Layout = "~/Views/Shared/_Index.cshtml"; }
+
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScore/SlowIndex.js")
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/SlowIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/SlowIndex.js
new file mode 100644
index 000000000..82c519064
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/SlowIndex.js
@@ -0,0 +1,308 @@
+/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
+ * Copyright (c) 2013-2018 北京泉江科技有限公司
+ * 创建人:超级管理员
+ * 日 期:2019-06-14 11:02
+ * 描 述:全院学生成绩缓考
+ */
+var selectedRow;
+var refreshGirdData;
+var refreshGirdData2;
+var judgeSelect; //判断下拉框是否选择
+var headData; //常规列头
+var headDataNoEdit; //不可编辑列头
+var headDataFinally; //最终列头
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ headData = [
+ {
+ label: "审核状态", name: "CheckMark", width: 80, align: "center",
+ formatter: function (cellvalue) {
+ return cellvalue == "1" ? "
已审核" : "
未审核";
+ }
+ },
+ { label: '学号', name: 'StuNo', width: 100, align: "left" },
+ { label: '姓名', name: 'StuName', width: 100, align: "left" },
+ {
+ label: "性别", name: "GenderNo", width: 40, align: "left",
+ formatter: function (cellvalue) {
+ return cellvalue == true ? "男" : "女";
+ }
+ },
+ {
+ label: "学习形式", name: "StudyModality", width: 55, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'StudyModality',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ {
+ label: "异动类型", name: "MoveType", width: 55, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'StuChangeType',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ {
+ label: "校区", name: "F_SchoolId", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company',
+ key: value,
+ keyId: 'f_companyid',
+ callback: function (_data) {
+ callback(_data['f_fullname']);
+ }
+ });
+ }
+ },
+ {
+ 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) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
+ key: value,
+ keyId: 'majorno',
+ callback: function (_data) {
+ callback(_data['majorname']);
+ }
+ });
+ }
+ },
+ {
+ label: "班级", name: "ClassNo", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
+ key: value,
+ keyId: 'classno',
+ callback: function (_data) {
+ callback(_data['classname']);
+ }
+ });
+ }
+ },
+ { label: "年级", name: "Grade", width: 40, align: "left" },
+ { label: '学年', name: 'AcademicYearNo', width: 50, align: "left" },
+ { label: '学期', name: 'Semester', width: 40, align: "left" },
+ { label: '课程名称', name: 'LessonName', width: 150, align: "left" },
+ //{
+ // label: '课程名称', name: 'LessonNo', width: 150, align: "left",
+ // formatterAsync: function (callback, value, row, op, $cell) {
+ // learun.clientdata.getAsync('custmerData', {
+ // url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'LessonInfo',
+ // key: value,
+ // keyId: 'lessonno',
+ // callback: function (_data) {
+ // callback(_data['lessonname']);
+ // }
+ // });
+ // }
+ //},
+ {
+ label: '是否缓考', name: 'IsSlow', width: 60, align: "left",formatter:function (cellvalue) {
+ return cellvalue == true ? "是" : "否";
+ }
+ },
+ ];
+ headDataNoEdit = [
+ {
+ label: '平时成绩', name: 'OrdinaryScore', width: 80, align: "left"
+ },
+ {
+ label: '期中成绩', name: 'TermInScore', width: 80, align: "left"
+ },
+ {
+ label: '期末成绩', name: 'TermEndScore', width: 80, align: "left"
+ },
+ {
+ label: '其他成绩', name: 'OtherScore', width: 80, align: "left"
+ },
+ { label: '总成绩', name: 'Score', width: 80, align: "left" },
+ {
+ label: '备注', name: 'Remark', width: 100, align: "left"
+ },
+ ];
+ headDataFinally = headData.concat(headDataNoEdit);
+
+ page.initGird();
+ page.bind();
+ page.bindSelect();
+ },
+ bind: function () {
+ //多条件选择
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 500);
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ //查询
+ $('#btn_Search').on('click', function () {
+ refreshGirdData2();
+ });
+ //缓考
+ $('#lr_slow').on('click', function () {
+ var query = judgeSelect();
+ if (query) {
+ var keyValue = $('#gridtable').jfGridValue('ScoreId');
+ if (learun.checkrow(keyValue)) {
+ learun.layerConfirm('是否确认缓考该项!', function (res) {
+ if (res) {
+ learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuScore/DoSlow', { keyValue: keyValue, status: 1 }, function () {
+ refreshGirdData2();
+ });
+ }
+ });
+ }
+ }
+ });
+ //取消缓考
+ $('#lr_cancelSlow').on('click', function () {
+ var query = judgeSelect();
+ if (query) {
+ var keyValue = $('#gridtable').jfGridValue('ScoreId');
+ if (learun.checkrow(keyValue)) {
+ learun.layerConfirm('是否确认取消缓考该项!', function (res) {
+ if (res) {
+ learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuScore/DoSlow', { keyValue: keyValue, status: 0 }, function () {
+ refreshGirdData2();
+ });
+ }
+ });
+ }
+ }
+ });
+ },
+ bindSelect: function () {
+ //校区
+ $('#F_SchoolId').lrDataSourceSelect({
+ code: 'company', value: 'f_companyid', text: 'f_fullname', select: function (item) { }
+ });
+ $('#F_SchoolId').lrselectSet(learun.clientdata.get(['userinfo']).companyId);
+ //学年
+ $('#AcademicYearNo').lrselect({
+ placeholder: "学年",
+ allowSearch: false,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetAcademicYearNoData',
+ value: 'value',
+ text: 'text'
+ });
+ //学期
+ $('#Semester').lrselect({
+ placeholder: "学期",
+ allowSearch: false,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData',
+ value: 'value',
+ text: 'text'
+ });
+ //课程
+ $('#LessonNo').lrselect({
+ placeholder: "请选择课程",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetLessonNoDataOfAllWithNo',
+ value: 'value',
+ text: 'text',
+ select: function (item) {
+ if (!!item) {
+ $("#ClassNo").lrselectRefresh({
+ url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetClassNoDataOfAll?lessonNo=' + item.value,
+ value: 'value',
+ text: 'text',
+ });
+ }
+ }
+ });
+ //班级
+ $('#ClassNo').lrselect({
+ placeholder: "请选择班级",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetClassNoDataOfAll',
+ value: 'value',
+ text: 'text'
+ });
+ //绑定学年、学期
+ $.get('/Home/GetYearAndSemesteResult', function (ref) {
+ if (ref.code == "200") {
+ $('#AcademicYearNo').lrselectSet(ref.data.Item1);
+ $('#Semester').lrselectSet(ref.data.Item3);
+ }
+ }.bind(this), "json");
+ },
+ initGird: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetList',
+ headData: headDataFinally,
+ mainId: 'ScoreId',
+ isPage: false,
+ isMultiselect: true,
+ sidx: 'StuNo',
+ sord: 'asc'
+ });
+ //page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ },
+ };
+ refreshGirdData = function () {
+ page.search();
+ };
+ refreshGirdData2 = function () {
+ var query = judgeSelect();
+ if (query) {
+ page.search(query);
+ }
+ };
+ judgeSelect = function () {
+ var $content = $('body').find('.lr-layout-tool-left');
+ var query = $content.lrGetFormData();
+ if (query.F_SchoolId == null || query.F_SchoolId == "") {
+ learun.alert.warning("请选择校区!");
+ return false;
+ }
+ if (query.AcademicYearNo == null || query.AcademicYearNo == "") {
+ learun.alert.warning("请选择学年!");
+ return false;
+ }
+ if (query.Semester == null || query.Semester == "") {
+ learun.alert.warning("请选择学期!");
+ return false;
+ }
+ if (query.LessonNo == null || query.LessonNo == "") {
+ learun.alert.warning("请选择课程!");
+ return false;
+ }
+ if (query.ClassNo == null || query.ClassNo == "") {
+ learun.alert.warning("请选择班级!");
+ return false;
+ }
+ return query;
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/StuScoreQueryIndexRow.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/StuScoreQueryIndexRow.cshtml
new file mode 100644
index 000000000..961fa964a
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/StuScoreQueryIndexRow.cshtml
@@ -0,0 +1,35 @@
+@{ ViewBag.Title = "全院学生成绩查看"; Layout = "~/Views/Shared/_Index.cshtml"; }
+
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScore/StuScoreQueryIndexRow.js")
\ No newline at end of file
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/StuScoreQueryIndexRow.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/StuScoreQueryIndexRow.js
new file mode 100644
index 000000000..64f5f5495
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/StuScoreQueryIndexRow.js
@@ -0,0 +1,114 @@
+/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
+ * Copyright (c) 2013-2018 北京泉江科技有限公司
+ * 创建人:超级管理员
+ * 日 期:2019-06-14 11:02
+ * 描 述:全院学生成绩查看
+ */
+var selectedRow;
+var refreshGirdData;
+var bootstrap = function ($, learun) {
+ var stuinfo = learun.clientdata.get(['userinfo']).account;
+ "use strict";
+ var page = {
+ init: function () {
+ page.bind();
+ },
+ bind: function () {
+ // 查询
+ $('#btn_Search').on('click', function () {
+ var p = {};
+ p.AcademicYearNo = $('#AcademicYearNo').lrselectGet();
+ p.Semester = $('#Semester').lrselectGet();
+ p.StuNo = stuinfo;
+ page.search(p);
+ });
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ //打印
+ $('#lr_print').on('click', function () {
+ var AcademicYearNo = $('#AcademicYearNo').lrselectGet();
+ var Semester = $('#Semester').lrselectGet();
+ var StuNo = $.trim($('#StuNo').val());
+ if (StuNo == null || StuNo == "") {
+ learun.alert.warning("请输入学号!");
+ return;
+ }
+ learun.layerForm({
+ id: 'AllStuScoreQueryPrint',
+ title: '学生成绩单',
+ url: top.$.rootUrl + '/EducationalAdministration/StuScore/AllStuScoreQueryPrint?StuNo=' + StuNo + '&AcademicYearNo=' + AcademicYearNo + '&Semester=' + Semester,
+ width: 1200,
+ height: 800,
+ btn: null
+ });
+ });
+ //学年
+ $('#AcademicYearNo').lrselect({
+ placeholder: "请选择学年",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetAcademicYearNoData',
+ value: 'value',
+ text: 'text'
+ });
+ //学期
+ $('#Semester').lrselect({
+ placeholder: "请选择学期",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData',
+ value: 'value',
+ text: 'text'
+ });
+ $.get({
+ url: '/Home/GetYearAndSemesteResult',
+ dataType:'json',
+ success: function (ref) {
+ if (ref.code == 200) {
+ $('#AcademicYearNo').lrselectSet(ref.data.Item1);
+ $('#Semester').lrselectSet(ref.data.Item3);
+ setTimeout(page.initGird,1000);
+ }
+ }
+ });
+ },
+ initGird: function () {
+ $('#gridtable').lrAuthorizeJfGridLei({
+ url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetScoreListByStuInfo',
+ headData: [
+ { label: '学号', name: 'StuNo', width: 100, align: "left" },
+ { label: '姓名', name: 'StuName', width: 200, align: "left" },
+ { label: '专业', name: 'MajorName', width: 100, align: "left" },
+ { label: '班级', name: 'ClassName', width: 100, align: "left" },
+ { label: '学年', name: 'AcademicYearNo', width: 50, align: "left" },
+ { label: '学期', name: 'Semester', width: 50, align: "left" },
+ { label: '课程分类', name: 'LessonSortName', width: 60, align: "left" },
+ { label: '课程类型', name: 'LessonTypeName', width: 100, align: "left" },
+ { label: '科目', name: 'LessonName', width: 300, align: "left" },
+ { label: '学分', name: 'StudyScore', width: 50, align: "left" },
+ { label: '成绩', name: 'Score', width: 100, align: "left" },
+ { label: '第一次补考成绩', name: 'ScoreOfNotPass', width: 100, align: "left" },
+ { label: '第二次补考成绩', name: 'ScoreOfNotPassTwo', width: 100, align: "left" },
+ { label: '专业排名', name: 'RankInMajor', width: 100, align: "left" },
+ { label: '班级排名', name: 'RankInClass', width: 100, align: "left" },
+ ],
+ mainId: 'StuNo',
+ isPage: false,
+ sidx: '',
+ sord: '',
+ });
+ page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ param.AcademicYearNo = $('#AcademicYearNo').lrselectGet();
+ param.Semester = $('#Semester').lrselectGet();
+ param.StuNo = stuinfo;
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ }
+ };
+ refreshGirdData = function () {
+ page.search();
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndex.js
index 9e288d4bb..cbe9135fe 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndex.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndex.js
@@ -112,7 +112,7 @@ var bootstrap = function ($, learun) {
{ label: "年级", name: "Grade", width: 40, align: "left" },
{ label: '学年', name: 'AcademicYearNo', width: 50, align: "left" },
{ label: '学期', name: 'Semester', width: 40, align: "left" },
- { label: '课程名称', name: 'LessonName', width: 150, align: "left" }
+ { label: '课程名称', name: 'LessonName', width: 150, align: "left" },
//{
// label: '课程名称', name: 'LessonNo', width: 150, align: "left",
// formatterAsync: function (callback, value, row, op, $cell) {
@@ -126,6 +126,11 @@ var bootstrap = function ($, learun) {
// });
// }
//},
+ {
+ label: '是否缓考', name: 'IsSlow', width: 60, align: "left", formatter: function (cellvalue) {
+ return cellvalue == true ? "是" : "否";
+ }
+ },
];
headDataEdit = [
{
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndexInTeacher.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndexInTeacher.js
index 01187590d..59a4311dc 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndexInTeacher.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndexInTeacher.js
@@ -117,7 +117,7 @@ var bootstrap = function ($, learun) {
{ label: "年级", name: "Grade", width: 40, align: "left" },
{ label: '学年', name: 'AcademicYearNo', width: 50, align: "left" },
{ label: '学期', name: 'Semester', width: 40, align: "left" },
- { label: '课程名称', name: 'LessonName', width: 150, align: "left" }
+ { label: '课程名称', name: 'LessonName', width: 150, align: "left" },
//{
// label: '课程名称', name: 'LessonNo', width: 150, align: "left",
// formatterAsync: function (callback, value, row, op, $cell) {
@@ -131,6 +131,11 @@ var bootstrap = function ($, learun) {
// });
// }
//},
+ {
+ label: '是否缓考', name: 'IsSlow', width: 60, align: "left", formatter: function (cellvalue) {
+ return cellvalue == true ? "是" : "否";
+ }
+ },
];
headDataEdit = [
{
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/SlowIndex.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/SlowIndex.cshtml
new file mode 100644
index 000000000..c0d8ca0e7
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/SlowIndex.cshtml
@@ -0,0 +1,66 @@
+@{ ViewBag.Title = "全院学生补考成绩缓考"; Layout = "~/Views/Shared/_Index.cshtml"; }
+
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScoreNotPass/SlowIndex.js")
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/SlowIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/SlowIndex.js
new file mode 100644
index 000000000..981f5d45e
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/SlowIndex.js
@@ -0,0 +1,300 @@
+/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
+ * Copyright (c) 2013-2018 北京泉江科技有限公司
+ * 创建人:超级管理员
+ * 日 期:2019-11-05 15:25
+ * 描 述:全院学生补考成绩缓考
+ */
+var selectedRow;
+var refreshGirdData;
+var refreshGirdData2;
+var judgeSelect; //判断下拉框是否选择
+var headData; //常规列头
+var headDataNoEdit; //不可编辑列头
+var headDataFinally; //最终列头
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ headData = [
+ {
+ label: "审核状态", name: "CheckMark", width: 80, align: "center",
+ formatter: function (cellvalue) {
+ return cellvalue == "1" ? "
已审核" : "
未审核";
+ }
+ },
+ { label: '学号', name: 'StuNo', width: 100, align: "left" },
+ { label: '姓名', name: 'StuName', width: 100, align: "left" },
+ {
+ label: "性别", name: "GenderNo", width: 40, align: "left",
+ formatter: function (cellvalue) {
+ return cellvalue == true ? "男" : "女";
+ }
+ },
+ {
+ label: "学习形式", name: "StudyModality", width: 55, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'StudyModality',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ {
+ label: "异动类型", name: "MoveType", width: 55, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('dataItem', {
+ key: value,
+ code: 'StuChangeType',
+ callback: function (_data) {
+ callback(_data.text);
+ }
+ });
+ }
+ },
+ {
+ label: "校区", name: "F_SchoolId", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company',
+ key: value,
+ keyId: 'f_companyid',
+ callback: function (_data) {
+ callback(_data['f_fullname']);
+ }
+ });
+ }
+ },
+ {
+ 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) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
+ key: value,
+ keyId: 'majorno',
+ callback: function (_data) {
+ callback(_data['majorname']);
+ }
+ });
+ }
+ },
+ {
+ label: "班级", name: "ClassNo", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
+ key: value,
+ keyId: 'classno',
+ callback: function (_data) {
+ callback(_data['classname']);
+ }
+ });
+ }
+ },
+ { label: "年级", name: "Grade", width: 40, align: "left" },
+ { label: '学年', name: 'AcademicYearNo', width: 50, align: "left" },
+ { label: '学期', name: 'Semester', width: 40, align: "left" },
+ { label: '课程名称', name: 'LessonName', width: 150, align: "left" },
+ //{
+ // label: '课程名称', name: 'LessonNo', width: 150, align: "left",
+ // formatterAsync: function (callback, value, row, op, $cell) {
+ // learun.clientdata.getAsync('custmerData', {
+ // url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'LessonInfo',
+ // key: value,
+ // keyId: 'lessonno',
+ // callback: function (_data) {
+ // callback(_data['lessonname']);
+ // }
+ // });
+ // }
+ //},
+ {
+ label: '是否缓考', name: 'IsSlow', width: 60, align: "left", formatter: function (cellvalue) {
+ return cellvalue == true ? "是" : "否";
+ }
+ },
+ ];
+ headDataNoEdit = [
+ {
+ label: '期末成绩', name: 'TermEndScore', width: 80, align: "left"
+ },
+ { label: '总成绩', name: 'Score', width: 80, align: "left" },
+ {
+ label: '备注', name: 'Remark', width: 100, align: "left"
+ },
+ ];
+ headDataFinally = headData.concat(headDataNoEdit);
+
+ page.initGird();
+ page.bind();
+ page.bindSelect();
+ },
+ bind: function () {
+ //多条件选择
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 500);
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ //查询
+ $('#btn_Search').on('click', function () {
+ refreshGirdData2();
+ });
+ //缓考
+ $('#lr_slow').on('click', function () {
+ var query = judgeSelect();
+ if (query) {
+ var keyValue = $('#gridtable').jfGridValue('ScoreId');
+ if (learun.checkrow(keyValue)) {
+ learun.layerConfirm('是否确认缓考该项!', function (res) {
+ if (res) {
+ learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuScoreNotPass/DoSlow', { keyValue: keyValue, status: 1 }, function () {
+ refreshGirdData2();
+ });
+ }
+ });
+ }
+ }
+ });
+ //取消缓考
+ $('#lr_cancelSlow').on('click', function () {
+ var query = judgeSelect();
+ if (query) {
+ var keyValue = $('#gridtable').jfGridValue('ScoreId');
+ if (learun.checkrow(keyValue)) {
+ learun.layerConfirm('是否确认取消缓考该项!', function (res) {
+ if (res) {
+ learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuScoreNotPass/DoSlow', { keyValue: keyValue, status: 0 }, function () {
+ refreshGirdData2();
+ });
+ }
+ });
+ }
+ }
+ });
+ },
+ bindSelect: function () {
+ //校区
+ $('#F_SchoolId').lrDataSourceSelect({
+ code: 'company', value: 'f_companyid', text: 'f_fullname', select: function (item) { }
+ });
+ $('#F_SchoolId').lrselectSet(learun.clientdata.get(['userinfo']).companyId);
+ //学年
+ $('#AcademicYearNo').lrselect({
+ placeholder: "学年",
+ allowSearch: false,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreNotPass/GetAcademicYearNoData',
+ value: 'value',
+ text: 'text'
+ });
+ //学期
+ $('#Semester').lrselect({
+ placeholder: "学期",
+ allowSearch: false,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData',
+ value: 'value',
+ text: 'text'
+ });
+ //课程
+ $('#LessonNo').lrselect({
+ placeholder: "请选择课程",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreNotPass/GetLessonNoDataOfAllWithNo',
+ value: 'value',
+ text: 'text',
+ select: function (item) {
+ if (!!item) {
+ $("#ClassNo").lrselectRefresh({
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreNotPass/GetClassNoDataOfAll?lessonNo=' + item.value,
+ value: 'value',
+ text: 'text',
+ });
+ }
+ }
+ });
+ //班级
+ $('#ClassNo').lrselect({
+ placeholder: "请选择班级",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreNotPass/GetClassNoDataOfAll',
+ value: 'value',
+ text: 'text'
+ });
+
+ //绑定学年、学期
+ $.get('/Home/GetYearAndSemesteResult', function (ref) {
+ if (ref.code == "200") {
+ $('#AcademicYearNo').lrselectSet(ref.data.Item1);
+ $('#Semester').lrselectSet(ref.data.Item3);
+ }
+ }.bind(this), "json");
+ },
+ initGird: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreNotPass/GetList',
+ headData: headDataFinally,
+ mainId: 'ScoreId',
+ isPage: false,
+ isMultiselect: true,
+ sidx: 'StuNo',
+ sord: 'asc'
+ });
+ //page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ },
+ };
+ refreshGirdData = function () {
+ page.search();
+ };
+ refreshGirdData2 = function () {
+ var query = judgeSelect();
+ if (query) {
+ page.search(query);
+ }
+ };
+ judgeSelect = function () {
+ var $content = $('body').find('.lr-layout-tool-left');
+ var query = $content.lrGetFormData();
+ if (query.F_SchoolId == null || query.F_SchoolId == "") {
+ learun.alert.warning("请选择校区!");
+ return false;
+ }
+ if (query.AcademicYearNo == null || query.AcademicYearNo == "") {
+ learun.alert.warning("请选择学年!");
+ return false;
+ }
+ if (query.Semester == null || query.Semester == "") {
+ learun.alert.warning("请选择学期!");
+ return false;
+ }
+ if (query.LessonNo == null || query.LessonNo == "") {
+ learun.alert.warning("请选择课程!");
+ return false;
+ }
+ if (query.ClassNo == null || query.ClassNo == "") {
+ learun.alert.warning("请选择班级!");
+ return false;
+ }
+ return query;
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/InputScoreIndexInTeacher.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/InputScoreIndexInTeacher.js
index ebcbcd69e..37ca1c4b8 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/InputScoreIndexInTeacher.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/InputScoreIndexInTeacher.js
@@ -457,13 +457,13 @@ var bootstrap = function ($, learun) {
$('#LessonNo').lrselect({
placeholder: "请选择课程",
allowSearch: true,
- url: top.$.rootUrl + '/EducationalAdministration/StuScoreNotPassTwo/GetLessonNoDataOfAllWithNo',
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreNotPassTwo/GetLessonNoDataWithNo',
value: 'value',
text: 'text',
select: function (item) {
if (!!item) {
$("#ClassNo").lrselectRefresh({
- url: top.$.rootUrl + '/EducationalAdministration/StuScoreNotPassTwo/GetClassNoDataOfAll?lessonNo=' + item.value,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreNotPassTwo/GetClassNoData?lessonNo=' + item.value,
value: 'value',
text: 'text',
});
@@ -474,7 +474,7 @@ var bootstrap = function ($, learun) {
$('#ClassNo').lrselect({
placeholder: "请选择班级",
allowSearch: true,
- url: top.$.rootUrl + '/EducationalAdministration/StuScoreNotPassTwo/GetClassNoDataOfAll',
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreNotPassTwo/GetClassNoData',
value: 'value',
text: 'text'
});
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndex.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndex.cshtml
new file mode 100644
index 000000000..2c34f895c
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndex.cshtml
@@ -0,0 +1,122 @@
+@{ ViewBag.Title = "全院学生线上成绩录入"; Layout = "~/Views/Shared/_Index.cshtml"; }
+
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndex.js")
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndex.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndex.js
new file mode 100644
index 000000000..9185ccdd5
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndex.js
@@ -0,0 +1,624 @@
+/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
+ * Copyright (c) 2013-2018 北京泉江科技有限公司
+ * 创建人:超级管理员
+ * 日 期:2023-06-12 11:02
+ * 描 述:全院学生线上成绩录入
+ */
+var selectedRow;
+var refreshGirdData;
+var refreshGirdData2;
+var judgeSelect; //判断下拉框是否选择
+var modifyDate; //成绩被占用,且是登录用户时,成绩表中的编辑时间;
+var timer; //计时器
+var submitScoreTimer; //五分钟提交成绩计时器
+var headData; //常规列头
+var headDataEdit; //可编辑列头
+var headDataNoEdit; //不可编辑列头
+var headDataFinally; //最终列头
+var rowJson;
+var columnJson;
+var queryJson;
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ headData = [
+ {
+ label: "审核状态", name: "CheckMark", width: 80, align: "center",
+ formatter: function (cellvalue) {
+ return cellvalue == "1" ? "
已审核" : "
未审核";
+ }
+ },
+ { label: '学年', name: 'AcademicYearNo', width: 50, align: "left" },
+ { label: '学期', name: 'Semester', width: 40, align: "left" },
+ { label: '课程名称', name: 'LessonName', width: 150, align: "left" },
+ {
+ label: "学校名称", name: "F_SchoolId", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company',
+ key: value,
+ keyId: 'f_companyid',
+ callback: function (_data) {
+ callback(_data['f_fullname']);
+ }
+ });
+ }
+ },
+ {
+ 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) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
+ key: value,
+ keyId: 'majorno',
+ callback: function (_data) {
+ callback(_data['majorname']);
+ }
+ });
+ }
+ },
+ {
+ label: "班级", name: "ClassNo", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
+ key: value,
+ keyId: 'classno',
+ callback: function (_data) {
+ callback(_data['classname']);
+ }
+ });
+ }
+ },
+ { label: '学生姓名', name: 'StuName', width: 150, align: "left" },
+ { label: '学生学号', name: 'StuNo', width: 100, align: "left" },
+ ];
+ headDataEdit = [
+ {
+ label: '成绩', name: 'TermEndScore', width: 80, align: "left",
+ edit: {
+ type: 'input',
+ inputType: 'number',
+ change: function (row, rownum) {
+ row.Score = (parseFloat(row.TermEndScore || '0') * 1).toFixed(2);
+ $('#gridtable').jfGridSet('updateRow', rownum);
+ },
+ }
+ },
+ { label: '最终核定成绩', name: 'Score', width: 80, align: "left" },
+ {
+ label: '备注', name: 'Remark', width: 100, align: "left",
+ edit: {
+ type: 'input',
+ }
+ },
+ ];
+ headDataNoEdit = [
+ {
+ label: '成绩', name: 'TermEndScore', width: 80, align: "left"
+ },
+ { label: '最终核定成绩', name: 'Score', width: 80, align: "left" },
+ {
+ label: '备注', name: 'Remark', width: 100, align: "left"
+ },
+ ];
+ headDataFinally = headData.concat(headDataNoEdit);
+
+ page.initGird();
+ page.bind();
+ page.bindSelect();
+ },
+ bind: function () {
+ //多条件选择
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 500);
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ //查询
+ $('#btn_Search').on('click', function () {
+ refreshGirdData2();
+ });
+ //设置成绩比例(暂时未使用未修改)
+ $('#lr_setScale').on('click', function () {
+ var query = judgeSelect();
+ if (query) {
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/OpenLessonPlan/GetOpenLessonPlanEntityByJson?queryJson=' + JSON.stringify(query), function (data) {
+ if (data["OpenLessonPlan"] != null) {
+ if (data["OpenLessonPlan"].IsAllowEdit) { //教务允许成绩录入时编辑比例
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/OpenLessonPlan/GetStuSelectLessonListEntityByJson?queryJson=' + JSON.stringify(query), function (data) {
+ if (data["StuSelectLessonList"] != null) {
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetEntityByJson?queryJson=' + JSON.stringify(query), function (data) {
+ if (data != null) {
+ if (data.CheckMark == 1) { //学生成绩已审核
+ learun.alert.warning("学生成绩已审核!");
+ return false;
+ } else {
+ learun.layerForm({
+ id: 'FormOfClass',
+ title: '班级成绩比例设置',
+ url: top.$.rootUrl + '/EducationalAdministration/OpenLessonPlan/FormOfClass?F_SchoolId=' + query.F_SchoolId + '&AcademicYearNo=' + query.AcademicYearNo + '&Semester=' + query.Semester + '&LessonNo=' + query.LessonNo + '&ClassNo=' + query.ClassNo,
+ width: 600,
+ height: 400,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData2);
+ }
+ });
+ }
+ } else {
+ learun.alert.warning("学生成绩不存在!");
+ return false;
+ }
+ });
+ } else {
+ learun.alert.warning("学生选课数据不存在!");
+ return false;
+ }
+ });
+ } else {
+ learun.alert.warning("教务不允许设置成绩比例!");
+ return false;
+ }
+ } else {
+ learun.alert.warning("开课计划不存在!");
+ return false;
+ }
+ });
+ }
+ });
+ // 开始录入
+ $('#lr_input').on('click', function () {
+ //提示弹框
+ learun.layerConfirm('录入完成后,请务必点击“提交成绩”按钮,避免成绩丢失!', function (res) {
+ if (res) {
+
+ var query = judgeSelect();
+ if (query) {
+ //判断成绩比例是否合理
+ //var OrdinaryScoreScale = $('#OrdinaryScoreScale').html();
+ //var TermInScoreScale = $('#TermInScoreScale').html();
+ //var TermEndScoreScale = $('#TermEndScoreScale').html();
+ //var OtherScoreScale = $('#OtherScoreScale').html();
+ //var totalScale = Number(OrdinaryScoreScale) + Number(TermInScoreScale) + Number(TermEndScoreScale) + Number(OtherScoreScale);
+ //if (totalScale !== 100) {
+ // learun.alert.warning("成绩比例设置不合理!");
+ // return false;
+ //} else {
+ //判断是否已审核;判断是否被其他教师占用
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetEntityByJson?queryJson=' + JSON.stringify(query), function (data) {
+ if (data != null) {
+ if (data.CheckMark == 1) {
+ learun.alert.warning("学生成绩已审核!");
+ return false;
+ }
+ if (data.IsEditable == 0) {
+ if (data.EditUserId == learun.clientdata.get(['userinfo']).account) {
+ modifyDate = data.ModifyDate;
+ } else {
+ learun.alert.warning("当前班级成绩由账号为" + data.EditUserId + "的教师在使用!");
+ return false;
+ }
+ } else {
+ //占用成绩
+ learun.postFormSilence(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/StartInputScore', { queryJson: JSON.stringify(query) }, function (res) { });
+ }
+ //显示可编辑列头
+ headDataFinally = headData.concat(headDataEdit);
+ $("#gridtable")[0].dfop = undefined;
+ page.initGird();
+ page.search(query);
+ //显示“提交成绩”按钮
+ $('#lr_save').show();
+ //隐藏“开始录入”按钮
+ $('#lr_input').hide();
+ //显示“倒计时”
+ $('.timeBox').show();
+ $('#minutes').html($('#minutes').attr('data-minutes'));
+ //开始倒计时
+ page.countDown();
+ //五分钟提交成绩
+ page.submitScore();
+ } else {
+ learun.alert.warning("学生成绩不存在!");
+ return false;
+ }
+ });
+ //}
+ }
+
+ }
+ });
+ });
+ //提交成绩
+ $('#lr_save').on('click', function () {
+ var query = judgeSelect();
+ if (query) {
+ //成绩被占用,且是登录用户时,根据编辑时间判断是否是本人;
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetEntityByJson?queryJson=' + JSON.stringify(query), function (data) {
+ if (data != null) {
+ if (data.CheckMark == 1) {
+ learun.alert.warning("学生成绩已审核!");
+ return false;
+ }
+ if (data.IsEditable == 0) {
+ if (data.EditUserId == learun.clientdata.get(['userinfo']).account) {
+ if (modifyDate != null && modifyDate != data.ModifyDate) {
+ learun.alert.warning("当前班级成绩被修改,请重新获取!");
+ return false;
+ }
+ } else {
+ learun.alert.warning("当前班级成绩由账号为" + data.EditUserId + "的教师在使用!");
+ return false;
+ }
+ } else if (data.IsEditable == 1) {
+ learun.alert.warning("学生成绩已提交!");
+ return false;
+ }
+ //提交成绩
+ var rowdatas = $('#gridtable').jfGridGet('rowdatas');
+ learun.postFormSilence(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/SaveInputScore', { data: JSON.stringify(rowdatas) }, function (res) {
+ if (res.code == 200) {
+ //提交成绩:取消占用
+ learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/SaveInputScoreStatus', { queryJson: JSON.stringify(query) }, function (res) {
+ if (res.code == 200) {
+ refreshGirdData2();
+ modifyDate = null;
+ //隐藏“提交成绩”按钮
+ $('#lr_save').hide();
+ //显示“开始录入”按钮
+ $('#lr_input').show();
+ //隐藏“倒计时”
+ $('.timeBox').hide();
+ //停止倒计时
+ clearInterval(timer);
+ //停止五分钟提交成绩
+ clearInterval(submitScoreTimer);
+ } else {
+ learun.alert.warning("提交成绩:取消占用失败!");
+ return false;
+ }
+ });
+ } else {
+ learun.alert.warning("提交成绩失败!");
+ return false;
+ }
+ });
+
+ } else {
+ learun.alert.warning("学生成绩不存在!");
+ return false;
+ }
+ });
+ }
+ });
+ // 审核
+ $('#lr_check').on('click', function () {
+ var query = judgeSelect();
+ if (query) {
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetEntityByJson?queryJson=' + JSON.stringify(query), function (data) {
+ if (data != null) {
+ if (data.CheckMark == 1) {
+ learun.alert.warning("学生成绩已审核!");
+ return false;
+ }
+ learun.layerConfirm('是否确认审核当前班级的学生成绩!', function (res) {
+ if (res) {
+ //审核成绩
+ learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/DoCheckScore', { queryJson: JSON.stringify(query), checkMark: 1 }, function (res) {
+ if (res.code == 200) {
+ refreshGirdData2();
+ } else {
+ learun.alert.warning("审核成绩失败!");
+ return false;
+ }
+ });
+ }
+ });
+ } else {
+ learun.alert.warning("学生成绩不存在!");
+ return false;
+ }
+ });
+ }
+ });
+ // 去审核
+ $('#lr_uncheck').on('click', function () {
+ var query = judgeSelect();
+ if (query) {
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetEntityByJson?queryJson=' + JSON.stringify(query), function (data) {
+ if (data != null) {
+ if (data.CheckMark != 1) {
+ learun.alert.warning("学生成绩未审核!");
+ return false;
+ }
+ learun.layerConfirm('是否确认去审核当前班级的学生成绩!', function (res) {
+ if (res) {
+ //去审核成绩
+ learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/DoCheckScore', { queryJson: JSON.stringify(query), checkMark: 0 }, function (res) {
+ if (res.code == 200) {
+ refreshGirdData2();
+ } else {
+ learun.alert.warning("去审核成绩失败!");
+ return false;
+ }
+ });
+ }
+ });
+ } else {
+ learun.alert.warning("学生成绩不存在!");
+ return false;
+ }
+ });
+ }
+ });
+ //续时
+ $('#addMinutesBtn').on('click', function () {
+ var query = judgeSelect();
+ if (query) {
+ clearInterval(timer);
+ var addMinutes = $('#addMinutesBtn').attr('data-minutes');
+ var newMinutes = addMinutes;
+ var minutes = $('#minutes').html();
+ if (minutes > 0) {
+ newMinutes = Number(newMinutes) + Number(minutes);
+ }
+ $('#minutes').html(newMinutes);
+ page.countDown();
+ //修改服务时间
+ learun.postFormSilence(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/AddMinutes', { queryJson: JSON.stringify(query), minutes: newMinutes }, function (res) { });
+ }
+ });
+ //导入更新
+ $('#lr_importScore').on('click', function () {
+ var query = judgeSelect();
+ if (query) {
+ //判断成绩比例是否合理
+ //var OrdinaryScoreScale = $('#OrdinaryScoreScale').html();
+ //var TermInScoreScale = $('#TermInScoreScale').html();
+ //var TermEndScoreScale = $('#TermEndScoreScale').html();
+ //var OtherScoreScale = $('#OtherScoreScale').html();
+ //var totalScale = Number(OrdinaryScoreScale) + Number(TermInScoreScale) + Number(TermEndScoreScale) + Number(OtherScoreScale);
+ //if (totalScale !== 100) {
+ // learun.alert.warning("成绩比例设置不合理!");
+ // return false;
+ //} else {
+ //判断是否已审核;判断是否被其他教师占用
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetEntityByJson?queryJson=' + JSON.stringify(query), function (data) {
+ if (data != null) {
+ if (data.CheckMark == 1) {
+ learun.alert.warning("学生成绩已审核!");
+ return false;
+ }
+ if (data.IsEditable == 0) {
+ if (data.EditUserId == learun.clientdata.get(['userinfo']).account) {
+ modifyDate = data.ModifyDate;
+ } else {
+ learun.alert.warning("当前班级成绩由账号为" + data.EditUserId + "的教师在使用!");
+ return false;
+ }
+ }
+
+ rowJson = $('#gridtable').jfGridGet('showData');
+ if (rowJson.length <= 0) {
+ learun.alert.warning("查询结果不存在!");
+ return false;
+ }
+ columnJson = $('#gridtable').jfGridGet('settingInfo').headData;
+ //条件
+ queryJson = query;
+
+ learun.layerForm({
+ id: 'IndexImport',
+ title: "导入学生成绩",
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/InputScoreIndexImport?type=0',
+ width: 600,
+ height: 400,
+ maxmin: true,
+ btn: null,
+ end: function () {
+ refreshGirdData2();
+ }
+ });
+
+ } else {
+ learun.alert.warning("学生成绩不存在!");
+ return false;
+ }
+ });
+ //}
+ }
+
+ });
+ },
+ bindSelect: function () {
+ //校区
+ $('#F_SchoolId').lrDataSourceSelect({
+ code: 'company', value: 'f_companyid', text: 'f_fullname', select: function (item) { }
+ });
+ $('#F_SchoolId').lrselectSet(learun.clientdata.get(['userinfo']).companyId);
+ //学年
+ $('#AcademicYearNo').lrselect({
+ placeholder: "学年",
+ allowSearch: false,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetAcademicYearNoData',
+ value: 'value',
+ text: 'text',
+ select: function (item) {
+ if (!!item) {
+ $("#LessonNo").lrselectRefresh({
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetLessonNoDataOfAllWithNo?AcademicYearShort=' + item.value + '&Semester=' + $('#Semester').lrselectGet(),
+ });
+ }
+ }
+ });
+ //学期
+ $('#Semester').lrselect({
+ placeholder: "学期",
+ allowSearch: false,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetSemesterData',
+ value: 'value',
+ text: 'text',
+ select: function (item) {
+ if (!!item) {
+ $("#LessonNo").lrselectRefresh({
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetLessonNoDataOfAllWithNo?AcademicYearShort=' + $('#AcademicYearNo').lrselectGet() + '&Semester=' + item.value,
+ });
+ }
+ }
+ });
+ //课程
+ $('#LessonNo').lrselect({
+ placeholder: "请选择课程",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetLessonNoDataOfAllWithNo',
+ value: 'value',
+ text: 'text',
+ select: function (item) {
+ if (!!item) {
+ $("#EmpNo").lrselectRefresh({
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetEmpNoDataOfAll?lessonNo=' + item.value + '&AcademicYearShort=' + $('#AcademicYearNo').lrselectGet() + '&Semester=' + $('#Semester').lrselectGet(),
+ });
+ }
+ }
+ });
+ //教师
+ $('#EmpNo').lrselect({
+ placeholder: "请选择教师",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetEmpNoDataOfAll',
+ value: 'value',
+ text: 'text'
+ });
+ //绑定学年、学期
+ $.get('/Home/GetYearAndSemesteResult', function (ref) {
+ if (ref.code == "200") {
+ $('#AcademicYearNo').lrselectSet(ref.data.Item1);
+ $('#Semester').lrselectSet(ref.data.Item3);
+ }
+ }.bind(this), "json");
+ },
+ initGird: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetList',
+ headData: headDataFinally,
+ mainId: 'ScoreId',
+ isPage: false,
+ sidx: 'StuNo',
+ sord: 'asc'
+ });
+ //page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ },
+ searchScale: function (param) {
+ param = param || {};
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/OpenLessonPlan/GetStuSelectLessonListEntityByJson?queryJson=' + JSON.stringify(param), function (data) {
+ if (data["StuSelectLessonList"] != null) {
+ var ssll = data["StuSelectLessonList"];
+ $('#OrdinaryScoreScale').html(ssll.OrdinaryScoreScale > 0 ? ssll.OrdinaryScoreScale : 0);
+ $('#TermInScoreScale').html(ssll.TermInScoreScale > 0 ? ssll.TermInScoreScale : 0);
+ $('#TermEndScoreScale').html(ssll.TermEndScoreScale > 0 ? ssll.TermEndScoreScale : 0);
+ $('#OtherScoreScale').html(ssll.OtherScoreScale > 0 ? ssll.OtherScoreScale : 0);
+ } else {
+ $('#OrdinaryScoreScale').html(0);
+ $('#TermInScoreScale').html(0);
+ $('#TermEndScoreScale').html(0);
+ $('#OtherScoreScale').html(0);
+ }
+ });
+ },
+ countDown: function () {
+ var minutes = $('#minutes').html();
+ var minutesTemp = minutes;
+ var seconds = $('#seconds').attr('data-seconds');
+ $('#seconds').html(seconds);
+ var secondsTemp = seconds;
+ timer = setInterval(function () {
+ secondsTemp--;
+ $('#seconds').html(secondsTemp);
+ if (secondsTemp == 0) {
+ secondsTemp = seconds;
+ minutesTemp--;
+ $('#minutes').html(minutesTemp);
+ if (minutesTemp == 0) {
+ //停止倒计时
+ clearInterval(timer);
+ //自动提交成绩
+ $('#lr_save').trigger("click");
+ }
+ }
+ }, 1000);
+ },
+ submitScore: function () {
+ submitScoreTimer = setInterval(function () {
+ var rowdatas = $('#gridtable').jfGridGet('rowdatas');
+ learun.postFormSilence(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/SaveInputScore', { data: JSON.stringify(rowdatas) }, function (res) {
+ });
+ }, 300000);
+ },
+ };
+ refreshGirdData = function () {
+ page.search();
+ };
+ refreshGirdData2 = function () {
+ var query = judgeSelect();
+ if (query) {
+ //显示不可编辑列头
+ headDataFinally = headData.concat(headDataNoEdit);
+ $("#gridtable")[0].dfop = undefined;
+ page.initGird();
+
+ page.search(query);
+ //page.searchScale(query);
+ }
+ };
+ judgeSelect = function () {
+ if (CanInputFlag != "True") {
+ top.learun.layerConfirm('当前时间不是线上成绩录入时间!', function (res) { });
+ return false;
+ }
+
+ var $content = $('body').find('.lr-layout-tool-left');
+ var query = $content.lrGetFormData();
+ if (query.F_SchoolId == null || query.F_SchoolId == "") {
+ learun.alert.warning("请选择校区!");
+ return false;
+ }
+ if (query.AcademicYearNo == null || query.AcademicYearNo == "") {
+ learun.alert.warning("请选择学年!");
+ return false;
+ }
+ if (query.Semester == null || query.Semester == "") {
+ learun.alert.warning("请选择学期!");
+ return false;
+ }
+ if (query.LessonNo == null || query.LessonNo == "") {
+ learun.alert.warning("请选择课程!");
+ return false;
+ }
+ if (query.EmpNo == null || query.EmpNo == "") {
+ learun.alert.warning("请选择教师!");
+ return false;
+ }
+ return query;
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndexImport.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndexImport.cshtml
new file mode 100644
index 000000000..108ec5d4d
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndexImport.cshtml
@@ -0,0 +1,27 @@
+@{
+ ViewBag.Title = "Form";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+
+@Html.AppendCssFile("/Areas/LR_SystemModule/Views/ExcelImport/ImportForm.css")
+
+@*线上成绩录入导入*@
+
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndexImport.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndexImport.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndexImport.js
new file mode 100644
index 000000000..e98bd48e9
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndexImport.js
@@ -0,0 +1,195 @@
+/*
+ * 描 述:附件上传管理
+ */
+var gridId = request('gridtable');
+var type = request('type');//1:成绩录入;2:选修成绩录入
+var bootstrap = function ($, learun) {
+ "use strict";
+
+ var fileInfo = {};
+
+ // 触发合并文件碎片
+ var mergeFileChunks = function (file) {
+ var param = {};
+ param['type'] = type;
+ param['__RequestVerificationToken'] = $.lrToken;
+ param['fileGuid'] = fileInfo[file.id].fileGuid;
+ param['fileName'] = fileInfo[file.id].name;
+ param['chunks'] = fileInfo[file.id].chunks;
+ var queryJson = JSON.stringify(learun.frameTab.currentIframe().queryJson);
+
+ param['queryJson'] = queryJson;
+ learun.httpAsyncPost(top.$.rootUrl + "/EducationalAdministration/StuScoreOnline/ExecuteImportExcel", param, function (res) {
+ var $fileItem = $('#lr_form_file_queue_list').find('#lr_filequeue_' + file.id);
+ $fileItem.find('.lr-uploader-progress').remove();
+
+ if (res.code == learun.httpCode.success) {
+ if (res.data.Success != '0') {
+ learun.alert.success('导入成功' + res.data.Success + '条');
+ }
+ // 文件保存成功后
+ $fileItem.append('
' + res.data.Success + '/' + res.data.Fail + '
');
+ // 如果有失败
+ if (res.data.Fail != '0') {
+ learun.download({ url: top.$.rootUrl + '/LR_SystemModule/ExcelImport/DownImportErrorFile', param: { fileId: fileInfo[file.id].fileGuid, fileName: fileInfo[file.id].name, __RequestVerificationToken: $.lrToken }, method: 'POST' });
+ }
+ }
+ else {
+ learun.alert.error(res.info);
+ $fileItem.append('
');
+ }
+ });
+ }
+ // 触发清楚文件碎片
+ var reomveFileChunks = function (file) {
+ var param = {};
+ param['__RequestVerificationToken'] = $.lrToken;
+ param['fileGuid'] = fileInfo[file.id].fileGuid;
+ param['chunks'] = fileInfo[file.id].chunks;
+ learun.httpAsyncPost(top.$.rootUrl + "/LR_SystemModule/Annexes/MergeAnnexesFile", param, function (res) { });
+ var $fileItem = $('#lr_form_file_queue_list').find('#lr_filequeue_' + file.id);
+ $fileItem.find('.lr-uploader-progress').remove();
+ $fileItem.append('
');
+ }
+ // 删除文件
+ var DeleteFile = function (fileId) {
+ var param = {};
+ param['__RequestVerificationToken'] = $.lrToken;
+ param['fileId'] = fileInfo[fileId].fileGuid;
+ learun.httpAsyncPost(top.$.rootUrl + "/LR_SystemModule/Annexes/DeleteAnnexesFile", param, function (res) { });
+ var file = page.uploader.getFile(fileId);
+ if (!!file) {
+ page.uploader.removeFile(file);
+ }
+ delete fileInfo[fileId];
+ var $fileItem = $('#lr_form_file_queue_list').find('#lr_filequeue_' + fileId);
+ $fileItem.remove();
+ if ($('#lr_form_file_queue_list>div').length == 0) {
+ $('#lr_form_file_queue .lr-form-file-queue-bg').show();
+ }
+ }
+
+ var page = {
+ uploader: null,
+ init: function () {
+ if (!WebUploader.Uploader.support()) {
+ alert('Web Uploader 不支持您的浏览器!如果你使用的是IE浏览器,请尝试升级 flash 播放器');
+ throw new Error('WebUploader does not support the browser you are using.');
+ }
+ /*导入模板下载*/
+ $('#lr_down_file_btn').on('click', function () {
+ var columnJson = learun.frameTab.currentIframe().columnJson;
+ columnJson = JSON.stringify(columnJson.filter(item => item.name !== 'TermEndScore'));
+ var rowJson = JSON.stringify(learun.frameTab.currentIframe().rowJson);
+ var fileName = "线上成绩录入数据";
+ //if (type == '2') {
+ // fileName = "选修成绩录入数据";
+ //}
+ //else if (type == '3') {
+ // fileName = "补考成绩录入";
+ //}
+ //else if (type == '4') {
+ // fileName = "二次补考成绩录入";
+ //}
+ learun.download({
+ method: "POST",
+ url: '/EducationalAdministration/StuScoreOnline/ExportExcel',
+ param: {
+ fileName: fileName,
+ columnJson: columnJson,
+ dataJson: rowJson,
+ //exportField: String(exportField)
+ }
+ });
+ });
+
+ page.uploader = WebUploader.create({
+ auto: true,
+ swf: top.$.rootUrl + '/Content/webuploader/Uploader.swf',
+ // 文件接收服务端。
+ server: top.$.rootUrl + "/LR_SystemModule/Annexes/UploadAnnexesFileChunk",
+ // 选择文件的按钮。可选。
+ // 内部根据当前运行是创建,可能是input元素,也可能是flash.
+ pick: '#lr_add_file_btn',
+ dnd: '#lr_form_file_queue',
+ paste: 'document.body',
+ disableGlobalDnd: true,
+ accept: {
+ extensions: "xls,xlsx"
+ },
+ multiple: false,
+ // 不压缩image, 默认如果是jpeg,文件上传前会压缩一把再上传!
+ resize: false,
+ // 文件分片上传
+ chunked: true,
+ chunkRetry: 3,
+ prepareNextFile: true,
+ chunkSize: '1048576',
+ // 上传参数
+ formData: {
+ __RequestVerificationToken: $.lrToken
+ }
+ });
+ page.uploader.on('fileQueued', page.fileQueued);
+ page.uploader.on('uploadStart', page.uploadStart);
+ page.uploader.on('uploadBeforeSend', page.uploadBeforeSend);
+ page.uploader.on('uploadProgress', page.uploadProgress);
+ page.uploader.on('uploadSuccess', page.uploadSuccess);
+ page.uploader.on('uploadError', page.uploadError);
+ page.uploader.on('uploadComplete', page.uploadComplete);
+ page.uploader.on('error', page.error);
+
+
+ //$('#lr_form_file_queue').mCustomScrollbar({ // 优化滚动条
+ // theme: "minimal-dark"
+ //});
+
+ },
+ fileQueued: function (file) {// 文件加载到队列
+ fileInfo[file.id] = { name: file.name };
+ $('#lr_form_file_queue .lr-form-file-queue-bg').hide();
+ // 添加一条文件记录
+ var $item = $('
');
+ $item.append('
');
+ $item.append('
' + file.name + '(' + learun.countFileSize(file.size) + ')');
+
+ $('#lr_form_file_queue_list').append($item);
+ },
+ uploadStart: function (file) {
+ var $fileItem = $('#lr_form_file_queue_list').find('#lr_filequeue_' + file.id);
+ $fileItem.append('
');
+ },
+ uploadBeforeSend: function (object, data, headers) {
+ data.chunk = data.chunk || 0;
+ data.chunks = data.chunks || 1;
+ fileInfo[data.id].fileGuid = fileInfo[data.id].fileGuid || WebUploader.Base.guid();
+ data.fileGuid = fileInfo[data.id].fileGuid;
+ fileInfo[data.id].chunks = data.chunks;
+ },
+ uploadProgress: function (file, percentage) {
+ var $fileItem = $('#lr_form_file_queue_list').find('#lr_filequeue_' + file.id);
+ $fileItem.find('.lr-uploader-progress-bar').css('width', (percentage * 100 + '%'));
+ },
+ uploadSuccess: function (file, res) {
+ if (res.code == 200) {// 上传成功
+ mergeFileChunks(file);
+ }
+ else {// 上传失败
+ reomveFileChunks(file);
+ }
+ },
+ uploadError: function (file, code) {
+ reomveFileChunks(file);
+ },
+ uploadComplete: function (file) {
+ },
+ error: function (type) {
+ switch (type) {
+ case 'Q_TYPE_DENIED':
+ learun.alert.error('当前文件类型不允许上传');
+ break;
+ };
+ }
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndexInTeacher.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndexInTeacher.cshtml
new file mode 100644
index 000000000..5a80b30cf
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndexInTeacher.cshtml
@@ -0,0 +1,122 @@
+@{ ViewBag.Title = "全院学生线上成绩录入"; Layout = "~/Views/Shared/_Index.cshtml"; }
+
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndexInTeacher.js")
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndexInTeacher.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndexInTeacher.js
new file mode 100644
index 000000000..f438a7fdd
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/InputScoreIndexInTeacher.js
@@ -0,0 +1,624 @@
+/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
+ * Copyright (c) 2013-2018 北京泉江科技有限公司
+ * 创建人:超级管理员
+ * 日 期:2023-06-12 11:02
+ * 描 述:全院学生线上成绩录入
+ */
+var selectedRow;
+var refreshGirdData;
+var refreshGirdData2;
+var judgeSelect; //判断下拉框是否选择
+var modifyDate; //成绩被占用,且是登录用户时,成绩表中的编辑时间;
+var timer; //计时器
+var submitScoreTimer; //五分钟提交成绩计时器
+var headData; //常规列头
+var headDataEdit; //可编辑列头
+var headDataNoEdit; //不可编辑列头
+var headDataFinally; //最终列头
+var rowJson;
+var columnJson;
+var queryJson;
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ headData = [
+ {
+ label: "审核状态", name: "CheckMark", width: 80, align: "center",
+ formatter: function (cellvalue) {
+ return cellvalue == "1" ? "
已审核" : "
未审核";
+ }
+ },
+ { label: '学年', name: 'AcademicYearNo', width: 50, align: "left" },
+ { label: '学期', name: 'Semester', width: 40, align: "left" },
+ { label: '课程名称', name: 'LessonName', width: 150, align: "left" },
+ {
+ label: "学校名称", name: "F_SchoolId", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company',
+ key: value,
+ keyId: 'f_companyid',
+ callback: function (_data) {
+ callback(_data['f_fullname']);
+ }
+ });
+ }
+ },
+ {
+ 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) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo',
+ key: value,
+ keyId: 'majorno',
+ callback: function (_data) {
+ callback(_data['majorname']);
+ }
+ });
+ }
+ },
+ {
+ label: "班级", name: "ClassNo", width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'bjsj',
+ key: value,
+ keyId: 'classno',
+ callback: function (_data) {
+ callback(_data['classname']);
+ }
+ });
+ }
+ },
+ { label: '学生姓名', name: 'StuName', width: 150, align: "left" },
+ { label: '学生学号', name: 'StuNo', width: 100, align: "left" },
+ ];
+ headDataEdit = [
+ {
+ label: '成绩', name: 'TermEndScore', width: 80, align: "left",
+ edit: {
+ type: 'input',
+ inputType: 'number',
+ change: function (row, rownum) {
+ row.Score = (parseFloat(row.TermEndScore || '0') * 1).toFixed(2);
+ $('#gridtable').jfGridSet('updateRow', rownum);
+ },
+ }
+ },
+ { label: '最终核定成绩', name: 'Score', width: 80, align: "left" },
+ {
+ label: '备注', name: 'Remark', width: 100, align: "left",
+ edit: {
+ type: 'input',
+ }
+ },
+ ];
+ headDataNoEdit = [
+ {
+ label: '成绩', name: 'TermEndScore', width: 80, align: "left"
+ },
+ { label: '最终核定成绩', name: 'Score', width: 80, align: "left" },
+ {
+ label: '备注', name: 'Remark', width: 100, align: "left"
+ },
+ ];
+ headDataFinally = headData.concat(headDataNoEdit);
+
+ page.initGird();
+ page.bind();
+ page.bindSelect();
+ },
+ bind: function () {
+ //多条件选择
+ $('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
+ page.search(queryJson);
+ }, 220, 500);
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ //查询
+ $('#btn_Search').on('click', function () {
+ refreshGirdData2();
+ });
+ //设置成绩比例(暂时未使用未修改)
+ $('#lr_setScale').on('click', function () {
+ var query = judgeSelect();
+ if (query) {
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/OpenLessonPlan/GetOpenLessonPlanEntityByJson?queryJson=' + JSON.stringify(query), function (data) {
+ if (data["OpenLessonPlan"] != null) {
+ if (data["OpenLessonPlan"].IsAllowEdit) { //教务允许成绩录入时编辑比例
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/OpenLessonPlan/GetStuSelectLessonListEntityByJson?queryJson=' + JSON.stringify(query), function (data) {
+ if (data["StuSelectLessonList"] != null) {
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetEntityByJson?queryJson=' + JSON.stringify(query), function (data) {
+ if (data != null) {
+ if (data.CheckMark == 1) { //学生成绩已审核
+ learun.alert.warning("学生成绩已审核!");
+ return false;
+ } else {
+ learun.layerForm({
+ id: 'FormOfClass',
+ title: '班级成绩比例设置',
+ url: top.$.rootUrl + '/EducationalAdministration/OpenLessonPlan/FormOfClass?F_SchoolId=' + query.F_SchoolId + '&AcademicYearNo=' + query.AcademicYearNo + '&Semester=' + query.Semester + '&LessonNo=' + query.LessonNo + '&ClassNo=' + query.ClassNo,
+ width: 600,
+ height: 400,
+ callBack: function (id) {
+ return top[id].acceptClick(refreshGirdData2);
+ }
+ });
+ }
+ } else {
+ learun.alert.warning("学生成绩不存在!");
+ return false;
+ }
+ });
+ } else {
+ learun.alert.warning("学生选课数据不存在!");
+ return false;
+ }
+ });
+ } else {
+ learun.alert.warning("教务不允许设置成绩比例!");
+ return false;
+ }
+ } else {
+ learun.alert.warning("开课计划不存在!");
+ return false;
+ }
+ });
+ }
+ });
+ // 开始录入
+ $('#lr_input').on('click', function () {
+ //提示弹框
+ learun.layerConfirm('录入完成后,请务必点击“提交成绩”按钮,避免成绩丢失!', function (res) {
+ if (res) {
+
+ var query = judgeSelect();
+ if (query) {
+ //判断成绩比例是否合理
+ //var OrdinaryScoreScale = $('#OrdinaryScoreScale').html();
+ //var TermInScoreScale = $('#TermInScoreScale').html();
+ //var TermEndScoreScale = $('#TermEndScoreScale').html();
+ //var OtherScoreScale = $('#OtherScoreScale').html();
+ //var totalScale = Number(OrdinaryScoreScale) + Number(TermInScoreScale) + Number(TermEndScoreScale) + Number(OtherScoreScale);
+ //if (totalScale !== 100) {
+ // learun.alert.warning("成绩比例设置不合理!");
+ // return false;
+ //} else {
+ //判断是否已审核;判断是否被其他教师占用
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetEntityByJson?queryJson=' + JSON.stringify(query), function (data) {
+ if (data != null) {
+ if (data.CheckMark == 1) {
+ learun.alert.warning("学生成绩已审核!");
+ return false;
+ }
+ if (data.IsEditable == 0) {
+ if (data.EditUserId == learun.clientdata.get(['userinfo']).account) {
+ modifyDate = data.ModifyDate;
+ } else {
+ learun.alert.warning("当前班级成绩由账号为" + data.EditUserId + "的教师在使用!");
+ return false;
+ }
+ } else {
+ //占用成绩
+ learun.postFormSilence(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/StartInputScore', { queryJson: JSON.stringify(query) }, function (res) { });
+ }
+ //显示可编辑列头
+ headDataFinally = headData.concat(headDataEdit);
+ $("#gridtable")[0].dfop = undefined;
+ page.initGird();
+ page.search(query);
+ //显示“提交成绩”按钮
+ $('#lr_save').show();
+ //隐藏“开始录入”按钮
+ $('#lr_input').hide();
+ //显示“倒计时”
+ $('.timeBox').show();
+ $('#minutes').html($('#minutes').attr('data-minutes'));
+ //开始倒计时
+ page.countDown();
+ //五分钟提交成绩
+ page.submitScore();
+ } else {
+ learun.alert.warning("学生成绩不存在!");
+ return false;
+ }
+ });
+ //}
+ }
+
+ }
+ });
+ });
+ //提交成绩
+ $('#lr_save').on('click', function () {
+ var query = judgeSelect();
+ if (query) {
+ //成绩被占用,且是登录用户时,根据编辑时间判断是否是本人;
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetEntityByJson?queryJson=' + JSON.stringify(query), function (data) {
+ if (data != null) {
+ if (data.CheckMark == 1) {
+ learun.alert.warning("学生成绩已审核!");
+ return false;
+ }
+ if (data.IsEditable == 0) {
+ if (data.EditUserId == learun.clientdata.get(['userinfo']).account) {
+ if (modifyDate != null && modifyDate != data.ModifyDate) {
+ learun.alert.warning("当前班级成绩被修改,请重新获取!");
+ return false;
+ }
+ } else {
+ learun.alert.warning("当前班级成绩由账号为" + data.EditUserId + "的教师在使用!");
+ return false;
+ }
+ } else if (data.IsEditable == 1) {
+ learun.alert.warning("学生成绩已提交!");
+ return false;
+ }
+ //提交成绩
+ var rowdatas = $('#gridtable').jfGridGet('rowdatas');
+ learun.postFormSilence(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/SaveInputScore', { data: JSON.stringify(rowdatas) }, function (res) {
+ if (res.code == 200) {
+ //提交成绩:取消占用
+ learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/SaveInputScoreStatus', { queryJson: JSON.stringify(query) }, function (res) {
+ if (res.code == 200) {
+ refreshGirdData2();
+ modifyDate = null;
+ //隐藏“提交成绩”按钮
+ $('#lr_save').hide();
+ //显示“开始录入”按钮
+ $('#lr_input').show();
+ //隐藏“倒计时”
+ $('.timeBox').hide();
+ //停止倒计时
+ clearInterval(timer);
+ //停止五分钟提交成绩
+ clearInterval(submitScoreTimer);
+ } else {
+ learun.alert.warning("提交成绩:取消占用失败!");
+ return false;
+ }
+ });
+ } else {
+ learun.alert.warning("提交成绩失败!");
+ return false;
+ }
+ });
+
+ } else {
+ learun.alert.warning("学生成绩不存在!");
+ return false;
+ }
+ });
+ }
+ });
+ // 审核
+ $('#lr_check').on('click', function () {
+ var query = judgeSelect();
+ if (query) {
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetEntityByJson?queryJson=' + JSON.stringify(query), function (data) {
+ if (data != null) {
+ if (data.CheckMark == 1) {
+ learun.alert.warning("学生成绩已审核!");
+ return false;
+ }
+ learun.layerConfirm('是否确认审核当前班级的学生成绩!', function (res) {
+ if (res) {
+ //审核成绩
+ learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/DoCheckScore', { queryJson: JSON.stringify(query), checkMark: 1 }, function (res) {
+ if (res.code == 200) {
+ refreshGirdData2();
+ } else {
+ learun.alert.warning("审核成绩失败!");
+ return false;
+ }
+ });
+ }
+ });
+ } else {
+ learun.alert.warning("学生成绩不存在!");
+ return false;
+ }
+ });
+ }
+ });
+ // 去审核
+ $('#lr_uncheck').on('click', function () {
+ var query = judgeSelect();
+ if (query) {
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetEntityByJson?queryJson=' + JSON.stringify(query), function (data) {
+ if (data != null) {
+ if (data.CheckMark != 1) {
+ learun.alert.warning("学生成绩未审核!");
+ return false;
+ }
+ learun.layerConfirm('是否确认去审核当前班级的学生成绩!', function (res) {
+ if (res) {
+ //去审核成绩
+ learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/DoCheckScore', { queryJson: JSON.stringify(query), checkMark: 0 }, function (res) {
+ if (res.code == 200) {
+ refreshGirdData2();
+ } else {
+ learun.alert.warning("去审核成绩失败!");
+ return false;
+ }
+ });
+ }
+ });
+ } else {
+ learun.alert.warning("学生成绩不存在!");
+ return false;
+ }
+ });
+ }
+ });
+ //续时
+ $('#addMinutesBtn').on('click', function () {
+ var query = judgeSelect();
+ if (query) {
+ clearInterval(timer);
+ var addMinutes = $('#addMinutesBtn').attr('data-minutes');
+ var newMinutes = addMinutes;
+ var minutes = $('#minutes').html();
+ if (minutes > 0) {
+ newMinutes = Number(newMinutes) + Number(minutes);
+ }
+ $('#minutes').html(newMinutes);
+ page.countDown();
+ //修改服务时间
+ learun.postFormSilence(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/AddMinutes', { queryJson: JSON.stringify(query), minutes: newMinutes }, function (res) { });
+ }
+ });
+ //导入更新
+ $('#lr_importScore').on('click', function () {
+ var query = judgeSelect();
+ if (query) {
+ //判断成绩比例是否合理
+ //var OrdinaryScoreScale = $('#OrdinaryScoreScale').html();
+ //var TermInScoreScale = $('#TermInScoreScale').html();
+ //var TermEndScoreScale = $('#TermEndScoreScale').html();
+ //var OtherScoreScale = $('#OtherScoreScale').html();
+ //var totalScale = Number(OrdinaryScoreScale) + Number(TermInScoreScale) + Number(TermEndScoreScale) + Number(OtherScoreScale);
+ //if (totalScale !== 100) {
+ // learun.alert.warning("成绩比例设置不合理!");
+ // return false;
+ //} else {
+ //判断是否已审核;判断是否被其他教师占用
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetEntityByJson?queryJson=' + JSON.stringify(query), function (data) {
+ if (data != null) {
+ if (data.CheckMark == 1) {
+ learun.alert.warning("学生成绩已审核!");
+ return false;
+ }
+ if (data.IsEditable == 0) {
+ if (data.EditUserId == learun.clientdata.get(['userinfo']).account) {
+ modifyDate = data.ModifyDate;
+ } else {
+ learun.alert.warning("当前班级成绩由账号为" + data.EditUserId + "的教师在使用!");
+ return false;
+ }
+ }
+
+ rowJson = $('#gridtable').jfGridGet('showData');
+ if (rowJson.length <= 0) {
+ learun.alert.warning("查询结果不存在!");
+ return false;
+ }
+ columnJson = $('#gridtable').jfGridGet('settingInfo').headData;
+ //条件
+ queryJson = query;
+
+ learun.layerForm({
+ id: 'IndexImport',
+ title: "导入学生成绩",
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/InputScoreIndexImport?type=0',
+ width: 600,
+ height: 400,
+ maxmin: true,
+ btn: null,
+ end: function () {
+ refreshGirdData2();
+ }
+ });
+
+ } else {
+ learun.alert.warning("学生成绩不存在!");
+ return false;
+ }
+ });
+ //}
+ }
+
+ });
+ },
+ bindSelect: function () {
+ //校区
+ $('#F_SchoolId').lrDataSourceSelect({
+ code: 'company', value: 'f_companyid', text: 'f_fullname', select: function (item) { }
+ });
+ $('#F_SchoolId').lrselectSet(learun.clientdata.get(['userinfo']).companyId);
+ //学年
+ $('#AcademicYearNo').lrselect({
+ placeholder: "学年",
+ allowSearch: false,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetAcademicYearNoData',
+ value: 'value',
+ text: 'text',
+ select: function (item) {
+ if (!!item) {
+ $("#LessonNo").lrselectRefresh({
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetLessonNoDataWithNo?AcademicYearShort=' + item.value + '&Semester=' + $('#Semester').lrselectGet(),
+ });
+ }
+ }
+ });
+ //学期
+ $('#Semester').lrselect({
+ placeholder: "学期",
+ allowSearch: false,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetSemesterData',
+ value: 'value',
+ text: 'text',
+ select: function (item) {
+ if (!!item) {
+ $("#LessonNo").lrselectRefresh({
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetLessonNoDataWithNo?AcademicYearShort=' + $('#AcademicYearNo').lrselectGet() + '&Semester=' + item.value,
+ });
+ }
+ }
+ });
+ //课程
+ $('#LessonNo').lrselect({
+ placeholder: "请选择课程",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetLessonNoDataWithNo',
+ value: 'value',
+ text: 'text',
+ select: function (item) {
+ if (!!item) {
+ $("#EmpNo").lrselectRefresh({
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetEmpNoData?lessonNo=' + item.value + '&AcademicYearShort=' + $('#AcademicYearNo').lrselectGet() + '&Semester=' + $('#Semester').lrselectGet(),
+ });
+ }
+ }
+ });
+ //教师
+ $('#EmpNo').lrselect({
+ placeholder: "请选择教师",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetEmpNoData',
+ value: 'value',
+ text: 'text'
+ });
+ //绑定学年、学期
+ $.get('/Home/GetYearAndSemesteResult', function (ref) {
+ if (ref.code == "200") {
+ $('#AcademicYearNo').lrselectSet(ref.data.Item1);
+ $('#Semester').lrselectSet(ref.data.Item3);
+ }
+ }.bind(this), "json");
+ },
+ initGird: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetList',
+ headData: headDataFinally,
+ mainId: 'ScoreId',
+ isPage: false,
+ sidx: 'StuNo',
+ sord: 'asc'
+ });
+ //page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ },
+ searchScale: function (param) {
+ param = param || {};
+ $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/OpenLessonPlan/GetStuSelectLessonListEntityByJson?queryJson=' + JSON.stringify(param), function (data) {
+ if (data["StuSelectLessonList"] != null) {
+ var ssll = data["StuSelectLessonList"];
+ $('#OrdinaryScoreScale').html(ssll.OrdinaryScoreScale > 0 ? ssll.OrdinaryScoreScale : 0);
+ $('#TermInScoreScale').html(ssll.TermInScoreScale > 0 ? ssll.TermInScoreScale : 0);
+ $('#TermEndScoreScale').html(ssll.TermEndScoreScale > 0 ? ssll.TermEndScoreScale : 0);
+ $('#OtherScoreScale').html(ssll.OtherScoreScale > 0 ? ssll.OtherScoreScale : 0);
+ } else {
+ $('#OrdinaryScoreScale').html(0);
+ $('#TermInScoreScale').html(0);
+ $('#TermEndScoreScale').html(0);
+ $('#OtherScoreScale').html(0);
+ }
+ });
+ },
+ countDown: function () {
+ var minutes = $('#minutes').html();
+ var minutesTemp = minutes;
+ var seconds = $('#seconds').attr('data-seconds');
+ $('#seconds').html(seconds);
+ var secondsTemp = seconds;
+ timer = setInterval(function () {
+ secondsTemp--;
+ $('#seconds').html(secondsTemp);
+ if (secondsTemp == 0) {
+ secondsTemp = seconds;
+ minutesTemp--;
+ $('#minutes').html(minutesTemp);
+ if (minutesTemp == 0) {
+ //停止倒计时
+ clearInterval(timer);
+ //自动提交成绩
+ $('#lr_save').trigger("click");
+ }
+ }
+ }, 1000);
+ },
+ submitScore: function () {
+ submitScoreTimer = setInterval(function () {
+ var rowdatas = $('#gridtable').jfGridGet('rowdatas');
+ learun.postFormSilence(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/SaveInputScore', { data: JSON.stringify(rowdatas) }, function (res) {
+ });
+ }, 300000);
+ },
+ };
+ refreshGirdData = function () {
+ page.search();
+ };
+ refreshGirdData2 = function () {
+ var query = judgeSelect();
+ if (query) {
+ //显示不可编辑列头
+ headDataFinally = headData.concat(headDataNoEdit);
+ $("#gridtable")[0].dfop = undefined;
+ page.initGird();
+
+ page.search(query);
+ //page.searchScale(query);
+ }
+ };
+ judgeSelect = function () {
+ if (CanInputFlag != "True") {
+ top.learun.layerConfirm('当前时间不是线上成绩录入时间!', function (res) { });
+ return false;
+ }
+
+ var $content = $('body').find('.lr-layout-tool-left');
+ var query = $content.lrGetFormData();
+ if (query.F_SchoolId == null || query.F_SchoolId == "") {
+ learun.alert.warning("请选择校区!");
+ return false;
+ }
+ if (query.AcademicYearNo == null || query.AcademicYearNo == "") {
+ learun.alert.warning("请选择学年!");
+ return false;
+ }
+ if (query.Semester == null || query.Semester == "") {
+ learun.alert.warning("请选择学期!");
+ return false;
+ }
+ if (query.LessonNo == null || query.LessonNo == "") {
+ learun.alert.warning("请选择课程!");
+ return false;
+ }
+ if (query.EmpNo == null || query.EmpNo == "") {
+ learun.alert.warning("请选择教师!");
+ return false;
+ }
+ return query;
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/Monitor.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/Monitor.cshtml
new file mode 100644
index 000000000..46703b746
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/Monitor.cshtml
@@ -0,0 +1,38 @@
+@{
+ ViewBag.Title = "线上成绩录入监控管理";
+ Layout = "~/Views/Shared/_Index.cshtml";
+}
+
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScoreOnline/Monitor.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/Monitor.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/Monitor.js
new file mode 100644
index 000000000..b772c7a08
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreOnline/Monitor.js
@@ -0,0 +1,132 @@
+/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
+ * Copyright (c) 2013-2018 北京泉江科技有限公司
+ * 创建人:超级管理员
+ * 日 期:2019-06-14 11:02
+ * 描 述:考试成绩同步
+ */
+var selectedRow;
+var refreshGirdData;
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ page.bind();
+ page.initGird();
+ },
+ bind: function () {
+ //学年
+ $('#AcademicYearNo').lrselect({
+ width: '150px',
+ placeholder: "请选择学年",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetAcademicYearNoData',
+ value: 'value',
+ text: 'text'
+ });
+ //学期
+ $('#Semester').lrselect({
+ width: '150px',
+ placeholder: "请选择学期",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetSemesterData',
+ value: 'value',
+ text: 'text'
+ });
+ // 查询
+ $('#btn_Search').on('click', function () {
+ page.search({ AcademicYearNo: $('#AcademicYearNo').lrselectGet(), Semester: $('#Semester').lrselectGet() });
+ });
+ // 刷新
+ $('#lr_refresh').on('click', function () {
+ location.reload();
+ });
+ //强制提交
+ $('#lr_submit').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('EmpNo');
+ if (learun.checkrow(keyValue)) {
+ var IsEditable = $('#gridtable').jfGridValue('IsEditable');
+ if (IsEditable == "1") {
+ learun.alert.warning("当前项目无需提交!");
+ return;
+ }
+ learun.layerConfirm('是否确认提交该项?未保存的成绩将会丢失!', function (res) {
+ if (res) {
+ learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/Submit',
+ {
+ AcademicYearNo: $('#gridtable').jfGridValue('AcademicYearNo'),
+ Semester: $('#gridtable').jfGridValue('Semester'),
+ LessonNo: $('#gridtable').jfGridValue('LessonNo'),
+ EmpNo: $('#gridtable').jfGridValue('EmpNo'),
+ EditUserId: $('#gridtable').jfGridValue('EditUserId'),
+ },
+ function () {
+ refreshGirdData();
+ });
+ }
+ });
+ }
+ });
+ },
+ initGird: function () {
+ $('#gridtable').jfGrid({
+ url: top.$.rootUrl + '/EducationalAdministration/StuScoreOnline/GetMonitorList',
+ headData: [
+ {
+ label: "录入状态", name: "IsEditable", width: 80, align: "center",
+ formatter: function (cellvalue) {
+ return cellvalue == "1" ? "
未占用" : "
正在录入";
+ }
+ },
+ { label: '学年', name: 'AcademicYearNo', width: 50, align: "left" },
+ { label: '学期', name: 'Semester', width: 40, align: "left" },
+ { label: '课程编号', name: 'LessonNo', width: 100, align: "left" },
+ { label: '课程名称', name: 'LessonName', width: 150, align: "left" },
+ { label: '代课教师编号', name: 'EmpNo', width: 100, align: "left" },
+ {
+ label: '代课教师姓名', name: 'EmpNo', width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo',
+ key: value,
+ keyId: 'f_account',
+ callback: function (_data) {
+ callback(_data['f_realname']);
+ }
+ });
+ }
+ },
+ { label: '占用教师编号', name: 'EditUserId', width: 100, align: "left" },
+ {
+ label: '占用教师姓名', name: 'EditUserId', width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'TeacherInfo',
+ key: value,
+ keyId: 'f_account',
+ callback: function (_data) {
+ callback(_data['f_realname']);
+ }
+ });
+ }
+ },
+ { label: '开始录入日期', name: 'BeginModifyDate', width: 150, align: "left" },
+ { label: '最后保存日期', name: 'ModifyDate', width: 150, align: "left" },
+
+ ],
+ //mainId: 'ScoreId',
+ isPage: false
+ });
+ //page.search();
+ },
+ search: function (param) {
+ param = param || {};
+ param.AcademicYearNo = $('#AcademicYearNo').lrselectGet();
+ param.Semester = $('#Semester').lrselectGet();
+ $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
+ }
+ };
+ refreshGirdData = function () {
+ page.search();
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/InitScoreForm.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/InitScoreForm.cshtml
new file mode 100644
index 000000000..89f25b5ff
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/InitScoreForm.cshtml
@@ -0,0 +1,15 @@
+@{
+ ViewBag.Title = "初始化线上课程成绩";
+ Layout = "~/Views/Shared/_Form.cshtml";
+}
+
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/InitScoreForm.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/InitScoreForm.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/InitScoreForm.js
new file mode 100644
index 000000000..22b10b398
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/InitScoreForm.js
@@ -0,0 +1,53 @@
+/* * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
+ * Copyright (c) 2013-2018 北京泉江科技有限公司
+ * 创建人:超级管理员
+ * 日 期:2019-02-27 11:05
+ * 描 述:按条件同步排课数据
+ */
+var acceptClick;
+var bootstrap = function ($, learun) {
+ "use strict";
+ var page = {
+ init: function () {
+ page.bind();
+ page.initData();
+ },
+ bind: function () {
+ //学年
+ $('#AcademicYearNo').lrselect({
+ placeholder: "请选择学年",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo',
+ value: 'value',
+ text: 'text'
+ });
+ //学期
+ $('#Semester').lrselect({
+ placeholder: "请选择学期",
+ allowSearch: true,
+ url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetSemester',
+ value: 'value',
+ text: 'text'
+ });
+
+ },
+ initData: function () {
+
+ }
+ };
+ // 保存数据
+ acceptClick = function (callBack) {
+ if (!$('#form').lrValidform()) {
+ return false;
+ }
+ var postData = $('#form').lrGetFormData();
+ $.lrSaveForm(top.$.rootUrl + '/EducationalAdministration/StuSelectLessonListOfElectiveOnline/DoInitScore', postData, function (res) {
+ // 保存成功后才回调
+ if (!!callBack) {
+ callBack();
+ }
+ });
+
+ };
+ page.init();
+}
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResult.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResult.cshtml
index 0114ad8b1..f18e7b342 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResult.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResult.cshtml
@@ -2,7 +2,7 @@
ViewBag.Title = "选修课课程";
Layout = "~/Views/Shared/_Index.cshtml";
}
-
-@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuSelectLessonListOfElective/QueryStuSelectResult.js")
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResult.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResult.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResult.js
index 51b1447b5..ed12e538c 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResult.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResult.js
@@ -24,7 +24,7 @@ var bootstrap = function ($, learun) {
return;
}
page.search(queryJson);
- }, 330, 400);
+ }, 330, 500);
$('#AcademicYearNo').lrselect({
placeholder: "请选择学年",
allowSearch: true,
@@ -40,34 +40,95 @@ var bootstrap = function ($, learun) {
value: 'value',
text: 'text'
});
- $('#ElectiveSelectStatus').lrDataItemSelect({ code: 'ElectiveSelectStatus' });
- $('#ElectiveSignUpStatus').lrDataItemSelect({ code: 'ElectiveSignUpStatus' });
- $('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' });
- $('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' });
- $('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
- $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
- $('#EmpNo').lrDataSourceSelect({ code: 'EmpInfo', value: 'empno', text: 'empname' });
+ //数据集不选择线上课程信息,选择选课情况里的课程信息
$('#LessonNo').lrselect({
allowSearch: true,
- url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=LessonInfo',
- param: { strWhere: "1=1 AND LessonSortNo='2' " },
- value: "lessonno",
- text: "lessonname"
+ url: top.$.rootUrl + '/EducationalAdministration/StuSelectLessonListOfElectiveOnline/GetSelectLessonInfo',
+ value: "LessonNo",
+ text: "LessonName"
+ });
+ $('#F_SchoolId').lrDataSourceSelect({ code: 'company', value: 'f_companyid', text: 'f_fullname' });
+ $('#DeptNo').lrDataSourceSelect({
+ code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (item) {
+ if (!!item) {
+ $('#MajorNo').lrselectRefresh({
+ url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
+ param: { strWhere: "deptno='" + item.deptno + "' order by majorno " },
+ });
+ } else {
+ $('#MajorNo').lrselectRefresh({
+ url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
+ param: { strWhere: "1=1 order by majorno " },
+ });
+ }
+ }
+ });
+ $('#MajorNo').lrselect({
+ allowSearch: true,
+ url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
+ param: { strWhere: "1=1 order by majorno " },
+ value: "majorno",
+ text: "majorname",
+ select: function (item) {
+ if (!!item) {
+ $('#ClassNo').lrselectRefresh({
+ url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
+ param: { strWhere: "majorno='" + item.majorno + "' order by classno " },
+ });
+ } else {
+ $('#ClassNo').lrselectRefresh({
+ url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
+ param: { strWhere: "1=1 order by classno " },
+ });
+ }
+ }
+ });
+ $('#ClassNo').lrselect({
+ allowSearch: true,
+ url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
+ param: { strWhere: "1=1 order by classno " },
+ value: "classno",
+ text: "classname"
});
+ $('#ElectiveSignUpStatus').lrDataItemSelect({ code: 'ElectiveSignUpStatus' });
+
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
+ //初始化线上课程成绩
+ $('#lr_initScore').on('click', function () {
+ learun.layerForm({
+ id: 'InitScoreForm',
+ title: '初始化线上课程成绩',
+ url: top.$.rootUrl + '/EducationalAdministration/StuSelectLessonListOfElectiveOnline/InitScoreForm',
+ width: 600,
+ height: 400,
+ callBack: function (id) {
+ return top[id].acceptClick();
+ }
+ });
+ });
},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
- url: top.$.rootUrl + '/EducationalAdministration/StuSelectLessonListOfElective/GetQueryStuSelectResultList',
+ url: top.$.rootUrl + '/EducationalAdministration/StuSelectLessonListOfElectiveOnline/GetQueryStuSelectResultList',
headData: [
- { label: "学年", name: "AcademicYearNo", width: 80, align: "left" },
- { label: "学期", name: "Semester", width: 60, align: "left" },
+ { label: "学年", name: "AcademicYearNo", width: 50, align: "left" },
+ { label: "学期", name: "Semester", width: 50, align: "left" },
+ { label: "学号", name: "StuNo", width: 120, align: "left" },
+ { label: "姓名", name: "StuName", width: 180, align: "left" },
+ { label: "课程编号", name: "LessonNo", width: 100, align: "left" },
+ {
+ label: "课程名称", name: "LessonName", width: 150, align: "left"
+ },
+ //{ label: "教师编号", name: "EmpNo", width: 100, align: "left" },
{
- label: "校区", name: "F_SchoolId", width: 200, align: "left",
+ label: "建课教师", name: "EmpName", width: 100, align: "left"
+ },
+ {
+ label: "建课学校", name: "F_SchoolId", width: 200, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company',
@@ -80,7 +141,7 @@ var bootstrap = function ($, learun) {
}
},
{
- label: "系所", name: "DeptNo", width: 100, align: "left",
+ 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',
@@ -118,24 +179,6 @@ var bootstrap = function ($, learun) {
});
}
},
- { label: "学号", name: "StuNo", width: 100, align: "left" },
- { label: "姓名", name: "StuName", width: 100, align: "left" },
- {
- label: "性别", name: "GenderNo", width: 80, align: "left",
- formatter: function (cellvalue) {
- return cellvalue == true ? "男" : "女";
- }
- },
- {
- label: "选课状态", name: "Id", width: 100, align: "left",
- formatter: function (cellvalue, row) {
- if (cellvalue == null || cellvalue == undefined || cellvalue == "") {
- return '
';
- } else {
- return '
';
- }
- }
- },
{
label: "报名状态", name: "Status", width: 100, align: "left",
formatter: function (cellvalue, row) {
@@ -150,62 +193,7 @@ var bootstrap = function ($, learun) {
}
}
},
- { label: "所选课程号", name: "LessonNo", width: 100, align: "left" },
- {
- label: "所选课程名称", name: "LessonName", width: 150, align: "left",
- formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('custmerData', {
- url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'LessonInfo',
- key: row.LessonNo,
- keyId: 'lessonno',
- callback: function (_data) {
- callback(_data['lessonname']);
- }
- });
- }
- },
- { label: "课程学分", name: "StudyScore", width: 100, align: "left" },
- { label: "教师编号", name: "EmpNo", width: 100, align: "left" },
- {
- label: "教师姓名", name: "EmpName", width: 100, align: "left",
- formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('custmerData', {
- url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'EmpInfo',
- key: row.EmpNo,
- keyId: 'empno',
- callback: function (_data) {
- callback(_data['empname']);
- }
- });
- }
- },
- {
- label: "上课节次", name: "LessonSection", width: 150, align: "left",
- formatter: function (cellvalue, row) {
- if (cellvalue != "" && cellvalue != undefined && cellvalue != null) {
- if (cellvalue.indexOf(',') == -1) {
- return "星期" + weekChina[cellvalue.slice(0, 1) - 1] + "第" + cellvalue.slice(1) + "节";
- } else {
- return "星期" + weekChina[cellvalue.slice(0, 1) - 1] + "第" + cellvalue.slice(1, 2) + "、" + cellvalue.slice(4) + "节";
- }
- }
- }
- },
- { label: "上课时间", name: "LessonTime", width: 180, align: "left" },
- {
- label: "教室名称", name: "ClassRoomName", width: 100, align: "left",
- formatterAsync: function (callback, value, row, op, $cell) {
- learun.clientdata.getAsync('custmerData', {
- url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'ClassRoomInfo',
- key: row.ClassRoomNo,
- keyId: 'classroomno',
- callback: function (_data) {
- callback(_data['classroomname']);
- }
- });
- }
- },
- { label: "备注", name: "Remark", width: 100, align: "left" },
+
],
mainId: 'StuId',
isPage: true,
@@ -215,7 +203,6 @@ var bootstrap = function ($, learun) {
},
search: function (param) {
param = param || {};
- //param.SqlParameter = " and a.ChangeStatus<>1 ";
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResultForTeacher.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResultForTeacher.cshtml
index f7c8f9b3c..1f5db5c37 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResultForTeacher.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResultForTeacher.cshtml
@@ -2,7 +2,7 @@
ViewBag.Title = "选修课课程";
Layout = "~/Views/Shared/_Index.cshtml";
}
-