浏览代码

【修改】学生处分管理:多条件查询修改;

yanshi
dyy 2 年前
父节点
当前提交
c86f29380a
共有 2 个文件被更改,包括 38 次插入38 次删除
  1. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/Index.cshtml
  2. +36
    -36
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/Index.js

+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/Index.cshtml 查看文件

@@ -13,11 +13,11 @@
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-6 lr-form-item">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">所属系</div>
<div id="MajorNo"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">班级</div>
<div id="ClassNo"></div>
</div>


+ 36
- 36
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuPunishment/Index.js 查看文件

@@ -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({


正在加载...
取消
保存