|
|
@@ -39,7 +39,7 @@ var bootstrap = function ($, learun) { |
|
|
|
}); |
|
|
|
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); |
|
|
|
$('#FinishSchoolMark').lrselect({ |
|
|
|
data: [{ text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }], |
|
|
|
data: [{ text: "已毕业", value: "2" }, { text: "准许毕业", value: "1" }, { text: "待准许", value: "0" }], |
|
|
|
text: "text", |
|
|
|
value: "value" |
|
|
|
}) |
|
|
@@ -47,26 +47,37 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#lr_refresh').on('click', function () { |
|
|
|
location.reload(); |
|
|
|
}); |
|
|
|
//生成毕业证【按专业进行排序】 |
|
|
|
//$('#lr_create').on('click', function () { |
|
|
|
// learun.layerForm({ |
|
|
|
// id: 'form', |
|
|
|
// title: '生成毕业证', |
|
|
|
// url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/CreateGraduateNoForm', |
|
|
|
// width: 800, |
|
|
|
// height: 600, |
|
|
|
// callBack: function (id) { |
|
|
|
// return top[id].acceptClick(refreshGirdData); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
//}) |
|
|
|
//生成毕业证【按学号排序】 |
|
|
|
$('#lr_create').on('click', function () { |
|
|
|
learun.layerForm({ |
|
|
|
id: 'form', |
|
|
|
title: '生成毕业证', |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/CreateGraduateNoForm', |
|
|
|
width: 800, |
|
|
|
height: 600, |
|
|
|
callBack: function (id) { |
|
|
|
return top[id].acceptClick(refreshGirdData); |
|
|
|
learun.layerConfirm('1.毕业证号的生成规则:年份两位(22)+学校编码十位(3642000004)+顺序号四位(0001)组成; <br> 2.此次操作仅对毕业状态为“准许毕业”和“已毕业”的学生进行操作; <br> 3.生成毕业证号后不可撤消,请谨慎操作!<br>', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.httpAsync('post', top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/DoCreateGraduateNo', {}, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
// 初始化列表 |
|
|
|
initGird: function () { |
|
|
|
$('#gridtable').jfGrid({ |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList', |
|
|
|
headData: [ |
|
|
|
{ label: "学号", name: "StuNo", width: 100, align: "left" }, |
|
|
|
{ label: "学号", name: "StuNo", width: 150, align: "left" }, |
|
|
|
{ label: "姓名", name: "StuName", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "性别", name: "GenderNo", width: 80, align: "left", |
|
|
@@ -139,12 +150,12 @@ var bootstrap = function ($, learun) { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "毕业证", name: "DiplomaNo", width: 100, align: "left" }, |
|
|
|
{ label: "毕业时间", name: "FinishSchoolDate", width: 100, align: "left" }, |
|
|
|
{ label: "毕业证号", name: "DiplomaNo", width: 100, align: "left" }, |
|
|
|
], |
|
|
|
mainId: 'StuId', |
|
|
|
isPage: true, |
|
|
|
isMultiselect: true, |
|
|
|
isMultiselect: false, |
|
|
|
|
|
|
|
}); |
|
|
|
page.search(); |
|
|
|