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

📄 appflow.jsp

📁 tomcat最新安装程序
💻 JSP
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.recordset.TaskAppFlowRecordSet" %> 
<%@ page import="cn.com.aheadsoft.util.StringFormat" %>
<%@ page import="cn.com.aheadsoft.recordset.DataAuthRoleRecordSet"%>
<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> 
<link rel="stylesheet" type="text/css" href="/krm/jsp/css/css.css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>立项流程设置</title>
<%
	int q310 = upm.getUserPopInt(userinfo,"3","10","q");
	int i310 = upm.getUserPopInt(userinfo,"3","10","i");
	int u310 = upm.getUserPopInt(userinfo,"3","10","u");
	int d310 = upm.getUserPopInt(userinfo,"3","10","d");
	DataAuthRoleRecordSet role = (DataAuthRoleRecordSet)request.getAttribute("role");
%>
<script>
<!--  
role_array=new Array();
role_src_num=0;
  <%
     int i = 0;	
     if((role != null)&(role.size()>0)){
     while(role.next()){
    out.println(" role_array["+i+"]=new Array()");
	out.println("role_array["+i+"][0]='"+role.getDAR_RoleID()+"'");
	out.println("role_array["+i+"][1]='"+StringFormat.Source2GB(role.getDAR_RoleName())+"'");
	i++;
     }
     }
      out.println("role_src_num="+i);
  %>
    
    function update(id,key,type,roles) {
        document.AppFlowAction.FA_ID.value = id;
        document.AppFlowAction.FA_Name.value = key;
		for(i=0;i<document.AppFlowAction.FA_Type.length;i++) {
			if(document.AppFlowAction.FA_Type[i].value==type) {
				document.AppFlowAction.FA_Type[i].checked=true;
			}
		}		
		document.AppFlowAction.FA_RoleIDs.value = roles;
        document.AppFlowAction.status.value = "u";
		var rolesName="";
		for(i=0;i<role_src_num;i++)
		{
			if(roles.indexOf("#"+role_array[i][0]+"#")!=-1) rolesName+=role_array[i][1]+",";
		}
		document.AppFlowAction.FA_Roles.value=rolesName;
        document.AppFlowAction.FA_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 openWindow(theURL,winName,features) {
  		window.open(theURL,winName,features);
	}	
	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 height="8">
    <td class="trA">&nbsp;您的位置:任务管理 >> 参数设置 >><font class="fontcolor"> 立项流程设置</font></td>
 </tr>
  <tr height="8">
    <td></td>
  </tr>
  <tr>
    <td align="center" >
      
	     <table border="0" width="98%" align="center"  class="collapse">
        <tr > 
          <td class="tdA" colspan="9">
            立项流程设置</td>
        </tr>
        <form action="/krm/servlet/TaskAppFlowServlet" method="post" name="AppFlowAction" onsubmit="return atSubmit(this)">
          <tr> 
            <td width="100" align="center"  class="common bgcolor" >步骤名称</td>
            <td><input class="long" type="text" name="FA_Name" alt="步骤名称"> </td>
          </tr>
          <tr> 
            <td align="center"  class="common bgcolor" >执行者角色</td>
            <td class="common"><input type="text" name="FA_Roles" class="long" readonly value=" "> 
              <a href="javascript:openWindow('/krm/servlet/RoleSelectServlet?src1=AppFlowAction.FA_RoleIDs&src2=AppFlowAction.FA_Roles','selectuser','width=500,height=300')"><image src="/krm/jsp/image/selectperson.gif" border="0"></a> 
              <input type="hidden" name="FA_RoleIDs"></td>
          </tr>
          <tr> 
            <td align="center"  class="common bgcolor" >是否结束步骤</td>
            <td class="common"> 
              <input type="radio" name="FA_Type" value="1">
              <input type="radio" name="FA_Type" value="0" checked>
              否 </td>
          </tr>
          <input type="Hidden" name="status" value="i">
          <input type="Hidden" name="FA_ID" value="0">
          <tr> 
            <td align="center" colspan="2" class="tdC"> 
              <% 
			if(i310 > 0) {
		%>
              <input name="submit" 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"  class="collapse">
        <tr > 
          <td width="8%"  class="tdB" align="center">序号</td>
          <td width="25%"  class="tdB" align="center">步骤名称</td>
          <td width="22%"  class="tdB" align="center">是否结束步骤</td>
          <td width="11%"  class="tdB" align="center" nowrap>修改</td>
          <td width="10%"  class="tdB" align="center" nowrap>删除</td>
        </tr>
        <%
            TaskAppFlowRecordSet AFArecordset = (TaskAppFlowRecordSet)request.getAttribute("AppFlowAction");
            if(AFArecordset != null && AFArecordset.size() > 0) {
                int num = 1;
                while(AFArecordset.next()) {
        %>
        <tr <%
		if(num%2==0){
		%> class="bgcolor"<%}%>> 
          <td width="8%" class="common" align="center"><%= num %></td>
          <td width="25%" class="common" align="center"><%= StringFormat.Source2GB(AFArecordset.getFA_Name()) %></td>
          <td width="22%" class="common" align="center"> 
            <% 
		  String type=AFArecordset.getFA_Type();
		  if(type.equals("1")) out.println("是");
		  else out.println("否");
		  %>
          </td>
          <td width="11%" class="common" align="center"> 
            <%
					if(u310 > 0) {
				%>
            <a href="javascript:update(&quot;<%= StringFormat.Source2GB(AFArecordset.getFA_ID()) %>&quot;,&quot;<%= StringFormat.Source2GB(AFArecordset.getFA_Name()) %>&quot;,&quot;<%= AFArecordset.getFA_Type() %>&quot;,&quot;<%= AFArecordset.getFA_Roles() %>&quot;);">修改</a> 
            <%
					}else {
						out.print("修改");
					}
				%>
          </td>
          <td width="10%" class="common" align="center"> 
            <%
					if(d310 > 0) {
				%>
            <a href="/krm/servlet/TaskAppFlowServlet?status=d&FA_ID=<%= AFArecordset.getFA_ID() %>" onclick="return atDelete()">删除</a> 
            <%
					}else {
						out.print("删除");
					}
				%>
          </td>
        </tr>
        <%
					num++;
				}
			}
		%>
		<tr><td colspan="5" class="tdC">&nbsp;</td>
		</tr>			
      </table>
   </td>
</tr>	
</table>
 
</body>
</html>

⌨️ 快捷键说明

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