-@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuSelectLessonListOfElective/QueryStuSelectResultForTeacher.js")
+@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResultForTeacher.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResultForTeacher.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResultForTeacher.js
index a773bbc7e..6498b18c6 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResultForTeacher.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuSelectLessonListOfElectiveOnline/QueryStuSelectResultForTeacher.js
@@ -24,7 +24,7 @@ var bootstrap = function ($, learun) {
return;
}
page.search(queryJson);
- }, 300, 400);
+ }, 330, 500);
$('#AcademicYearNo').lrselect({
placeholder: "请选择学年",
allowSearch: true,
@@ -40,12 +40,58 @@ var bootstrap = function ($, learun) {
value: 'value',
text: 'text'
});
- $('#ElectiveSelectStatus').lrDataItemSelect({ code: 'ElectiveSelectStatus' });
- $('#ElectiveSignUpStatus').lrDataItemSelect({ code: 'ElectiveSignUpStatus' });
+ //数据集不选择线上课程信息,选择选课情况里的课程信息
+ $('#LessonNo').lrselect({
+ allowSearch: true,
+ 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' });
- $('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' });
- $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' });
+ $('#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();
@@ -54,12 +100,22 @@ var bootstrap = function ($, learun) {
// 初始化列表
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: "EmpName", width: 100, align: "left"
+ },
{
- label: "校区", name: "F_SchoolId", width: 200, 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',
@@ -72,7 +128,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',
@@ -110,24 +166,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) {
@@ -142,62 +180,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,
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
index f28aebf75..0621a1e80 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
@@ -340,6 +340,7 @@
+
@@ -1030,6 +1031,8 @@
+
+
@@ -8214,6 +8217,8 @@
+
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/LessonInfoOfElectiveOnlineApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/LessonInfoOfElectiveOnlineApi.cs
index acdbdcc1b..eaace65ed 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/LessonInfoOfElectiveOnlineApi.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/LessonInfoOfElectiveOnlineApi.cs
@@ -52,13 +52,13 @@ namespace Learun.Application.WebApi
var stuInfoBasicEntity = stuInfoBasicIBLL.GetStuInfoBasicEntityByStuNo(account);
if (stuInfoBasicEntity == null)
{
- return Fail("当前学员不存在!");
+ return Success(new { msg = "当前学员不存在!" });
}
//课程信息
var olpeEntity = lessonInfoOfElectiveOnlineIbll.GetLessonInfoOfElectiveOnlineEntity(keyValue);
if (olpeEntity == null)
{
- return Fail("当前课程不存在!");
+ return Success(new { msg = "当前课程不存在!" });
}
//当前学员本学期是否有报名课程:每学期一门
@@ -96,11 +96,11 @@ namespace Learun.Application.WebApi
{
if (sslleEntity.Status == 1)
{
- return Fail("当前课程报名审核中,请耐心等待!");
+ return Success(new { msg = "当前课程报名审核中,请耐心等待!" });
}
else if (sslleEntity.Status == 2)
{
- return Fail("当前课程已报名成功!");
+ return Success(new { msg = "当前课程已报名成功!" });
}
}
else
@@ -110,7 +110,7 @@ namespace Learun.Application.WebApi
var aaa = aa.Count(x => x.Status == 1 || x.Status == 2);
if (aaa >= olpeEntity.StuNumMax)
{
- return Fail("当前课程报名人数已满,请选择其他课程!");
+ return Success(new { msg = "当前课程报名人数已满,请选择其他课程!" });
}
//每学期最多两门
var sslleList = stuSelectLessonListOfElectiveOnlineIBLL.GetStuSelectLessonListOfElectiveOnlineListByStuNo(account);
@@ -118,15 +118,15 @@ namespace Learun.Application.WebApi
var sslleListOfNow1 = sslleListOfNow.Where(x => x.Status == 1 || x.Status == 2);
if (sslleListOfNow1.Count() >= Config.GetValue("OnlineElectiveLessonApplyMax").ToInt())
{
- return Fail("每学期最多选择" + Config.GetValue("OnlineElectiveLessonApplyMax").ToInt() + "门线上选修课!");
+ return Success(new { msg = "每学期最多选择" + Config.GetValue("OnlineElectiveLessonApplyMax").ToInt() + "门线上选修课!" });
}
//相同时间不能报名
- if (sslleListOfNow1.Where(x => x.LessonSection == olpeEntity.LessonSection).Any())
+ if (!string.IsNullOrEmpty(olpeEntity.LessonSection) && sslleListOfNow1.Where(x => x.LessonSection == olpeEntity.LessonSection).Any())
{
//相同时间不能报名
- return Fail("本学期此时间段已有报名的选修课!");
+ return Success(new { msg = "本学期此时间段已有报名的选修课!" });
}
-
+
}
return Fail("正在提交,请等待!");
@@ -173,20 +173,11 @@ namespace Learun.Application.WebApi
public Response GetForm(dynamic _)
{
string keyValue = this.GetReqData();
- var JournalReceiveData = lessonInfoOfElectiveOnlineIbll.GetLessonInfoOfElectiveOnlineEntity(keyValue);
- if (lessonInfoIbll.GetLessonInfoEntityByLessonNo(JournalReceiveData.LessonNo) != null)
- {
- if (!string.IsNullOrEmpty(lessonInfoIbll.GetLessonInfoEntityByLessonNo(JournalReceiveData.LessonNo).Introduction))
- JournalReceiveData.Introduction = WebHelper.NoHtml(WebHelper.HtmlDecode(lessonInfoIbll.GetLessonInfoEntityByLessonNo(JournalReceiveData.LessonNo).Introduction)) ?? "";
- }
- if (empInfoIbll.GetEmpInfoEntityByEmpNo(JournalReceiveData.EmpNo) != null)
- {
- if (!string.IsNullOrEmpty(empInfoIbll.GetEmpInfoEntityByEmpNo(JournalReceiveData.EmpNo).resume))
- JournalReceiveData.resume = WebHelper.NoHtml(WebHelper.HtmlDecode(empInfoIbll.GetEmpInfoEntityByEmpNo(JournalReceiveData.EmpNo).resume)) ?? "";
- }
+ var Data = lessonInfoOfElectiveOnlineIbll.GetLessonInfoOfElectiveOnlineEntity(keyValue);
+
var jsonData = new
{
- JournalReceive = JournalReceiveData,
+ data = Data,
};
return Success(jsonData);
}
@@ -223,7 +214,7 @@ namespace Learun.Application.WebApi
if (sslleEntity.Status != 2)
{
stuSelectLessonListOfElectiveOnlineIBLL.DeleteEntity(sslleEntity.Id);
- return Fail("取消成功");
+ return Success("取消成功");
}
else
{
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/StuScoreOnlineMap.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/StuScoreOnlineMap.cs
new file mode 100644
index 000000000..aea32cc0b
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/EducationalAdministration/StuScoreOnlineMap.cs
@@ -0,0 +1,29 @@
+using Learun.Application.TwoDevelopment.EducationalAdministration;
+using System.Data.Entity.ModelConfiguration;
+
+namespace Learun.Application.Mapping
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2019-06-14 11:02
+ /// 描 述:考试成绩同步
+ ///
+ public class StuScoreOnlineMap : EntityTypeConfiguration
+ {
+ public StuScoreOnlineMap()
+ {
+ #region 表、主键
+ //表
+ this.ToTable("STUSCOREONLINE");
+ //主键
+ this.HasKey(t => t.ScoreId);
+ #endregion
+
+ #region 配置关系
+ #endregion
+ }
+ }
+}
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
index 5ce5ca424..11c7695c4 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Mapping/Learun.Application.Mapping.csproj
@@ -112,6 +112,7 @@
+
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreOnline/StuScoreOnlineBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreOnline/StuScoreOnlineBLL.cs
new file mode 100644
index 000000000..0a2e3839f
--- /dev/null
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreOnline/StuScoreOnlineBLL.cs
@@ -0,0 +1,1146 @@
+using Learun.Util;
+using System;
+using System.Data;
+using System.Collections.Generic;
+using static Learun.Application.TwoDevelopment.EducationalAdministration.StuScoreOnlineService;
+
+namespace Learun.Application.TwoDevelopment.EducationalAdministration
+{
+ ///
+ /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
+ /// Copyright (c) 2013-2018 北京泉江科技有限公司
+ /// 创 建:超级管理员
+ /// 日 期:2019-06-14 11:02
+ /// 描 述:考试成绩同步
+ ///
+ public class StuScoreOnlineBLL : StuScoreOnlineIBLL
+ {
+ private StuScoreOnlineService stuScoreOnlineService = new StuScoreOnlineService();
+
+ #region 获取数据
+
+ ///
+ /// 获取列表数据
+ ///
+ ///
+ public IEnumerable GetList(string queryJson)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetList(queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ public DataTable GetListForExport(string queryJson)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetListForExport(queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ public IEnumerable GetMonitorList(string queryJson)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetMonitorList(queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取列表分页数据
+ /// 分页参数
+ ///
+ ///
+ public IEnumerable GetPageList(Pagination pagination, string queryJson)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetPageList(pagination, queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取实体数据
+ /// 主键
+ ///
+ ///
+ public StuScoreOnlineEntity GetEntity(string keyValue)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取列表分页数据
+ /// 分页参数
+ ///
+ ///
+ public IEnumerable GetScoreInputCancelPageList(Pagination pagination, string queryJson)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetScoreInputCancelPageList(pagination, queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取列表数据
+ ///
+ ///
+ public StuScoreOnlineEntity GetEntityByJson(string queryJson)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetEntityByJson(queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ #endregion
+
+ #region 提交数据
+
+ ///
+ /// 删除实体数据
+ /// 主键
+ ///
+ ///
+ public void DeleteEntity(string keyValue)
+ {
+ try
+ {
+ stuScoreOnlineService.DeleteEntity(keyValue);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+ public void SubmitStuScoreOnline(string AcademicYearNo, string Semester, string LessonNo, string EmpNo)
+ {
+ try
+ {
+ stuScoreOnlineService.SubmitStuScoreOnline(AcademicYearNo, Semester, LessonNo, EmpNo);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+ ///
+ /// 保存实体数据(新增、修改)
+ /// 主键
+ ///
+ ///
+ public void SaveEntity(string keyValue, StuScoreOnlineEntity entity)
+ {
+ try
+ {
+ stuScoreOnlineService.SaveEntity(keyValue, entity);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+
+ public void DeleteList()
+ {
+ try
+ {
+ stuScoreOnlineService.DeleteList();
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ #endregion
+
+ #region 扩展数据
+
+ ///
+ /// 获取学年学期列表
+ ///
+ ///
+ public IEnumerable GetAcademicAndSemesterList()
+ {
+ try
+ {
+ return stuScoreOnlineService.GetAcademicAndSemesterList();
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+ ///
+ /// 根据学号获取成绩列表
+ ///
+ ///
+ ///
+ /// 学号
+ /// 班级编号
+ ///
+ public ScoreListByStuNoModel GetScoreListByStuNo(string academic, string semester, string stuNo, string classNo)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetScoreListByStuNo(academic, semester, stuNo, classNo);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ public bool GetAny()
+ {
+ try
+ {
+ return stuScoreOnlineService.GetAny();
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 保存实体数据(新增、修改)
+ /// 主键
+ ///
+ ///
+ public void UpEmpNos(string xn, string xq, string classNo, string LessonNo, string EmpNo, string HisEmpNo, string Grade)
+ {
+ try
+ {
+ stuScoreOnlineService.UpEmpNos(xn, xq, classNo, LessonNo, EmpNo, HisEmpNo, Grade);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取一次补考名单数据
+ ///
+ ///
+ public IEnumerable GetStuScoreOnlineNotPassList()
+ {
+ try
+ {
+ return stuScoreOnlineService.GetStuScoreOnlineNotPassList();
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取二次补考名单数据
+ ///
+ ///
+ public IEnumerable GetStuScoreOnlineNotPassTwoList()
+ {
+ try
+ {
+ return stuScoreOnlineService.GetStuScoreOnlineNotPassTwoList();
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取班级成绩初始化信息
+ ///
+ ///
+ public IEnumerable GetPageListAboutClass(Pagination pagination, string queryJson)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetPageListAboutClass(pagination, queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取列表分页数据
+ /// 分页参数
+ ///
+ ///
+ public StuSelectLessonListEntity GetStuSelectLessonListEntity(StuScoreOnlineEntity entity)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetStuSelectLessonListEntity(entity);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 班级学生成绩初始化
+ ///
+ ///
+ public void DoInitAboutClass(string academicYearNo, string semester, string classNo)
+ {
+ try
+ {
+ stuScoreOnlineService.DoInitAboutClass(academicYearNo, semester, classNo);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 学年下拉框信息【班级成绩查看】
+ ///
+ ///
+ public IEnumerable GetAcademicYearNoData()
+ {
+ try
+ {
+ return stuScoreOnlineService.GetAcademicYearNoData();
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 班级下拉框信息【班级成绩查看】
+ ///
+ ///
+ public IEnumerable GetClassNoData(string userAccount, string userType, string lessonNo)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetClassNoData(userAccount, userType, lessonNo);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ public IEnumerable GetClassNoDataForInput(string userAccount, string userType, string lessonNo, string academicYearShort, string semester)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetClassNoDataForInput(userAccount, userType, lessonNo, academicYearShort, semester);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 教师下拉框信息【学生成绩录入可去审核】
+ ///
+ ///
+ public IEnumerable GetEmpNoData(string userAccount, string userType, string lessonNo)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetEmpNoData(userAccount, userType, lessonNo);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 课程下拉框信息【学生成绩录入可去审核】
+ ///
+ ///
+ public IEnumerable GetLessonNoDataOfAll(string userAccount, string userType, string AcademicYearNo = "", string Semester = "")
+ {
+ try
+ {
+ return stuScoreOnlineService.GetLessonNoDataOfAll(userAccount, userType, AcademicYearNo, Semester);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 课程下拉框信息【选修课】
+ ///
+ ///
+ public IEnumerable GetElectiveLessonNoDataOfAll(string userAccount, string userType, string AcademicYearNo = "", string Semester = "")
+ {
+ try
+ {
+ return stuScoreOnlineService.GetElectiveLessonNoDataOfAll(userAccount, userType, AcademicYearNo, Semester);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 教室下拉框信息【选修课】
+ ///
+ ///
+ public IEnumerable GetElectiveClassRoomNoData(string userAccount, string userType, string lessonNo)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetElectiveClassRoomNoData(userAccount, userType, lessonNo);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 节次下拉框信息【选修课】
+ ///
+ ///
+ public IEnumerable GetElectiveLessonSectionData(string userAccount, string userType, string classRoomNo)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetElectiveLessonSectionData(userAccount, userType, classRoomNo);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 课程信息【班级成绩查看】
+ ///
+ ///
+ public IEnumerable GetLessonNoData(string academicYearNo, string semester, string classNo)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetLessonNoData(academicYearNo, semester, classNo);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 获取班级成绩列表
+ ///
+ ///
+ public IEnumerable GetScoreListByClassNo(string queryJson)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetScoreListByClassNo(queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ public IEnumerable GetScoreListByClassNoForScholarship(string queryJson)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetScoreListByClassNoForScholarship(queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ public IEnumerable GetScoreListByStuNo(string queryJson)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetScoreListByStuNo(queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ ///
+ /// 根据学号/姓名获取学生成绩列表
+ ///
+ ///
+ ///
+ public IEnumerable GetScoreListByStuInfo(string queryJson)
+ {
+ try
+ {
+ return stuScoreOnlineService.GetScoreListByStuInfo(queryJson);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowBusinessException(ex);
+ }
+ }
+ }
+
+ public List