123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <%@page contentType="text/html" pageEncoding="UTF-8"%>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>用户信息表</title>
- <!--框架必需start-->
- <%@include file="../../include.jsp"%>
- <!--框架必需end-->
- <script type="text/javascript" src="/nwyj/page/business/em/report/reportCss/tableStyle.js"></script>
- <link href="<%=path%>/page/business/em/report/reportCss/warnningreport.css" rel="stylesheet" type="text/css"/>
- <style type="text/css">
- body,div,ul,li,p {
- margin: 0;
- padding: 0;
- font-size: 14px;
- }
- </style>
- <script type="text/javascript">
- //取得用户真实名字
- var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
- var realName_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- //部门id
- var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
- //部门名称
- var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
- //父部门id
- var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
- var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- var Corp_names = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
-
- //分割符
- var noticeSplitStr = "FNSGEFUW";
-
- var fd_id="<%=request.getParameter("fdid")%>";
- var name="<%=new String(java.net.URLDecoder.decode(request.getParameter("deptname")).getBytes("ISO-8859-1"),"utf-8")%>";
- $(function() {
-
- $.ajax({
- url : $.pathname() + '/ws/sys/NoticeService/getNoticeByid/',
- type : 'post',
- timeout : 15000,
- data : {
- name : fd_id
- },
- dataType : 'json',
- async : false,
- success : function(data) {
- $("#titleShow").html('查看公告');
- //$("#FD_OBJECTID").val(fd_id);
- $("#TITLE").html(data.TITLE);
- $("#TIME").html(data.SUBTIME);
- $("#PERSON").html(data.PERSON);
- $("#NOTICE_AREA").html(data.NOTICE_AREA_NAME);
- var ddd = replaceAll(data.CONTENT, noticeSplitStr, "&");
- $("#CONTENT").append(ddd);
- //console.log($(window.document.body).height());
- //setTimeout(function(){
- $(parent.document.body).find("#frmright").css("height",$("#mainContID").height() + 45);
- //},1000);
- },
- error : function(e) {
- $.messager.alert('访问服务失败!', '访问服务失败!', 'error');
- }
- });
- });
- function setHight() {
- //$(parent.document.body).find("#frmright").css("height",$(window.document.body).height()+30);
- }
- function replaceAll(str1, str2, str3) {
- var result = "";
- if (str1.indexOf(str2) > -1) {
- str1 = str1.split(str2);
- for (var i = 0; i < str1.length; i++) {
- result += str1[i];
- if (i != str1.length - 1) {
- result += str3;
- }
- }
- } else {
- result = str1;
- }
- return result;
- }
- </script>
- </head>
- <body style="text-align: center;background-color: #f1f1f1;" align="center">
- <div style="width: 1000px; margin:0 auto; margin-top:15px ;background-color: white;" id="mainContID">
- <p style="height: 40px;" ></p>
- <p>
- <span style="width: 10%;text-align: left;display: inline-block;margin-left: 30px;" >
- <a href="/nwyj/page/system/notice/NoticeList.jsp">
- <img alt="返回" title="返回" src="/nwyj/images/temp/back.png"></img>
- </a>
- </span>
- <span style="width: 85%;text-align: left;display: inline-block;" >
- <font style="font-weight: bold;font-size: 20px;margin-left: 38%;" id="titleShow"></font>
- </span>
- </p>
- <p style="height: 10px;" ></p>
- <table width="960px" class="tableStyle" formMode="view">
-
- <tr>
- <td width="150px">标题:</td>
- <td colspan="2"><div id="TITLE"></div></td>
- </tr>
- <tr>
- <td width="150px">时间:</td>
- <td colspan="2"><div id="TIME"></div></td>
- </tr>
- <tr>
- <td width="150px">提交人:</td>
- <td colspan="2"><div id="PERSON"></div></td>
- </tr>
-
- <tr>
- <td width="150px">消息内容:</td>
- <td colspan="2"><div id="CONTENT" style="display: inline-table;"></div></td>
- </tr>
- </table>
- </div>
-
- </body>
|