//评语建议 var mnu = ""; //加载 $(function () { mnu = $.SystemGeneral.getUrlParam("MNU"); }); function reload() { $("#dgEvaluationAdviseList").cmsXDataTable("load", $.getDataGridParams("dgEvaluationAdviseList")); } //获取选中数据 function validChoose() { var d = []; $.each($("#dgEvaluationAdviseList").cmsXDataTable("getSelections"), function (index) { d.push(this.EvaluationAdviseID); }); return d; } //进入评语建议导出 function EvaluationAdvise_Export() { $("#formQuery").submit(); } //删除 function EvaluationAdvise_Delete() { var d = validChoose().join(','); if (d == "") { $.messager.alert("系统提示", "请选择您要删除的信息!"); return; } $.messager.confirm("系统提示", "您确定要删除该评价信息?", function (r) { if (r) { $.post(CMS_SystemConfig.VirtualDirectoryPath + '/EvaluationAdvise/Delete', { ids: d }, function (data) { if (data == "删除成功") { $.messager.alert("系统提示", "删除成功!"); $("#dgEvaluationAdviseList").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 QueryCollegeDropdownList(data) { $("#DepartmentDropdown").combobox("reload", "/Department/DepartmentDropdownListBanid?collegeID=" + data.Value + ""); reload(); } function SelectDepartmentDropdownList(data) { var url = CMS_SystemConfig.VirtualDirectoryPath + "/Staff/GetDepartmentStaffDataBind?bindType=PleaseSelect"; //"/Staff/GetDepartmentStaffDataBind?bindType=2"; var departmentID = $("#DepartmentDropdown").combobox("getValue"); if (departmentID != nonSelect) url += "&DepartmentDropdown=" + departmentID; // $("#StaffDropdown").combobox("reload", url); var jsonString = "({'QueryParamsDatas':'DepartmentDropdown|*|" + departmentID + "|@|'})"; $("#StaffDropdown").combogridX("reload", eval(jsonString)); //$("#StaffDropdown").combobox("reload", "/Staff/GetDepartmentStaffDataBind?DepartmentDropdown=" + data.Value + ""); reload(); } function QueryStaffDropdownList(data) { reload(); }