⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 insert_record_detail.jsp

📁 tomcat最新安装程序
💻 JSP
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.recordset.RecordInfoRecordSet,java.util.GregorianCalendar,java.util.Calendar,java.util.*,java.text.DateFormat,cn.com.aheadsoft.util.StringFormat,cn.com.aheadsoft.util.UserInfo,cn.com.aheadsoft.manage.UserPurviewManage" %>
<%@ page import="cn.com.aheadsoft.business.PersonInfoBusiness, cn.com.aheadsoft.recordset.PersonInfoRecordSet,cn.com.aheadsoft.util.*"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%
	String libtype=(String)session.getAttribute("lib");
	String grouptype=(String)session.getAttribute("group");
	String RGI_CategoryName=(String)session.getAttribute("RGI_CategoryName");
	String topage=request.getParameter("topage");

    String RI_ID = ObjectID.getID();
	RecordInfoRecordSet set = (RecordInfoRecordSet)request.getAttribute("result");
	String RGI_CategoryID = (String)session.getAttribute("RGI_CategoryID");
	session.removeAttribute(RGI_CategoryID);
	
	UserInfo userinfo = (UserInfo)session.getAttribute("userinfo");
	UserPurviewManage priority = new UserPurviewManage();
	int knCategoryinsert = priority.getUserPopInt(userinfo, "11", "1", "i");
    int knCategoryupdate = priority.getUserPopInt(userinfo, "11", "1", "u"); 

	int inCategoryinsert = priority.getUserPopInt(userinfo, "11", "2", "i");
    int inCategoryupdate = priority.getUserPopInt(userinfo, "11", "2", "u");   
	Date date = new Date();
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");	
        String  today=formatter.format(date);
//	String  today=DateFormat.getDateInstance().format(date);
%>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" type="text/css" href="/krm/jsp/css/css.css">
<title>档案详细信息操作页</title>
</head>
<SCRIPT language=JavaScript>
	function openWin(url) {
		window.open(url,'','toolbar=no,location=no,menubar=no,resizable=1,scrollbars=yes,left=0,top=0,width=600,height=400');
	}	
	function isSubmit(){
		if(document.addRecord.RI_RecordNumber.value == null || document.addRecord.RI_RecordNumber.value == ""){
			alert("请填写资料编号!");
		}else if(document.addRecord.RI_RecordName.value == null || document.addRecord.RI_RecordName.value == ""){
			alert("请填写资料名称!");
		//}else if(document.addRecord.RI_PublishCompany.value == null || document.addRecord.RI_PublishCompany.value == ""){
		//	alert("请填写出版单位!");
		}else if(document.addRecord.RI_PublishTime.value == null || document.addRecord.RI_PublishTime.value == ""){
			alert("请填写出版时间!");
		}else if(document.addRecord.RI_PublishTime.value > document.addRecord.RI_RegisterTime.value){
			alert("登记时间应该在出版时间之后!");
		}else{
			document.addRecord.submit();
		}		
	}
</SCRIPT>
<script src="/krm/jsp/jscript/Calendar.js"></script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<%if(set != null){
  set.next();
%>
<form name="addRecord" method="POST" action="/krm/servlet/RecordInfoServlet?module=<%=libtype%>&&status=u&&queryterm=ordinal&&id=<%=set.getRI_ID()%>&&RGI_CategoryID=<%=RGI_CategoryID%>&topage=<%=topage%>" >
<%}else{
%>
<form name="addRecord" method="POST" action="/krm/servlet/RecordInfoServlet?module=<%=libtype%>&&status=i&&RGI_CategoryID=<%=RGI_CategoryID%>&&id=<%=RI_ID%>&topage=<%=topage%>" >
<%}%>
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="0" >
 <tr >
	<td class="trA">&nbsp;您的位置:知识管理 >> <a href="/krm/servlet/RecordGroupInfoServlet?module=<%=libtype%>&&status=q&&queryterm=lib&&libtype=<%=libtype%>"  target="right" ><%if(libtype.equals("kn")){%>知识库<%}else if(libtype.equals("in")){%> 信息库<%}%></a> >><a href="/krm/servlet/RecordGroupInfoServlet?module=<%=libtype%>&&status=q&&queryterm=group&&libtype=<%=libtype%>&&grouptype=<%=grouptype%>" target="right"> <%if(grouptype.equals("1")){%>市场 <%}else if(grouptype.equals("2")){%> 技术<%}else if(grouptype.equals("3")){%> 管理 <%}else if(grouptype.equals("4")){%> 销售 <%}else if(grouptype.equals("5")){%> 资本<%}%></a> >> <font class="fontcolor"><%=RGI_CategoryName%></font> 
	</td>
 </tr>
  <tr height="8">
	<td >
	</td>
 </tr>  <tr>
    <td align="center" >
        <table border="0" width="98%" align="center"  bordercolor="A1B7DB" class="collapse">
          <tr> 
            <td class="tdA" colspan="7" > 
              <%if(set != null){%>
              修改档案详细信息 
              <%}else{%>
              添加档案详细信息 
              <%}%>
              </td>
          </tr>
          <%if(set != null){
          set.beforefirst();
          set.next();%>
          <tr> 
            <td width="100" class="common bgcolor" >&nbsp;&nbsp;资料编号</td>
            <td     class="common" >&nbsp;&nbsp;
              <input type="text" name="RI_RecordNumber" class="long" value="<%=set.getRI_RecordNumber()%>" ></td>
          </tr>
          <tr> 
            <td   class="common bgcolor">&nbsp;&nbsp;资料名称 </td>
            <td     class="common" >&nbsp;&nbsp; <input type="text" name="RI_RecordName" class="long" value="<%=set.getRI_RecordName()%>" > 
              &nbsp;</td>
          </tr>
          <tr> 
            <td    class="common bgcolor">&nbsp;&nbsp;出版单位 </td>
            <td     class="common" >&nbsp;&nbsp; <input type="text" name="RI_PublishCompany" class="long" value="<%=set.getRI_PublishCompany()%>" > 
              &nbsp;</td>
          </tr>
          <tr> 
            <td    class="common bgcolor">&nbsp;&nbsp;出版时间</td>
            <td    class="common" >&nbsp;&nbsp; <input type="text" name="RI_PublishTime" class="middle" value="<%=set.getRI_PublishTime()%>" readonly>&nbsp;<a href="javascript:show_calendar('addRecord.RI_PublishTime ');"><img src="/krm/jsp/image/selectdate.gif" border="0"></a> 
              &nbsp;</td>
          </tr>
          <tr> 
            <td    class="common bgcolor">&nbsp;&nbsp;登记时间</td>
            <td     class="common" >&nbsp;&nbsp; <input type="text" name="RI_RegisterTime" class="middle" value="<%=set.getRI_RegisterTime()%>" readonly>&nbsp;<a href="javascript:show_calendar('addRecord.RI_RegisterTime');"><img src="/krm/jsp/image/selectdate.gif" border="0"></a> 
              &nbsp;</td>
          </tr>
          <tr> 
            <td    class="common bgcolor">&nbsp;&nbsp;附件</td>
            <td  valign="middle"  class="common"  align="left"> 
              <table width="100%" cellspacing="0" cellpadding="0" >
                <tr class="common">
                  <td width="8%" valign="middle" align="left" class="common1">&nbsp;&nbsp;&nbsp;<a href="javascript:openWin('/krm/servlet/RecordAttachmentServlet?status=q&recordid=<%=set.getRI_ID()%>');">添加</a></td>
                  <td width="92%" valign="middle" align="left" class="common1"><iframe src="/krm/jsp/knwmanage/knowledge/attach.jsp?id=<%=set.getRI_ID()%>"  height="20" name="attach"  marginheight="100%" frameborder="0" scrolling="no"></iframe> 
                </td>
                </tr>
              </table>            
            </td>
          </tr>
          <tr> 
            <td     class="common bgcolor">&nbsp;&nbsp;备注</td>
            <td    class="common" >&nbsp;&nbsp; <textarea  type="textarea" name="RI_Comment" class="long" rows="5" style="overflow:auto"><%=StringFormat.changeHTMLTags(set.getRI_Comment())%></textarea></td>
          </tr>
          <%}else{%>
            <tr> 
            <td width="100"    class="common bgcolor" >&nbsp;&nbsp;资料编号</td>
            <td   class="common" >&nbsp;&nbsp; <input type="text" name="RI_RecordNumber" class="long"></td>
          </tr>
          <tr> 
            <td class="common bgcolor">&nbsp;&nbsp;资料名称 </td>
            <td     class="common" >&nbsp;&nbsp; <input type="text" name="RI_RecordName" class="long"></td>
          </tr>
          <tr> 
            <td   class="common bgcolor">&nbsp;&nbsp;出版单位 </td>
            <td     class="common" >&nbsp;&nbsp; <input type="text" name="RI_PublishCompany" class="long" ></td>
          </tr>
          <tr> 
            <td    class="common bgcolor">&nbsp;&nbsp;出版时间</td>
            <td     class="common" >&nbsp;&nbsp; <input type="text" name="RI_PublishTime" class="middle"  readonly="true">&nbsp;<a href="javascript:show_calendar('addRecord.RI_PublishTime');"><img src="/krm/jsp/image/selectdate.gif" border="0"></a> 
            </td>
          </tr>
          <tr> 
            <td   class="common bgcolor">&nbsp;&nbsp;登记时间</td>
            <td     class="common" >&nbsp;&nbsp; <input type="text" name="RI_RegisterTime" class="middle" value=<%=today%> readonly="true">&nbsp;<a href="javascript:show_calendar('addRecord.RI_RegisterTime');"><img src="/krm/jsp/image/selectdate.gif" border="0"></a> 
            </td>
          </tr>
          <tr> 
            <td class="common bgcolor">&nbsp;&nbsp;附件</td>
            <td  valign="middle"  class="common"  align="left"> 
              <table width="100%" cellspacing="0" cellpadding="0" >
                <tr  class="common">
                  <td width="8%" valign="middle"  align="left" class="common1">&nbsp;&nbsp;&nbsp;<a href="javascript:openWin('/krm/servlet/RecordAttachmentServlet?status=q&recordid=<%=RI_ID%>');">添加</a></td>
                  <td width="92%" valign="middle"  align="left" class="common1"><iframe src="/krm/jsp/knwmanage/knowledge/attach.jsp" height="20"  name="attach"  marginheight="100%" frameborder="0" scrolling="no"></iframe> 
                </td>
                </tr>
              </table>            
            </td>
            </tr>
          <tr> 
            <td  class="common bgcolor">&nbsp;&nbsp;备注</td>
            <td  class="common" >&nbsp;&nbsp; <textarea type="textarea" name="RI_Comment" class="long" rows="5" style="overflow:auto" ></textarea></td>
          </tr>
          <%}%>
          <tr> 
            <td  align="center" class="tdC" colspan="2"> 
              <%if(set != null){%>
              <%if((knCategoryupdate > 0)||(inCategoryupdate > 0)){%>
			  <input type="button" onClick="isSubmit();"  onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1" value="提 交">
              <%}%>
              <%}else{%>
              <%if((knCategoryinsert > 0)||(inCategoryinsert > 0)){%>
              <input type="button" onClick="isSubmit();"  onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1" value="添 加"> 
              <%}%>
              <%}%>
			  <input type="button" onClick="document.addRecord.reset();"  onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1" value="重 置"> 
              <input type="button" onClick="history.back(1);"  onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1" value="返 回"> 
            </td>
          </tr>
        </table>
   </td>
</tr>	
</table>
</form>
</body>
</html>		

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -