|
|
@@ -15,42 +15,6 @@ var bootstrap = function ($, learun) { |
|
|
|
page.bind(); |
|
|
|
}, |
|
|
|
bind: function () { |
|
|
|
|
|
|
|
$('#MajorNo').lrDataSourceSelect({ |
|
|
|
code: 'CdDeptInfo', |
|
|
|
value: 'deptno', |
|
|
|
text: 'deptname', |
|
|
|
maxHeight: 200, |
|
|
|
select: function (item) { |
|
|
|
var DeptNo = $("#MajorNo").lrselectGet(); |
|
|
|
if (DeptNo != null && DeptNo != "" && DeptNo != undefined) { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { strWhere: " 1=1 and deptno in (" + DeptNo + ")" }, |
|
|
|
value: "classno", |
|
|
|
text: "classname", |
|
|
|
allowSearch: false, |
|
|
|
maxHeight: 200, |
|
|
|
select: function (item) { |
|
|
|
var ClassNo = $("#ClassNo").lrselectGet(); |
|
|
|
if (ClassNo != null && ClassNo != "" && ClassNo != undefined) { |
|
|
|
$('#StuNo').lrselectRefresh({ |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuList', |
|
|
|
param: { strWhere: " 1=1 and classno in (" + ClassNo + ")" }, |
|
|
|
value: "stuid", |
|
|
|
text: "stuname", |
|
|
|
maxHeight: 200, |
|
|
|
allowSearch: true |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$("#ClassNo").lrselect(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
$("#ClassNo").lrselect(); |
|
|
|
// 时间搜索框 |
|
|
|
$('#datesearch').lrdate({ |
|
|
|
dfdata: [ |
|
|
@@ -86,6 +50,42 @@ var bootstrap = function ($, learun) { |
|
|
|
location.reload(); |
|
|
|
}); |
|
|
|
$("#PunishNo").lrDataItemSelect({ code: 'Punishment' }); |
|
|
|
$('#MajorNo').lrselect({ |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', |
|
|
|
param: { strWhere: "1=1 " }, |
|
|
|
value: 'deptno', |
|
|
|
text: 'deptname', |
|
|
|
maxHeight: 200, |
|
|
|
select: function (item) { |
|
|
|
var DeptNo = $("#MajorNo").lrselectGet(); |
|
|
|
if (DeptNo != null && DeptNo != "" && DeptNo != undefined) { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { strWhere: " 1=1 and deptno in (" + DeptNo + ")" }, |
|
|
|
value: "classno", |
|
|
|
text: "classname", |
|
|
|
allowSearch: false, |
|
|
|
maxHeight: 200, |
|
|
|
select: function (item) { |
|
|
|
//var ClassNo = $("#ClassNo").lrselectGet(); |
|
|
|
//if (ClassNo != null && ClassNo != "" && ClassNo != undefined) { |
|
|
|
// $('#StuNo').lrselectRefresh({ |
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=StuList', |
|
|
|
// param: { strWhere: " 1=1 and classno in (" + ClassNo + ")" }, |
|
|
|
// value: "stuid", |
|
|
|
// text: "stuname", |
|
|
|
// maxHeight: 200, |
|
|
|
// allowSearch: true |
|
|
|
// }); |
|
|
|
//} |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$("#ClassNo").lrselect(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
$("#ClassNo").lrselect(); |
|
|
|
// 新增 |
|
|
|
$('#lr_add').on('click', function () { |
|
|
|
learun.layerForm({ |
|
|
|