123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/EvaluationControl/Edit";
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- //新增
- function EvaluationControl_Add() {
- redirectTo = url + '?MNU=' + mnu;
- $.popupTopWindow('评价控制新增', redirectTo, 650, 420, null, null);
- }
- //
- function reload() {
- $("#dgEvaluationControlList").cmsXDataTable("load", $.getDataGridParams("dgEvaluationControlList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgEvaluationControlList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.ControlID);
- });
- return d;
- }
- //查看评价控制明细
- function edit(rowindex, rowdata) {
- redirectTo = url + "?controlID=" + rowdata.ControlID + "&MNU=" + mnu;
- $.popupTopWindow('评价控制信息', redirectTo, 650, 420, null, null);
- }
- //修改按钮
- function EvaluationControl_Update() {
- var d = validChoose();
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择您要修改的信息。");
- return;
- }
- if (d.length > 1) {
- $.messager.alert("系统信息", "只能选择单个记录进行修改。");
- return;
- }
- redirectTo = url + "?controlID=" + rowdata.ControlID + "&MNU=" + mnu;
- $.popupTopWindow('评价控制修改', redirectTo, 650, 420, null, null);
- }
- //删除
- function EvaluationControl_Delete() {
- var d = validChoose().join(',');
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要删除的信息。");
- return;
- }
- $.messager.confirm("系统提示", "您确定要删除选择的信息?", function (r) {
- if (r) {
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/EvaluationControl/Delete', { controlIDs: d }, function (data) {
- if (data == "删除成功。") {
- $.messager.alert("系统提示", data);
- $("#dgEvaluationControlList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data);
- }
- });
- }
- });
- }
- //Excel导出
- function EvaluationControl_Export() {
- $("#formQuery").submit();
- }
- function QueryIsResultDropdownList(data) {
- reload();
- }
- function QueryIsCourseDropdownList(data) {
- reload();
- }
|