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.
220 lines
7.5 KiB
Plaintext
220 lines
7.5 KiB
Plaintext
1 month ago
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeaveWord.aspx.cs" Inherits="TradeManage.SysManage.LeaveWord" %>
|
||
|
|
||
|
|
||
|
<!DOCTYPE html>
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head id="Head1" runat="server">
|
||
|
<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" />
|
||
|
<link rel="stylesheet" type="text/css" href="../Scripts/fancybox/jquery.fancybox-1.3.4.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/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/fancybox/jquery.fancybox-1.3.4.js" type="text/javascript"></script>
|
||
|
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
|
||
|
var datagrid1 = new nblf.ui.DataGrid("DataGrid1");
|
||
|
var PageIndex = 1;
|
||
|
var PageSize = 20;
|
||
|
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();
|
||
|
});
|
||
|
$("#rad_type0,#rad_type1").bind("click", function() {
|
||
|
|
||
|
|
||
|
ReadData();
|
||
|
});
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
ReadData();
|
||
|
});
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
function ReadData() {
|
||
|
|
||
|
|
||
|
|
||
|
var param = new Object();
|
||
|
|
||
|
param.Name = $('#txt_Name').val();
|
||
|
param.Title = $('#txt_title').val();
|
||
|
param.PageIndex = datagrid1.Get_PageIndex();
|
||
|
param.PageSize = datagrid1.Get_PageSize();
|
||
|
param.Sdate = null;
|
||
|
param.Edate = null;
|
||
|
param.Type =0;
|
||
|
if($("#rad_type0").is(":checked")==true)
|
||
|
{
|
||
|
param.Type =1;
|
||
|
|
||
|
}
|
||
|
if ($("#rad_type1").is(":checked") == true)
|
||
|
{
|
||
|
param.Type =2;
|
||
|
|
||
|
}
|
||
|
|
||
|
if ($("#txt_SDate").val() != "")
|
||
|
param.Sdate = $("#txt_SDate").val();
|
||
|
|
||
|
if ($("#txt_EDate").val() != "")
|
||
|
param.Edate = $("#txt_EDate").val();
|
||
|
WindowLoadModel.Show();
|
||
|
|
||
|
$.ajax({
|
||
|
url: "SysManageService.asmx/GetListOpenMess",
|
||
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
||
|
success: function(data) {
|
||
|
WindowLoadModel.Hide();
|
||
|
|
||
|
datagrid1.Set_RowCount(data.d.RowCount);
|
||
|
datagrid1.DataBind(data.d.DataSource);
|
||
|
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
|
||
|
|
||
|
//#region 初始化DataGrid
|
||
|
function CreateDataGrid() {
|
||
|
|
||
|
var col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "发送人";
|
||
|
col.Width = "100px";
|
||
|
col.CreateFieldSpan("SendName", "");
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
var col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "发送时间";
|
||
|
col.Width = "120px";
|
||
|
col.CellTemplate = "<a>{Bind OpenDate,yyyy-MM-dd HH时mm分}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
var col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "接收人";
|
||
|
|
||
|
col.CellTemplate = "<a>{Bind RevName}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
var col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "消息内容";
|
||
|
// col.Width = "100px";
|
||
|
col.CellTemplate = "<a>{Bind Content}</a>";
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
var col = new nblf.ui.DataGridColumn();
|
||
|
col.HeaderText = "已读状态";
|
||
|
// col.Width = "100px";
|
||
|
col.CellTemplate = "<a>{Bind ReadState}</a>";
|
||
|
|
||
|
Array.add(datagrid1.Columns, col);
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
datagrid1.DataPager.PageSize = 20;
|
||
|
datagrid1.IsFixHeader = false;
|
||
|
datagrid1.ShowIndexColumn = false;
|
||
|
datagrid1.AllowPaging = true;
|
||
|
//datagrid1.Height = "260px";
|
||
|
datagrid1.SelectMode = nblf.ui.SelectMode.None;
|
||
|
datagrid1.Init();
|
||
|
datagrid1.add_PageIndexChanged(function() { ReadData(); });
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
</script>
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<div class="title_ico">
|
||
|
留言管理
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr>
|
||
|
<td>
|
||
|
<table border="2" cellpadding="0" cellspacing="0" style="width: 99%;" class="tableAll">
|
||
|
<tr>
|
||
|
<td colspan="5">
|
||
|
<input id="rad_type0" checked="true" name="mail" type="radio" /><label for="rad_type0"
|
||
|
style="font-size: 12px;">我的收到的消息</label>
|
||
|
<input id="rad_type1" name="mail" type="radio" /><label for="rad_type1" style="font-size: 12px;">我发的消息</label>
|
||
|
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td width="12%" class="f1">
|
||
|
发送人/接收人:
|
||
|
</td>
|
||
|
<td>
|
||
|
<input id="txt_Name" type="text" /></td>
|
||
|
|
||
|
<td width="12%" class="f1">
|
||
|
内容: </td>
|
||
|
<td>
|
||
|
<input id="txt_title" type="text" /></td>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
|
||
|
|
||
|
<td width="12%" class="f1">
|
||
|
留言时间: </td>
|
||
|
<td colspan="3">
|
||
|
<input id="txt_SDate" type="text" onfocus="WdatePicker()" />-<input id="txt_EDate"
|
||
|
type="text" onfocus="WdatePicker()" />
|
||
|
</td>
|
||
|
<td>
|
||
|
<input id="btn_sch" type="button" class="btnClass btnClassFind" value="查询" />
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top" colspan="5">
|
||
|
<div id="DataGrid1" class="DataGridStyle" style="width: 100%;">
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
</body>
|
||
|
</html>
|
||
|
|
||
|
|