@@ -100,8 +100,8 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
} | } | ||||
} | } | ||||
//职业资格证书(-表中无学年学期字段???待增加 todo:) | |||||
entity.StudentCertificateList = studentCertificateIBLL.GetList(entity.StuNo).OrderByDescending(x => x.CreateTime).ToList(); | |||||
//职业资格证书 | |||||
entity.StudentCertificateList = studentCertificateIBLL.GetList("{\"AcademicYearNo\":\"" + entity.AcademicYearNo + "\",\"Semester\":\"" + entity.Semester + "\",\"StuNo\":\"" + entity.StuNo + "\"}").OrderByDescending(x => x.CreateTime).ToList(); | |||||
//奖罚情况 | //奖罚情况 | ||||
entity.StuEncourgementList = stuEncourgementIBLL.GetEncourgementListByStuNo(entity.AcademicYearNo, entity.Semester, entity.StuNo).ToList(); | entity.StuEncourgementList = stuEncourgementIBLL.GetEncourgementListByStuNo(entity.AcademicYearNo, entity.Semester, entity.StuNo).ToList(); | ||||
entity.StuPunishmentList = stuPunishmentIBLL.GetPunishmentListByStuNo(entity.AcademicYearNo, entity.Semester, entity.StuNo).ToList(); | entity.StuPunishmentList = stuPunishmentIBLL.GetPunishmentListByStuNo(entity.AcademicYearNo, entity.Semester, entity.StuNo).ToList(); | ||||
@@ -20,7 +20,7 @@ | |||||
<button id="print">打印表格</button> | <button id="print">打印表格</button> | ||||
</div> | </div> | ||||
<div class="table-page"> | <div class="table-page"> | ||||
<h1 class="table-title">学生成绩考核记载表( @Model.AcademicYearNo 学年,第 @Model.Semester 学期)</h1> | |||||
<h1 class="table-title">学生成绩考核记载表(<span>@Model.AcademicYearNo</span>学年,第<span>@Model.Semester</span>学期)</h1> | |||||
<table id="table" border="1" cellspacing="0" cellpadding="10" width="100%" align="center"> | <table id="table" border="1" cellspacing="0" cellpadding="10" width="100%" align="center"> | ||||
@{ | @{ | ||||
var scoreList = Model.StuScoreList as IEnumerable<StuScoreEntity>; | var scoreList = Model.StuScoreList as IEnumerable<StuScoreEntity>; | ||||
@@ -3,49 +3,57 @@ | |||||
Layout = "~/Views/Shared/_Form.cshtml"; | Layout = "~/Views/Shared/_Form.cshtml"; | ||||
} | } | ||||
<div class="lr-form-wrap" id="form"> | <div class="lr-form-wrap" id="form"> | ||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate" > | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate"> | |||||
<div class="lr-form-item-title">学年<font face="宋体">*</font></div> | |||||
<div id="AcademicYearNo" isvalid="yes" checkexpession="NotNull"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate"> | |||||
<div class="lr-form-item-title">学期<font face="宋体">*</font></div> | |||||
<div id="Semester"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate"> | |||||
<div class="lr-form-item-title">学生学号<font face="宋体">*</font></div> | <div class="lr-form-item-title">学生学号<font face="宋体">*</font></div> | ||||
<input id="StuNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | <input id="StuNo" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate" > | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate"> | |||||
<div class="lr-form-item-title">学生姓名<font face="宋体">*</font></div> | <div class="lr-form-item-title">学生姓名<font face="宋体">*</font></div> | ||||
<input id="StuName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | <input id="StuName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate" > | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate"> | |||||
<div class="lr-form-item-title">专业部<font face="宋体">*</font></div> | <div class="lr-form-item-title">专业部<font face="宋体">*</font></div> | ||||
<div id="DeptNo" isvalid="yes" checkexpession="NotNull" readonly ></div> | |||||
<div id="DeptNo" isvalid="yes" checkexpession="NotNull" readonly></div> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate" > | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate"> | |||||
<div class="lr-form-item-title">专业<font face="宋体">*</font></div> | <div class="lr-form-item-title">专业<font face="宋体">*</font></div> | ||||
<div id="MajorNo" isvalid="yes" checkexpession="NotNull" readonly ></div> | |||||
<div id="MajorNo" isvalid="yes" checkexpession="NotNull" readonly></div> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate" > | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate"> | |||||
<div class="lr-form-item-title">班级<font face="宋体">*</font></div> | <div class="lr-form-item-title">班级<font face="宋体">*</font></div> | ||||
<div id="ClassNo" isvalid="yes" checkexpession="NotNull" readonly ></div> | |||||
<div id="ClassNo" isvalid="yes" checkexpession="NotNull" readonly></div> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate" > | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate"> | |||||
<div class="lr-form-item-title">证书名称<font face="宋体">*</font></div> | <div class="lr-form-item-title">证书名称<font face="宋体">*</font></div> | ||||
<input id="SCName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | <input id="SCName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate" > | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate"> | |||||
<div class="lr-form-item-title">证书级别<font face="宋体">*</font></div> | <div class="lr-form-item-title">证书级别<font face="宋体">*</font></div> | ||||
<input id="SCLevel" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | <input id="SCLevel" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate" > | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate"> | |||||
<div class="lr-form-item-title">证书种类<font face="宋体">*</font></div> | <div class="lr-form-item-title">证书种类<font face="宋体">*</font></div> | ||||
<input id="SCType" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | <input id="SCType" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate" > | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate"> | |||||
<div class="lr-form-item-title">分值<font face="宋体">*</font></div> | <div class="lr-form-item-title">分值<font face="宋体">*</font></div> | ||||
<input id="SCScore" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | <input id="SCScore" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate" > | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate"> | |||||
<div class="lr-form-item-title">获取时间<font face="宋体">*</font></div> | <div class="lr-form-item-title">获取时间<font face="宋体">*</font></div> | ||||
<input id="SCTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#SCTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||||
<input id="SCTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker({ dateFmt:'yyyy-MM-dd',onpicked: function () { $('#SCTime').trigger('change'); } })" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate" > | |||||
<div class="col-xs-12 lr-form-item" data-table="StudentCertificate"> | |||||
<div class="lr-form-item-title">附件上传</div> | <div class="lr-form-item-title">附件上传</div> | ||||
<div id="SCUrl" ></div> | |||||
<div id="SCUrl"></div> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StudentCertificate/Form.js") | @Html.AppendJsFile("/Areas/EducationalAdministration/Views/StudentCertificate/Form.js") |
@@ -43,6 +43,22 @@ var bootstrap = function ($, learun) { | |||||
page.initData(); | page.initData(); | ||||
}, | }, | ||||
bind: function () { | 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' | |||||
}); | |||||
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | $('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | ||||
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); | $('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); | ||||
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); | $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); | ||||
@@ -10,6 +10,14 @@ | |||||
<div class="lr-layout-tool-item"> | <div class="lr-layout-tool-item"> | ||||
<div id="multiple_condition_query"> | <div id="multiple_condition_query"> | ||||
<div class="lr-query-formcontent"> | <div class="lr-query-formcontent"> | ||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">学年</div> | |||||
<div id="AcademicYearNo"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">学期</div> | |||||
<div id="Semester"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | <div class="col-xs-6 lr-form-item"> | ||||
<div class="lr-form-item-title">学生学号</div> | <div class="lr-form-item-title">学生学号</div> | ||||
<input id="StuNo" type="text" class="form-control" /> | <input id="StuNo" type="text" class="form-control" /> | ||||
@@ -20,6 +20,22 @@ var bootstrap = function ($, learun) { | |||||
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | $('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); | ||||
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); | $('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); | ||||
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); | $('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); | ||||
//学年 | |||||
$('#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' | |||||
}); | |||||
// 刷新 | // 刷新 | ||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
@@ -30,8 +46,8 @@ var bootstrap = function ($, learun) { | |||||
id: 'form', | id: 'form', | ||||
title: '新增', | title: '新增', | ||||
url: top.$.rootUrl + '/EducationalAdministration/StudentCertificate/Form', | url: top.$.rootUrl + '/EducationalAdministration/StudentCertificate/Form', | ||||
width: 720, | |||||
height: 550, | |||||
width: 800, | |||||
height: 600, | |||||
callBack: function (id) { | callBack: function (id) { | ||||
var res = false; | var res = false; | ||||
// 验证数据 | // 验证数据 | ||||
@@ -53,8 +69,8 @@ var bootstrap = function ($, learun) { | |||||
id: 'form', | id: 'form', | ||||
title: '编辑', | title: '编辑', | ||||
url: top.$.rootUrl + '/EducationalAdministration/StudentCertificate/Form?keyValue=' + keyValue, | url: top.$.rootUrl + '/EducationalAdministration/StudentCertificate/Form?keyValue=' + keyValue, | ||||
width: 720, | |||||
height: 550, | |||||
width: 800, | |||||
height: 600, | |||||
callBack: function (id) { | callBack: function (id) { | ||||
var res = false; | var res = false; | ||||
// 验证数据 | // 验证数据 | ||||
@@ -164,6 +180,8 @@ var bootstrap = function ($, learun) { | |||||
$('#gridtable').jfGrid({ | $('#gridtable').jfGrid({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/StudentCertificate/GetPageList', | url: top.$.rootUrl + '/EducationalAdministration/StudentCertificate/GetPageList', | ||||
headData: [ | headData: [ | ||||
{ label: "学年", name: "AcademicYearNo", width: 80, align: "left" }, | |||||
{ label: "学期", name: "Semester", width: 80, align: "left" }, | |||||
{ label: "学生学号", name: "StuNo", width: 150, align: "left" }, | { label: "学生学号", name: "StuNo", width: 150, align: "left" }, | ||||
{ label: "学生姓名", name: "StuName", width: 100, align: "left" }, | { label: "学生姓名", name: "StuName", width: 100, align: "left" }, | ||||
{ | { | ||||
@@ -31,7 +31,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
var strSql = new StringBuilder(); | var strSql = new StringBuilder(); | ||||
strSql.Append("SELECT "); | strSql.Append("SELECT "); | ||||
strSql.Append(@" * "); | |||||
strSql.Append(@" t.* "); | |||||
strSql.Append(" FROM ScoreCheckInfo t "); | strSql.Append(" FROM ScoreCheckInfo t "); | ||||
strSql.Append(" WHERE 1=1 "); | strSql.Append(" WHERE 1=1 "); | ||||
var queryParam = queryJson.ToJObject(); | var queryParam = queryJson.ToJObject(); | ||||
@@ -71,11 +71,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// 获取页面显示列表数据 | /// 获取页面显示列表数据 | ||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public IEnumerable<StudentCertificateEntity> GetList(string stuNo) | |||||
public IEnumerable<StudentCertificateEntity> GetList(string queryJson) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
return studentCertificateService.GetList(stuNo); | |||||
return studentCertificateService.GetList(queryJson); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
@@ -94,6 +94,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// </summary> | /// </summary> | ||||
[Column("STATUS")] | [Column("STATUS")] | ||||
public int? Status { get; set; } | public int? Status { get; set; } | ||||
/// <summary> | |||||
/// 学年 | |||||
/// </summary> | |||||
[Column("ACADEMICYEARNO")] | |||||
public string AcademicYearNo { get; set; } | |||||
/// <summary> | |||||
/// 学期 | |||||
/// </summary> | |||||
[Column("SEMESTER")] | |||||
public string Semester { get; set; } | |||||
#endregion | #endregion | ||||
#region 扩展操作 | #region 扩展操作 | ||||
@@ -33,7 +33,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// 获取页面显示列表数据 | /// 获取页面显示列表数据 | ||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
IEnumerable<StudentCertificateEntity> GetList(string stuNo); | |||||
IEnumerable<StudentCertificateEntity> GetList(string queryJson); | |||||
/// <summary> | /// <summary> | ||||
/// 获取主表实体数据 | /// 获取主表实体数据 | ||||
/// </summary> | /// </summary> | ||||
@@ -146,12 +146,40 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// 获取页面显示列表数据 | /// 获取页面显示列表数据 | ||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public IEnumerable<StudentCertificateEntity> GetList(string stuNo) | |||||
public IEnumerable<StudentCertificateEntity> GetList(string queryJson) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
return this.BaseRepository("CollegeMIS").FindList<StudentCertificateEntity>(x => x.StuNo == stuNo && x.Status==2); | |||||
var strSql = new StringBuilder(); | |||||
strSql.Append("SELECT t.* "); | |||||
strSql.Append(" FROM StudentCertificate t "); | |||||
strSql.Append(" WHERE 1=1 and t.Status=2 "); | |||||
var queryParam = queryJson.ToJObject(); | |||||
// 虚拟参数 | |||||
var dp = new DynamicParameters(new { }); | |||||
if (!queryParam["StuNo"].IsEmpty()) | |||||
{ | |||||
dp.Add("StuNo", queryParam["StuNo"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.StuNo = @StuNo "); | |||||
} | |||||
if (!queryParam["StuName"].IsEmpty()) | |||||
{ | |||||
dp.Add("StuName", "%" + queryParam["StuName"].ToString() + "%", DbType.String); | |||||
strSql.Append(" AND t.StuName Like @StuName "); | |||||
} | |||||
if (!queryParam["AcademicYearNo"].IsEmpty()) | |||||
{ | |||||
dp.Add("AcademicYearNo", queryParam["AcademicYearNo"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.AcademicYearNo = @AcademicYearNo "); | |||||
} | |||||
if (!queryParam["Semester"].IsEmpty()) | |||||
{ | |||||
dp.Add("Semester", queryParam["Semester"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.Semester = @Semester "); | |||||
} | |||||
return this.BaseRepository("CollegeMIS").FindList<StudentCertificateEntity>(strSql.ToString(), dp); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||