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

📄 insert_dang_an_lei.jsp

📁 tomcat最新安装程序
💻 JSP
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.recordset.RecordGroupInfoRecordSet,java.util.GregorianCalendar,java.util.Calendar,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"%>
<%
    String libtype = request.getParameter("libtype");
    String grouptype = request.getParameter("grouptype");
	RecordGroupInfoRecordSet set = (RecordGroupInfoRecordSet)request.getAttribute("result");
	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");   
  
%>
<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 openWindow(theURL,winName,features) {
  		window.open(theURL,winName,features);
	}
	function isSubmit(){
		
		if(document.addCategory.RGI_CategoryBelong.value == null || document.addCategory.RGI_CategoryBelong.value == ""){
			alert("请选择档案类所属库!");
		}else if(document.addCategory.RGI_GroupInfo.value == null || document.addCategory.RGI_GroupInfo.value == ""){
			alert("请选择档案类所属组!");
		}else if(document.addCategory.RGI_CategoryName.value == null || document.addCategory.RGI_CategoryName.value == ""){
			alert("请填写档案类名称!");
		}else{
			document.addCategory.submit();
		}		
	}
</SCRIPT>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >

<%if(set != null){
  set.next();
%>
<form name="addCategory" method="POST" action="/krm/servlet/RecordGroupInfoServlet?module=<%=libtype%>&&status=u&&queryterm=ordinal&&id=<%=set.getRGI_CategoryID()%>&&libtype=<%= libtype %>&grouptype=<%= grouptype %>&&back=0" >
<%}else{%>
<form name="addCategory" method="POST" action="/krm/servlet/RecordGroupInfoServlet?module=<%=libtype%>&&status=i&&libtype=<%= libtype %>&grouptype=<%= grouptype %>" >
<%}%>
<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> >> <font class="fontcolor"><%if(grouptype.equals("1")){%>市场 <%}else if(grouptype.equals("2")){%> 技术<%}else if(grouptype.equals("3")){%> 管理 <%}else if(grouptype.equals("4")){%> 销售 <%}else if(grouptype.equals("5")){%> 资本<%}%></font>
	</td>
 </tr>
  <tr height="8">
	<td >
	</td>
 </tr>
  <tr>
    <td align="center" >
        <table border="0" cellpadding="0" cellspacing="0" width="98%" align="center" >
          <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; <select name="RGI_CategoryBelong">
           <option <%if(set.getRGI_CategoryBelong().equals("kn")){%> selected<%}%> value="kn">知识库</option>
           <option <%if(set.getRGI_CategoryBelong().equals("in")){%> selected<%}%> value="in">信息库</option>
           <option <%if(set.getRGI_CategoryBelong().equals("ik")){%> selected<%}%> value="ik">共享库</option>

            </select></td>
          </tr>
          <tr> 
            <td    class="common bgcolor" >&nbsp;&nbsp;档案类所属组</td>
            <td   class="common" >&nbsp;&nbsp; <select name="RGI_GroupInfo">
           
                <option <%if(set.getRGI_GroupInfo().equals("1")){%> selected<%}%> value="1">市场</option>
           
                 <option <%if(set.getRGI_GroupInfo().equals("2")){%> selected<%}%> value="2">技术</option>
           
                 <option <%if(set.getRGI_GroupInfo().equals("3")){%> selected<%}%> value="3">管理</option>
           
                 <option <%if(set.getRGI_GroupInfo().equals("4")){%> selected<%}%> value="4">销售</option>
           
                <option <%if(set.getRGI_GroupInfo().equals("5")){%> selected<%}%> value="5">资本</option>
              </select>
              &nbsp;</td>
          </tr>
          <tr> 
            <td    class="common bgcolor">&nbsp;&nbsp;档案类名称
            </td>
            <td   class="common" >&nbsp;&nbsp; 
            <input type="text" name="RGI_CategoryName" class="long" value="<%=set.getRGI_CategoryName()%>" > 
           &nbsp;</td>
          </tr>
          <tr> 
            <td   class="common bgcolor">&nbsp;&nbsp;档案类的描述</td>
            <td    class="common" >&nbsp;&nbsp; <textarea  type="textarea" name="RGI_CategoryDescrible" class="long" rows="5" style="overflow:auto"><%=StringFormat.changeHTMLTags(set.getRGI_CategoryDescrible())%></textarea></td>
          </tr>
          <%}else{%>
          <tr> 
            <td  width="100" class="common bgcolor" >&nbsp;&nbsp;档案类所属库</td>
            <td     class="common" >&nbsp;&nbsp; <select name="RGI_CategoryBelong">          
                <option<%if(libtype.equals("kn")){%> selected<%}%>  value="kn" >知识库</option>          
                <option<%if(libtype.equals("in")){%> selected<%}%> value="in">信息库</option>
                <option<%if(libtype.equals("ik")){%> selected<%}%> value="ik">共享库</option>
              </select></td>
          </tr>
          <tr> 
            <td   class="common bgcolor" >&nbsp;&nbsp;档案类所属组</td>
            <td    class="common" >&nbsp;&nbsp; 
            <select name="RGI_GroupInfo">
           <option<%if(grouptype.equals("1")){%> selected<%}%> value="1">市场</option>
           <option<%if(grouptype.equals("2")){%> selected<%}%> value="2">技术</option>
           <option<%if(grouptype.equals("3")){%> selected<%}%> value="3">管理</option>
           <option<%if(grouptype.equals("4")){%> selected<%}%> value="4">销售</option>
           <option<%if(grouptype.equals("5")){%> selected<%}%> value="5">资本</option>
            </select>
	   </td>
          </tr>
          <tr> 
            <td  class="common bgcolor">&nbsp;&nbsp;档案类名称
            </td>
            <td   class="common" >&nbsp;&nbsp; 
            <input type="text" name="RGI_CategoryName" class="long"  > 
           &nbsp;</td>
          </tr>
          <tr> 
            <td   class="common bgcolor">&nbsp;&nbsp;档案类的描述</td>
            <td  class="common" >&nbsp;&nbsp; <textarea  type="textarea" name="RGI_CategoryDescrible" 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 name="button" type="button"  onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1" onClick="isSubmit();" value="提 交">
              <%}%>
              <%}else{%>
              <%if((knCategoryinsert > 0)||(inCategoryinsert > 0)){%>
              <input name="button2" type="button"  onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1" onClick="isSubmit();" value="添 加">
              <%}%>
              <%}%>
			   <input type="button" onClick="document.addCategory.reset();"  onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1" value="重 置">  
              <input name="button3" type="button"  onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1" onClick="history.back(1);" value="返 回"> 
            </td>
          </tr>
        </table>
   </td>
</tr>	
</table>
</form>
</body>
</html>		

⌨️ 快捷键说明

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