Procházet zdrojové kódy

学籍管理-加入年级联动

长阳分支推送专用
ndbs před 2 roky
rodič
revize
92a43507a8
2 změnil soubory, kde provedl 14 přidání a 9 odebrání
  1. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.cshtml
  2. +10
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js

+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.cshtml Zobrazit soubor

@@ -19,13 +19,13 @@
<div id="MajorNo"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">班级</div>
<div id="ClassNo"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">年级</div>
<div id="Grade"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">班级</div>
<div id="ClassNo"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">姓名</div>
<input id="StuName" type="text" class="form-control" />


+ 10
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js Zobrazit soubor

@@ -41,7 +41,7 @@ var bootstrap = function ($, learun) {
param: { strWhere: "1=1 AND CheckMark=1" },
select: function (item) {
var Grades = $("#Grade").lrselectGet();
if (Grades) {
if (Grades != null && Grades != "" && Grades != "undefined") {
if (item) {
$('#ClassNo').lrselectRefresh({
allowSearch: true,
@@ -78,12 +78,14 @@ var bootstrap = function ($, learun) {
text: "text",
select: function (item) {
var MajorNos = $("#MajorNo").lrselectGet();
if (MajorNos) {
if (MajorNos != null && MajorNos != "" && MajorNos != "undefined") {
if (item) {
$('#ClassNo').lrselectRefresh({
allowSearch: true,
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
param: { strWhere: "majorno='" + item.MajorNos + "' AND CheckMark=1 AND Grade='" + item + "' order by classno desc" }
param: {
strWhere: "majorno='" + MajorNos + "' AND CheckMark=1 AND Grade='" + item.text + "' order by classno desc"
}
});
} else {
$('#ClassNo').lrselectRefresh({
@@ -97,7 +99,9 @@ var bootstrap = function ($, learun) {
$('#ClassNo').lrselectRefresh({
allowSearch: true,
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
param: { strWhere: " CheckMark=1 AND Grade='" + Grades + "' order by classno desc" }
param: {
strWhere: "CheckMark=1 AND Grade='" + item.text + "' order by classno desc"
}
});
} else {
$('#ClassNo').lrselectRefresh({
@@ -106,7 +110,8 @@ var bootstrap = function ($, learun) {
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }
});
}
}
}

}
});
$('#ClassNo').lrselect({


Načítá se…
Zrušit
Uložit