|
|
@@ -39,7 +39,8 @@ var bootstrap = function ($, learun) { |
|
|
|
text: "majorname", |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1" }, |
|
|
|
select: function (item) { |
|
|
|
var Grades = $("#Grade").lrselectGet(); |
|
|
|
//var Grades = $("#Grade").lrselectGet(); |
|
|
|
var Grades = $("#Grade").val(); |
|
|
|
if (Grades != null && Grades != "" && Grades != "undefined") { |
|
|
|
if (item) { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
@@ -71,46 +72,83 @@ var bootstrap = function ($, learun) { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#Grade').lrselect({ |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear', |
|
|
|
value: "value", |
|
|
|
text: "text", |
|
|
|
select: function (item) { |
|
|
|
var MajorNos = $("#MajorNo").lrselectGet(); |
|
|
|
if (MajorNos != null && MajorNos != "" && MajorNos != "undefined") { |
|
|
|
if (item) { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
param: { |
|
|
|
strWhere: "majorno='" + MajorNos + "' AND Grade='" + item.text + "' order by classno desc" |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
param: { strWhere: "1=1 order by classno desc" } |
|
|
|
}); |
|
|
|
} |
|
|
|
//$('#Grade').lrselect({ |
|
|
|
// url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear', |
|
|
|
// value: "value", |
|
|
|
// text: "text", |
|
|
|
// select: function (item) { |
|
|
|
// var MajorNos = $("#MajorNo").lrselectGet(); |
|
|
|
// if (MajorNos != null && MajorNos != "" && MajorNos != "undefined") { |
|
|
|
// if (item) { |
|
|
|
// $('#ClassNo').lrselectRefresh({ |
|
|
|
// allowSearch: true, |
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
// param: { |
|
|
|
// strWhere: "majorno='" + MajorNos + "' AND Grade='" + item.text + "' order by classno desc" |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// } else { |
|
|
|
// $('#ClassNo').lrselectRefresh({ |
|
|
|
// allowSearch: true, |
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
// param: { strWhere: "1=1 order by classno desc" } |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// } else { |
|
|
|
// if (item) { |
|
|
|
// $('#ClassNo').lrselectRefresh({ |
|
|
|
// allowSearch: true, |
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
// param: { |
|
|
|
// strWhere: "1=1 AND Grade='" + item.text + "' order by classno desc" |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// } else { |
|
|
|
// $('#ClassNo').lrselectRefresh({ |
|
|
|
// allowSearch: true, |
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
// param: { strWhere: "1=1 order by classno desc" } |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
// } |
|
|
|
//}); |
|
|
|
$('#Grade').on('input', function () { |
|
|
|
var val = $(this).val(); |
|
|
|
var MajorNos = $("#MajorNo").lrselectGet(); |
|
|
|
if (MajorNos != null && MajorNos != "" && MajorNos != "undefined") { |
|
|
|
if (val) { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
param: { |
|
|
|
strWhere: "majorno='" + MajorNos + "' AND Grade='" + val + "' order by classno desc" |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
if (item) { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
param: { |
|
|
|
strWhere: "1=1 AND Grade='" + item.text + "' order by classno desc" |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
param: { strWhere: "1=1 order by classno desc" } |
|
|
|
}); |
|
|
|
} |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
param: { strWhere: "1=1 order by classno desc" } |
|
|
|
}); |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (val) { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
param: { |
|
|
|
strWhere: "1=1 AND Grade='" + val + "' order by classno desc" |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=allbjqj', |
|
|
|
param: { strWhere: "1=1 order by classno desc" } |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
$('#ClassNo').lrselect({ |
|
|
|