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.

172 lines
5.4 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NoticeLook.aspx.cs" Inherits="TradeManage.SysManage.NoticeLook" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
<title>通知公告</title>
<link rel="stylesheet" type="text/css" href="../themes/New.css" />
<link href="../themes/default/easyui.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../themes/icon.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/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/DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
var NoticeId = 0;
var WindowLoadModel = new WindowLoad();
$(document).ready(function () {
WindowLoadModel.ApplicationPath = "../";
WindowLoadModel.ControlID = "WindowLoad";
WindowLoadModel.Isbgiframe = true;
WindowLoadModel.Load();
ajaxInit(WindowLoadModel);
NoticeId = $.url.param("NoticeId");
if (NoticeId == undefined) {
NoticeId = 0;
}
$("#cmdBack").bind("click", function () {
window.location.href = "NoticeList.aspx";
});
if (NoticeId > 0) {
GetNoticeModel();
}
});
function GetNoticeModel() {
var param = new Object();
param.Id = NoticeId;
$.ajax({
url: "SysManageService.asmx/GetNoticeModel",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
dataType: "json",
success: function (data) {
if (data.d != null) {
$("#txt_title").html(data.d.Title);
$("#txt_sendname").html(data.d.SendName);
$("#txtContent").html(data.d.NoticeContent);
$("#txtContentSimple").html(data.d.SimpContent);
if (data.d.StartDate != null)
$("#txt_sdate").html(data.d.StartDate.localeFormat("yyyy-MM-dd HH:mm"));
if (data.d.EndDate != null)
$("#txt_edate").html(data.d.EndDate.localeFormat("yyyy-MM-dd HH:mm"));
if (data.d.InDate != null)
$("#txt_indate").html(data.d.InDate.localeFormat("yyyy-MM-dd"));
}
}
});
}
</script>
</head>
<body class="headbody">
<div class="title_ico">
通知公告</div>
<table border="1" cellpadding="0" cellspacing="0" style="width:99%;" align="center" class="tableAll">
<tr>
<td style="width:140px" class="f1">
<font color="red" style="font-weight:bolder">*</font> 主题:
</td>
<td colspan="3">
<a id="txt_title"></a>
</td>
</tr>
<tr>
<td class="f1">
<font color="red" style="font-weight:bolder">*</font>
发布人(部门):</td>
<td> <a id="txt_sendname"></a>
</td> <td style="width:120px" class="f1">
<font color="red" style="font-weight:bolder">*</font>
发布日期:
</td>
<td>
<a id="txt_indate"></a>
</td>
</tr>
<tr>
<td class="f1">
&nbsp;首页显示时效:</td>
<td colspan="3"> <a id="txt_sdate"></a>- <a id="txt_edate"></a>
</td>
</tr>
<tr>
<td style="width:120px" class="f1">
通知内容:</td>
<td colspan="3"><div id="txtContent" style="width:100%;height:350px;overflow:auto"></div> </td>
</tr>
<tr>
<td style="width:120px" class="f1">
首页显示内容概要:
</td>
<td colspan="3"><div id="txtContentSimple"></div>
</td>
</tr>
<tr>
<td colspan="4" align="center">
<input id="cmdBack" type="button" value="返 回" class="btnClass btnClassBack" />&nbsp;
</td>
</tr>
</table>
</body>
</html>