123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328 |
- <%@page contentType="text/html" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>政府公文</title>
- <%@include file="../../../../include1.jsp" %>
-
- <!-- 日期选择框start -->
- <script type="text/javascript" src="<%=path%>/libs/js/form/datePicker/WdatePicker.js"></script>
- <link rel="stylesheet" type="text/css" href="/nwyj/page/business/am/colorpropretice/colorpropretice.css" />
- <!-- 日期选择框end -->
-
- <script type="text/javascript" src="<%=path%>/scripts/business/am/fileManager/governmentDoc/governmentDocAdd.js"></script>
- <script type="text/javascript">
- //var fd_id = "<%=request.getParameter("fd_id")%>";
- $(function(){
- //单位ID getCorp_ids
- var comp_id = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- //部门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 userName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();//登录用户姓名
- var realName_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();//取得用户真实名字的ID
- $("#TYPEIN_PEOPLE_240").html(userName);
- $("#TYPEIN_PEOPLE").val(userName);
- $("#TYPEIN_PEOPLE_ID_240").val(realName_ID)
- //用户手机号
- var getMobile = top.com.sinosoft.lz.system.user.LoginInfo.getMobile();
- if(getMobile==undefined){
- $("#TYPEIN_PEOPLE_PHONE_NUM_240").html("暂无手机号码");//用于显示
- //$("#TYPEIN_PEOPLE_PHONE_NUM").val("暂无手机号码");//用于保存
- }else{
- $("#TYPEIN_PEOPLE_PHONE_NUM_240").html(getMobile);//用于显示
- //$("#TYPEIN_PEOPLE_PHONE_NUM").val(getMobile);//用于保存
- }
-
- //用户所属单位
- var getCorp_names = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
- $("#UNITE_240").html(getCorp_names);//用于显示
- $("#UNITE").val(comp_id);//用于保存
- //用户所属部门
- var getDeptnames = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
- $("#DEPT_240").html(getDeptnames);//用于显示
- $("#DEPT").val(deptId);//用于保存
-
- //$('#fileDiv').getAsyncUploadFileContent();
- $("#fileDiv").newAsyncFileUpload("");//附件
- $('#STATE_240').initCanstSelect('BM_AM_DOC_STATE'); //状态
- $('#SECRECY_LEVEL_240').initCanstSelect('BM_AM_DOC_SECRECY_LEVEL'); //保密级别
- var TYPEIN_TIME = getDateTime();
- $("#TYPEIN_TIME_240").val(TYPEIN_TIME);
- /* var get_time = getTime();
- $("#VERSION_240").val(get_time); */
- //alert($("#VERSION_240").val());
- $("#CLASSES_240").val("政府公文");
- $("#STATE_240").val("有效");
-
- $("#back").hover(function(){
- $(this).attr("src","/nwyj/images/temp/back_hover.png");
- },function(){
- $(this).attr("src","/nwyj/images/temp/back.png");
- });
- });
- //获得当前系统时间
- function getDateTime(){
- var s="";
- var d = allGetServerTime();
- var vYear = d.getFullYear();
- var vMon = d.getMonth() + 1;
- var vDay = d.getDate();
- var h = d.getHours();
- var m = d.getMinutes();
- var se = d.getSeconds();
- s=vYear+"-"+(vMon<10 ? "0" + vMon : vMon)+"-"+(vDay<10 ? "0"+ vDay : vDay)/* +" "+(h<10 ? "0"+ h : h)+":"+(m<10 ? "0" + m : m) */;
- return s;
- }
- function getTime(){
- //取系统时间:年月日时分秒
- var date = allGetServerTime();
- var seperator1 = "";
- var seperator2 = "";
- var month = date.getMonth() + 1;
- var strDate = date.getDate();
- if (month >= 1 && month <= 9) {
- month = "0" + month;
- }
- if (strDate >= 0 && strDate <= 9) {
- strDate = "0" + strDate;
- }
- var time = date.getFullYear() + seperator1 + month + seperator1 + strDate
- + "" + date.getHours() + seperator2 + date.getMinutes()
- + seperator2 + date.getSeconds();
- return time;
- }
- function mouse(){
- var level = $("#SECRECY_LEVEL_240").val();
-
- if(level==1){
- $("#fileTable").show();
- $(parent.document.body).find("#frmright").height($(window.document.body).height()+30);
- }else if(level != 1){
- $("#fileTable").hide();
- }
- }
- //重置方法
- function formReset(){
- $('#frmright', window.parent.document).attr('src',$.pathname()+ "/page/business/am/fileManager/governmentDoc/governmentDocAdd.jsp?");
- }
- </script>
- <style type="text/css">
- .bd{
- width: 1000px;
- margin:0 auto;
- margin-top:10px
- }
- .d_ground{
- border: 1px solid #cdcaca;
- background: white;
- width:1000px;
- }
- .title{
- height: 50px;
- /* background: #F8F8F8; */
- border-style:solid;
- border-width:1px;
- border-right:1px;
- border-left:1px;
- border-top:1px;
- border-color:#cdcaca;
- }
- .title_font{
- font-weight: bold;
- font-size: 24px;
- line-height: 45px;
- color:#3e62a0;
- }
- .button_jl{
- margin:15px 20px 0px 0px;
- float:right;
- }
- .fieldset{
- border-style:solid;
- border-width:1px;
- border-color:#cdcaca;
- margin:0px 20px 20px 20px;
- /* border-top-color: rgb(200,200,200);
- border-right-color: rgb(200,200,200);
- border-bottom-color: rgb(200,200,200);
- border-left-color: rgb(200,200,200); */
- width: 935px
- }
- .legend{
- font-family:宋体;
- font-weight: bold;
- font-size:14px;
- color:#3e62a0;
- }
- .table-style{
- border-style:solid;
- border-width:1px;
- border-color:#cdcaca;
- margin:0px 20px 0px 20px;
- border-collapse:collapse;
- width: 895px;
- }
- .table-style2{
- border:1px solid #cdcaca;
- margin:0px 20px 0px 20px;
- border-collapse:collapse;
- width: 895px;
- }
- .td-font{
- font-family:宋体;
- font-size:14px;
- color:#161616;
- }
- .td-move{
- padding: 10px 5px 0px 0px;
- }
- .td-style{
- border:1px solid #cdcaca;
- border-collapse:collapse;
- padding-left: 10px
- }
- .back{
- margin:10px 0px 10px 15px;
- }
- /* .class_color{
- background-color: rgb(237, 239, 253);
- } */
- </style>
- </head>
- <body class="bd" align="center">
- <div class="d_ground" id="formContent">
- <div class="title" align="center">
- <a href="javascript:;">
- <img id="back" class="back" align="left" alt="返回" title="返回" src="/nwyj/images/temp/back.png" />
- </a>
- <font class="title_font">新增政府公文</font>
- </div>
- <form id="editForm" method="post">
- <input name="classid" value="240" type="hidden"/>
- <input type="hidden" name="FD_OBJECTID240" id="FD_OBJECTID365" value=""/>
- <input id="VERSION_240" name="VERSION_240" type="hidden"/>
- <input id="OBJ_FIRST_240" name="OBJ_FIRST_240" value="0" type="hidden"/>
- <input id="TYPEIN_TIME_240" name="TYPEIN_TIME_240" type="hidden"/>
- <!-- <input id="VERSION_240" name="VERSION_240" type="hidden"/> -->
- <input id="CLASSES" name="CLASSES_240" type="hidden"/>
- <input id="STATE" name="STATE_240" type="hidden"/>
- <!-- 建议录入就能保存发布,不需要发布就可以查看,建议取消“发布”按钮 刘星 -->
- <input id="IS_ISSUE_240" name="IS_ISSUE_240" value="1" type="hidden"/>
- <input id="IS_SHARE_240" name="IS_SHARE_240" value="0" type="hidden"/>
- <input id="TYPEIN_PEOPLE_ID_240" name="TYPEIN_PEOPLE_ID_240" type="hidden"/>
- <!-- <br/> -->
- <!-- <div align="center"><font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="red" id="" >政府公文</font></div>
- --><!-- <br /> -->
- <!-- 保存和重置 -->
- <div class="button_jl">
- <input id="saveAndGoOn" value="保存并继续添加" type="button"/>
- <!-- <input id="saveAndIssue" value="保存并发布" type="button"/> -->
- <input id="save" value="保存" type="button"/>
- <input id="chongzhi" value="重置" onclick="formReset();" type="button"/><!-- 新增重置 -->
- </div>
- <!-- 正文表格 -->
- <fieldset class="fieldset">
- <legend class="legend">基本信息:</legend>
- <table class="table-style">
- <tr>
- <td align="right" width="80px" class="td-move"><span class="star">*</span><span class="td-font">分类:</span></td>
- <td width="280px" class="td-move"><input id="CLASSES_240" type="text" style="width: 265px;height:30px"/><!-- <div id="CLASSES_240"/> --></td>
- <td align="right" width="145px" class="td-move"><span class="star">*</span><span class="td-font">发文单位:</span></td>
- <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>
- </tr>
- <tr>
- <td align="right" class="td-move"><span class="star">*</span><span class="td-font">公文名称:</span></td>
- <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>
- <td align="right" class="td-move"><span class="star">*</span><span class="td-font">发文字号:</span></td>
- <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>
- </tr>
-
- <tr>
- <td align="right" class="td-move"><span class="star">*</span><span class="td-font">状态:</span></td>
- <td class="td-move"><input id="STATE_240" type="text" style="width: 265px;height:30px"/><!-- <div id="STATE_240"/> --></td>
- <td align="right" class="td-move"><span class="star">*</span><span class="td-font">保密级别:</span></td>
- <td class="td-move"><select class="selectWidth" selWidth="280" name="SECRECY_LEVEL_240" id="SECRECY_LEVEL_240" onfocus="mouse()"></select></td>
- </tr>
- <tr>
- <td align="right" class="td-move"><span class="td-font">印发日期:</span></td>
- <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>
- </tr>
- <tr>
- <td align="right" style="padding: 10px 5px 10px 0px;"><span class="td-font">简要说明:</span></td>
- <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>
- </tr>
- </table>
- </fieldset>
- <fieldset id="fileTable" class="fieldset">
- <legend class="legend">附件信息:</legend>
- <table class="table-style">
- <tr>
- <td width="120px" align="right"><span align="right" class="star">*</span><span class="td-font">上传附件:</span></td>
- <td width="680px" colspan="3"><div style="width:100%" id="fileDiv" name="fileDiv" ></div></td>
- </tr>
- <tr>
- <td></td>
- <td colspan="3"><font color=red>注:可上传的附件类型有excel、word、pdf、jpg、png、zip等。</font></td>
- </tr>
- </table>
- </fieldset>
- <fieldset class="fieldset">
- <legend class="legend">填写人员信息:</legend>
- <table class="table-style2" id="fillForm">
- <tr>
- <td width="120px" align="right" class="td-style"><span class="td-font">单位:</span></td>
- <td width="280px" class="td-style">
- <input name="UNITE_240" id="UNITE" type="hidden" style="width: 97%;" />
- <div name="" id="UNITE_240"></div></td>
- <td width="120px" align="right" class="td-style"><span class="td-font">部门:</span></td>
- <td width="280px" class="td-style">
- <input name="DEPT_240" id="DEPT" type="hidden" style="width: 280px;"/>
- <div name="" id="DEPT_240" ></div>
- </td>
- </tr>
- <tr>
- <td align="right" class="td-style"><span class="td-font">填写人员:</span></td>
- <td class="td-style">
- <input name="TYPEIN_PEOPLE_240" id="TYPEIN_PEOPLE" type="hidden" style="width: 97%;"/>
- <div name="" id="TYPEIN_PEOPLE_240"></div>
- </td>
- <td align="right" class="td-style"><span class="td-font">填写人员联系方式:</span></td>
- <td class="td-style">
- <input name="TYPEIN_PEOPLE_PHONE_NUM_240" id="TYPEIN_PEOPLE_PHONE_NUM" type="hidden" style="width: 97%;" />
- <div name="" id="TYPEIN_PEOPLE_PHONE_NUM_240"></div>
- </td>
- </tr>
- </table>
- </fieldset>
- <div>
- <font class="colorpropretice">*录入说明:</font></br>
- <font class="colorpropretice"> 1、各级单位录入自己本单位收到的政府公文、通知、函件。</font></br>
- <font class="colorpropretice"> 2、保密等级分为:公开、秘密、机密、绝密,非公开类的公文,不能上传附件到应急系统。</font></br>
- <font class="colorpropretice"> 3、各单位收到政府公文后,第一时间录入到应急系统。</font></br>
- </div>
- </form>
- </div>
- </body>
- </html>
|