123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- 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);
- }
|