|
|
@@ -73,6 +73,10 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#lr_edit').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('MPId'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
if (keyValue.indexOf(',') != -1) { |
|
|
|
learun.alert.warning("只能选择一条记录进行编辑!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
learun.layerForm({ |
|
|
|
id: 'form', |
|
|
|
title: '编辑', |
|
|
@@ -102,6 +106,10 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#lr_uploadView').on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('MPId'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
if (keyValue.indexOf(',') != -1) { |
|
|
|
learun.alert.warning("只能选择一条记录进行编辑!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
learun.layerFormForPercent({ |
|
|
|
id: 'form', |
|
|
|
title: '提交材料', |
|
|
@@ -119,6 +127,10 @@ var bootstrap = function ($, learun) { |
|
|
|
$("#lr_statistics").on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('MPId'); |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
if (keyValue.indexOf(',') != -1) { |
|
|
|
learun.alert.warning("只能选择一条记录进行编辑!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
learun.layerFormForPercent({ |
|
|
|
id: 'form', |
|
|
|
title: '访问情况统计', |
|
|
@@ -236,7 +248,8 @@ var bootstrap = function ($, learun) { |
|
|
|
], |
|
|
|
mainId: 'ID', |
|
|
|
sidx: 'cast(MPMonth as int) asc', |
|
|
|
isPage: true |
|
|
|
isPage: true, |
|
|
|
isMultiselect: true |
|
|
|
}); |
|
|
|
page.search(); |
|
|
|
}, |
|
|
|