<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LogList.aspx.cs" Inherits="CY.WebForm.Pages.sysglobal.LogList" %>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
<head runat="server">
|
<title>日志列表</title>
|
<uc:CMSHead ID="CMSHead1" runat="server" />
|
<script type="text/javascript">
|
|
//查看
|
function onView(keyid) {
|
top.Dialog.open({ URL: "/Pages/sysglobal/LogView.aspx?KeyId=" + keyid, Title: "查看日志", Height: 600,Width:800});
|
}
|
|
//单个删除
|
function onDelete(keyid) {
|
top.Dialog.confirm("确定要删除该记录吗?", function () {
|
window.location = "/Pages/sysglobal/LogList.aspx?deleteKeyIds=" + keyid;
|
});
|
}
|
|
//批量删除
|
function onAllDelete() {
|
|
var deleteKeyIds = "";
|
$(":checkbox").each(
|
function () {
|
if ($(this).is(":checked")) {
|
deleteKeyIds += $(this).val() + ",";
|
}
|
}
|
)
|
if (deleteKeyIds == "") {
|
top.Dialog.alert("请选择要删除的记录", function () {
|
});
|
return;
|
}
|
else {
|
deleteKeyIds = deleteKeyIds.substring(0, deleteKeyIds.length - 1);
|
top.Dialog.confirm("确定要删除选择的记录吗?", function () {
|
window.location = "/Pages/sysglobal/LogList.aspx?deleteKeyIds=" + deleteKeyIds;
|
});
|
}
|
}
|
</script>
|
</head>
|
<body>
|
<form id="form1" runat="server">
|
<div id="scrollContent" >
|
<div class="box1" panelTitle="查询条件" roller="false">
|
<table class="TableNewStyle">
|
<tr>
|
<td>时间:</td>
|
<td style="width: 215px">
|
<input id="txtBeginData" type="text" runat="server" class='date w80px' maxlength='10' />-<input id="txtEndDate" type="text" runat="server" class='date w80px' maxlength='10' />
|
</td>
|
<td><asp:Button ID="btn_Query" Text="查询" runat="server" onclick="btn_Query_Click" /></td>
|
<td><asp:Button ID="btnReSet" Text="重置" runat="server" onclick="btnReSet_Click"/></td>
|
</tr>
|
</table>
|
</div>
|
<div class="box_tool_min padding_top2 padding_bottom2 padding_right5">
|
<div class="center">
|
<div class="left">
|
<div class="right">
|
<div class="padding_top5 padding_left10">
|
<a href="javascript:;" onclick="onAllDelete()"><span class="icon_delete">批量删除</span></a>
|
<div class="box_tool_line"></div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="clear"></div>
|
</div>
|
<asp:Repeater ID="RepLogList" runat="server">
|
<HeaderTemplate>
|
<table class="tableStyle" useClick="false" useCheckBox="true" sortMode="true" id="tbLogList">
|
<tr>
|
<th width="25"></th>
|
<th>时间</th>
|
<th>错误信息</th>
|
<th>异常详情</th>
|
<th width="80">操作</th>
|
</tr>
|
</HeaderTemplate>
|
<ItemTemplate>
|
<tr>
|
<td><input type="checkbox" value='<%#Eval("Id")%>'/></td>
|
<td><%#Eval("Date")%></td>
|
<td><span class="text_slice" style="width:200px;" title='<%#Eval("Message")%>'><%#Eval("Message")%></span></td>
|
<td><span class="text_slice" style="width:200px;" title='<%#Eval("Exception")%>'><%#Eval("Exception")%></span></td>
|
<td class="Operate"><span onclick="onView(<%#Eval("Id")%>)">查看</span><span onclick="onDelete(<%#Eval("Id")%>)">删除</span></td>
|
</tr>
|
</ItemTemplate>
|
<FooterTemplate>
|
</table>
|
</FooterTemplate>
|
</asp:Repeater>
|
<div id="page">
|
<uc:UCPager ID="UCPager1" runat="server"/>
|
</div>
|
</div>
|
</form>
|
</body>
|
</html>
|