Просмотр исходного кода

新疆影视学院招生统计优化

新疆影视学院高职
zhangli 2 лет назад
Родитель
Сommit
0371686643
2 измененных файлов: 16 добавлений и 15 удалений
  1. +14
    -14
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/EnrollIndexTJ.js
  2. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuEnroll/StuEnrollService.cs

+ 14
- 14
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/EnrollIndexTJ.js Просмотреть файл

@@ -240,52 +240,52 @@ var bootstrap = function ($, learun) {
param.SqlParameter = " and t.IsAdmission=1";
//中考总分
if (!!$('#MidTermExam1').val()) {
param.SqlParameter += " and t.MidTermExam>=" + $('#MidTermExam1').val();
param.SqlParameter += " and isnull(t.MidTermExam,0)>=" + $('#MidTermExam1').val();
}
if (!!$('#MidTermExam2').val()) {
param.SqlParameter += " and t.MidTermExam<=" + $('#MidTermExam2').val();
param.SqlParameter += " and isnull(t.MidTermExam,0)<=" + $('#MidTermExam2').val();
}
//语文
if (!!$('#chinese1').val()) {
param.SqlParameter += " and s.chinese>=" + $('#chinese1').val();
param.SqlParameter += " and isnull(s.chinese,0)>=" + $('#chinese1').val();
}
if (!!$('#chinese2').val()) {
param.SqlParameter += " and s.chinese<=" + $('#chinese2').val();
param.SqlParameter += " and isnull(s.chinese,0)<=" + $('#chinese2').val();
}
//数学
if (!!$('#math1').val()) {
param.SqlParameter += " and s.math>=" + $('#math1').val();
param.SqlParameter += " and isnull(s.math,0)>=" + $('#math1').val();
}
if (!!$('#math2').val()) {
param.SqlParameter += " and s.math<=" + $('#math2').val();
param.SqlParameter += " and isnull(s.math,0)<=" + $('#math2').val();
}
//英语
if (!!$('#english1').val()) {
param.SqlParameter += " and s.english>=" + $('#english1').val();
param.SqlParameter += " and isnull(s.english,0)>=" + $('#english1').val();
}
if (!!$('#english2').val()) {
param.SqlParameter += " and s.english<=" + $('#english2').val();
param.SqlParameter += " and isnull(s.english,0)<=" + $('#english2').val();
}
//物理与化学
if (!!$('#physicsAndChemistry1').val()) {
param.SqlParameter += " and s.physicsAndChemistry>=" + $('#physicsAndChemistry1').val();
param.SqlParameter += " and isnull(s.physicsAndChemistry,0)>=" + $('#physicsAndChemistry1').val();
}
if (!!$('#physicsAndChemistry2').val()) {
param.SqlParameter += " and s.physicsAndChemistry<=" + $('#physicsAndChemistry2').val();
param.SqlParameter += " and isnull(s.physicsAndChemistry,0)<=" + $('#physicsAndChemistry2').val();
}
//政治与历史
if (!!$('#politicsAndHistory1').val()) {
param.SqlParameter += " and s.politicsAndHistory>=" + $('#politicsAndHistory1').val();
param.SqlParameter += " and isnull(s.politicsAndHistory,0)>=" + $('#politicsAndHistory1').val();
}
if (!!$('#politicsAndHistory2').val()) {
param.SqlParameter += " and s.politicsAndHistory<=" + $('#politicsAndHistory2').val();
param.SqlParameter += " and isnull(s.politicsAndHistory,0)<=" + $('#politicsAndHistory2').val();
}
//体育
if (!!$('#physicalEducation1').val()) {
param.SqlParameter += " and s.physicalEducation>=" + $('#physicalEducation1').val();
param.SqlParameter += " and isnull(s.physicalEducation,0)>=" + $('#physicalEducation1').val();
}
if (!!$('#physicalEducation2').val()) {
param.SqlParameter += " and s.physicalEducation<=" + $('#physicalEducation2').val();
param.SqlParameter += " and isnull(s.physicalEducation,0)<=" + $('#physicalEducation2').val();
}

$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuEnroll/StuEnrollService.cs Просмотреть файл

@@ -348,7 +348,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
var strSql = new StringBuilder();
strSql.Append("SELECT ");
strSql.Append(@" s.physicsAndChemistry,s.english,s.chinese, s.politicsAndHistory,s.physicalEducation,s.math,
strSql.Append(@" isnull(s.physicsAndChemistry,0) physicsAndChemistry,isnull(s.english,0) english,isnull(s.chinese,0) chinese,
isnull(s.politicsAndHistory,0) politicsAndHistory,isnull(s.physicalEducation,0) physicalEducation,isnull(s.math,0) math,
t.StuName,t.Gender,t.Nationals,t.IDCard,t.HomeAddress,t.StuMobile,
t.MidTermExam,t.FromSchool,t.Specialty,t.City,t.County,t.MajorNo,t.EmpNo ");
strSql.Append(" FROM StuEnroll t ");


Загрузка…
Отмена
Сохранить