123456789101112131415161718192021222324252627282930313233343536373839 |
- function StudentScore_Save() {
- var userID = $("#UserID").combogridX("getValue");
- var coursematerialID = $("#CoursematerialID").combogridX("getValue");
- var examsCategoryID = $("#ExamsCategoryID").combobox("getValue");
- var startTermID = $("#StarttermID").combobox("getValue");
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/StudentScore/ValidateDuplicate', {
- submitedScoreID: $.SystemGeneral.getUrlParam("submitedScoreID"),
- userID: userID,
- coursematerialID: coursematerialID,
- examsCategoryID: examsCategoryID,
- startTermID: startTermID
- }, function (data) {
- if (data.IsSuccess) {
- $(document.forms[0]).submit();
- } else {
- $.messager.confirm('提示', data.Message, function (r) {
- if (r) {
- $(document.forms[0]).submit();
- }
- });
- }
- });
- }
- function selectSchoolyearNum() {
- var schoolyearNum = $("#SchoolyearNumID").combobox("getValue");
- var startTermObj = $("#StarttermID");
- var startTerm = startTermObj.combobox("getValue");
- if (startTerm > (schoolyearNum * 2) || startTerm < ((schoolyearNum - 1) * 2)) {
- startTermObj.combobox("setValue", (schoolyearNum * 2) - 1);
- }
- }
- function selectStartTerm() {
- var schoolyearNumObj = $("#SchoolyearNumID");
- var startTermObj = $("#StarttermID");
- var startTerm = startTermObj.combobox("getValue");
- schoolyearNumObj.combobox("setValue", Math.ceil(parseFloat(startTerm) / parseFloat(2)));
- }
|