|
|
@@ -56,57 +56,57 @@ var bootstrap = function ($, learun) { |
|
|
|
allowSearch: true |
|
|
|
}); |
|
|
|
|
|
|
|
$('#DeptNo').lrselect({ |
|
|
|
allowSearch: true, |
|
|
|
value: "deptno", |
|
|
|
text: "deptname", |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', |
|
|
|
select: function (item) { |
|
|
|
if (item) { |
|
|
|
$('#MajorNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#MajorNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1" } |
|
|
|
}); |
|
|
|
} |
|
|
|
//$('#DeptNo').lrselect({ |
|
|
|
// allowSearch: true, |
|
|
|
// value: "deptno", |
|
|
|
// text: "deptname", |
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', |
|
|
|
// select: function (item) { |
|
|
|
// if (item) { |
|
|
|
// $('#MajorNo').lrselectRefresh({ |
|
|
|
// allowSearch: true, |
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
// param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } |
|
|
|
// }); |
|
|
|
// } else { |
|
|
|
// $('#MajorNo').lrselectRefresh({ |
|
|
|
// allowSearch: true, |
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
// param: { strWhere: "1=1 AND CheckMark=1" } |
|
|
|
// }); |
|
|
|
// } |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
$('#MajorNo').lrselect({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
value: "majorno", |
|
|
|
text: "majorname", |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1" }, |
|
|
|
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" } |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1" } |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#ClassNo').lrselect({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1" }, |
|
|
|
value: "classno", |
|
|
|
text: "classname" |
|
|
|
}); |
|
|
|
// } |
|
|
|
//}); |
|
|
|
//$('#MajorNo').lrselect({ |
|
|
|
// allowSearch: true, |
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
// value: "majorno", |
|
|
|
// text: "majorname", |
|
|
|
// param: { strWhere: "1=1 AND CheckMark=1" }, |
|
|
|
// 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" } |
|
|
|
// }); |
|
|
|
// } else { |
|
|
|
// $('#ClassNo').lrselectRefresh({ |
|
|
|
// allowSearch: true, |
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
// param: { strWhere: "1=1 AND CheckMark=1" } |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// } |
|
|
|
//}); |
|
|
|
//$('#ClassNo').lrselect({ |
|
|
|
// allowSearch: true, |
|
|
|
// url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
// param: { strWhere: "1=1 AND CheckMark=1" }, |
|
|
|
// value: "classno", |
|
|
|
// text: "classname" |
|
|
|
//}); |
|
|
|
$('#Files').lrUploader(); |
|
|
|
}, |
|
|
|
initData: function () { |
|
|
|