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

📄 apply.jsp

📁 tomcat最新安装程序
💻 JSP
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="cn.com.aheadsoft.util.StringFormat" %>
<%@ page import="cn.com.aheadsoft.recordset.TaskAppFlowRecordSet" %>
<%@ page import="cn.com.aheadsoft.recordset.PersonInfoRecordSet" %>
<jsp:useBean id="userinfo" scope="session" class="cn.com.aheadsoft.util.UserInfo"/>

<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>
<%	
	PersonInfoRecordSet person=(PersonInfoRecordSet)request.getAttribute("PersonInfo");	
	TaskAppFlowRecordSet appFlowRs=(TaskAppFlowRecordSet)request.getAttribute("AppFlow");
	String AD_ID=request.getParameter("AD_ID");
%>
<script>

  var person = new Array();
	<%
		if(person != null && person.size() > 0) {
			int i = 0;
            while(person.next()) {
				out.println("person["+String.valueOf(i)+"]=new Array();");
				out.println("person["+String.valueOf(i)+"][0]='"+StringFormat.Source2GB(person.getI_Name())+"';");
				out.println("person["+String.valueOf(i)+"][1]='"+person.getUser_ID()+"';");
				out.println("person["+String.valueOf(i)+"][2]='"+person.getUI_RoleID()+"';");
				i++;
			}
		}
	%>   
	action = new Array();
	<%	
	   int j=0;
		while(appFlowRs.next()){
			out.println("action["+String.valueOf(j)+"]=new Array();");
			out.println("action["+String.valueOf(j)+"][0]='"+appFlowRs.getFA_ID()+"';");
			out.println("action["+String.valueOf(j)+"][1]='"+appFlowRs.getFA_Roles()+"';");
			j++;
		}
	%> 
	function selectAction() {
	
		isNav = (navigator.appName.indexOf("Netscape") != -1) ? true : false;
		isIE = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;
		len=document.applyform.AT_ApproverID.options.length;
		if(len>0){
			for(i=len-1;i>=0;i--)
			document.applyform.AT_ApproverID.remove(i);
		}
		index=document.applyform.AT_ActionID.selectedIndex;
		values=document.applyform.AT_ActionID.options[index].value;
		for(i=0;i<action.length;i++) {
			if(action[i][0]==values) {
				for(j=0;j<person.length;j++)
				{
					if(action[i][1].indexOf("#"+person[j][2]+"#")!=-1)
					{
						optionnew=document.createElement("option");
						optionnew.text=person[j][0];
						optionnew.value=person[j][1];
						if(isIE) {
							document.applyform.AT_ApproverID.add(optionnew);
						}else {
							document.applyform.AT_ApproverID.appendChild(optionnew);
						}
					}
				}
			}
		}
	}

</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"    onLoad="selectAction();">
<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" >
   <form action="/krm/servlet/ApplyDetailServlet?status=apply" method="post" name="applyform">
     <input type="hidden" name="AD_ID" value="<%=AD_ID%>">
        <table border="0" width="98%" align="center"   class="collapse">
          <tr > 
            <td  colspan="9" class="tdA">任务报审</td>
          </tr>
          <tr height="25" id="nextStep" style="display:"> 
            <td class="common bgcolor"   width="100">&nbsp;&nbsp;下一步</td>
            <td class="common" >&nbsp;<select style="font-size:9pt;font-color:#FFFFFF;width:122" name="AT_ActionID" onchange="selectAction();">
                <%
            appFlowRs.beforefirst();
            while(appFlowRs.next()) { 
            %>
                <option value="<%=StringFormat.Source2GB(appFlowRs.getFA_ID())%>"><%= StringFormat.Source2GB(appFlowRs.getFA_Name())%></option>
                <%} %>
              </select></td>
          </tr>
          <tr height="25" id="nextPerson"> 
            <td class="common bgcolor"   width="100" nowrap>&nbsp;&nbsp;下一步处理人</td>
            <td class="common">&nbsp;<select name="AT_ApproverID"  style="font-size:9pt;font-color:#FFFFFF;width:122">
              </select></td>
          </tr>
          <tr height="25"> 
            <td align="center" colspan="2" class="tdC">
			<input name="submit" type="submit"   onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1" value="提 交" > 
			 &nbsp;&nbsp;<input onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1" type="button" value="返 回"  onClick="history.back(1);">
          </tr>
        </table>
      </form> 
</td>
</tr>	
</table>
 
</body>
</html>

⌨️ 快捷键说明

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