74fc0123ddc73f3b72e4d784f2bceda26827a1d6.svn-base 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>用户信息表</title>
  6. <!--框架必需start-->
  7. <%@include file="../../include.jsp"%>
  8. <!--框架必需end-->
  9. <script type="text/javascript" src="/nwyj/page/business/em/report/reportCss/tableStyle.js"></script>
  10. <link href="<%=path%>/page/business/em/report/reportCss/warnningreport.css" rel="stylesheet" type="text/css"/>
  11. <style type="text/css">
  12. body,div,ul,li,p {
  13. margin: 0;
  14. padding: 0;
  15. font-size: 14px;
  16. }
  17. </style>
  18. <script type="text/javascript">
  19. //取得用户真实名字
  20. var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
  21. var realName_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  22. //部门id
  23. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  24. //部门名称
  25. var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
  26. //父部门id
  27. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  28. var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  29. var Corp_names = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
  30. //分割符
  31. var noticeSplitStr = "FNSGEFUW";
  32. var fd_id="<%=request.getParameter("fdid")%>";
  33. var name="<%=new String(java.net.URLDecoder.decode(request.getParameter("deptname")).getBytes("ISO-8859-1"),"utf-8")%>";
  34. $(function() {
  35. $.ajax({
  36. url : $.pathname() + '/ws/sys/NoticeService/getNoticeByid/',
  37. type : 'post',
  38. timeout : 15000,
  39. data : {
  40. name : fd_id
  41. },
  42. dataType : 'json',
  43. async : false,
  44. success : function(data) {
  45. $("#titleShow").html('查看公告');
  46. //$("#FD_OBJECTID").val(fd_id);
  47. $("#TITLE").html(data.TITLE);
  48. $("#TIME").html(data.SUBTIME);
  49. $("#PERSON").html(data.PERSON);
  50. $("#NOTICE_AREA").html(data.NOTICE_AREA_NAME);
  51. var ddd = replaceAll(data.CONTENT, noticeSplitStr, "&");
  52. $("#CONTENT").append(ddd);
  53. //console.log($(window.document.body).height());
  54. //setTimeout(function(){
  55. $(parent.document.body).find("#frmright").css("height",$("#mainContID").height() + 45);
  56. //},1000);
  57. },
  58. error : function(e) {
  59. $.messager.alert('访问服务失败!', '访问服务失败!', 'error');
  60. }
  61. });
  62. });
  63. function setHight() {
  64. //$(parent.document.body).find("#frmright").css("height",$(window.document.body).height()+30);
  65. }
  66. function replaceAll(str1, str2, str3) {
  67. var result = "";
  68. if (str1.indexOf(str2) > -1) {
  69. str1 = str1.split(str2);
  70. for (var i = 0; i < str1.length; i++) {
  71. result += str1[i];
  72. if (i != str1.length - 1) {
  73. result += str3;
  74. }
  75. }
  76. } else {
  77. result = str1;
  78. }
  79. return result;
  80. }
  81. </script>
  82. </head>
  83. <body style="text-align: center;background-color: #f1f1f1;" align="center">
  84. <div style="width: 1000px; margin:0 auto; margin-top:15px ;background-color: white;" id="mainContID">
  85. <p style="height: 40px;" ></p>
  86. <p>
  87. <span style="width: 10%;text-align: left;display: inline-block;margin-left: 30px;" >
  88. <a href="/nwyj/page/system/notice/NoticeList.jsp">
  89. <img alt="返回" title="返回" src="/nwyj/images/temp/back.png"></img>
  90. </a>
  91. </span>
  92. <span style="width: 85%;text-align: left;display: inline-block;" >
  93. <font style="font-weight: bold;font-size: 20px;margin-left: 38%;" id="titleShow"></font>
  94. </span>
  95. </p>
  96. <p style="height: 10px;" ></p>
  97. <table width="960px" class="tableStyle" formMode="view">
  98. <tr>
  99. <td width="150px">标题:</td>
  100. <td colspan="2"><div id="TITLE"></div></td>
  101. </tr>
  102. <tr>
  103. <td width="150px">时间:</td>
  104. <td colspan="2"><div id="TIME"></div></td>
  105. </tr>
  106. <tr>
  107. <td width="150px">提交人:</td>
  108. <td colspan="2"><div id="PERSON"></div></td>
  109. </tr>
  110. <tr>
  111. <td width="150px">消息内容:</td>
  112. <td colspan="2"><div id="CONTENT" style="display: inline-table;"></div></td>
  113. </tr>
  114. </table>
  115. </div>
  116. </body>