12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- function reload() {
- $("#dgScoreParameterCollegeSettingList").cmsXDataTable("load", $.getDataGridParams("dgScoreParameterCollegeSettingList"));
- }
- var mnu = "";
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgScoreParameterCollegeSettingList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.ScoreParameterCollegeSettingID);
- });
- return d;
- }
- function showDetail(rowindex, rowdata) {
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/ScoreParameterCollegeSetting/Edit?action=view&MNU=" + mnu;
- url += "&scoreParameterCollegeSettingID=" + rowdata.ScoreParameterCollegeSettingID;
- $.popupTopWindow('详细公式设置', url, window.screen.availWidth, window.screen.availHeight - 60);
- }
- function ScoreParameterCollegeSetting_Add() {
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/ScoreParameterCollegeSetting/Edit?action=edit&MNU=" + mnu;
- $.popupTopWindow('详细公式设置', url, window.screen.availWidth, window.screen.availHeight - 60, reload);
- }
- function ScoreParameterCollegeSetting_Edit() {
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/ScoreParameterCollegeSetting/Edit?action=edit&MNU=" + mnu;
- var selectedIDs = validChoose();
- if (selectedIDs.length == 0) {
- $.messager.alert("系统提示", "请选择您要修改的设置。");
- return;
- }
- else if (selectedIDs.length > 1) {
- $.messager.alert("系统提示", "只能对单个信息进行修改。");
- return;
- }
- url += "&scoreParameterCollegeSettingID=" + selectedIDs[0];
- $.popupTopWindow('详细公式设置', url, window.screen.availWidth, window.screen.availHeight - 60, reload);
- }
- function ScoreParameterCollegeSetting_Delete() {
- var url = CMS_SystemConfig.VirtualDirectoryPath + "/ScoreParameterCollegeSetting/Delete";
- var selectedIDs = validChoose();
- if (selectedIDs.length == 0) {
- $.messager.alert("系统提示", "请选择您要删除的设置。");
- return;
- }
- $.messager.confirm("系统提示", "您确定要删除该设置?", function (r) {
- if (r) {
- $.postWithLoading(url, { scoreParameterCollegeSettingIDString: selectedIDs.join(',') }, function (data) {
- $.messager.alert("系统提示", data.Message);
- if (data.IsSuccess) {
- reload();
- }
- });
- }
- });
- }
|