123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- function ScoreConvertByReplace_Save() {
- $(document.forms[0]).submit();
- }
- function queryStandard() {
- try {
- var collegeID = $("#CollegeID").combogridX("getValue");
- var yearID = $("#YearID").combobox("getValue");
- var jsonString = "({'QueryParamsDatas':'";
- if (collegeID != "" && collegeID != nonSelect) {
- jsonString += "CollegeDropdown|*|" + collegeID + "|@|";
- }
- if (yearID != nonSelect) {
- jsonString += "DictionaryGrade|*|" + yearID + "|@|";
- }
- jsonString += "'})";
- $("#StandardID").combogridX("reload", eval(jsonString));
- } catch (e) {
- }
- }
- function queryClass() {
- try {
- var collegeID = $("#CollegeID").combogridX("getValue");
- var yearID = $("#YearID").combobox("getValue");
- var standardID = $("#StandardID").combogridX("getValue");
- var jsonString = "({'QueryParamsDatas':'";
- if (collegeID != "" && collegeID != nonSelect) {
- jsonString += "CollegeDropdown|*|" + collegeID + "|@|";
- }
- if (yearID != nonSelect) {
- jsonString += "DictionaryGrade|*|" + yearID + "|@|";
- }
- if (standardID != "" && standardID != nonSelect) {
- jsonString += "DictionaryStandard|*|" + standardID + "|@|";
- }
- jsonString += "'})";
- $("#ClassmajorID").combogridX("reload", eval(jsonString));
- } catch (e) {
- }
- }
- 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 + "|@|";
- } else {
- return;
- }
- jsonString += "'})";
- $("#SourceCoursematerialID").combogridX("reload", eval(jsonString));
- $("#TargetCoursematerialID").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.Data.TotalHours);
- $("#txtTotalScore").val(data.Data.TotalScore);
- $("#TotalScore").val(data.Data.TotalScore);
- } else {
- $.messager.alert("系统信息", data.Message);
- }
- })
- } catch (e) {
- }
- }
- function queryTargetScore() {
- try {
- var userID = $("#UserID").combogridX("getValue");
- var targetCoursematerial = $("#TargetCoursematerialID").combogridX("getSelectedRow");
- $("#TargetTotalHours").val(targetCoursematerial.Totalhours);
- } catch (e) {
- }
- }
- $.parser.onComplete = function () {
- $("#CollegeID").combogridX("reload", CMS_SystemConfig.VirtualDirectoryPath + '/College/List');
- queryStandard();
- };
- $(function () {
- });
|