12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- 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)));
- }
- function GetClassName(){
- var userID = $("#UserID").combogridX("getValue");
- var className = "";
- var url = CMS_SystemConfig.VirtualDirectoryPath + '/PersonalScore/GetClassNameByUserID';
- if (userID != null && userID != "") {
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/PersonalScore/GetClassNameByUserID', {
- userID: userID,
- }, function (data) {
- //alert(data.Message);
- document.getElementById("ClassName").value = data.Message;
- //$("#ClassName").attr("value", data.Message);
- });
- }
-
- }
|