| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/View.master" AutoEventWireup="true" CodeFile="Notice_win.aspx.cs" Inherits="ENotice_Notice_win" %>
- <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
- <script type="text/javascript">
- var noticeData = null;
- var isTimeEnd = false;
- var noticeIds = "";
- function clickToRead() {
- if (!isTimeEnd) {
- mini.showTips({
- content: "查看通知不足1分钟",
- timeout: 3000
- });
- return;
- }
- postAjax("set_erp_readnotice", "ids=" + noticeIds, function (data) {
- closeFn();
- });
- }
- $(function () {
- if (noticeData != null && noticeData.length > 0) {
- console.log("noticedata", noticeData);
- var ahtml = "";
- var ids = "";
- ahtml += ("<a style=\"width:100px;height:30px;text-align:center;line-height:30px;margin-left:90%;margin-top:1px;\" class=\"mini-button mini-button-primary\" iconcls=\"icon-ok\" onclick=\"clickToRead()\">已读通知</a>");
- for (var item of noticeData) {
- ids += item.ID;
- ids += ",";
- ahtml += ("<div style=\"font-size:20px;color:#000000; margin-top:15px;line-height:25px; \">标题:" + item.Title +"<span style=\"color:red;\">(" +item.NoticeType + ")</span>"+"</div>");
- ahtml += ("<div style=\"font-size:10px;color:lightgray; margin-top:5px;line-height:15px; \">来自:" + item.senderName + " " + formatCommonDate(item.CreatedTime) + "</div>");
- var conStr = item.Con;
- conStr = decodeURIComponent(conStr);
- ahtml += ("<div style=\"font-size:14px;color:#3C3C3C; margin-top:5px;line-height:25px;overflow:hidden;word-break:break-all; \">内容:" + conStr + "</div>");
- }
- noticeIds = ids;
- $("#notice_con").html(ahtml);
- }
- isTimeEnd = false;
- setTimeout(function () {
- isTimeEnd = true;
- },60000)
-
- });
-
- </script>
- <style type="text/css">
- .win_tb {
- width: 96%;
- margin-left: auto;
- margin-right: auto;
- margin-top: 10px;
- background-color: #dedede;
- }
- .win_tb td {
- height: 36px;
- background-color: #fff;
- font-size: 14px;
- padding: 5px;
- }
- .win_tb input[type=text] {
- width: 90%;
- height: 24px;
- font-size: 14px;
- }
- .win_tb input[type=checkbox] {
- width: 18px;
- height: 18px;
- }
- .win_tb select {
- font-size: 14px;
- height: 30px;
- padding: 0px 5px;
- }
- .win_tb .td1 {
- color: #666;
- background-color: #F8F8F8;
- text-align: center;
- }
- .win_tb .td2 {
- }
- .word_tui {
- border-radius: 50%;
- background-color: red;
- color: white;
- font-size: 14px;
- text-align: center;
- padding: 3px;
- margin-left: 5px;
- }
- .word_shou {
- background-color: saddlebrown;
- }
- .word_green {
- background-color: forestgreen;
- }
- .state_word{
- width:50px;
- display:flex;
- flex-direction:row;
- padding:3px 6px 3px 6px;
- text-align:center;
- font-weight:bold;
- color:white;
- background-color:forestgreen;
- }
- .mini-grid-cell-nowrap {
- overflow: hidden;
- /* white-space: nowrap;
- text-overflow: ellipsis; */
- word-break: keep-all;
- word-wrap: break-word;
- white-space: normal;
- }
- /*.win_tb input{height:20px;}
- .win_tb .td1{height:35px;width:120px;font-size:12px;text-align:center;}
- .win_tb .td2{height:35px;width:280px;font-size:12pt;padding-left:5px;text-align:left;}*/
- </style>
- </asp:Content>
- <asp:Content ID="Content2" ContentPlaceHolderID="btn" runat="Server">
- <div id="notice_con" style="width:auto; display:flex;flex-direction:column;line-height:26px;padding:10px;">
- </div>
- </asp:Content>
|