@@ -16,7 +16,6 @@ | |||
<div class="lr-form-item-title">姓名<font face="宋体">*</font></div> | |||
<input id="StuName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" readonly="readonly" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="StuInfoBasicChange"> | |||
<div class="lr-form-item-title">异动类型<font face="宋体">*</font></div> | |||
<div id="StuChangeType" isvalid="yes" checkexpession="NotNull" readonly="readonly"></div> | |||
@@ -25,22 +24,20 @@ | |||
<div class="lr-form-item-title">异动原因<font face="宋体">*</font></div> | |||
<div id="StuChangeReason" isvalid="yes" checkexpession="NotNull" readonly="readonly"></div> | |||
</div> | |||
<div class="col-xs-12 text-center">学籍原安排</div> | |||
<div class="col-xs-12 text-center">学籍异动前信息</div> | |||
<div class="col-xs-4 lr-form-item" data-table="StuInfoBasicChange"> | |||
<div class="lr-form-item-title">系部<font face="宋体">*</font></div> | |||
<div id="DeptNo" isvalid="yes" checkexpession="NotNull" readonly="readonly"></div> | |||
<div id="DeptNo" readonly="readonly"></div> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="StuInfoBasicChange"> | |||
<div class="lr-form-item-title">专业<font face="宋体">*</font></div> | |||
<div id="MajorNo" isvalid="yes" checkexpession="NotNull" readonly="readonly"></div> | |||
<div id="MajorNo" readonly="readonly"></div> | |||
</div> | |||
<div class="col-xs-4 lr-form-item" data-table="StuInfoBasicChange"> | |||
<div class="lr-form-item-title">班级<font face="宋体">*</font></div> | |||
<div id="ClassNo" isvalid="yes" checkexpession="NotNull" readonly="readonly"></div> | |||
<div id="ClassNo" readonly="readonly"></div> | |||
</div> | |||
<div class="col-xs-12 text-center">学籍新安排</div> | |||
<div class="col-xs-12 text-center">学籍异动后信息</div> | |||
<div class="NewContainer" style="display:none;"> | |||
<div class="col-xs-4 lr-form-item" data-table="StuInfoBasicChange"> | |||
<div class="lr-form-item-title" data-title="新系部">新系部</div> | |||
@@ -55,7 +52,13 @@ | |||
<div id="NewClassNo" class="contentDiv zhuanban"></div> | |||
</div> | |||
</div> | |||
<div class="col-xs-12 text-center">转出学校</div> | |||
<div class="NewSchool" style="display:none;"> | |||
<div class="col-xs-12 lr-form-item" data-table="StuInfoBasicChange"> | |||
<div class="lr-form-item-title" data-title="转出学校">转出学校</div> | |||
<input id="OutSchool" type="text" class="form-control" /> | |||
</div> | |||
</div> | |||
<div class="col-xs-12 lr-form-item" data-table="StuInfoBasicChange"> | |||
<div class="lr-form-item-title">备注</div> | |||
<textarea id="StuChangeRemark" class="form-control" style="height:50px;" readonly="readonly"></textarea> | |||
@@ -31,22 +31,41 @@ var bootstrap = function ($, learun) { | |||
$("#NewMajorNo").siblings('div').html($("#NewMajorNo").siblings('div').attr('data-title') + '<font face="宋体">*</font>'); | |||
$("#NewClassNo").siblings('div').html($("#NewClassNo").siblings('div').attr('data-title') + '<font face="宋体">*</font>'); | |||
$(".NewContainer").show(); | |||
if (item.id === "01" || item.id === "02") { //降级、转班 | |||
//$(".NewContainer").find('.contentDiv.zhuanban').removeAttr('readonly'); | |||
if (item.id === "01") { //留级 | |||
$(".NewSchool").hide(); | |||
$(".NewContainer").find('.contentDiv.zhuanban').removeAttr('readonly'); | |||
$("#NewDeptNo").lrselectSet($("#DeptNo").lrselectGet()); | |||
$("#NewMajorNo").lrselectSet($("#MajorNo").lrselectGet()); | |||
$('#OutSchool').val(''); | |||
} else if (item.id === "02") {//转校 | |||
$(".NewSchool").show(); | |||
$(".NewContainer").find('.contentDiv').removeAttr("isvalid"); | |||
$(".NewContainer").find('.contentDiv').removeAttr("checkexpession"); | |||
$(".NewContainer").find('.contentDiv').removeAttr('readonly'); | |||
$(".NewSchool").find('.OutSchool').attr("isvalid", 'yes'); | |||
$(".NewSchool").find('.OutSchool').attr("checkexpession"); | |||
$(".NewSchool").find('.OutSchool').attr('readonly'); | |||
} else if (item.id === "03") { //复学 | |||
$(".NewSchool").hide(); | |||
$(".NewContainer").find('.contentDiv').removeAttr('readonly'); | |||
$(".NewSchool").find('.OutSchool').attr("isvalid", "Null"); | |||
$('#OutSchool').val(''); | |||
} else if (item.id === "04") { //转入 | |||
$(".NewSchool").hide(); | |||
$(".NewContainer").find('.contentDiv').removeAttr('readonly'); | |||
$(".NewSchool").find('.OutSchool').attr("isvalid", "Null"); | |||
$('#OutSchool').val(''); | |||
} | |||
else if (item.id === "03") { //转专业 | |||
//$(".NewContainer").find('.contentDiv').removeAttr('readonly'); | |||
} | |||
else if (item.id === "04" || item.id === "05") { //退学、休学 | |||
else { //退学、休学、 | |||
$(".NewContainer").find('.contentDiv').removeAttr("isvalid"); | |||
$(".NewContainer").find('.contentDiv').removeAttr("checkexpession"); | |||
//$(".NewContainer").find('.contentDiv').removeAttr('readonly'); | |||
$(".NewContainer").find('.contentDiv').removeAttr('readonly'); | |||
$("#NewDeptNo").siblings('div').html($("#NewDeptNo").siblings('div').attr('data-title')); | |||
$("#NewMajorNo").siblings('div').html($("#NewMajorNo").siblings('div').attr('data-title')); | |||
$("#NewClassNo").siblings('div').html($("#NewClassNo").siblings('div').attr('data-title')); | |||
$(".NewContainer").hide(); | |||
$(".NewSchool").hide(); | |||
$('#OutSchool').val(''); | |||
} | |||
} | |||