@@ -50,10 +50,14 @@ var bootstrap = function ($, learun) { | |||
//校园卡注销 | |||
$('#lr_cardderegistrate').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('StuId'); | |||
var CardDeregistrateStatus = $('#gridtable').jfGridValue('CardDeregistrateStatus'); | |||
if (learun.checkrow(keyValue)) { | |||
if (CardDeregistrateStatus.indexOf('1') != -1) { | |||
return learun.alert.warning("选中项包括已注销数据!"); | |||
} | |||
learun.layerConfirm('是否确认注销校园卡!', function (res) { | |||
if (res) { | |||
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsCardDeregistrate', { keyValue: keyValue,status:'1' }, function () { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsCardDeregistrate', { keyValue: keyValue, status: '1' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
@@ -66,7 +70,7 @@ var bootstrap = function ($, learun) { | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认取消注销校园卡!', function (res) { | |||
if (res) { | |||
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsCardDeregistrate', { keyValue: keyValue, status: '0' }, function () { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsCardDeregistrate', { keyValue: keyValue, status: '0' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
@@ -50,10 +50,14 @@ var bootstrap = function ($, learun) { | |||
//办理退住手续 | |||
$('#lr_checkout').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('StuId'); | |||
var CheckOutStatus = $('#gridtable').jfGridValue('CheckOutStatus'); | |||
if (learun.checkrow(keyValue)) { | |||
if (CheckOutStatus.indexOf('1') != -1) { | |||
return learun.alert.warning("选中项包括已办理退住数据!"); | |||
} | |||
learun.layerConfirm('是否确认办理退住手续!', function (res) { | |||
if (res) { | |||
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsCheckOut', { keyValue: keyValue,status:'1' }, function () { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsCheckOut', { keyValue: keyValue, status: '1' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
@@ -66,7 +70,7 @@ var bootstrap = function ($, learun) { | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认取消办理退住手续!', function (res) { | |||
if (res) { | |||
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsCheckOut', { keyValue: keyValue, status: '0' }, function () { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsCheckOut', { keyValue: keyValue, status: '0' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
@@ -50,10 +50,14 @@ var bootstrap = function ($, learun) { | |||
//毕业证领取 | |||
$('#lr_getcard').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('StuId'); | |||
var DiplomaReceiveStatus = $('#gridtable').jfGridValue('DiplomaReceiveStatus'); | |||
if (learun.checkrow(keyValue)) { | |||
if (DiplomaReceiveStatus.indexOf('1') != -1) { | |||
return learun.alert.warning("选中项包括已领取数据!"); | |||
} | |||
learun.layerConfirm('是否确认领取毕业证!', function (res) { | |||
if (res) { | |||
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetCard', { keyValue: keyValue,status:'1' }, function () { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetCard', { keyValue: keyValue, status: '1' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
@@ -66,7 +70,7 @@ var bootstrap = function ($, learun) { | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认取消领取毕业证!', function (res) { | |||
if (res) { | |||
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetCard', { keyValue: keyValue, status: '0' }, function () { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetCard', { keyValue: keyValue, status: '0' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
@@ -50,10 +50,14 @@ var bootstrap = function ($, learun) { | |||
//就业协议备案 | |||
$('#lr_employagree').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('StuId'); | |||
var EmployAgreeStatus = $('#gridtable').jfGridValue('EmployAgreeStatus'); | |||
if (learun.checkrow(keyValue)) { | |||
if (EmployAgreeStatus.indexOf('1') != -1) { | |||
return learun.alert.warning("选中项包括已备案数据!"); | |||
} | |||
learun.layerConfirm('是否确认备案就业协议!', function (res) { | |||
if (res) { | |||
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsEmployAgree', { keyValue: keyValue,status:'1' }, function () { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsEmployAgree', { keyValue: keyValue, status: '1' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
@@ -66,7 +70,7 @@ var bootstrap = function ($, learun) { | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认取消备案就业协议!', function (res) { | |||
if (res) { | |||
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsEmployAgree', { keyValue: keyValue, status: '0' }, function () { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsEmployAgree', { keyValue: keyValue, status: '0' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
@@ -50,10 +50,14 @@ var bootstrap = function ($, learun) { | |||
//学杂费结算 | |||
$('#lr_feesettle').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('StuId'); | |||
var FeeSettleStatus = $('#gridtable').jfGridValue('FeeSettleStatus'); | |||
if (learun.checkrow(keyValue)) { | |||
if (FeeSettleStatus.indexOf('1') != -1) { | |||
return learun.alert.warning("选中项包括已结算数据!"); | |||
} | |||
learun.layerConfirm('是否确认结算学杂费!', function (res) { | |||
if (res) { | |||
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsFeeSettle', { keyValue: keyValue,status:'1' }, function () { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsFeeSettle', { keyValue: keyValue, status: '1' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
@@ -66,7 +70,7 @@ var bootstrap = function ($, learun) { | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认取消结算学杂费!', function (res) { | |||
if (res) { | |||
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsFeeSettle', { keyValue: keyValue, status: '0' }, function () { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsFeeSettle', { keyValue: keyValue, status: '0' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
@@ -50,10 +50,14 @@ var bootstrap = function ($, learun) { | |||
//档案与组织关系转出 | |||
$('#lr_filetransfer').on('click', function () { | |||
var keyValue = $('#gridtable').jfGridValue('StuId'); | |||
var FileTransferStatus = $('#gridtable').jfGridValue('FileTransferStatus'); | |||
if (learun.checkrow(keyValue)) { | |||
if (FileTransferStatus.indexOf('1') != -1) { | |||
return learun.alert.warning("选中项包括已转出数据!"); | |||
} | |||
learun.layerConfirm('是否确认转出档案与组织关系!', function (res) { | |||
if (res) { | |||
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsFileTransfer', { keyValue: keyValue,status:'1' }, function () { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsFileTransfer', { keyValue: keyValue, status: '1' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
@@ -66,7 +70,7 @@ var bootstrap = function ($, learun) { | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认取消转出档案与组织关系!', function (res) { | |||
if (res) { | |||
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsFileTransfer', { keyValue: keyValue, status: '0' }, function () { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsFileTransfer', { keyValue: keyValue, status: '0' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
@@ -52,12 +52,12 @@ var bootstrap = function ($, learun) { | |||
var keyValue = $('#gridtable').jfGridValue('StuId'); | |||
var ReturnBooksStatus = $('#gridtable').jfGridValue('ReturnBooksStatus'); | |||
if (learun.checkrow(keyValue)) { | |||
if (ReturnBooksStatus == 1) { | |||
return learun.alert.warning("选中项目已归还!"); | |||
if (ReturnBooksStatus.indexOf('1') != -1) { | |||
return learun.alert.warning("选中项包括已归还数据!"); | |||
} | |||
learun.layerConfirm('是否确认归还图书资料!', function (res) { | |||
if (res) { | |||
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsReturnBooks', { keyValue: keyValue, status: '1' }, function () { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsReturnBooks', { keyValue: keyValue, status: '1' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||
@@ -70,7 +70,7 @@ var bootstrap = function ($, learun) { | |||
if (learun.checkrow(keyValue)) { | |||
learun.layerConfirm('是否确认取消归还图书资料!', function (res) { | |||
if (res) { | |||
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsReturnBooks', { keyValue: keyValue, status: '0' }, function () { | |||
learun.postForm(top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/IsReturnBooks', { keyValue: keyValue, status: '0' }, function () { | |||
refreshGirdData(); | |||
}); | |||
} | |||