Переглянути джерело

图书资料归还优化

临城职教中职
zhangli 2 роки тому
джерело
коміт
631ec82769
3 змінених файлів з 13 додано та 5 видалено
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateReturnBooks.cshtml
  2. +5
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateReturnBooks.js
  3. +7
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/ScoreQueryAllIndex.js

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateReturnBooks.cshtml Переглянути файл

@@ -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">


+ 5
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/GraduateReturnBooks.js Переглянути файл

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


+ 7
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/ScoreQueryAllIndex.js Переглянути файл

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


Завантаження…
Відмінити
Зберегти