123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/PersonalScore/NewList";
- var mnu = "";
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
-
- })
- function PersonScore_Save() {
- var userID = $.SystemGeneral.getUrlParam("UserID");
- var windowID = $.SystemGeneral.getUrlParam("WindowID");
- var coursematerialID = $("#CoursematerialID").combogridX("getValue");
- var examsCategoryID = $("#ExamsCategoryID").combobox("getValue");
- var startTermID = $("#StarttermID").combobox("getValue");
- var changedUserID = $("#UserID").combogridX("getValue");
- top.$("#" + windowID).data("resultData", changedUserID);
- //$("#changedUserID", window.parent.document).attr("value", changedUserID);
- $.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 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);
- });
- // $.ajax({
- // type: "POST",
- // url: url,
- // contentType: "application/json;charset=utf-8",
- // data: { userID: userID },
- // dataType: "json",
- // async: false,
- // success: function (data) {
- // debugger;
- // if (data.IsSuccess) {
- // className = data.Message;
- // }
- // }
- // })
- }
-
- }
- 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)));
- }
|