1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/MinorGraduationConditionPackage/Edit";
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- //刷新
- function reload() {
- $("#dgMinorGraduationConditionPackageList").cmsXDataTable("load", $.getDataGridParams("dgMinorGraduationConditionPackageList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgMinorGraduationConditionPackageList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.MinorGraduationConditionPackageID);
- });
- return d;
- }
- //新增
- function MinorGraduationConditionPackage_Add() {
- var d = validChoose();
- if (d.length > 0) {
- $.popupTopWindow('辅修毕业公式复制新增', CMS_SystemConfig.VirtualDirectoryPath + '/MinorGraduationConditionPackage/CopyAdd?minorGraduationConditionPackageID=' + d[0] + '&MNU=' + mnu, 750, 480, null, null);
- } else {
- var redirectTo = url + "?MNU=" + mnu;
- $.popupTopWindow('辅修毕业公式新增', redirectTo, 750, 480, null, null);
- }
- }
- //修改
- function MinorGraduationConditionPackage_Update() {
- var d = validChoose();
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要修改的信息。");
- return;
- }
- if (d.length > 1) {
- $.messager.alert("系统提示", "只能选择单个记录进行修改。");
- return;
- }
- var redirectTo = url + "?minorGraduationConditionPackageID=" + d + "&MNU=" + mnu;
- $.popupTopWindow('辅修毕业公式修改', redirectTo, 750, 480, null, null);
- }
- //删除
- function MinorGraduationConditionPackage_Delete() {
- var d = validChoose().join(',');
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要删除的信息。");
- return;
- }
- $.messager.confirm("系统提示", "您确定要删除选择的信息?", function (r) {
- if (r) {
- $.postWithLoading(CMS_SystemConfig.VirtualDirectoryPath + '/MinorGraduationConditionPackage/Delete', { minorGraduationConditionPackageIDs: d }, function (data) {
- if (data == "删除成功。") {
- $.messager.alert("系统提示", data);
- $("#dgMinorGraduationConditionPackageList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data);
- }
- });
- }
- });
- }
- //查看明细
- function detail(rowindex, rowdata) {
- var redirectTo = url + "?minorGraduationConditionPackageID=" + rowdata.MinorGraduationConditionPackageID + "&Type=1";
- $.popupTopWindow('毕业公式信息', redirectTo, 750, 480, null, null);
- }
- //Excel导出
- function MinorGraduationConditionPackage_Export() {
- var d = validChoose().join(',');
- $("[name='SelectedID']").val(d);
- $("#formQuery").submit();
- }
|