1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- //评价记录
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- });
- function reload() {
- $("#dgEvaluationRecordList").cmsXDataTable("load", $.getDataGridParams("dgEvaluationRecordList"));
- }
- //获取选中数据
- function validChoose() {
- var d = [];
- $.each($("#dgEvaluationRecordList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.EvaluationEnterID);
- });
- return d;
- }
- //进入评价导出
- function EvaluationRecord_Export() {
- $("#formQuery").submit();
- }
- //删除
- function EvaluationRecord_Delete() {
-
- var d = validChoose().join(',');
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要删除的评价信息!");
- return;
- }
- $.messager.confirm("系统提示", "您确定要删除该评价信息?", function (r) {
- if (r) {
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/EvaluationRecord/Delete', { ids: d }, function (data) {
- if (data == "删除成功") {
- $.messager.alert("系统提示", "删除成功!");
- $("#dgEvaluationRecordList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data);
- }
- });
- }
- });
- }
- //学年
- function SchoolYearDropdownList(data) {
- reload();
- }
- //评价表
- function QueryEvaluationTableDropdownList(data) {
- $("#EvaluationTypeDropdown").combobox("reload", CMS_SystemConfig.VirtualDirectoryPath + "/EvaluationRecord/EvaluationTypeDropdownListBanid?evaluationTableID=" + data.Value + "");
- reload();
- }
- function QueryEvaluationTypeDropdownList(data) {
- reload();
- }
- //联动查询
- function queryStandard(data) {
- queryClass();
- }
- function queryCollege(data) {
- queryClass();
- }
- function queryClass() {
- var jsonString = "";
- var parameterString = "";
- var campusID = $("#CampusDropdown").combogridX("getValue");
- var collegeID = $("#CollegeDropdown").combogridX("getValue");
- var schoolYearID = $("#SchoolyearDictionaryDropDown").combobox("getValue");
- var standardID = $("#StandardDictionaryDropDown").combogridX("getValue");
- var educationID = $("#DictionaryEducation").combobox("getValue");
- var LearnSystem = $("#DictionaryLearnSystem").combogridX("getValue");
- var learningFormID = $("#LearningformDictionaryDropDown").combobox("getValue");
- if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|";
- if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
- if (schoolYearID != nonSelect) parameterString += "DictionaryGrade|*|" + schoolYearID + "|@|";
- if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
- if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|";
- if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|";
- if (LearnSystem != nonSelect) parameterString += "DictionaryLearnSystem|*|" + LearnSystem + "|@|";
- if (parameterString != "") {
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#ClassmajorDropdown").combogridX("reload", eval(jsonString));
- $("#StandardDictionaryDropDown").combogridX("reload", eval(jsonString));
- } else {
- $("#ClassmajorDropdown").combogridX("reload");
- $("#StandardDictionaryDropDown").combogridX("reload");
- }
- reload();
- }
|