|
|
@@ -15,7 +15,7 @@ var bootstrap = function ($, learun) { |
|
|
|
bind: function () { |
|
|
|
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { |
|
|
|
page.search(queryJson); |
|
|
|
}, 245, 400); |
|
|
|
}, 320, 400); |
|
|
|
$('#AcademicYearNo').lrselect({ |
|
|
|
placeholder: "学年", |
|
|
|
allowSearch: true, |
|
|
@@ -30,6 +30,116 @@ var bootstrap = function ($, learun) { |
|
|
|
value: 'value', |
|
|
|
text: 'text' |
|
|
|
}); |
|
|
|
$('#DeptNo').lrselect({ |
|
|
|
allowSearch: true, |
|
|
|
value: "deptno", |
|
|
|
text: "deptname", |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', |
|
|
|
select: function (item) { |
|
|
|
if (item) { |
|
|
|
$('#MajorNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#MajorNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1" } |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
$('#MajorNo').lrselect({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
value: "majorno", |
|
|
|
text: "majorname", |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1" }, |
|
|
|
select: function (item) { |
|
|
|
var Grades = $("#Grade").lrselectGet(); |
|
|
|
if (Grades != null && Grades != "" && Grades != "undefined") { |
|
|
|
if (item) { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1 AND Grade='" + Grades + "' order by classno desc" } |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } |
|
|
|
}); |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (item) { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1 order by classno desc" } |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#Grade').lrselect({ |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear', |
|
|
|
value: "value", |
|
|
|
text: "text", |
|
|
|
select: function (item) { |
|
|
|
var MajorNos = $("#MajorNo").lrselectGet(); |
|
|
|
if (MajorNos != null && MajorNos != "" && MajorNos != "undefined") { |
|
|
|
if (item) { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { |
|
|
|
strWhere: "majorno='" + MajorNos + "' AND CheckMark=1 AND Grade='" + item.text + "' order by classno desc" |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } |
|
|
|
}); |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (item) { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { |
|
|
|
strWhere: "CheckMark=1 AND Grade='" + item.text + "' order by classno desc" |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
$('#ClassNo').lrselect({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }, |
|
|
|
value: "classno", |
|
|
|
text: "classname" |
|
|
|
}); |
|
|
|
$('#ESType').lrDataItemSelect({ code: 'StudentType' }); |
|
|
|
// 刷新 |
|
|
|
$('#lr_refresh').on('click', function () { |
|
|
@@ -163,6 +273,32 @@ var bootstrap = function ($, learun) { |
|
|
|
headData: [ |
|
|
|
{ label: "学年", name: "AcademicYearNo", width: 100, align: "left" }, |
|
|
|
{ label: "学期", name: "Semester", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "系所", name: "DeptNo", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', |
|
|
|
key: value, |
|
|
|
keyId: 'deptno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['deptname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "专业", name: "MajorNo", width: 140, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('custmerData', { |
|
|
|
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdMajorInfo', |
|
|
|
key: value, |
|
|
|
keyId: 'majorno', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data['majorname']); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: "班级", name: "ClassNo", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
@@ -176,8 +312,9 @@ var bootstrap = function ($, learun) { |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "学生编号", name: "StuNo", width: 100, align: "left" }, |
|
|
|
{ label: "学生编号", name: "StuNo", width: 140, align: "left" }, |
|
|
|
{ label: "学生姓名", name: "StuName", width: 100, align: "left" }, |
|
|
|
{ label: "身份证号", name: "IdentityCardNo", width: 140, align: "left" }, |
|
|
|
{ label: "年级", name: "Grade", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "考试类型", name: "ESType", width: 100, align: "left", |
|
|
@@ -201,7 +338,7 @@ var bootstrap = function ($, learun) { |
|
|
|
mainId: 'ESId', |
|
|
|
isMultiselect: true, |
|
|
|
isPage: true, |
|
|
|
sidx: 'AcademicYearNo desc,Semester desc', |
|
|
|
sidx: 'AcademicYearNo desc,Semester desc ,Grade desc,DeptNo desc, MajorNo desc, ClassNo desc', |
|
|
|
sord: 'ASC' |
|
|
|
}); |
|
|
|
page.search(); |
|
|
|