Browse Source

补考/重修成绩录入查看添加查询条件

新疆影视学院高职
ndbs 2 years ago
parent
commit
8736674b38
7 changed files with 92 additions and 8 deletions
  1. +9
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/IndexBKUnpass.cshtml
  2. +28
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/IndexBKUnpass.js
  3. +9
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/IndexBKUnpassTwo.cshtml
  4. +27
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/IndexBKUnpassTwo.js
  5. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPass/StuScoreNotPassEntity.cs
  6. +8
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPass/StuScoreNotPassService.cs
  7. +10
    -4
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTwo/StuScoreNotPassTwoService.cs

+ 9
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/IndexBKUnpass.cshtml View File

@@ -34,10 +34,18 @@
<div class="lr-form-item-title">课程</div>
<div id="LessonNo"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">班级</div>
<div id="ClassNo"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">教师</div>
<div id="EmpNo"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">是否提交</div>
<div id="CheckMark"></div>
</div>
</div>
</div>
</div>


+ 28
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/IndexBKUnpass.js View File

@@ -83,6 +83,15 @@ var bootstrap = function ($, learun) {
allowSearch: true,
code: 'LessonInfo', value: 'lessonno', text: 'lessonname'
});
$('#EmpNo').lrDataSourceSelect({
allowSearch: true,
code: 'teacheruserdata', value: 'f_encode', text: 'f_realname'
});
$('#CheckMark').lrselect({
data: [{ text: "是", value: "1" }, { text: "否", value: "0" }],
text: "text",
value: "value"
});
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
@@ -110,6 +119,19 @@ var bootstrap = function ($, learun) {
label: "姓名", name: "stuname", width: 100, align: "left"
},
{ label: "课程", name: "LessonName", width: 100, align: "left" },
{
label: "教师", name: "EmpNo", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'teacheruserdata',
key: value,
keyId: 'f_encode',
callback: function (_data) {
callback(_data['f_realname']);
}
});
}
},
{ label: "考试年级", name: "Grade", width: 100, align: "left" },
{
label: "学年", name: "AcademicYearNo", width: 80, align: "left",
@@ -132,7 +154,11 @@ var bootstrap = function ($, learun) {
{
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>";
if (cellvalue == 1) {
return '<span class=\"label label-success\" style=\"cursor: pointer;\">已提交</span>';
} else {
return '<span class=\"label label-default\" style=\"cursor: pointer;\">未提交</span>';
}
}
},

@@ -145,6 +171,7 @@ var bootstrap = function ($, learun) {
},
search: function (param) {
param = param || {};
console.log(param, "param")
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};


+ 9
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/IndexBKUnpassTwo.cshtml View File

@@ -34,10 +34,18 @@
<div class="lr-form-item-title">课程</div>
<div id="LessonNo"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">班级</div>
<div id="ClassNo"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">教师</div>
<div id="EmpNo"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">是否提交</div>
<div id="CheckMark"></div>
</div>
</div>
</div>
</div>


+ 27
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/IndexBKUnpassTwo.js View File

@@ -79,6 +79,15 @@ var bootstrap = function ($, learun) {
$('#LessonNo').lrDataSourceSelect({
code: 'LessonInfo', value: 'lessonno', text: 'lessonname'
});
$('#EmpNo').lrDataSourceSelect({
allowSearch: true,
code: 'teacheruserdata', value: 'f_encode', text: 'f_realname'
});
$('#CheckMark').lrselect({
data: [{ text: "是", value: "1" }, { text: "否", value: "0" }],
text: "text",
value: "value"
});
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
@@ -106,6 +115,19 @@ var bootstrap = function ($, learun) {
label: "姓名", name: "stuname", width: 100, align: "left"
},
{ label: "课程", name: "LessonName", width: 100, align: "left" },
{
label: "教师", name: "EmpNo", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('custmerData', {
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'teacheruserdata',
key: value,
keyId: 'f_encode',
callback: function (_data) {
callback(_data['f_realname']);
}
});
}
},
{ label: "考试年级", name: "Grade", width: 100, align: "left" },
{
label: "学年", name: "AcademicYearNo", width: 80, align: "left",
@@ -128,7 +150,11 @@ var bootstrap = function ($, learun) {
{
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>";
if (cellvalue == 1) {
return '<span class=\"label label-success\" style=\"cursor: pointer;\">已提交</span>';
} else {
return '<span class=\"label label-default\" style=\"cursor: pointer;\">未提交</span>';
}
}
}
],


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPass/StuScoreNotPassEntity.cs View File

@@ -333,6 +333,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
public string stuno { get; set; }
public string stuname { get; set; }
public string EmpNo { get; set; }
public string LessonName { get; set; }
public string Grade { get; set; }
public string AcademicYearNo { get; set; }


+ 8
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPass/StuScoreNotPassService.cs View File

@@ -210,6 +210,14 @@ else CONVERT(varchar,a.Score) end as Score2 ");
{
strSql.Append($" and a.ClassNo ='{queryParam["ClassNo"].ToString()}'");
}
if (!queryParam["EmpNo"].IsEmpty())
{
strSql.Append($" and a.EmpNo ='{queryParam["EmpNo"].ToString()}'");
}
if (!queryParam["CheckMark"].IsEmpty())
{
strSql.Append($" and ssnp.CheckMark ='{queryParam["CheckMark"].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);


+ 10
- 4
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTwo/StuScoreNotPassTwoService.cs View File

@@ -272,9 +272,8 @@ else CONVERT(varchar,a.Score) end as Score2 ");
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(
@" and ( ssnpt.StuNo not in (select StuNo from StuInfoBasic where ChangeStatus=1) and a.LessonSortNo='1' )");
strSql.Append(@"where 1=1 and ( ssnpt.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()}'");
@@ -303,7 +302,14 @@ else CONVERT(varchar,a.Score) end as Score2 ");
{
strSql.Append($" and a.ClassNo ='{queryParam["ClassNo"].ToString()}'");
}

if (!queryParam["EmpNo"].IsEmpty())
{
strSql.Append($" and a.EmpNo ='{queryParam["EmpNo"].ToString()}'");
}
if (!queryParam["CheckMark"].IsEmpty())
{
strSql.Append($" and ssnpt.CheckMark ='{queryParam["CheckMark"].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);
}


Loading…
Cancel
Save