0a52227d4a37b2a00a6d4fbc8875519f5ce1dee0.svn-base 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>政府公文</title>
  7. <%@include file="../../../include1.jsp" %>
  8. <!-- 日期选择框start -->
  9. <script type="text/javascript" src="<%=path%>/libs/js/form/datePicker/WdatePicker.js"></script>
  10. <!-- 日期选择框end -->
  11. <script type="text/javascript" src="governmentDocView.js"></script>
  12. <script type="text/javascript" src="/nwyj/page/business/em/report/reportCss/tableStyle.js"></script>
  13. <link href="/nwyj/page/business/em/report/reportCss/warnningreport.css" rel="stylesheet" type="text/css" />
  14. <style type="text/css">
  15. html,body{
  16. width:100%;
  17. height:100%;
  18. overflow:auto;
  19. }
  20. body,div,ul,li,p{
  21. margin:0;
  22. padding:0;
  23. font-size: 14px;
  24. }
  25. .d_ground{
  26. border: 1px solid #cdcaca;
  27. background: white;
  28. width:1000px;
  29. margin:10px auto;
  30. }
  31. .fieldset{
  32. border-style:solid;
  33. border-width:1px;
  34. border-color:#cdcaca;
  35. margin:0px 20px 20px 20px;
  36. width: 935px
  37. }
  38. </style>
  39. <script type="text/javascript">
  40. var fd_id = "<%=request.getParameter("fd_id")%>";
  41. var dlrID;
  42. var obj_old='';
  43. $(function(){
  44. /* //取得用户真实名字的ID
  45. var realName_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  46. //部门id
  47. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  48. //部门名称
  49. var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
  50. //父部门id
  51. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids(); */
  52. //
  53. /* $('#STATE_240').initCanstSelect('BM_AM_DOC_STATE'); //状态
  54. $('#SECRECY_LEVEL_240').initCanstSelect('BM_AM_DOC_SECRECY_LEVEL'); //保密级别 */
  55. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  56. var params = {
  57. classid : '240',
  58. objectID : fd_id
  59. };
  60. // getFileList(fd_id,0);
  61. $.request.query(url,params,function(data){
  62. $('#editForm').ajaxWrite({data:data});
  63. $('#editForm input[name="classid"]').val('240');
  64. $("#CLASSES_240").html(data.CLASSES_240);//分类
  65. $("#DISPATCH_UNIT_240").html(data.DISPATCH_UNIT_240);//发文单位
  66. $("#DOCUMENT_NAME_240").html(data.DOCUMENT_NAME_240);//公文名称
  67. $("#DISPATCH_WORD_SIZE_240").html(data.DISPATCH_WORD_SIZE_240);//发文字号
  68. $("#STATE_240").html(data.STATE_240_SHOW);//状态
  69. $("#SECRECY_LEVEL_240").html(data.SECRECY_LEVEL_240_SHOW);//保密级别
  70. $("#PRINT_DATE_240").html(data.PRINT_DATE_240);//印发时间
  71. $("#DESCRIPTION_240").html(data.DESCRIPTION_240);//简要说明
  72. $("#TYPEIN_PEOPLE_240").html(data.TYPEIN_PEOPLE_240);//录入人
  73. //$("#TYPEIN_PEOPLE_PHONE_NUM_240").html(data.TYPEIN_PEOPLE_PHONE_NUM_240);//录入人联系方式
  74. $("#UNITE_240").html(data.UNITE_240_SHOW);//单位
  75. $("#DEPT_240").html(data.DEPT_240_SHOW);//部门
  76. $("#TYPEIN_TIME_240").html(data.TYPEIN_TIME_240);//录入时间
  77. $("#VERSION_240").html(data.VERSION_240);//历史版本
  78. var isIssue = data.IS_ISSUE_240;
  79. if(isIssue == 1){//已经是发布状态
  80. $("#fabu").hide();
  81. }else if(isIssue == 0){//未发布状态
  82. $("#fabu").show();
  83. }
  84. if(data.SECRECY_LEVEL_240 != "1"){
  85. $("#mimi").hide();
  86. }
  87. dlrID = data.TYPEIN_PEOPLE_ID_240;
  88. obj_old = data.OBJ_FIRST_240;
  89. obj_old00=data.FD_OBJECTID_240;
  90. /*alert(JSON.stringify(data));
  91. alert(obj_old);*/
  92. initVersion(obj_old,obj_old00);
  93. var userID = data.TYPEIN_PEOPLE_ID_240;
  94. getUserInfo(userID);
  95. });
  96. function getUserInfo(userID){
  97. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  98. var params = {
  99. classid : '880',
  100. objectID : userID
  101. };
  102. $.ajax({
  103. url : url,
  104. type : 'post',
  105. timeout : 60000,
  106. data : params,
  107. dataType : 'json',
  108. success : function(data){
  109. /* alert(JSON.stringify(data));
  110. var MOBILE = data.MOBILE_880; //手机
  111. var COMPANY_ID = data.COMPANY_ID_880_SHOW;//所属单位
  112. var ORG_ID = data.ORG_ID_880_SHOW;//所属部门
  113. $("#MOBILE_880").html(MOBILE);
  114. $("#COMPANY_ID_880").html(COMPANY_ID);
  115. $("#ORG_ID_880").html(ORG_ID); */
  116. $("#TYPEIN_PEOPLE_PHONE_NUM_240").html(data.MOBILE_880);//录入人联系方式
  117. /* $("#UNITE_240").html(data.COMPANY_ID_880_SHOW);//单位
  118. $("#DEPT_240").html(data.ORG_ID_880_SHOW);//部门 */
  119. },
  120. error : function(e){
  121. top.Dialog.alert('系统提示信息', '访问服务失败!', 'error');
  122. }
  123. });
  124. }
  125. $('#back').bind('click',function(){
  126. getback();
  127. });
  128. $('#fileDiv').newAsyncFileUpload("",fd_id,0);//附件
  129. $("#goback a img").hover(function(){
  130. $(this).attr("src","/nwyj/images/temp/back_hover.png");
  131. },function(){
  132. $(this).attr("src","/nwyj/images/temp/back.png");
  133. });
  134. setTimeout('setHight()', 200);
  135. });
  136. </script>
  137. </head>
  138. <body style="width: 100%; margin:0 auto; margin-top:15px" align="center" >
  139. <div class="d_ground">
  140. <form id="editForm" method="post">
  141. <br/>
  142. <div align="center"><font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="red" id="" >政府公文</font></div>
  143. <!-- 正文表格 -->
  144. <fieldset class="fieldset">
  145. <legend >基本信息:</legend>
  146. <table class="tableStyle" align="center">
  147. <tr>
  148. <td align="right" width="120px" class="class_color">分类:</td>
  149. <td width="280px"><div id="CLASSES_240" ></div></td>
  150. <td align="right" width="120px" class="class_color">发文单位:</td>
  151. <td width="280px"><div id="DISPATCH_UNIT_240" ></div></td>
  152. </tr>
  153. <tr>
  154. <td align="right" class="class_color"><span>公文名称:</span></td>
  155. <td><div id="DOCUMENT_NAME_240"></div></td>
  156. <td align="right" class="class_color">发文字号:</td>
  157. <td><div id="DISPATCH_WORD_SIZE_240"></div></td>
  158. </tr>
  159. <tr>
  160. <td align="right" class="class_color">状态:</td>
  161. <td><div id="STATE_240"></div></td>
  162. <td align="right" class="class_color">保密级别:</td>
  163. <td><div id="SECRECY_LEVEL_240"></div></td>
  164. </tr>
  165. <tr>
  166. <td align="right" class="class_color">印发日期:</td>
  167. <td><div id="PRINT_DATE_240"></div></td>
  168. <td align="right" class="class_color">文件版本:</td>
  169. <td><div id="VERSION_240"></div></td>
  170. </tr>
  171. <tr>
  172. <td align="right" class="class_color">简要说明:</td>
  173. <td colspan="3"><div id="DESCRIPTION_240" style='word-wrap:break-word; word-break:break-all;display:block;width:97%;'></div></td>
  174. </tr>
  175. </table>
  176. </fieldset>
  177. <fieldset class="fieldset" id="mimi">
  178. <legend>附件信息:</legend>
  179. <table class="tableStyle" align="center">
  180. <tr>
  181. <td width="120px" class="class_color" align="right">上传附件:</td>
  182. <td width="680px" colspan="3"><div id="fileDiv" name="fileDiv"></div></td>
  183. </tr>
  184. </table>
  185. </fieldset>
  186. <fieldset class="fieldset">
  187. <legend>历史版本信息:</legend>
  188. <div class="adding_right5">
  189. <div id="historyMsg"></div>
  190. </div>
  191. </fieldset>
  192. <fieldset class="fieldset" >
  193. <legend>录入人信息:</legend>
  194. <table class="tableStyle" align="center" id="fillForm">
  195. <tr>
  196. <td width="120px" align="right" class="class_color">单位:</td>
  197. <td width="280px"><div name="" id="UNITE_240"></div></td>
  198. <td width="120px" align="right" class="class_color">部门:</td>
  199. <td width="280px"><div name="" id="DEPT_240" ></div></td>
  200. </tr>
  201. <tr>
  202. <td align="right" class="class_color">录入人:</td>
  203. <td><div name="" id="TYPEIN_PEOPLE_240"></div></td>
  204. <td align="right" class="class_color">录入人联系方式:</td>
  205. <td><div name="" id="TYPEIN_PEOPLE_PHONE_NUM_240"></div></td>
  206. </tr>
  207. <tr>
  208. <td align="right" class="class_color">录入时间:</td>
  209. <td colspan="3"><div name="" id="TYPEIN_TIME_240"></div></td>
  210. </tr>
  211. </table>
  212. </fieldset>
  213. </form>
  214. </div>
  215. </body>
  216. </html>