|
|
@@ -81,7 +81,7 @@ var bootstrap = function ($, learun) { |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
learun.layerConfirm('是否确认删除该项!', function (res) { |
|
|
|
if (res) { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/LR_Desktop/MessageRind/DeleteForm', { keyValue: keyValue}, function () { |
|
|
|
learun.deleteForm(top.$.rootUrl + '/LR_Desktop/MessageRind/DeleteForm', { keyValue: keyValue }, function () { |
|
|
|
refreshGirdData(); |
|
|
|
}); |
|
|
|
} |
|
|
@@ -92,21 +92,38 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#lr_print').on('click', function () { |
|
|
|
$('#gridtable').jqprintTable(); |
|
|
|
}); |
|
|
|
// 查看 |
|
|
|
$('#lr_view').on('click', function () { |
|
|
|
var title = $('#gridtable').jfGridValue('TheTitle'); |
|
|
|
var keyValue = $('#gridtable').jfGridValue('InstanceId'); |
|
|
|
//var MessageId = $('#gridtable').jfGridValue('MessageId'); |
|
|
|
var ConnectionUrl = $('#gridtable').jfGridValue('ConnectionUrl'); |
|
|
|
var url = top.$.rootUrl + ConnectionUrl + keyValue; |
|
|
|
learun.layerForm({ |
|
|
|
id: 'formview', |
|
|
|
title: title, |
|
|
|
url: url, |
|
|
|
width: 1000, |
|
|
|
height: 650, |
|
|
|
maxmin: true, |
|
|
|
btn: null, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 初始化列表 |
|
|
|
initGird: function () { |
|
|
|
$('#gridtable').lrAuthorizeJfGrid({ |
|
|
|
url: top.$.rootUrl + '/LR_Desktop/MessageRind/GetPageList', |
|
|
|
headData: [ |
|
|
|
//{ label: "收件人ID", name: "ReceiptId", width: 100, align: "left"}, |
|
|
|
{ label: "收件人姓名", name: "ReceiptName", width: 100, align: "left"}, |
|
|
|
{ label: "收件人姓名", name: "ReceiptName", width: 100, align: "left" }, |
|
|
|
//{ label: "发件人ID", name: "SenderId", width: 100, align: "left"}, |
|
|
|
{ label: "发件人姓名", name: "SenderName", width: 100, align: "left"}, |
|
|
|
{ label: "发送时间", name: "SendTime", width: 100, align: "left"}, |
|
|
|
{ label: "标题", name: "TheTitle", width: 100, align: "left"}, |
|
|
|
{ label: "发件人姓名", name: "SenderName", width: 100, align: "left" }, |
|
|
|
{ label: "发送时间", name: "SendTime", width: 100, align: "left" }, |
|
|
|
{ label: "标题", name: "TheTitle", width: 100, align: "left" }, |
|
|
|
{ label: "内容", name: "TheContent", width: 400, align: "left" }, |
|
|
|
{ |
|
|
|
label: "状态", name: "ReadSigns", width: 100, align: "left", formatter: function (cellvalue) { |
|
|
@@ -114,7 +131,7 @@ var bootstrap = function ($, learun) { |
|
|
|
} |
|
|
|
}, |
|
|
|
], |
|
|
|
mainId:'MessageId', |
|
|
|
mainId: 'MessageId', |
|
|
|
isPage: true |
|
|
|
}); |
|
|
|
}, |
|
|
@@ -122,12 +139,12 @@ var bootstrap = function ($, learun) { |
|
|
|
param = param || {}; |
|
|
|
param.StartTime = startTime; |
|
|
|
param.EndTime = endTime; |
|
|
|
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); |
|
|
|
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); |
|
|
|
} |
|
|
|
}; |
|
|
|
refreshGirdData = function () { |
|
|
|
$('#gridtable').jfGridSet('reload'); |
|
|
|
}; |
|
|
|
page.init(); |
|
|
|
|
|
|
|
|
|
|
|
} |