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

📄 docflow.jsp

📁 tomcat最新安装程序
💻 JSP
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.recordset.DocFlowNameRecordSet" %>
<%@ page import="cn.com.aheadsoft.recordset.FlowNameDiscernerRecordSet" %>
<%@ page import="cn.com.aheadsoft.util.StringFormat" %>
<jsp:useBean id="userinfo" scope="session" class="cn.com.aheadsoft.util.UserInfo"/>
<jsp:useBean id="upm" scope="session" class="cn.com.aheadsoft.manage.UserPurviewManage"/>
<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>
<%
	/*int q1 = upm.getUserPopInt(userinfo,"1","3","q");
	int i1 = upm.getUserPopInt(userinfo,"1","3","i");
	int u1 = upm.getUserPopInt(userinfo,"1","3","u");
	int d1 = upm.getUserPopInt(userinfo,"1","3","d");*/ //replace by zenghongli 2004.9.8
	
	int i1 = upm.getUserPopInt(userinfo,"1","5","i");
	int u1 = upm.getUserPopInt(userinfo,"1","5","u");
	int d1 = upm.getUserPopInt(userinfo,"1","5","d");
	
%>
<script>
<!--
    function update(id,key,val1,val2,val3) {
        document.DocFlowName.DFN_ID.value = id;
        document.DocFlowName.DFN_Name.value = key;
		for(i=0;i<document.DocFlowName.DFN_Doc.length;i++) {
			if(document.DocFlowName.DFN_Doc[i].value==val1) {
				document.DocFlowName.DFN_Doc[i].checked=true;
			}
		}
		for(i=0;i<document.DocFlowName.FND_ID.length;i++) {
			if(document.DocFlowName.FND_ID[i].value==val2) {
				document.DocFlowName.FND_ID[i].checked=true;
			}
		}
		if(val3=="" || val3==null)  {
			val3=" ";
		}
		for(i=0;i<document.DocFlowName.DFN_Modify.length;i++) {
			if(document.DocFlowName.DFN_Modify[i].value==val3) {
				document.DocFlowName.DFN_Modify[i].checked=true;
			}
		}
		//document.DocFlowName.DFN_Modify.value = val3;
        document.DocFlowName.status.value = "u";
        document.DocFlowName.DFN_Name.focus();
    }
    
    function atSubmit(obj){
        isOK=false;
        lab="";
	    for(i=0;i<obj.length;i++){
		    if(obj.elements[i].value!=null && obj.elements[i].value!=""){
			    isOK=true;
		    }else{
			    isOK=false;
			    lab=obj.elements[i].alt;
			    obj.elements[i].focus();
			    break;
		    }
	    }
        if(!isOK){
            alert("您没有填写"+lab+"!请填写后提交。");
            return false;
        }else{
	        //obj.submit(); 
        }
    }
	
	function atDelete() {
		return confirm("您确定要删除吗?");
	}
-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="0" >
 <tr >
	<td class="trA">&nbsp;您的位置:公文管理 >> 参数设置 >> <font class="fontcolor">办理流程</font></td>
 </tr>
   <tr > 
    <td height="8"></td>
  </tr>   
  <tr>
    <td align="center" >
        <table border="0" width="98%" align="center" bordercolor="A1B7DB" class="collapse">
          <tr > 
            
          <td class="tdA" colspan="9"> 
            办理流程</td>
          </tr>
		  
	  <form action="/krm/servlet/DocFlowServlet" method="post" name="DocFlowName" onsubmit="return atSubmit(this)">
	  <tr>
	  <td width="100" align="center" class="common bgcolor" >流程名称</td>
	  <td class="common">&nbsp;<input class="long" type="text" name="DFN_Name" alt="流程名称"> </td>
	  </tr>
	  <tr>
	  <td width="100" align="center" class="common bgcolor" >所属类别</td>
	  <td class="common">&nbsp;
              <input type="radio" name="DFN_Doc" value="0" checked>收文
              <input type="radio" name="DFN_Doc" value="1">发文</td>
	  </tr>
	  <tr>
	  <td width="100" align="center" class="common bgcolor" >操作标识</td>
	  <td class="common">&nbsp;
	  <%
            FlowNameDiscernerRecordSet recordset1 = (FlowNameDiscernerRecordSet)request.getAttribute("FlowNameDiscerner");
            if(recordset1 != null && recordset1.size() > 0) {
                while(recordset1.next()) {
      %><input type="radio" name="FND_ID" value="<%= StringFormat.Source2GB(recordset1.getFND_ID()) %>" <% if(recordset1.getFND_ID().equals("1")){%> checked <%}%>><%= StringFormat.Source2GB(recordset1.getFND_Name()) %>
	  <%
				}
			}
	  %>
	  </select>
	  </td>
	  </tr>
	  <tr>
	        <td width="100" align="center" class="common bgcolor" >可否修改文档</td>
	        <td class="common">&nbsp;
              <input type="radio" name="DFN_Modify" value="1">可以
              <input type="radio" name="DFN_Modify" value="0" checked>不可以</td>
	  </tr>
	  <input type="Hidden" name="status" value="i">
	  <input type="Hidden" name="DFN_ID" value="0">
	  <tr>
            <td align="center"class="tdC" colspan="2"> 
              <% 
			if(i1 > 0) {
		%>
              <INPUT name="Button1" type="submit"   onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1" value="提 交"> 
              <%
			}
		%>
            </td>
	  </tr>
	  </form>
	  </table>
	  <br>
        
      <table border="0" width="98%" align="center"  bordercolor="A1B7DB" class="collapse">
        <tr > 
          <td width="8%" class="tdB" align="center">序号</td>
          <td width="30%" class="tdB" align="center">流程名称</td>
          <td width="17%" class="tdB" align="center">所属类别</td>
          <td width="14%" class="tdB" align="center">操作标识</td>
          <td width="15%" class="tdB" align="center" nowrap>可否修改文档</td>
          <td width="16%" class="tdB" align="center">操作</td>
        </tr>
        <%
            DocFlowNameRecordSet recordset = (DocFlowNameRecordSet)request.getAttribute("DocFlowName");
            if(recordset != null && recordset.size() > 0) {
                int num = 1;
                while(recordset.next()) {
        %>
        <tr<%
		if(num%2==0){
		%> class="bgcolor"<%}%>> 
          <td width="8%" class="common" align="center"><%= num %></td>
          <td width="30%" class="common" align="center"><%= StringFormat.Source2GB(recordset.getDFN_Name()) %></td>
          <td width="17%" class="common" align="center">
            <%if("0".equals(recordset.getDFN_Doc())){%>
            收文
            <%}else{%>
            发文
            <%}%>
          </td>
          <td width="14%" class="common" align="center"><%= StringFormat.Source2GB(recordset.getFND_Name()) %></td>
          <td width="15%" class="common" align="center"><%
		   if (recordset.getDFN_Modify()!=null){ 		   
		    if (recordset.getDFN_Modify().equals("1")) 
		   {%>可以<%} else {%> 不可以 <%} }%></td>
          <td width="16%" class="common" align="center"> 
            <%
					if(u1 > 0) {
				%>
            <a href="javascript:update(&quot;<%= StringFormat.Source2GB(recordset.getDFN_ID()) %>&quot;,&quot;<%= StringFormat.Source2GB(recordset.getDFN_Name()) %>&quot;,&quot;<%= StringFormat.Source2GB(recordset.getDFN_Doc()) %>&quot;,&quot;<%= StringFormat.Source2GB(recordset.getFND_ID()) %>&quot;,&quot;<%= StringFormat.Source2GB(recordset.getDFN_Modify()) %>&quot;);">修改</a> 
            <%
					}else {
						out.print("修改");
					}
				%>
            <%
					if(d1 > 0) {
				%>
            <a href="/krm/servlet/DocFlowServlet?status=d&DFN_ID=<%= recordset.getDFN_ID() %>" onclick="return atDelete()">删除</a> 
            <%
					}else {
						out.print("删除");
					}
				%>
          </td>
        </tr>
        <%
					num++;
				}
			}
		%>
		<tr><td colspan="6" class="tdC">&nbsp;</td></tr>
      </table>
  </td>
</tr>	
</table>
 
</body>
</html>

⌨️ 快捷键说明

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