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

📄 problemadd.jsp

📁 tomcat最新安装程序
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ page contentType="text/html;charset=GB2312"%>
<%@ page import="cn.com.aheadsoft.recordset.DetailRecordSet,cn.com.aheadsoft.recordset.DEProblemRecordSet,cn.com.aheadsoft.util.StringFormat" %>
<%@ page import="cn.com.aheadsoft.recordset.ReplyFlowRecordSet, cn.com.aheadsoft.recordset.ReplyFlowActionRecordSet"%>
<%@ page import="java.util.*,cn.com.aheadsoft.util.*,java.text.DateFormat,cn.com.aheadsoft.recordset.PersonInfoRecordSet" %>
<%@ page import="cn.com.aheadsoft.business.PersonInfoBusiness, cn.com.aheadsoft.recordset.PersonInfoRecordSet"%>
<jsp:useBean id="userinfo" scope="session" class="cn.com.aheadsoft.util.UserInfo"/>
<jsp:useBean id="upm" scope="session" class="cn.com.aheadsoft.manage.UserPurviewManage"/>
<%
	int i35 = upm.getUserPopInt(userinfo,"3","5","i");
	int u35 = upm.getUserPopInt(userinfo,"3","5","u");
	String P_ID = ObjectID.getID();
	DEProblemRecordSet set = (DEProblemRecordSet) request.getAttribute("result");
    if(set != null)  {set.beforefirst();set.next();	}
	DetailRecordSet detail = (DetailRecordSet) request.getAttribute("detail");
	String D_Serial = (String)request.getAttribute("D_Serial");
		
	// 吴江
	ReplyFlowRecordSet rfRdSet = (ReplyFlowRecordSet)request.getAttribute("rfRdSet");
	ReplyFlowActionRecordSet rfaRdSet = (ReplyFlowActionRecordSet)request.getAttribute("rfaRdSet");
	String RF_ID = (String)request.getAttribute("RF_ID");
	String Action_ID = (String)request.getAttribute("Action_ID");
	String id = (String)request.getAttribute("id");
	String title = (String)request.getAttribute("title"); if (title==null) title="";
    String content = (String)request.getAttribute("content"); if (content==null) content="";
    String replyer = (String)request.getAttribute("replyer"); if (replyer==null) replyer="";
    String replyname = (String)request.getAttribute("replyname"); if (replyer==null) replyname="";

	PersonInfoRecordSet person=(PersonInfoRecordSet)request.getAttribute("personSet");
	
	
	
	
                // 查询改用户id所属的部门,如果部门为“公司领导”,则对所有任务都可以放开权限 先锋特有
                String curruserid = userinfo.GetUserID();
                PersonInfoBusiness pifo = new PersonInfoBusiness();
                pifo.setQueryWhere(curruserid);
                pifo.execute("query");
                PersonInfoRecordSet piRdSet = pifo.getRecordSet();
                piRdSet.next();
                String deptid = piRdSet.getDept_ID();
    
%>
<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);
}
	   
</SCRIPT>
<script language="JavaScript" type="text/JavaScript">
<!--
	function openWin(url) {
		window.open(url,'','toolbar=no,location=no,menubar=no,resizable=1,scrollbars=no,left=0,top=0,width=600,height=400');
	}	

	function isSubmit(){
		isok = false;
		if(document.addplan.P_Title.value == null || document.addplan.P_Title.value == ""){
			alert("请填写问题标题!");
		}else{
			document.addplan.submit();
		}
		
	}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);  
}
  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 i=0;
		while(rfaRdSet.next()){
			out.println("action["+String.valueOf(i)+"]=new Array();");
			out.println("action["+String.valueOf(i)+"][0]='"+rfaRdSet.getFA_ID()+"';");
			out.println("action["+String.valueOf(i)+"][1]='"+rfaRdSet.getFA_Roles()+"';");
			out.println("action["+String.valueOf(i)+"][2]='"+rfaRdSet.getFA_Name()+"';");
			out.println("action["+String.valueOf(i)+"][3]='"+rfaRdSet.getFA_FlowID()+"';");
			i++;
		}
	%>    
	function selectAction() {
	
		isNav = (navigator.appName.indexOf("Netscape") != -1) ? true : false;
		isIE = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;
		len=document.addplan.Reply_UserID.options.length;
		if(len>0){
			for(i=len-1;i>=0;i--)
			document.addplan.Reply_UserID.remove(i);
		}
		index=document.addplan.Action_ID.selectedIndex;
		values=document.addplan.Action_ID.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.addplan.Reply_UserID.add(optionnew);
						}else {
							document.addplan.Reply_UserID.appendChild(optionnew);
						}
					}
				}
			}
		}
	}
	function selectActionForU() {
	
		isNav = (navigator.appName.indexOf("Netscape") != -1) ? true : false;
		isIE = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;
		len=document.addplan.Reply_UserID.options.length;
		if(len>0){
			for(i=len-1;i>=0;i--)
			document.addplan.Reply_UserID.remove(i);
		}
		index=document.addplan.Action_ID.selectedIndex;
		values=document.addplan.Action_ID.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(set!=null){%>if(person[j][1]=="<%=set.getReply_UserID()%>")
						{
							optionnew.selected=true;
						}		
						<%}%>						
						if(isIE) {
							document.addplan.Reply_UserID.add(optionnew);
						}else {
							document.addplan.Reply_UserID.appendChild(optionnew);
						}
					}
				}
			}
		}
      }	
	function selectFlow() {
		isNav = (navigator.appName.indexOf("Netscape") != -1) ? true : false;
		isIE = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;
		len=document.addplan.Action_ID.options.length;
		if(len>0){
			for(i=len-1;i>=0;i--)
			document.addplan.Action_ID.remove(i);
		}
		index=document.addplan.RF_ID.selectedIndex;
		values=document.addplan.RF_ID.options[index].value;
		for(i=0;i<action.length;i++) {
			if(action[i][3]==values) {
				optionnew=document.createElement("option");
				optionnew.text=action[i][2];
				optionnew.value=action[i][0];					
				if(isIE) {
						document.addplan.Action_ID.add(optionnew);
				}else {
						document.addplan.Action_ID.appendChild(optionnew);
				}
			}
		}
	}
	function selectFlowForU() {
		isNav = (navigator.appName.indexOf("Netscape") != -1) ? true : false;
		isIE = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;
		len=document.addplan.Action_ID.options.length;
		if(len>0){
			for(i=len-1;i>=0;i--)
			document.addplan.Action_ID.remove(i);
		}

⌨️ 快捷键说明

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