12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/MinorGraduationCondition/Edit";
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- function reload() {
- $("#dgMinorGraduationConditionList").cmsXDataTable("load", $.getDataGridParams("dgMinorGraduationConditionList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgMinorGraduationConditionList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.MinorGraduationConditionID);
- });
- return d;
- }
- //修改按钮
- function MinorGraduationCondition_Update() {
- var d = validChoose();
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要修改的信息。");
- return;
- }
- if (d.length > 1) {
- $.messager.alert("系统提示", "只能选择单个记录进行修改。");
- return;
- }
- var redirectTo = url + "?minorGraduationConditionID=" + d + "&MNU=" + mnu;
- $.popupTopWindow('辅修毕业条件修改', redirectTo, 650, 254, null, null);
- }
- //Excel导出
- function MinorGraduationCondition_Export() {
- var d = validChoose().join(',');
- $("[name='SelectedID']").val(d);
- $("#formQuery").submit();
- }
|