@@ -534,7 +534,8 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
public ActionResult GetLessonNoDataWithNo() | public ActionResult GetLessonNoDataWithNo() | ||||
{ | { | ||||
var loginInfo = LoginUserInfo.Get(); | var loginInfo = LoginUserInfo.Get(); | ||||
var data = stuScoreIBLL.GetLessonNoDataOfAll(loginInfo.account, loginInfo.Description); | |||||
var semesterAndYear = Common.GetSemesterAndYear(); | |||||
var data = stuScoreIBLL.GetLessonNoDataOfAll(loginInfo.account, loginInfo.Description,semesterAndYear.AcademicYearShort,semesterAndYear.Semester); | |||||
foreach (var item in data) | foreach (var item in data) | ||||
{ | { | ||||
item.text = string.Format("{0}({1})", item.text, item.value); | item.text = string.Format("{0}({1})", item.text, item.value); | ||||
@@ -567,7 +568,8 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
public ActionResult GetElectiveLessonNoDataWithNo() | public ActionResult GetElectiveLessonNoDataWithNo() | ||||
{ | { | ||||
var loginInfo = LoginUserInfo.Get(); | var loginInfo = LoginUserInfo.Get(); | ||||
var data = stuScoreIBLL.GetElectiveLessonNoDataOfAll(loginInfo.account, loginInfo.Description); | |||||
var semesterAndYear = Common.GetSemesterAndYear(); | |||||
var data = stuScoreIBLL.GetElectiveLessonNoDataOfAll(loginInfo.account, loginInfo.Description, semesterAndYear.AcademicYearShort, semesterAndYear.Semester); | |||||
foreach (var item in data) | foreach (var item in data) | ||||
{ | { | ||||
item.text = string.Format("{0}({1})", item.text, item.value); | item.text = string.Format("{0}({1})", item.text, item.value); | ||||
@@ -496,6 +496,8 @@ var bootstrap = function ($, learun) { | |||||
if (ref.code == "200") { | if (ref.code == "200") { | ||||
$('#AcademicYearNo').lrselectSet(ref.data.Item1); | $('#AcademicYearNo').lrselectSet(ref.data.Item1); | ||||
$('#Semester').lrselectSet(ref.data.Item3); | $('#Semester').lrselectSet(ref.data.Item3); | ||||
$('#AcademicYearNo').attr('disabled', "disabled"); | |||||
$('#Semester').attr('disabled', "disabled"); | |||||
} | } | ||||
}.bind(this), "json"); | }.bind(this), "json"); | ||||
}, | }, | ||||
@@ -513,6 +513,9 @@ var bootstrap = function ($, learun) { | |||||
if (ref.code == "200") { | if (ref.code == "200") { | ||||
$('#AcademicYearNo').lrselectSet(ref.data.Item1); | $('#AcademicYearNo').lrselectSet(ref.data.Item1); | ||||
$('#Semester').lrselectSet(ref.data.Item3); | $('#Semester').lrselectSet(ref.data.Item3); | ||||
$('#AcademicYearNo').attr('disabled', "disabled"); | |||||
$('#Semester').attr('disabled', "disabled"); | |||||
} | } | ||||
}.bind(this), "json"); | }.bind(this), "json"); | ||||
}, | }, | ||||
@@ -534,8 +537,8 @@ var bootstrap = function ($, learun) { | |||||
searchScale: function (param) { | searchScale: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
$.lrSetForm(top.$.rootUrl + '/EducationalAdministration/OpenLessonPlanOfElective/GetStuSelectLessonListEntityByJson?queryJson=' + JSON.stringify(param), function (data) { | $.lrSetForm(top.$.rootUrl + '/EducationalAdministration/OpenLessonPlanOfElective/GetStuSelectLessonListEntityByJson?queryJson=' + JSON.stringify(param), function (data) { | ||||
if (data["StuSelectLessonList"] != null) { | |||||
var ssll = data["StuSelectLessonList"]; | |||||
if (data["StuSelectLessonListOfElective"] != null) { | |||||
var ssll = data["StuSelectLessonListOfElective"]; | |||||
$('#OrdinaryScoreScale').html(ssll.OrdinaryScoreScale > 0 ? ssll.OrdinaryScoreScale : 0); | $('#OrdinaryScoreScale').html(ssll.OrdinaryScoreScale > 0 ? ssll.OrdinaryScoreScale : 0); | ||||
$('#TermInScoreScale').html(ssll.TermInScoreScale > 0 ? ssll.TermInScoreScale : 0); | $('#TermInScoreScale').html(ssll.TermInScoreScale > 0 ? ssll.TermInScoreScale : 0); | ||||
$('#TermEndScoreScale').html(ssll.TermEndScoreScale > 0 ? ssll.TermEndScoreScale : 0); | $('#TermEndScoreScale').html(ssll.TermEndScoreScale > 0 ? ssll.TermEndScoreScale : 0); | ||||
@@ -590,7 +593,7 @@ var bootstrap = function ($, learun) { | |||||
page.initGird(); | page.initGird(); | ||||
page.search(query); | page.search(query); | ||||
//page.searchScale(query); | |||||
page.searchScale(query); | |||||
} | } | ||||
}; | }; | ||||
judgeSelect = function () { | judgeSelect = function () { | ||||
@@ -547,11 +547,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// 课程下拉框信息【学生成绩录入可去审核】 | /// 课程下拉框信息【学生成绩录入可去审核】 | ||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public IEnumerable<WebHelper.YearGrade> GetLessonNoDataOfAll(string userAccount, string userType) | |||||
public IEnumerable<WebHelper.YearGrade> GetLessonNoDataOfAll(string userAccount, string userType, string AcademicYearNo="", string Semester="") | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
return stuScoreService.GetLessonNoDataOfAll(userAccount, userType); | |||||
return stuScoreService.GetLessonNoDataOfAll(userAccount, userType,AcademicYearNo, Semester); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -570,11 +570,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// 课程下拉框信息【选修课】 | /// 课程下拉框信息【选修课】 | ||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public IEnumerable<WebHelper.YearGrade> GetElectiveLessonNoDataOfAll(string userAccount, string userType) | |||||
public IEnumerable<WebHelper.YearGrade> GetElectiveLessonNoDataOfAll(string userAccount, string userType, string AcademicYearNo = "", string Semester = "") | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
return stuScoreService.GetElectiveLessonNoDataOfAll(userAccount, userType); | |||||
return stuScoreService.GetElectiveLessonNoDataOfAll(userAccount, userType,AcademicYearNo,Semester); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -145,13 +145,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// 课程下拉框信息【学生成绩录入可去审核】 | /// 课程下拉框信息【学生成绩录入可去审核】 | ||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
IEnumerable<WebHelper.YearGrade> GetLessonNoDataOfAll(string userAccount, string userType); | |||||
IEnumerable<WebHelper.YearGrade> GetLessonNoDataOfAll(string userAccount, string userType, string AcademicYearNo="", string Semester=""); | |||||
/// <summary> | /// <summary> | ||||
/// 课程下拉框信息【选修课】 | /// 课程下拉框信息【选修课】 | ||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
IEnumerable<WebHelper.YearGrade> GetElectiveLessonNoDataOfAll(string userAccount, string userType); | |||||
IEnumerable<WebHelper.YearGrade> GetElectiveLessonNoDataOfAll(string userAccount, string userType, string AcademicYearNo = "", string Semester = ""); | |||||
/// <summary> | /// <summary> | ||||
/// 教室下拉框信息【选修课】 | /// 教室下拉框信息【选修课】 | ||||
@@ -130,8 +130,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
strSql.Append("SELECT t.* FROM StuScore t where 1=1 "); | strSql.Append("SELECT t.* FROM StuScore t where 1=1 "); | ||||
//学籍异动的学生不显示 | //学籍异动的学生不显示 | ||||
strSql.Append(" and t.StuNo not in (select StuNo from StuInfoBasic where ChangeStatus=1) "); | |||||
//strSql.Append(" and t.StuNo not in (select StuNo from StuInfoBasic where ChangeStatus=1) "); | |||||
//20220616改 休学的要录入成绩,退学和转校的不用 | |||||
strSql.Append(" and t.StuNo not in (select StuNo from StuInfoBasicChange where StuChangeType in('04','06')) "); | |||||
var queryParam = queryJson.ToJObject(); | var queryParam = queryJson.ToJObject(); | ||||
var dp = new DynamicParameters(new { }); | var dp = new DynamicParameters(new { }); | ||||
if (!queryParam["F_SchoolId"].IsEmpty()) | if (!queryParam["F_SchoolId"].IsEmpty()) | ||||
@@ -1112,7 +1113,7 @@ where StuNo not in(Select StuNo from stuscore s where s.Academicyearno = sl.Acad | |||||
/// 课程下拉框信息【学生成绩录入可去审核】 | /// 课程下拉框信息【学生成绩录入可去审核】 | ||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public IEnumerable<WebHelper.YearGrade> GetLessonNoDataOfAll(string userAccount, string userType) | |||||
public IEnumerable<WebHelper.YearGrade> GetLessonNoDataOfAll(string userAccount, string userType,string AcademicYearNo="",string Semester="") | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
@@ -1126,6 +1127,10 @@ where StuNo not in(Select StuNo from stuscore s where s.Academicyearno = sl.Acad | |||||
{ | { | ||||
strSql.Append(" and s.EmpNo='" + userAccount + "' "); | strSql.Append(" and s.EmpNo='" + userAccount + "' "); | ||||
} | } | ||||
if (!string.IsNullOrEmpty(AcademicYearNo)) | |||||
{ | |||||
strSql.Append(" and s.AcademicYearNo='" + AcademicYearNo + "' and s.Semester='"+Semester+"' "); | |||||
} | |||||
var data = this.BaseRepository("CollegeMIS").FindList<WebHelper.YearGrade>(strSql.ToString()); | var data = this.BaseRepository("CollegeMIS").FindList<WebHelper.YearGrade>(strSql.ToString()); | ||||
data = data.Where(x => !string.IsNullOrEmpty(x.value)).OrderBy(x => x.value); | data = data.Where(x => !string.IsNullOrEmpty(x.value)).OrderBy(x => x.value); | ||||
return data; | return data; | ||||
@@ -1147,7 +1152,7 @@ where StuNo not in(Select StuNo from stuscore s where s.Academicyearno = sl.Acad | |||||
/// 课程下拉框信息【选修课】 | /// 课程下拉框信息【选修课】 | ||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public IEnumerable<WebHelper.YearGrade> GetElectiveLessonNoDataOfAll(string userAccount, string userType) | |||||
public IEnumerable<WebHelper.YearGrade> GetElectiveLessonNoDataOfAll(string userAccount, string userType, string AcademicYearNo = "", string Semester = "") | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
@@ -1157,6 +1162,10 @@ where StuNo not in(Select StuNo from stuscore s where s.Academicyearno = sl.Acad | |||||
{ | { | ||||
strSql.Append(" and s.EmpNo='" + userAccount + "' "); | strSql.Append(" and s.EmpNo='" + userAccount + "' "); | ||||
} | } | ||||
if (!string.IsNullOrEmpty(AcademicYearNo)) | |||||
{ | |||||
strSql.Append(" and s.AcademicYearNo='" + AcademicYearNo + "' and s.Semester='" + Semester + "' "); | |||||
} | |||||
var data = this.BaseRepository("CollegeMIS").FindList<WebHelper.YearGrade>(strSql.ToString()); | var data = this.BaseRepository("CollegeMIS").FindList<WebHelper.YearGrade>(strSql.ToString()); | ||||
data = data.Where(x => !string.IsNullOrEmpty(x.value)).OrderBy(x => x.value); | data = data.Where(x => !string.IsNullOrEmpty(x.value)).OrderBy(x => x.value); | ||||
return data; | return data; | ||||