var mnu = ""; //加载 $(function () { mnu = $.SystemGeneral.getUrlParam("MNU"); }) function StuScoreConvertByApply_Save() { $(document.forms[0]).submit(); } function queryUser() { try { var collegeID = $("#CollegeID").combogridX("getValue"); var yearID = $("#YearID").combobox("getValue"); var standardID = $("#StandardID").combogridX("getValue"); var classmajorID = $("#ClassmajorID").combogridX("getValue"); var jsonString = "({'QueryParamsDatas':'"; if (collegeID != "" && collegeID != nonSelect) { jsonString += "CollegeDropdown|*|" + collegeID + "|@|"; } if (yearID != nonSelect) { jsonString += "SchoolyearDictionaryDropDown|*|" + yearID + "|@|"; } if (standardID != "" && standardID != nonSelect) { jsonString += "StandardDictionaryDropDown|*|" + standardID + "|@|"; } if (classmajorID != "" && classmajorID != nonSelect) { jsonString += "ClassmajorDropdown|*|" + classmajorID + "|@|"; } jsonString += "'})"; $("#UserID").combogridX("reload", eval(jsonString)); } catch (e) { } } function queryCourse() { try { var userID = $("#UserID").combogridX("getValue"); var jsonString = "({'QueryParamsDatas':'"; if (userID != "" && userID != nonSelect) { jsonString += "cbgUserID|*|" + userID + "|@|"; } jsonString += "'})"; //$("#SourceCoursematerialID").combogridX("reload", eval(jsonString)); $("#CoursematerialID").combogridX("reload", eval(jsonString)); } catch (e) { } } //function querySourceScore() { // try { // var userID = $("#UserID").combogridX("getValue"); // var sourceCoursematerialID = $("#SourceCoursematerialID").combogridX("getValue"); // $.post(CMS_SystemConfig.VirtualDirectoryPath + "/ScoreConvert/SourceCoursematerialView", { userID: userID, coursematerialID: sourceCoursematerialID }, // function (data) { // if (data.IsSuccess) { // $("#SourceTotalHours").val(Data.TotalHours); // $("#txtTotalScore").val(Data.TotalScore); // $("#TotalScore").val(Data.TotalScore); // } else { // $.messager.alert("系统信息", data.Message); // } // }) // } catch (e) { // } //} function queryScore() { try { var userID = $("#UserID").combogridX("getValue"); var coursematerial = $("#CoursematerialID").combogridX("getSelectedRow"); $("#TotalHours").val(coursematerial.Totalhours); } catch (e) { } } function StuScoreConvertByApply_Upload() { var scoreConvertByApplyID = $("#ScoreConvertByApplyID").val(); var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + "/ScoreConvert/Upload?scoreConvertByApplyID=" + scoreConvertByApplyID + "&MNU=" + mnu; $.popupTopWindow('附件上传', redirectTo, 700, 400, setAttachment); } function setAttachment() { $.ajaxSetup({ async: false }); var fileList; var scoreConvertByApplyID = $("#ScoreConvertByApplyID").val(); $.post(CMS_SystemConfig.VirtualDirectoryPath + '/ScoreConvert/GetFileListByConvertID', { scoreConvertByApplyID: scoreConvertByApplyID }, function (data) { fileList = data; }); var count = fileList.length; var nameStr = ""; var detailID; for (var i = 0; i < count; i++) { detailID = fileList[i].FormID; var name = fileList[i].FileName; nameStr = nameStr + "、" + name; } if (detailID != null) { $("#IsChangeAttachment").val(1); } nameStr = nameStr.substr(1, (nameStr.length - 1)); $("#UploadAttachmentName").val(nameStr); }