@@ -34,6 +34,10 @@ | |||||
<div class="lr-form-item-title">性别<font face="宋体">*</font></div> | <div class="lr-form-item-title">性别<font face="宋体">*</font></div> | ||||
<div id="Gender" isvalid="yes" checkexpession="NotNull"></div> | <div id="Gender" isvalid="yes" checkexpession="NotNull"></div> | ||||
</div> | </div> | ||||
<div class="col-xs-4 lr-form-item" data-table="StuEnroll"> | |||||
<div class="lr-form-item-title">年级<font face="宋体">*</font></div> | |||||
<input id="Grade" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||||
</div> | |||||
<div class="col-xs-4 lr-form-item" data-table="StuEnroll"> | <div class="col-xs-4 lr-form-item" data-table="StuEnroll"> | ||||
<div class="lr-form-item-title">招生类别<font face="宋体">*</font></div> | <div class="lr-form-item-title">招生类别<font face="宋体">*</font></div> | ||||
<div id="EnrollType" isvalid="yes" checkexpession="NotNull"></div> | <div id="EnrollType" isvalid="yes" checkexpession="NotNull"></div> | ||||
@@ -36,7 +36,7 @@ | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">录取方式</div> | <div class="lr-form-item-title">录取方式</div> | ||||
<div id="EnrollType" class="form-control"></div> | |||||
<div id="Admissions" class="form-control"></div> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<object id="CertCtl" type="application/cert-reader" width="0" height="0"> | <object id="CertCtl" type="application/cert-reader" width="0" height="0"> | ||||
@@ -86,7 +86,7 @@ var bootstrap = function ($, learun) { | |||||
value: "classno", | value: "classno", | ||||
text: "classname" | text: "classname" | ||||
}); | }); | ||||
$('#EnrollType').lrDataItemSelect({ code: 'EnrollStudentType' }); | |||||
$('#Admissions').lrDataItemSelect({ code: 'enrollType' }); | |||||
//刷新 | //刷新 | ||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
@@ -46,7 +46,7 @@ | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">录取方式</div> | <div class="lr-form-item-title">录取方式</div> | ||||
<div id="EnrollType" class="form-control"></div> | |||||
<div id="Admissions" class="form-control"></div> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -22,7 +22,7 @@ var bootstrap = function ($, learun) { | |||||
value: "year", | value: "year", | ||||
text: "year", | text: "year", | ||||
}); | }); | ||||
$('#EnrollType').lrDataItemSelect({ code: 'EnrollStudentType' }); | |||||
$('#Admissions').lrDataItemSelect({ code: 'enrollType' }); | |||||
$('#DeptNo').lrselect({ | $('#DeptNo').lrselect({ | ||||
@@ -126,6 +126,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
dp.Add("RegistrationNo", "%" + queryParam["RegistrationNo"].ToString() + "%", DbType.String); | dp.Add("RegistrationNo", "%" + queryParam["RegistrationNo"].ToString() + "%", DbType.String); | ||||
strSql.Append(" AND t.RegistrationNo Like @RegistrationNo "); | strSql.Append(" AND t.RegistrationNo Like @RegistrationNo "); | ||||
} | } | ||||
if (!queryParam["Admissions"].IsEmpty()) | |||||
{ | |||||
dp.Add("Admissions", queryParam["Admissions"].ToString() , DbType.String); | |||||
strSql.Append(" AND t.Admissions = @Admissions "); | |||||
} | |||||
if (!queryParam["DeptNo"].IsEmpty()) | if (!queryParam["DeptNo"].IsEmpty()) | ||||
{ | { | ||||
dp.Add("DeptNo", queryParam["DeptNo"].ToString(), DbType.String); | dp.Add("DeptNo", queryParam["DeptNo"].ToString(), DbType.String); | ||||
@@ -814,6 +819,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
dp.Add("DeptNo", queryParam["DeptNo"].ToString(), DbType.String); | dp.Add("DeptNo", queryParam["DeptNo"].ToString(), DbType.String); | ||||
strSql.Append(" AND t.DeptNo = @DeptNo "); | strSql.Append(" AND t.DeptNo = @DeptNo "); | ||||
} | } | ||||
if (!queryParam["Admissions"].IsEmpty()) | |||||
{ | |||||
dp.Add("Admissions", queryParam["Admissions"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.Admissions = @Admissions "); | |||||
} | |||||
if (!queryParam["Grade"].IsEmpty()) | if (!queryParam["Grade"].IsEmpty()) | ||||
{ | { | ||||
dp.Add("Grade", queryParam["Grade"].ToString(), DbType.String); | dp.Add("Grade", queryParam["Grade"].ToString(), DbType.String); | ||||