48c4c580a70576fb26418ade09113a62f2049f1d.svn-base 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  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. <link rel="stylesheet" type="text/css" href="/nwyj/page/business/am/colorpropretice/colorpropretice.css" />
  11. <!-- 日期选择框end -->
  12. <script type="text/javascript" src="<%=path%>/scripts/business/am/fileManager/governmentDoc/governmentDocAdd.js"></script>
  13. <script type="text/javascript">
  14. //var fd_id = "<%=request.getParameter("fd_id")%>";
  15. $(function(){
  16. //单位ID getCorp_ids
  17. var comp_id = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  18. //部门id
  19. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  20. //部门名称
  21. var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
  22. //父部门id
  23. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  24. //取登录用户信息
  25. var userName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();//登录用户姓名
  26. var realName_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();//取得用户真实名字的ID
  27. $("#TYPEIN_PEOPLE_240").html(userName);
  28. $("#TYPEIN_PEOPLE").val(userName);
  29. $("#TYPEIN_PEOPLE_ID_240").val(realName_ID)
  30. //用户手机号
  31. var getMobile = top.com.sinosoft.lz.system.user.LoginInfo.getMobile();
  32. if(getMobile==undefined){
  33. $("#TYPEIN_PEOPLE_PHONE_NUM_240").html("暂无手机号码");//用于显示
  34. //$("#TYPEIN_PEOPLE_PHONE_NUM").val("暂无手机号码");//用于保存
  35. }else{
  36. $("#TYPEIN_PEOPLE_PHONE_NUM_240").html(getMobile);//用于显示
  37. //$("#TYPEIN_PEOPLE_PHONE_NUM").val(getMobile);//用于保存
  38. }
  39. //用户所属单位
  40. var getCorp_names = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
  41. $("#UNITE_240").html(getCorp_names);//用于显示
  42. $("#UNITE").val(comp_id);//用于保存
  43. //用户所属部门
  44. var getDeptnames = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
  45. $("#DEPT_240").html(getDeptnames);//用于显示
  46. $("#DEPT").val(deptId);//用于保存
  47. //$('#fileDiv').getAsyncUploadFileContent();
  48. $("#fileDiv").newAsyncFileUpload("");//附件
  49. $('#STATE_240').initCanstSelect('BM_AM_DOC_STATE'); //状态
  50. $('#SECRECY_LEVEL_240').initCanstSelect('BM_AM_DOC_SECRECY_LEVEL'); //保密级别
  51. var TYPEIN_TIME = getDateTime();
  52. $("#TYPEIN_TIME_240").val(TYPEIN_TIME);
  53. /* var get_time = getTime();
  54. $("#VERSION_240").val(get_time); */
  55. //alert($("#VERSION_240").val());
  56. $("#CLASSES_240").val("政府公文");
  57. $("#STATE_240").val("有效");
  58. $("#back").hover(function(){
  59. $(this).attr("src","/nwyj/images/temp/back_hover.png");
  60. },function(){
  61. $(this).attr("src","/nwyj/images/temp/back.png");
  62. });
  63. });
  64. //获得当前系统时间
  65. function getDateTime(){
  66. var s="";
  67. var d = allGetServerTime();
  68. var vYear = d.getFullYear();
  69. var vMon = d.getMonth() + 1;
  70. var vDay = d.getDate();
  71. var h = d.getHours();
  72. var m = d.getMinutes();
  73. var se = d.getSeconds();
  74. s=vYear+"-"+(vMon<10 ? "0" + vMon : vMon)+"-"+(vDay<10 ? "0"+ vDay : vDay)/* +" "+(h<10 ? "0"+ h : h)+":"+(m<10 ? "0" + m : m) */;
  75. return s;
  76. }
  77. function getTime(){
  78. //取系统时间:年月日时分秒
  79. var date = allGetServerTime();
  80. var seperator1 = "";
  81. var seperator2 = "";
  82. var month = date.getMonth() + 1;
  83. var strDate = date.getDate();
  84. if (month >= 1 && month <= 9) {
  85. month = "0" + month;
  86. }
  87. if (strDate >= 0 && strDate <= 9) {
  88. strDate = "0" + strDate;
  89. }
  90. var time = date.getFullYear() + seperator1 + month + seperator1 + strDate
  91. + "" + date.getHours() + seperator2 + date.getMinutes()
  92. + seperator2 + date.getSeconds();
  93. return time;
  94. }
  95. function mouse(){
  96. var level = $("#SECRECY_LEVEL_240").val();
  97. if(level==1){
  98. $("#fileTable").show();
  99. $(parent.document.body).find("#frmright").height($(window.document.body).height()+30);
  100. }else if(level != 1){
  101. $("#fileTable").hide();
  102. }
  103. }
  104. //重置方法
  105. function formReset(){
  106. $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/am/fileManager/governmentDoc/governmentDocAdd.jsp?");
  107. }
  108. </script>
  109. <style type="text/css">
  110. .bd{
  111. width: 1000px;
  112. margin:0 auto;
  113. margin-top:10px
  114. }
  115. .d_ground{
  116. border: 1px solid #cdcaca;
  117. background: white;
  118. width:1000px;
  119. }
  120. .title{
  121. height: 50px;
  122. /* background: #F8F8F8; */
  123. border-style:solid;
  124. border-width:1px;
  125. border-right:1px;
  126. border-left:1px;
  127. border-top:1px;
  128. border-color:#cdcaca;
  129. }
  130. .title_font{
  131. font-weight: bold;
  132. font-size: 24px;
  133. line-height: 45px;
  134. color:#3e62a0;
  135. }
  136. .button_jl{
  137. margin:15px 20px 0px 0px;
  138. float:right;
  139. }
  140. .fieldset{
  141. border-style:solid;
  142. border-width:1px;
  143. border-color:#cdcaca;
  144. margin:0px 20px 20px 20px;
  145. /* border-top-color: rgb(200,200,200);
  146. border-right-color: rgb(200,200,200);
  147. border-bottom-color: rgb(200,200,200);
  148. border-left-color: rgb(200,200,200); */
  149. width: 935px
  150. }
  151. .legend{
  152. font-family:宋体;
  153. font-weight: bold;
  154. font-size:14px;
  155. color:#3e62a0;
  156. }
  157. .table-style{
  158. border-style:solid;
  159. border-width:1px;
  160. border-color:#cdcaca;
  161. margin:0px 20px 0px 20px;
  162. border-collapse:collapse;
  163. width: 895px;
  164. }
  165. .table-style2{
  166. border:1px solid #cdcaca;
  167. margin:0px 20px 0px 20px;
  168. border-collapse:collapse;
  169. width: 895px;
  170. }
  171. .td-font{
  172. font-family:宋体;
  173. font-size:14px;
  174. color:#161616;
  175. }
  176. .td-move{
  177. padding: 10px 5px 0px 0px;
  178. }
  179. .td-style{
  180. border:1px solid #cdcaca;
  181. border-collapse:collapse;
  182. padding-left: 10px
  183. }
  184. .back{
  185. margin:10px 0px 10px 15px;
  186. }
  187. /* .class_color{
  188. background-color: rgb(237, 239, 253);
  189. } */
  190. </style>
  191. </head>
  192. <body class="bd" align="center">
  193. <div class="d_ground" id="formContent">
  194. <div class="title" align="center">
  195. <a href="javascript:;">
  196. <img id="back" class="back" align="left" alt="返回" title="返回" src="/nwyj/images/temp/back.png" />
  197. </a>
  198. <font class="title_font">新增政府公文</font>
  199. </div>
  200. <form id="editForm" method="post">
  201. <input name="classid" value="240" type="hidden"/>
  202. <input type="hidden" name="FD_OBJECTID240" id="FD_OBJECTID365" value=""/>
  203. <input id="VERSION_240" name="VERSION_240" type="hidden"/>
  204. <input id="OBJ_FIRST_240" name="OBJ_FIRST_240" value="0" type="hidden"/>
  205. <input id="TYPEIN_TIME_240" name="TYPEIN_TIME_240" type="hidden"/>
  206. <!-- <input id="VERSION_240" name="VERSION_240" type="hidden"/> -->
  207. <input id="CLASSES" name="CLASSES_240" type="hidden"/>
  208. <input id="STATE" name="STATE_240" type="hidden"/>
  209. <!-- 建议录入就能保存发布,不需要发布就可以查看,建议取消“发布”按钮 刘星 -->
  210. <input id="IS_ISSUE_240" name="IS_ISSUE_240" value="1" type="hidden"/>
  211. <input id="IS_SHARE_240" name="IS_SHARE_240" value="0" type="hidden"/>
  212. <input id="TYPEIN_PEOPLE_ID_240" name="TYPEIN_PEOPLE_ID_240" type="hidden"/>
  213. <!-- <br/> -->
  214. <!-- <div align="center"><font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="red" id="" >政府公文</font></div>
  215. --><!-- <br /> -->
  216. <!-- 保存和重置 -->
  217. <div class="button_jl">
  218. <input id="saveAndGoOn" value="保存并继续添加" type="button"/>&nbsp;&nbsp;
  219. <!-- <input id="saveAndIssue" value="保存并发布" type="button"/>&nbsp;&nbsp; -->
  220. <input id="save" value="保存" type="button"/>&nbsp;&nbsp;
  221. <input id="chongzhi" value="重置" onclick="formReset();" type="button"/><!-- 新增重置 -->
  222. </div>
  223. <!-- 正文表格 -->
  224. <fieldset class="fieldset">
  225. <legend class="legend">基本信息:</legend>
  226. <table class="table-style">
  227. <tr>
  228. <td align="right" width="80px" class="td-move"><span class="star">*</span><span class="td-font">分类:</span></td>
  229. <td width="280px" class="td-move"><input id="CLASSES_240" type="text" style="width: 265px;height:30px"/><!-- <div id="CLASSES_240"/> --></td>
  230. <td align="right" width="145px" class="td-move"><span class="star">*</span><span class="td-font">发文单位:</span></td>
  231. <td width="280px" class="td-move"><input name="DISPATCH_UNIT_240" id="DISPATCH_UNIT_240" type="text" style="width: 275px;height:30px" class="validate[required]" maxlength="20"/></td>
  232. </tr>
  233. <tr>
  234. <td align="right" class="td-move"><span class="star">*</span><span class="td-font">公文名称:</span></td>
  235. <td class="td-move"><input name="DOCUMENT_NAME_240" id="DOCUMENT_NAME_240" type="text" style="width: 265px;height:30px" class="validate[required]" maxlength="40"/></td>
  236. <td align="right" class="td-move"><span class="star">*</span><span class="td-font">发文字号:</span></td>
  237. <td class="td-move"><input name="DISPATCH_WORD_SIZE_240" id="DISPATCH_WORD_SIZE_240" type="text" style="width: 275px;height:30px" class="validate[required]" maxlength="20"/></td>
  238. </tr>
  239. <tr>
  240. <td align="right" class="td-move"><span class="star">*</span><span class="td-font">状态:</span></td>
  241. <td class="td-move"><input id="STATE_240" type="text" style="width: 265px;height:30px"/><!-- <div id="STATE_240"/> --></td>
  242. <td align="right" class="td-move"><span class="star">*</span><span class="td-font">保密级别:</span></td>
  243. <td class="td-move"><select class="selectWidth" selWidth="280" name="SECRECY_LEVEL_240" id="SECRECY_LEVEL_240" onfocus="mouse()"></select></td>
  244. </tr>
  245. <tr>
  246. <td align="right" class="td-move"><span class="td-font">印发日期:</span></td>
  247. <td colspan="3" class="td-move"><input name="PRINT_DATE_240" id="PRINT_DATE_240" type="text" readonly="readonly" class="date" dateFmt="yyyy-MM-dd" style="width: 265px;height:30px"/></td>
  248. </tr>
  249. <tr>
  250. <td align="right" style="padding: 10px 5px 10px 0px;"><span class="td-font">简要说明:</span></td>
  251. <td colspan="3" style="padding: 10px 5px 10px 0px;"><textarea maxNum="300" name="DESCRIPTION_240" id="DESCRIPTION_240" style="resize:none;width: 95%;" maxlength="300"></textarea></td>
  252. </tr>
  253. </table>
  254. </fieldset>
  255. <fieldset id="fileTable" class="fieldset">
  256. <legend class="legend">附件信息:</legend>
  257. <table class="table-style">
  258. <tr>
  259. <td width="120px" align="right"><span align="right" class="star">*</span><span class="td-font">上传附件:</span></td>
  260. <td width="680px" colspan="3"><div style="width:100%" id="fileDiv" name="fileDiv" ></div></td>
  261. </tr>
  262. <tr>
  263. <td></td>
  264. <td colspan="3"><font color=red>注:可上传的附件类型有excel、word、pdf、jpg、png、zip等。</font></td>
  265. </tr>
  266. </table>
  267. </fieldset>
  268. <fieldset class="fieldset">
  269. <legend class="legend">填写人员信息:</legend>
  270. <table class="table-style2" id="fillForm">
  271. <tr>
  272. <td width="120px" align="right" class="td-style"><span class="td-font">单位:</span></td>
  273. <td width="280px" class="td-style">
  274. <input name="UNITE_240" id="UNITE" type="hidden" style="width: 97%;" />
  275. <div name="" id="UNITE_240"></div></td>
  276. <td width="120px" align="right" class="td-style"><span class="td-font">部门:</span></td>
  277. <td width="280px" class="td-style">
  278. <input name="DEPT_240" id="DEPT" type="hidden" style="width: 280px;"/>
  279. <div name="" id="DEPT_240" ></div>
  280. </td>
  281. </tr>
  282. <tr>
  283. <td align="right" class="td-style"><span class="td-font">填写人员:</span></td>
  284. <td class="td-style">
  285. <input name="TYPEIN_PEOPLE_240" id="TYPEIN_PEOPLE" type="hidden" style="width: 97%;"/>
  286. <div name="" id="TYPEIN_PEOPLE_240"></div>
  287. </td>
  288. <td align="right" class="td-style"><span class="td-font">填写人员联系方式:</span></td>
  289. <td class="td-style">
  290. <input name="TYPEIN_PEOPLE_PHONE_NUM_240" id="TYPEIN_PEOPLE_PHONE_NUM" type="hidden" style="width: 97%;" />
  291. <div name="" id="TYPEIN_PEOPLE_PHONE_NUM_240"></div>
  292. </td>
  293. </tr>
  294. </table>
  295. </fieldset>
  296. <div>
  297. <font class="colorpropretice">*录入说明:</font></br>
  298. <font class="colorpropretice">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1、各级单位录入自己本单位收到的政府公文、通知、函件。</font></br>
  299. <font class="colorpropretice">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2、保密等级分为:公开、秘密、机密、绝密,非公开类的公文,不能上传附件到应急系统。</font></br>
  300. <font class="colorpropretice">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3、各单位收到政府公文后,第一时间录入到应急系统。</font></br>
  301. </div>
  302. </form>
  303. </div>
  304. </body>
  305. </html>