소스 검색

班级开课计划优化查询下拉框

西昌缴费二期
zhangli 2 년 전
부모
커밋
e3ef84653f
1개의 변경된 파일19개의 추가작업 그리고 9개의 파일을 삭제
  1. +19
    -9
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlanTeach/Index.js

+ 19
- 9
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlanTeach/Index.js 파일 보기

@@ -35,15 +35,25 @@ var bootstrap = function ($, learun) {
text: 'text'
});
$('#Semester').lrDataItemSelect({ code: 'Semester' });
$("#MajorNo").lrselect();
$('#LessonNo').lrselect({
placeholder: "请选择课程",
allowSearch: true,
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetLessonNoDataOfAllWithNo',
value: 'value',
text: 'text',
maxHeight: 200
$('#MajorNo').lrselect({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
param: { strWhere: " 1=1 and CheckMark=1 " },
value: "majorno",
text: "majorname",
maxHeight: 200,
select: function (item) {
if (item) {
$('#LessonNo').lrselectRefresh({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=LessonInfo',
param: { strWhere: " 1=1 and CheckMark=1 and teachmajorno='" + item.majorno + "'" },
value: "lessonno",
text: "lessonname",
maxHeight: 200
});
}
}
});
$('#LessonNo').lrDataSourceSelect({ code: 'LessonInfo', value: 'lessonno', text: 'lessonname' });
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
@@ -131,7 +141,7 @@ var bootstrap = function ($, learun) {
} else {
$('#MajorNo').lrselectRefresh({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
param: { strWhere: " 1=1 and CheckMark=1 and deptno ='' " },
param: { strWhere: " 1=1 and CheckMark=1 " },
value: "majorno",
text: "majorname",
maxHeight: 200


불러오는 중...
취소
저장