123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/SpecialtyAuditing/Edit";
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- //刷新
- function reload() {
- $("#dgSpecialtyAuditingList").cmsXDataTable("load", $.getDataGridParams("dgSpecialtyAuditingList"));
- }
- //获取选中的数据All
- function validChooseAll() {
- var d = [];
- $.each($("#dgSpecialtyAuditingList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgSpecialtyAuditingList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.SpecialtyApplyID);
- });
- return d;
- }
- //查看
- function edit(rowindex, rowdata) {
- var redirectTo = url + "?specialtyApplyID=" + rowdata.SpecialtyApplyID + "&MNU=" + mnu + "&type=detail";
- $.popupTopWindow('专业审核信息', redirectTo, 680, 365, null, null);
- }
- //删除
- function SpecialtyAuditing_Delete() {
- var d = validChoose().join(',');
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要删除的信息。");
- return;
- }
- $.messager.confirm("系统提示", "您确定要删除选择的信息?", function (r) {
- if (r) {
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/SpecialtyAuditing/Delete', { specialtyApplyIDs: d }, function (data) {
- if (data.IsSuccess) {
- $.messager.alert("系统提示", data.Message);
- $("#dgSpecialtyAuditingList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data.Message);
- }
- });
- }
- });
- }
- //审核
- function SpecialtyAuditing_Approve() {
- var specialtyApplyIDs = validChoose();
- if (specialtyApplyIDs.length == 0) {
- $.messager.alert("系统提示", "请选择您要审核的信息。");
- return;
- }
- if (specialtyApplyIDs.length > 1) {
- //批量审核
- var approveID = specialtyApplyIDs[0];
- $.popupTopWindow('审核信息', CMS_SystemConfig.VirtualDirectoryPath + '/Common/ApproveHandler?TableName=CF_SpecialtyApply&FormID=' + approveID,
- 400, 300, SpecialtyAuditing_ApproveConfirm);
- }
- else {
- var specialtyApplyID = specialtyApplyIDs;
- //单个审核
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + "/SpecialtyAuditing/Approve?MNU=" + mnu + "&specialtyApplyID=" + specialtyApplyID;
- $.popupTopWindow('专业审核', redirectTo, 680, 400, null, null);
- }
- }
- //确定(审核)
- function SpecialtyAuditing_ApproveConfirm(action) {
- if (!action) {
- return;
- }
- if (action.ActionID == "") {
- return;
- }
- var approveIDs = validChoose().join(',');
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + "/SpecialtyAuditing/ApproveConfirm", { specialtyApplyIDs: approveIDs, actionID: action.Action, comment: action.Comment },
- function (data) {
- if (data.IsSuccess) {
- reload();
- }
- $.messager.alert("系统提示", data.Message);
- }, 'json');
- }
- //流程步骤详细信息(暂时不用)
- function editState(rowindex, rowdata) {
- redirectTo = CMS_SystemConfig.VirtualDirectoryPath + "/SpecialtyAuditing/ApproveWorkflowList?specialtyApplyID=" + rowdata.SpecialtyApplyID + "&MNU=" + mnu;
- $.popupTopWindow("审核历史", redirectTo, 800, 600, null, null);
- }
- //Excel导出
- function SpecialtyAuditing_Export() {
- $("#formQuery").submit();
- }
- //联动查询
- function queryCampus(data) {
- var campusID = $("#CampusDropdown").combogridX("getValue");
- var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|'})";
- $("#CollegeDropdown").combogridX("reload", eval(jsonString));
- reload();
- }
- function queryCollege(data) {
- var campusID = $("#CampusDropdown").combogridX("getValue");
- var collegeID = $("#CollegeDropdown").combogridX("getValue");
- var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|";
- jsonString += "CollegeDropdown|*|" + collegeID + "|@|'})";
- $("#CollegeDropdown").combogridX("reload", eval(jsonString));
- reload();
- }
- function queryGrade(data) {
- reload();
- }
- function queryStandard(data) {
- reload();
- }
|