@@ -21,7 +21,7 @@ | |||||
<input id="StuName" type="text" class="form-control" /> | <input id="StuName" type="text" class="form-control" /> | ||||
</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> | |||||
<input id="Grade" type="text" class="form-control" /> | <input id="Grade" type="text" class="form-control" /> | ||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
@@ -50,10 +50,14 @@ var bootstrap = function ($, learun) { | |||||
//图书资料归还 | //图书资料归还 | ||||
$('#lr_returnbooks').on('click', function () { | $('#lr_returnbooks').on('click', function () { | ||||
var keyValue = $('#gridtable').jfGridValue('StuId'); | var keyValue = $('#gridtable').jfGridValue('StuId'); | ||||
var ReturnBooksStatus = $('#gridtable').jfGridValue('ReturnBooksStatus'); | |||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
if (ReturnBooksStatus == 1) { | |||||
return learun.alert.warning("选中项目已归还!"); | |||||
} | |||||
learun.layerConfirm('是否确认归还图书资料!', function (res) { | learun.layerConfirm('是否确认归还图书资料!', function (res) { | ||||
if (res) { | if (res) { | ||||
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsReturnBooks', { keyValue: keyValue,status:'1' }, function () { | |||||
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsReturnBooks', { keyValue: keyValue, status: '1' }, function () { | |||||
refreshGirdData(); | refreshGirdData(); | ||||
}); | }); | ||||
} | } | ||||
@@ -45,9 +45,13 @@ var bootstrap = function ($, learun) { | |||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
learun.layerConfirm('是否准许 ' + stuName + ' 毕业?', function (res) { | learun.layerConfirm('是否准许 ' + stuName + ' 毕业?', function (res) { | ||||
if (res) { | if (res) { | ||||
learun.httpAsync('get', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/AllowGraduate', { stuNo: keyValue, status: '1' }, function () { | |||||
$('#btn_Search').trigger('click'); | |||||
learun.getForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/AllowGraduate?stuNo=' + keyValue +'&status=1', function () { | |||||
refreshGirdData(); | |||||
//$('#btn_Search').trigger('click'); | |||||
}); | }); | ||||
//learun.httpAsync('get', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/AllowGraduate', { stuNo: keyValue, status: '1' }, function () { | |||||
// $('#btn_Search').trigger('click'); | |||||
//}); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -59,7 +63,7 @@ var bootstrap = function ($, learun) { | |||||
if (learun.checkrow(keyValue)) { | if (learun.checkrow(keyValue)) { | ||||
learun.layerConfirm('是否不准 ' + stuName + ' 毕业?', function (res) { | learun.layerConfirm('是否不准 ' + stuName + ' 毕业?', function (res) { | ||||
if (res) { | if (res) { | ||||
learun.httpAsync('get', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/AllowGraduate', { stuNo: keyValue, status: '0' }, function () { | |||||
learun.getForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/AllowGraduate?stuNo=' + keyValue + '&status=0', function () { | |||||
$('#btn_Search').trigger('click'); | $('#btn_Search').trigger('click'); | ||||
}); | }); | ||||
} | } | ||||