123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/CheckingResult/Edit";
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- //刷新
- function reload() {
- $("#dgCheckingResultList").cmsXDataTable("load", $.getDataGridParams("dgCheckingResultList"));
- }
- //获取选中的数据All
- function validChooseAll() {
- var d = [];
- $.each($("#dgCheckingResultList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgCheckingResultList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.StudentRecordChangeHistoryID);
- });
- return d;
- }
- //撤消
- function CheckingResult_Cancel() {
- var id = validChoose().join(',');
- if (id == "") {
- $.messager.alert("系统提示", "请选择您要撤消的信息。");
- return;
- }
- var d = validChooseAll();
- if ($.grep(d, function (v, i) { return v.ApprovalStatus == startStatusID || v.ApprovalStatus == backpointStatusID || v.ApprovalStatus == endStatusID; }).length > 0) {
- $.messager.alert("系统提示", "只能对待审状态的信息进行撤消。");
- return;
- }
- $.messager.confirm("系统提示", "您确定要撤消选择的信息?", function (r) {
- if (r) {
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/CheckingResult/Cancel', { studentRecordChangeHistoryIDs: id }, function (data) {
- if (data.IsSuccess) {
- $.messager.alert("系统提示", data.Message);
- $("#dgCheckingResultList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data.Message);
- }
- });
- }
- });
- }
- //设置列颜色为红色
- function SetRedColumn(index, row, value) {
- return " <span style=\"color: red;\">" + value + "</span>";
- }
- //Excel导出
- function CheckingResult_Export() {
- $("#formQuery").submit();
- }
|