Ver a proveniência

专业开课计划优化专业、课程下拉框

西昌缴费二期
zhangli há 2 anos
ascendente
cometimento
ed194b2edd
3 ficheiros alterados com 38 adições e 22 eliminações
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/CdMajor/Index.js
  2. +17
    -11
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Form.js
  3. +20
    -10
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Index.js

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/CdMajor/Index.js Ver ficheiro

@@ -47,7 +47,7 @@ var bootstrap = function ($, learun) {
}
var CheckMark = $('#gridtable').jfGridValue('CheckMark');
if (CheckMark === "true") {
learun.alert.warning("当前项目已审核不能编辑!");
learun.alert.warning("当前项目已启用不能编辑!");
return;
}
learun.layerForm({


+ 17
- 11
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Form.js Ver ficheiro

@@ -40,7 +40,7 @@ var bootstrap = function ($, learun) {
maxHeight: 200,
select: function (item) {
var NDeptNo = $("#DeptNo").lrselectGet();
if (NDeptNo != null && NDeptNo != "" && NDeptNo != undefined) {
if (NDeptNo != null && NDeptNo != "" && NDeptNo != 'undefined') {
$('#MajorNo').lrselectRefresh({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
param: { strWhere: " 1=1 and CheckMark=1 and deptno in (" + NDeptNo + ")" },
@@ -51,7 +51,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
@@ -59,14 +59,20 @@ var bootstrap = function ($, learun) {
}
}
})
$("#MajorNo").lrselect();
$('#LessonNo').lrselect({
placeholder: "请选择课程",
allowSearch: true,
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetLessonNoDataOfAllWithNo',
value: 'value',
text: 'text'
$("#MajorNo").lrselect({
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').lrselect();
$('#TeachDeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' });
},
initData: function () {
@@ -83,7 +89,7 @@ var bootstrap = function ($, learun) {
});
}
$('#StuSortNo').val('02');
$('#LessonSortNo').val('2');
$('#LessonSortNo').val('2');
$('#CheckStyleNo').val('1');
$('#ScoreRecordStyleNo').val('1');
$('#CheckMark').val('1');
@@ -97,7 +103,7 @@ var bootstrap = function ($, learun) {
return false;
}
var nName = $("#LessonNo").find(".lr-select-placeholder").text();
var Narray= nName.split("(");
var Narray = nName.split("(");
$("#LessonName").val(Narray[0]);
var postData = {
strEntity: JSON.stringify($('body').lrGetFormData())


+ 20
- 10
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassPlan/Index.js Ver ficheiro

@@ -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();
@@ -175,7 +185,7 @@ var bootstrap = function ($, learun) {
$('#titleinfo').text(item.text);
page.search();
var NDeptNo = item.id;
if (NDeptNo != null && NDeptNo != "" && NDeptNo != undefined) {
if (NDeptNo != null && NDeptNo != "" && NDeptNo != 'undefined') {
$('#MajorNo').lrselectRefresh({
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo',
param: { strWhere: " 1=1 and CheckMark=1 and deptno in (" + NDeptNo + ")" },
@@ -186,7 +196,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


Carregando…
Cancelar
Guardar