|
|
@@ -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) }); |
|
|
|