You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
180 lines
6.8 KiB
Plaintext
180 lines
6.8 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LogList.aspx.cs" Inherits="TradeManage.SysManage.LogList" %>
|
|
|
|
|
|
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>日志查询</title>
|
|
<link rel="stylesheet" type="text/css" href="../themes/default/easyui.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/icon.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/New.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/DataGrid.css" />
|
|
<script src="../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DataGrid.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DataPager.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DateBox.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.bgiframe.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/Global.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.url.js" type="text/javascript"></script>
|
|
<script src="../Scripts/WindowLoad.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.cookies.min.js" type="text/javascript"></script>
|
|
<link rel="stylesheet" type="text/css" href="../Scripts/fancybox/jquery.fancybox-1.3.4.css"
|
|
media="screen" />
|
|
<script type="text/javascript" src="../Scripts/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
|
|
<script type="text/javascript" src="../Scripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
|
|
<script src="../Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
|
|
<script type="text/javascript">
|
|
|
|
var datagrid1 = new nblf.ui.DataGrid("DataGrid1");
|
|
var UserId = "<%=Session["UserId"]%>";
|
|
var WindowLoadModel = new WindowLoad();
|
|
|
|
$(document).ready(function () {
|
|
WindowLoadModel.ApplicationPath = "../";
|
|
WindowLoadModel.ControlID = "WindowLoad";
|
|
WindowLoadModel.Isbgiframe = true;
|
|
WindowLoadModel.Load();
|
|
ajaxInit(WindowLoadModel);
|
|
|
|
|
|
CreateDataGrid();
|
|
|
|
|
|
$("#btn_sch").bind("click", function () {
|
|
|
|
ReadData();
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
//#endregion
|
|
//#region 初始化DataGrid
|
|
function CreateDataGrid() {
|
|
|
|
var col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "日志类型";
|
|
col.CellTemplate = "<div>{Bind LogType}</div>";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "日志内容";
|
|
col.CellTemplate = "<div style='width:300px;word-break:break-all;'>{Bind LogContext}</div>";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "操作日期";
|
|
col.CellTemplate = "<a>{Bind InDate,yyyy-MM-dd HH:mm}</a>";
|
|
Array.add(datagrid1.Columns, col);
|
|
col = new nblf.ui.DataGridColumn();
|
|
col.HeaderText = "操作人";
|
|
col.CellTemplate = "<span>{Bind InName}</span>";
|
|
col.Width = "100px";
|
|
Array.add(datagrid1.Columns, col);
|
|
|
|
datagrid1.SetPageSize(20);
|
|
datagrid1.SetPageIndex(1);
|
|
datagrid1.IsFixHeader = false;
|
|
datagrid1.ShowIndexColumn = false;
|
|
datagrid1.AllowPaging = true;
|
|
datagrid1.Width = "100%";
|
|
datagrid1.SelectMode = nblf.ui.SelectMode.None;
|
|
datagrid1.Init();
|
|
datagrid1.add_PageIndexChanged(function () { ReadData(); });
|
|
|
|
}
|
|
|
|
|
|
|
|
//#endregion
|
|
//#region 读取数据
|
|
function ReadData() {
|
|
var param = new Object();
|
|
|
|
|
|
//param.LogType = $("#select_logtype").val();
|
|
param.Content = $("#txt_title").val();
|
|
param.SDate = $("#txt_SDate").val();
|
|
param.EDate = $("#txt_EDate").val();
|
|
|
|
param.PageSize = datagrid1.Get_PageSize();
|
|
param.PageIndex = datagrid1.Get_PageIndex();
|
|
var url = "SysManageService.asmx/GetListJC_Log1";
|
|
if ($("#select_logtype").val() == "2")
|
|
url = "SysManageService.asmx/GetListJC_Log2";
|
|
else
|
|
if ($("#select_logtype").val() == "3")
|
|
url = "SysManageService.asmx/GetListJC_Log3";
|
|
else
|
|
if ($("#select_logtype").val() == "4")
|
|
url = "SysManageService.asmx/GetListJC_Log4";
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: url,
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
datagrid1.Set_RowCount(data.d.RowCount);
|
|
datagrid1.DataBind(data.d.DataSource);
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
//#endregion
|
|
|
|
</script>
|
|
|
|
</head>
|
|
<body class="headbody">
|
|
<form id="form1" runat="server">
|
|
<div class="title_ico">
|
|
日志查询
|
|
</div>
|
|
|
|
<table id="tb1" class="tableAll" style="width:100%;" >
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="f1" width="13%">日志类型:</td>
|
|
<td>
|
|
<select id="select_logtype" class="selectClass" style="width: 120px;" name="D1">
|
|
<option value="1">订单日志</option>
|
|
<option value="2">批次日志</option>
|
|
<option value="4">货物信息日志</option>
|
|
</select></td> <td class="f1" style="width:10%; height: 15px;">
|
|
内容:</td>
|
|
<td>
|
|
<input id="txt_title" class="editTextbox" style="width:120px;" type="text" /></td> <td class="f1" style="width:10%; height: 15px;">
|
|
操作日期:</td>
|
|
<td>
|
|
<input id="txt_SDate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="editTextbox" style="width:120px;" type="text" />--<input id="txt_EDate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="editTextbox" style="width:120px;" type="text" /></td>
|
|
<td>
|
|
<input id="btn_sch" class="btnClass btnClassFind" type="button" value="查询" /></td>
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td valign="top" colspan="7">
|
|
<div id="DataGrid1" class="DataGridStyle"></div>
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</body>
|
|
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|