@@ -217,7 +217,19 @@ var bootstrap = function ($, learun) { | |||||
{ label: "已报人数", name: "StuNumOfApply", width: 60, align: "left" }, | { label: "已报人数", name: "StuNumOfApply", width: 60, align: "left" }, | ||||
{ label: "通过人数", name: "StuNum", width: 60, align: "left" }, | { label: "通过人数", name: "StuNum", width: 60, align: "left" }, | ||||
{ label: "已报人数(预)", name: "StuNumOfApplyPre", width: 80, align: "left" }, | { label: "已报人数(预)", name: "StuNumOfApplyPre", width: 80, align: "left" }, | ||||
{ label: "通过人数(预)", name: "StuNumPre", width: 80, align: "left" } | |||||
{ label: "通过人数(预)", name: "StuNumPre", width: 80, align: "left" }, | |||||
{ | |||||
label: "选课专业", name: "ElectiveMajorList", width: 150, align: "left",formatter: function (cellvalue,row) { | |||||
var str = ""; | |||||
for (var i = 0; i < row.ElectiveMajorList.length; i++) { | |||||
str += row.ElectiveMajorList[i].Grade + "级" + row.ElectiveMajorList[i].MajorName; | |||||
if (i != row.ElectiveMajorList.length - 1) { | |||||
str += ","; | |||||
} | |||||
} | |||||
return str; | |||||
} | |||||
} | |||||
], | ], | ||||
mainId: 'Id', | mainId: 'Id', | ||||
isPage: true, | isPage: true, | ||||
@@ -69,6 +69,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
} | } | ||||
#endregion | #endregion | ||||
#region 扩展字段 | #region 扩展字段 | ||||
[NotMapped] | |||||
public string MajorNo { get; set; } | |||||
[NotMapped] | |||||
public string MajorName { get; set; } | |||||
#endregion | #endregion | ||||
} | } | ||||
} | } | ||||
@@ -1,5 +1,6 @@ | |||||
using Learun.Util; | using Learun.Util; | ||||
using System; | using System; | ||||
using System.Collections.Generic; | |||||
using System.ComponentModel.DataAnnotations.Schema; | using System.ComponentModel.DataAnnotations.Schema; | ||||
namespace Learun.Application.TwoDevelopment.EducationalAdministration | namespace Learun.Application.TwoDevelopment.EducationalAdministration | ||||
@@ -221,6 +222,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// </summary> | /// </summary> | ||||
[NotMapped] public string LessonNo2 { get; set; } | [NotMapped] public string LessonNo2 { get; set; } | ||||
[NotMapped] public string EmpNo2 { get; set; } | [NotMapped] public string EmpNo2 { get; set; } | ||||
/// <summary> | |||||
/// 选课专业列表 | |||||
/// </summary> | |||||
[NotMapped] | |||||
public List<ElectiveMajorEntity> ElectiveMajorList { get; set; } | |||||
#endregion | #endregion | ||||
} | } | ||||
} | } | ||||
@@ -362,6 +362,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
item.StuNumOfApply = aa.Where(x => (x.Status == 1 || x.Status == 2)).Count(); | item.StuNumOfApply = aa.Where(x => (x.Status == 1 || x.Status == 2)).Count(); | ||||
//审核通过人数 | //审核通过人数 | ||||
item.StuNum = aa.Where(x => x.Status == 2).Count(); | item.StuNum = aa.Where(x => x.Status == 2).Count(); | ||||
//选课专业 | |||||
var strSql2 = new StringBuilder(); | |||||
strSql2.Append("select e.Id,e.OLPOEId,e.MajorId,e.Grade,m.MajorNo,m.MajorName from ElectiveMajor e left join CdMajor m on e.MajorId=m.ID where e.OLPOEId='" + item.Id + "' and e.MajorId is not null and e.Grade is not null "); | |||||
item.ElectiveMajorList = this.BaseRepository("CollegeMIS").FindList<ElectiveMajorEntity>(strSql2.ToString()).OrderBy(x => x.MajorNo).ThenBy(x => x.Grade).ToList(); | |||||
//模式一:预选课 | //模式一:预选课 | ||||
var aaa = this.BaseRepository("CollegeMIS").FindList<StuSelectLessonListOfElectivePreEntity>(x => x.OLPEId == item.Id); | var aaa = this.BaseRepository("CollegeMIS").FindList<StuSelectLessonListOfElectivePreEntity>(x => x.OLPEId == item.Id); | ||||
@@ -370,6 +374,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
//审核通过人数 | //审核通过人数 | ||||
item.StuNumPre = aaa.Where(x => x.Status == 2).Count(); | item.StuNumPre = aaa.Where(x => x.Status == 2).Count(); | ||||
} | } | ||||
return list; | return list; | ||||