|
@@ -40,33 +40,83 @@ var bootstrap = function ($, learun) { |
|
|
text: "majorname", |
|
|
text: "majorname", |
|
|
param: { strWhere: "1=1 AND CheckMark=1" }, |
|
|
param: { strWhere: "1=1 AND CheckMark=1" }, |
|
|
select: function (item) { |
|
|
select: function (item) { |
|
|
if (item) { |
|
|
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
|
|
allowSearch: true, |
|
|
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
|
|
param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1" } |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
var Grades = $("#Grade").lrselectGet(); |
|
|
|
|
|
if (Grades) { |
|
|
|
|
|
if (item) { |
|
|
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
|
|
allowSearch: true, |
|
|
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
|
|
param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1 AND Grade='" + Grades + "' order by classno desc" } |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
|
|
allowSearch: true, |
|
|
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
|
|
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
|
|
allowSearch: true, |
|
|
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
|
|
param: { strWhere: "1=1 AND CheckMark=1" } |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
if (item) { |
|
|
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
|
|
allowSearch: true, |
|
|
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
|
|
param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1 order by classno desc" } |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
|
|
allowSearch: true, |
|
|
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
|
|
param: { strWhere: "1=1 AND CheckMark=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) { |
|
|
|
|
|
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" } |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
|
|
allowSearch: true, |
|
|
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
|
|
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
if (item) { |
|
|
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
|
|
allowSearch: true, |
|
|
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
|
|
param: { strWhere: " CheckMark=1 AND Grade='" + Grades + "' order by classno desc" } |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
|
|
allowSearch: true, |
|
|
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
|
|
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" } |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
$('#ClassNo').lrselect({ |
|
|
$('#ClassNo').lrselect({ |
|
|
allowSearch: true, |
|
|
allowSearch: true, |
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
param: { strWhere: "1=1 AND CheckMark=1" }, |
|
|
|
|
|
|
|
|
param: { strWhere: "1=1 AND CheckMark=1 order by classno desc" }, |
|
|
value: "classno", |
|
|
value: "classno", |
|
|
text: "classname" |
|
|
text: "classname" |
|
|
}); |
|
|
}); |
|
|
$('#Grade').lrselect({ |
|
|
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear', |
|
|
|
|
|
value: "value", |
|
|
|
|
|
text: "text", |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); |
|
|
$('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); |
|
|
$('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); |
|
|
$('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); |
|
|
$('#FiveYear').lrDataItemSelect({ code: 'PieceCultivateWay' }); |
|
|
$('#FiveYear').lrDataItemSelect({ code: 'PieceCultivateWay' }); |
|
|