@@ -80,7 +80,15 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | |||||
/// 补考成绩录入查看 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult IndexBKUnpass() | |||||
{ | |||||
return View(); | |||||
} | |||||
#endregion | #endregion | ||||
#region 获取数据 | #region 获取数据 | ||||
@@ -80,6 +80,15 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | |||||
/// 二次补考成绩查看 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult IndexBKUnpassTwo() | |||||
{ | |||||
return View(); | |||||
} | |||||
#endregion | #endregion | ||||
@@ -179,7 +188,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
} | } | ||||
#endregion | #endregion | ||||
#region 提交数据 | |||||
#region 提交数据 | |||||
/// <summary> | /// <summary> | ||||
/// 删除实体数据 | /// 删除实体数据 | ||||
@@ -0,0 +1,58 @@ | |||||
@{ | |||||
ViewBag.Title = "长阳迎新"; | |||||
Layout = "~/Views/Shared/_Index.cshtml"; | |||||
} | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | |||||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||||
<div class="lr-layout-tool"> | |||||
<div class="lr-layout-tool-left"> | |||||
<div class="lr-layout-tool-item"> | |||||
<div id="multiple_condition_query"> | |||||
<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="lr-form-item-title">年级</div> | |||||
<div id="grade"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">系部</div> | |||||
<div id="DeptNo"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">专业</div> | |||||
<div id="MajorNo"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">课程</div> | |||||
<div id="LessonNo"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">班级</div> | |||||
<div id="ClassNo"></div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-tool-right"> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||||
</div> | |||||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||||
<a id="lr_Init" class="btn btn-default"><i class="fa fa-plus"></i> 初始化补考成绩</a> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-body" id="gridtable"></div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScoreNotPass/IndexBKUnpass.js") |
@@ -0,0 +1,155 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2021-12-16 10:14 | |||||
* 描 述:长阳迎新 | |||||
*/ | |||||
var refreshGirdData; | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
var page = { | |||||
init: function () { | |||||
page.initGird(); | |||||
page.bind(); | |||||
}, | |||||
bind: function () { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||||
page.search(queryJson); | |||||
}, 220, 400); | |||||
$('#AcademicYearNo').lrselect({ | |||||
placeholder: "学年", | |||||
allowSearch: false, | |||||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | |||||
value: 'value', | |||||
text: 'text' | |||||
}); | |||||
//学期 | |||||
$('#Semester').lrselect({ | |||||
placeholder: "学期", | |||||
allowSearch: false, | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||||
value: 'value', | |||||
text: 'text' | |||||
}); | |||||
//年级 | |||||
$('#grade').lrselect({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear', | |||||
value: 'value', | |||||
text: 'text' | |||||
}); | |||||
$('#DeptNo').lrDataSourceSelect({ | |||||
allowSearch: true, | |||||
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { | |||||
var deptno = ""; | |||||
if (val) { | |||||
deptno = val.deptno; | |||||
} | |||||
$('#MajorNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, | |||||
text: "MajorName", | |||||
value: "MajorNo" | |||||
}) | |||||
} | |||||
}); | |||||
$('#MajorNo').lrDataSourceSelect({ | |||||
allowSearch: true, | |||||
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: | |||||
function (val) { | |||||
var majorNo = ''; | |||||
if (val) { | |||||
majorNo = val.MajorNo; | |||||
} | |||||
$('#ClassNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + | |||||
'/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + | |||||
majorNo, | |||||
text: "ClassName", | |||||
value: "ClassNo" | |||||
}); | |||||
$('#LessonNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + | |||||
'/EducationalAdministration/LessonInfo/GetLessonByMajorNo?majorNo=' + | |||||
majorNo, | |||||
text: "LessonName", | |||||
value: "LessonNo" | |||||
}); | |||||
} | |||||
}); | |||||
$('#ClassNo').lrDataSourceSelect({ | |||||
allowSearch: true, | |||||
code: 'bjsj', value: 'classno', text: 'classname' | |||||
}); | |||||
$('#LessonNo').lrDataSourceSelect({ | |||||
allowSearch: true, | |||||
code: 'LessonInfo', value: 'lessonno', text: 'lessonname' | |||||
}); | |||||
// 刷新 | |||||
$('#lr_refresh').on('click', function () { | |||||
location.reload(); | |||||
}); | |||||
// 初始化补考成绩 | |||||
$('#lr_Init').on('click', function () { | |||||
learun.layerConfirm('是否确认初始化补考成绩!', function (res) { | |||||
if (res) { | |||||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuScoreNotPass/InitScore', function () { | |||||
refreshGirdData(); | |||||
}); | |||||
} | |||||
}); | |||||
}); | |||||
}, | |||||
// 初始化列表 | |||||
initGird: function () { | |||||
$('#gridtable').jfGrid({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScoreNotPass/GetPageListForUnpass', | |||||
headData: [ | |||||
{ | |||||
label: "学号", name: "stuno", width: 80, align: "left" | |||||
}, | |||||
{ | |||||
label: "姓名", name: "stuname", width: 100, align: "left" | |||||
}, | |||||
{ label: "课程", name: "LessonName", width: 100, align: "left" }, | |||||
{ label: "考试年级", name: "Grade", width: 100, align: "left" }, | |||||
{ | |||||
label: "学年", name: "AcademicYearNo", width: 80, align: "left", | |||||
//formatterAsync: function (callback, value, row, op, $cell) { | |||||
// learun.clientdata.getAsync('dataItem', { | |||||
// key: value, | |||||
// code: 'usersex', | |||||
// callback: function (_data) { | |||||
// callback(_data.text); | |||||
// } | |||||
// }); | |||||
//} | |||||
}, | |||||
{ label: "学期", name: "Semester", width: 150, align: "left" }, | |||||
{ label: "班级", name: "classname", width: 150, align: "left" }, | |||||
{ label: "平时成绩", name: "OrdinaryScore2", width: 150, align: "left" }, | |||||
{ label: "期末成绩", name: "TermEndScore2", width: 150, align: "left" }, | |||||
{ label: "成绩", name: "Score2", width: 150, align: "left" }, | |||||
{ label: "补考成绩", name: "BKScore", width: 150, align: "left" }, | |||||
{ | |||||
label: "是否提交", name: "IsSubmit", width: 150, align: "left", | |||||
formatter: function (cellvalue) { | |||||
return cellvalue == 1 ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>"; | |||||
} | |||||
}, | |||||
], | |||||
mainId: 'ID', | |||||
isPage: true, | |||||
sidx: 'ClassNo,LessonNo', | |||||
}); | |||||
page.search(); | |||||
}, | |||||
search: function (param) { | |||||
param = param || {}; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | |||||
}; | |||||
refreshGirdData = function () { | |||||
$('#gridtable').jfGridSet('reload'); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -0,0 +1,58 @@ | |||||
@{ | |||||
ViewBag.Title = "二次补考成绩查看"; | |||||
Layout = "~/Views/Shared/_Index.cshtml"; | |||||
} | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | |||||
<div class="lr-layout-wrap lr-layout-wrap-notitle "> | |||||
<div class="lr-layout-tool"> | |||||
<div class="lr-layout-tool-left"> | |||||
<div class="lr-layout-tool-item"> | |||||
<div id="multiple_condition_query"> | |||||
<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="lr-form-item-title">年级</div> | |||||
<div id="grade"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">系部</div> | |||||
<div id="DeptNo"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">专业</div> | |||||
<div id="MajorNo"></div> | |||||
</div> | |||||
<div class="col-xs-6 lr-form-item"> | |||||
<div class="lr-form-item-title">课程</div> | |||||
<div id="LessonNo"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">班级</div> | |||||
<div id="ClassNo"></div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-tool-right"> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | |||||
</div> | |||||
@*<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||||
<a id="lr_Init" class="btn btn-default"><i class="fa fa-plus"></i> 初始化二次补考成绩</a> | |||||
</div>*@ | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-body" id="gridtable"></div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/IndexBKUnpassTwo.js") |
@@ -0,0 +1,150 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2021-12-16 10:14 | |||||
* 描 述:长阳迎新 | |||||
*/ | |||||
var refreshGirdData; | |||||
var bootstrap = function ($, learun) { | |||||
"use strict"; | |||||
var page = { | |||||
init: function () { | |||||
page.initGird(); | |||||
page.bind(); | |||||
}, | |||||
bind: function () { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | |||||
page.search(queryJson); | |||||
}, 220, 400); | |||||
$('#AcademicYearNo').lrselect({ | |||||
placeholder: "学年", | |||||
allowSearch: false, | |||||
url: top.$.rootUrl + '/EducationalAdministration/EADateArrange/GetAcademicYearNo', | |||||
value: 'value', | |||||
text: 'text' | |||||
}); | |||||
//学期 | |||||
$('#Semester').lrselect({ | |||||
placeholder: "学期", | |||||
allowSearch: false, | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData', | |||||
value: 'value', | |||||
text: 'text' | |||||
}); | |||||
//年级 | |||||
$('#grade').lrselect({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear', | |||||
value: 'value', | |||||
text: 'text' | |||||
}); | |||||
$('#DeptNo').lrDataSourceSelect({ | |||||
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', select: function (val) { | |||||
var deptno = ""; | |||||
if (val) { | |||||
deptno = val.deptno; | |||||
} | |||||
$('#MajorNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/CdMajor/GetListByDeptNo?DeptNo=' + deptno, | |||||
text: "MajorName", | |||||
value: "MajorNo" | |||||
}) | |||||
} | |||||
}); | |||||
$('#MajorNo').lrDataSourceSelect({ | |||||
code: 'CdMajorInfo', value: 'majorno', text: 'majorname', select: | |||||
function (val) { | |||||
var majorNo = ''; | |||||
if (val) { | |||||
majorNo = val.MajorNo; | |||||
} | |||||
$('#ClassNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + | |||||
'/EducationalAdministration/ClassInfo/GetClassByMajorNo?majorNo=' + | |||||
majorNo, | |||||
text: "ClassName", | |||||
value: "ClassNo" | |||||
}); | |||||
$('#LessonNo').lrselectRefresh({ | |||||
url: top.$.rootUrl + | |||||
'/EducationalAdministration/LessonInfo/GetLessonByMajorNo?majorNo=' + | |||||
majorNo, | |||||
text: "LessonName", | |||||
value: "LessonNo" | |||||
}); | |||||
} | |||||
}); | |||||
$('#ClassNo').lrDataSourceSelect({ | |||||
code: 'bjsj', value: 'classno', text: 'classname' | |||||
}); | |||||
$('#LessonNo').lrDataSourceSelect({ | |||||
code: 'LessonInfo', value: 'lessonno', text: 'lessonname' | |||||
}); | |||||
// 刷新 | |||||
$('#lr_refresh').on('click', function () { | |||||
location.reload(); | |||||
}); | |||||
//// 初始化补考成绩 | |||||
//$('#lr_Init').on('click', function () { | |||||
// learun.layerConfirm('是否确认初始化二次补考成绩!', function (res) { | |||||
// if (res) { | |||||
// learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuScoreNotPassTwo/InitScore', function () { | |||||
// refreshGirdData(); | |||||
// }); | |||||
// } | |||||
// }); | |||||
//}); | |||||
}, | |||||
// 初始化列表 | |||||
initGird: function () { | |||||
$('#gridtable').jfGrid({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuScoreNotPassTwo/GetPageListForUnpass', | |||||
headData: [ | |||||
{ | |||||
label: "学号", name: "stuno", width: 80, align: "left" | |||||
}, | |||||
{ | |||||
label: "姓名", name: "stuname", width: 100, align: "left" | |||||
}, | |||||
{ label: "课程", name: "LessonName", width: 100, align: "left" }, | |||||
{ label: "考试年级", name: "Grade", width: 100, align: "left" }, | |||||
{ | |||||
label: "学年", name: "AcademicYearNo", width: 80, align: "left", | |||||
//formatterAsync: function (callback, value, row, op, $cell) { | |||||
// learun.clientdata.getAsync('dataItem', { | |||||
// key: value, | |||||
// code: 'usersex', | |||||
// callback: function (_data) { | |||||
// callback(_data.text); | |||||
// } | |||||
// }); | |||||
//} | |||||
}, | |||||
{ label: "学期", name: "Semester", width: 150, align: "left" }, | |||||
{ label: "班级", name: "classname", width: 150, align: "left" }, | |||||
{ label: "平时成绩", name: "OrdinaryScore2", width: 150, align: "left" }, | |||||
{ label: "期末成绩", name: "TermEndScore2", width: 150, align: "left" }, | |||||
{ label: "成绩", name: "Score2", width: 150, align: "left" }, | |||||
{ label: "重修成绩", name: "BKScore", width: 150, align: "left" }, | |||||
{ | |||||
label: "是否提交", name: "IsSubmit", width: 150, align: "left", | |||||
formatter: function (cellvalue) { | |||||
return cellvalue == 1 ? "<i class=\"fa fa-toggle-on\"></i>" : "<i class=\"fa fa-toggle-off\"></i>"; | |||||
} | |||||
} | |||||
], | |||||
mainId: 'ID', | |||||
isPage: true, | |||||
sidx: 'ClassNo,LessonNo', | |||||
}); | |||||
page.search(); | |||||
}, | |||||
search: function (param) { | |||||
param = param || {}; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | |||||
}; | |||||
refreshGirdData = function () { | |||||
$('#gridtable').jfGridSet('reload'); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -1078,12 +1078,14 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\IndexDC.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\IndexDC.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuLeaveManagement\CheckForm.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuLeaveManagement\CheckForm.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuLeaveManagement\CheckIndex.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuLeaveManagement\CheckIndex.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwo\IndexBKUnpassTwo.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwo\IndexUnpassTwo.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwo\IndexUnpassTwo.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwo\InputScoreIndexInTeacher.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwo\InputScoreIndexInTeacher.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwo\InputScoreIndex.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwo\InputScoreIndex.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwo\Monitor.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwo\Monitor.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPass\Form.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuScoreNotPass\Form.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPass\Index.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuScoreNotPass\Index.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPass\IndexBKUnpass.js" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPass\IndexUnpass.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuScoreNotPass\IndexUnpass.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPass\InputScoreIndexInTeacher.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuScoreNotPass\InputScoreIndexInTeacher.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPass\InputScoreIndex.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuScoreNotPass\InputScoreIndex.js" /> | ||||
@@ -7821,6 +7823,8 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\Exam_InvigilateTeacher\FormYearSemester.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\Exam_InvigilateTeacher\FormYearSemester.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\Exam_InvigilateTeacher\Index.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\Exam_InvigilateTeacher\Index.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\Sys_PsychologicalCounse\FormView.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\Sys_PsychologicalCounse\FormView.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPass\IndexBKUnpass.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwo\IndexBKUnpassTwo.cshtml" /> | |||||
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | <None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | ||||
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | <None Include="Properties\PublishProfiles\FolderProfile.pubxml" /> | ||||
<Content Include="Views\Login\Default-beifen.cshtml" /> | <Content Include="Views\Login\Default-beifen.cshtml" /> | ||||
@@ -11,7 +11,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// 日 期:2019-11-05 15:25 | /// 日 期:2019-11-05 15:25 | ||||
/// 描 述:全院学生补考成绩录入(新) | /// 描 述:全院学生补考成绩录入(新) | ||||
/// </summary> | /// </summary> | ||||
public class StuScoreNotPassEntity | |||||
public class StuScoreNotPassEntity | |||||
{ | { | ||||
#region 实体成员 | #region 实体成员 | ||||
/// <summary> | /// <summary> | ||||
@@ -341,6 +341,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
public string OrdinaryScore2 { get; set; } | public string OrdinaryScore2 { get; set; } | ||||
public string TermEndScore2 { get; set; } | public string TermEndScore2 { get; set; } | ||||
public string Score2 { get; set; } | public string Score2 { get; set; } | ||||
public string BKScore { get; set; } | |||||
public string IsSubmit { get; set; } | |||||
} | } | ||||
} | } | ||||
@@ -171,14 +171,17 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
// 虚拟参数 | // 虚拟参数 | ||||
var dp = new DynamicParameters(new { }); | var dp = new DynamicParameters(new { }); | ||||
var strSql = new StringBuilder(); | var strSql = new StringBuilder(); | ||||
strSql.Append(@"select a.*,(select classname from classinfo where a.classno=classno) as classname,case when a.ScoreRecordStyleNo in ('2','3') then (select ScoreName from CdScorePoint where a.ScoreRecordStyleNo=ScoreRecordStyleNo and a.OrdinaryScore=ScoreStyleNo) | |||||
strSql.Append(@"select isnull(ssnp.score,0) as BKScore ,ssnp.checkmark as IsSubmit,a.*,(select classname from classinfo where a.classno=classno) as classname,case when a.ScoreRecordStyleNo in ('2','3') then (select ScoreName from CdScorePoint where a.ScoreRecordStyleNo=ScoreRecordStyleNo and a.OrdinaryScore=ScoreStyleNo) | |||||
else CONVERT(varchar,a.OrdinaryScore) end as OrdinaryScore2, | else CONVERT(varchar,a.OrdinaryScore) end as OrdinaryScore2, | ||||
case when a.ScoreRecordStyleNo in ('2','3') then (select ScoreName from CdScorePoint where a.ScoreRecordStyleNo=ScoreRecordStyleNo and a.TermEndScore=ScoreStyleNo) | case when a.ScoreRecordStyleNo in ('2','3') then (select ScoreName from CdScorePoint where a.ScoreRecordStyleNo=ScoreRecordStyleNo and a.TermEndScore=ScoreStyleNo) | ||||
else CONVERT(varchar,a.TermEndScore) end as TermEndScore2, | else CONVERT(varchar,a.TermEndScore) end as TermEndScore2, | ||||
case when a.ScoreRecordStyleNo in ('2','3') then (select ScoreName from CdScorePoint where a.ScoreRecordStyleNo=ScoreRecordStyleNo and a.Score=ScoreStyleNo) | case when a.ScoreRecordStyleNo in ('2','3') then (select ScoreName from CdScorePoint where a.ScoreRecordStyleNo=ScoreRecordStyleNo and a.Score=ScoreStyleNo) | ||||
else CONVERT(varchar,a.Score) end as Score2 "); | else CONVERT(varchar,a.Score) end as Score2 "); | ||||
strSql.Append(@" from StuScore a left join StuInfoBasic b on b.StuNo=a.StuNo "); | strSql.Append(@" from StuScore a left join StuInfoBasic b on b.StuNo=a.StuNo "); | ||||
strSql.Append(@"where 1=1 and a.LessonSortNo='1' and ((a.Score>=0 and a.Score<60) or a.Score=(-5) or a.Score=(-10)) "); | |||||
strSql.Append( | |||||
@" left join StuScoreNotPass ssnp on ssnp.StuNo = a.StuNo and ssnp.lessonno = a.lessonno "); | |||||
strSql.Append(@" where 1=1 and ( ssnp.StuNo not in (select StuNo from StuInfoBasic where ChangeStatus=1) and a.LessonSortNo='1' ) | |||||
and a.LessonSortNo='1' and ((a.Score>=0 and a.Score<60) or a.Score=(-5) or a.Score=(-10)) "); | |||||
if (!queryParam["AcademicYearNo"].IsEmpty()) | if (!queryParam["AcademicYearNo"].IsEmpty()) | ||||
{ | { | ||||
strSql.Append($" and a.AcademicYearNo ='{queryParam["AcademicYearNo"].ToString()}'"); | strSql.Append($" and a.AcademicYearNo ='{queryParam["AcademicYearNo"].ToString()}'"); | ||||
@@ -263,14 +263,18 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
// 虚拟参数 | // 虚拟参数 | ||||
var dp = new DynamicParameters(new { }); | var dp = new DynamicParameters(new { }); | ||||
var strSql = new StringBuilder(); | var strSql = new StringBuilder(); | ||||
strSql.Append(@"select a.*,(select classname from classinfo where a.classno=classno) as classname,case when a.ScoreRecordStyleNo in ('2','3') then (select ScoreName from CdScorePoint where a.ScoreRecordStyleNo=ScoreRecordStyleNo and a.OrdinaryScore=ScoreStyleNo) | |||||
strSql.Append(@"select isnull(ssnpt.score,0) as BKScore,ssnpt.checkmark as IsSubmit,a.*,(select classname from classinfo where a.classno=classno) as classname,case when a.ScoreRecordStyleNo in ('2','3') then (select ScoreName from CdScorePoint where a.ScoreRecordStyleNo=ScoreRecordStyleNo and a.OrdinaryScore=ScoreStyleNo) | |||||
else CONVERT(varchar,a.OrdinaryScore) end as OrdinaryScore2, | else CONVERT(varchar,a.OrdinaryScore) end as OrdinaryScore2, | ||||
case when a.ScoreRecordStyleNo in ('2','3') then (select ScoreName from CdScorePoint where a.ScoreRecordStyleNo=ScoreRecordStyleNo and a.TermEndScore=ScoreStyleNo) | case when a.ScoreRecordStyleNo in ('2','3') then (select ScoreName from CdScorePoint where a.ScoreRecordStyleNo=ScoreRecordStyleNo and a.TermEndScore=ScoreStyleNo) | ||||
else CONVERT(varchar,a.TermEndScore) end as TermEndScore2, | else CONVERT(varchar,a.TermEndScore) end as TermEndScore2, | ||||
case when a.ScoreRecordStyleNo in ('2','3') then (select ScoreName from CdScorePoint where a.ScoreRecordStyleNo=ScoreRecordStyleNo and a.Score=ScoreStyleNo) | case when a.ScoreRecordStyleNo in ('2','3') then (select ScoreName from CdScorePoint where a.ScoreRecordStyleNo=ScoreRecordStyleNo and a.Score=ScoreStyleNo) | ||||
else CONVERT(varchar,a.Score) end as Score2 "); | else CONVERT(varchar,a.Score) end as Score2 "); | ||||
strSql.Append(@" from StuScoreNotPass a left join StuInfoBasic b on b.StuNo=a.StuNo "); | strSql.Append(@" from StuScoreNotPass a left join StuInfoBasic b on b.StuNo=a.StuNo "); | ||||
strSql.Append( | |||||
@" left join StuScoreNotPassTwo ssnpt on ssnpt.StuNo = a.StuNo and ssnpt.lessonno = a.lessonno "); | |||||
strSql.Append(@"where 1=1 and a.LessonSortNo='1' and ((a.Score>=0 and a.Score<60) or a.Score=(-5) or a.Score=(-10)) "); | strSql.Append(@"where 1=1 and a.LessonSortNo='1' and ((a.Score>=0 and a.Score<60) or a.Score=(-5) or a.Score=(-10)) "); | ||||
strSql.Append( | |||||
@" and ( ssnpt.StuNo not in (select StuNo from StuInfoBasic where ChangeStatus=1) and a.LessonSortNo='1' )"); | |||||
if (!queryParam["AcademicYearNo"].IsEmpty()) | if (!queryParam["AcademicYearNo"].IsEmpty()) | ||||
{ | { | ||||
strSql.Append($" and a.AcademicYearNo ='{queryParam["AcademicYearNo"].ToString()}'"); | strSql.Append($" and a.AcademicYearNo ='{queryParam["AcademicYearNo"].ToString()}'"); | ||||
@@ -316,6 +320,75 @@ else CONVERT(varchar,a.Score) end as Score2 "); | |||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// 二次补考成绩查看 | |||||
/// </summary> | |||||
/// <param name="pagination"></param> | |||||
/// <param name="queryJson"></param> | |||||
/// <returns></returns> | |||||
public IEnumerable<NotPassEntity> GetPageListBKUnpass(Pagination pagination, string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
var queryParam = queryJson.ToJObject(); | |||||
// 虚拟参数 | |||||
var dp = new DynamicParameters(new { }); | |||||
var strSql = new StringBuilder(); | |||||
strSql.Append(@"select a.*,(select classname from classinfo where a.classno=classno) as classname,case when a.ScoreRecordStyleNo in ('2','3') then (select ScoreName from CdScorePoint where a.ScoreRecordStyleNo=ScoreRecordStyleNo and a.OrdinaryScore=ScoreStyleNo) | |||||
else CONVERT(varchar,a.OrdinaryScore) end as OrdinaryScore2, | |||||
case when a.ScoreRecordStyleNo in ('2','3') then (select ScoreName from CdScorePoint where a.ScoreRecordStyleNo=ScoreRecordStyleNo and a.TermEndScore=ScoreStyleNo) | |||||
else CONVERT(varchar,a.TermEndScore) end as TermEndScore2, | |||||
case when a.ScoreRecordStyleNo in ('2','3') then (select ScoreName from CdScorePoint where a.ScoreRecordStyleNo=ScoreRecordStyleNo and a.Score=ScoreStyleNo) | |||||
else CONVERT(varchar,a.Score) end as Score2 "); | |||||
strSql.Append(@" from StuScoreNotPassTwo a left join StuInfoBasic b on b.StuNo=a.StuNo "); | |||||
//strSql.Append( | |||||
// @" left join StuScoreNotPassTwo ssnpt on ssnpt.StuNo = a.StuNo and ssnpt.lessonno = a.lessonno "); | |||||
strSql.Append(@" where 1=1 and ( b.StuNo not in (select StuNo from StuInfoBasic where ChangeStatus=1) and a.LessonSortNo='1' ) | |||||
and a.LessonSortNo='1' and ((a.Score>=0 and a.Score<60) or a.Score=(-5) or a.Score=(-10)) "); | |||||
if (!queryParam["AcademicYearNo"].IsEmpty()) | |||||
{ | |||||
strSql.Append($" and a.AcademicYearNo ='{queryParam["AcademicYearNo"].ToString()}'"); | |||||
} | |||||
if (!queryParam["Semester"].IsEmpty()) | |||||
{ | |||||
strSql.Append($" and a.Semester ='{queryParam["Semester"].ToString().Trim()}'"); | |||||
} | |||||
if (!queryParam["grade"].IsEmpty()) | |||||
{ | |||||
strSql.Append($" and a.grade ='{queryParam["grade"].ToString()}'"); | |||||
} | |||||
if (!queryParam["DeptNo"].IsEmpty()) | |||||
{ | |||||
strSql.Append($" and a.DeptNo ='{queryParam["DeptNo"].ToString()}'"); | |||||
} | |||||
if (!queryParam["MajorNo"].IsEmpty()) | |||||
{ | |||||
strSql.Append($" and a.MajorNo ='{queryParam["MajorNo"].ToString()}'"); | |||||
} | |||||
if (!queryParam["LessonNo"].IsEmpty()) | |||||
{ | |||||
strSql.Append($" and a.LessonNo ='{queryParam["LessonNo"].ToString()}'"); | |||||
} | |||||
if (!queryParam["ClassNo"].IsEmpty()) | |||||
{ | |||||
strSql.Append($" and a.ClassNo ='{queryParam["ClassNo"].ToString()}'"); | |||||
} | |||||
strSql.Append(" and (b.AbmormityMoveMark<>'1' or len(b.AbmormityMoveMark)=0 or b.AbmormityMoveMark is null) "); | |||||
return this.BaseRepository("CollegeMIS").FindList<NotPassEntity>(strSql.ToString(), pagination); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
#endregion | #endregion | ||||
#region 提交数据 | #region 提交数据 | ||||