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

📄 problemlist.jsp

📁 tomcat最新安装程序
💻 JSP
📖 第 1 页 / 共 2 页
字号:
		  checked="";
		  for(int i=0;i<userDept.length;i++){
		     if(userIDShow.equals(userDept[i][2])){
			checked=" selected";
		     }else{
			checked="";
		     }
		     /*
		     如果 userDept[i][2]为空 则不显示
		     */
		     if(null==userDept[i][2])
			continue;
		     if(selfDeptID.equals(userDept[i][0])){
			out.println("<option value=\""+userDept[i][2]+"\""+checked+">"+userDept[i][3]+"</option>");
		     }
		  }
	      %>
              </select> </td>
          </tr>
          <tr>
           <td align="center"  colspan="4" class="tdC">
		   <input type="submit" value="查 询" onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1">
			<% if (D_Serial==null && (noend.equals("r")||(noend.equals("se")) )){%> 
		    <input type="button" value="我的问题" onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1" onClick="javascript:document.location.href='/krm/servlet/DetailServlet?module=deproblem&&status=q&&queryterm=related'">
          <% } %>
           </td>
          </tr>
        </table>
      </form>
      <% } if(i35>0 && D_Serial!=null){%>
      <table border="0" width="98%" height="10%" cellpadding="0" cellspacing="0">
      <tr> 
        <td align="right"> &nbsp; 
	<input type="button" value="添 加" onmouseover="this.className='button2'" onmouseout="this.className='button1'"  class="button1" onClick="javascript:document.location.href='/krm/servlet/DetailServlet?module=deproblem&&status=i&&queryterm=obtain&&D_Serial=<%=D_Serial%>'">
        </td>
       </tr>
      </table>
      <% } %>
      <table border="0" width="98%"  class="collapse">
	<tr>
         <% if (D_Serial!=null) {%>
	    <td  colspan="8" class="tdA">&nbsp;实施问题列表</td>
          <% } else { %> 
    	    <td  colspan="8" class="tdA">&nbsp;实施问题列表</td>
	 <% }%>
	</tr>
	    <tr>
		  <td width="4%" height="15" align="center" class="tdB"  nowrap>序号</td>
		  <td width="30%" height="15" align="center" class="tdB" >问题标题</td>
		  <% if (D_Serial==null) {%>
		  <td width="8%" height="15" align="left" class="tdB"  nowrap>所属任务</td>
	          <% } %>			
		  <td width="12%" height="15" align="center" class="tdB" nowrap>提问日期</td>
		  <td width="6%" height="15" align="left" class="tdB" nowrap>提问人</td>
		  <td width="12%" height="15" align="center" class="tdB"  nowrap>回复日期</td>
		  <td width="6%" height="15" align="center" class="tdB" nowrap>回复人</td>
		  <td width="8%" height="15" align="center" class="tdB" nowrap>问题状态</td>
		  <% if (D_Serial!=null) {%>
		  <td width="10%" height="15" align="center" class="tdB" nowrap>&nbsp; &nbsp; 
                  操作&nbsp; &nbsp;</td>
		  <% } %>
		</tr>
		<%int i = 0;	
		// 查询改用户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();
                
		 
		  if(null != set){
		     while(set.next()){ 
		        Properties setPro = (Properties)replylist.get(i); 		  
         		// 加入数据授权
                        boolean hasRight=false;
		        Iterator it = userids.iterator();
		        // 查询出相应的任务信息
		        DetailBusiness debu = new DetailBusiness();
			   debu.setQueryWhere(set.getD_Serial());
			   debu.execute("query");
			   DetailRecordSet deRdSet = debu.getRecordSet();
			   deRdSet.next();
			  while(it.hasNext()) 
		 	    {
			      String strit = it.next().toString();
				  if( (strit.toString()).equals(deRdSet.getD_ManagerID()) 
				      || (strit.toString()).equals(deRdSet.getUser_ID())
				      || (strit.toString()).equals(deRdSet.getD_AidPerson())
				      || ( ((deRdSet.getD_IntendPerson()).indexOf("#"+strit.toString()+"#"))!=-1)
				       )
				    {
				    	hasRight=true;
						break;
				     }
                  }
		   %>
		<tr <%
		if((i+1)%2==0){
		%> class="bgcolor"<%}%>>
		  <td width="4%" height="15" align="center" class="common" ><%=i+1%></td>
		  <td width="30%" height="15" align="left" class="common" >
		  <% 
  	          // 获得要回复人的ID
	          String needreplyer = setPro.getProperty("needreplyer");
	          String url = "/krm/servlet/replytransferservlet?status=q&&module=d&&RT_PID="+set.getP_ID()+"&&noend="+noend+"&&RF_ID="+set.getFlow_ID()+"&&D_Serial="+D_Serial;
	          if (title!=null && !title.equals(""))
	            url = url + "&&title=" + title;
	          if (senddate!=null && !senddate.equals(""))
	            url = url + "&&senddate=" + senddatetmp;
	          if (task!=null && !task.equals(""))  
	            url = url + "&&task=" + task;
	          if (lastdate!=null && !lastdate.equals(""))
	            url = url + "&&lastdate=" + lastdatetmp;
	          if (usersel!=null && !usersel.equals(""))
	            url = url + "&&userSel=" + usersel;
	          if (deptsel!=null && !deptsel.equals(""))
	            url = url + "&&deptSel=" + deptsel;  
		  if (hasRight||needreplyer.equals(userid)) { %>
		  <a href="<%=url%>">
		     <%=StringFormat.changeHTMLTags(set.getP_Title())%></a>
		  <%} else {%>
		  <%out.println(StringFormat.changeHTMLTags(set.getP_Title()));
		   }%>
		   </td>
		  <%if (D_Serial==null) { %>
		  <td class="common" width="8%" height="15" align="left" >  
		  <a <%if(hasRight){%> href="#" onClick="MM_openBrWindow('/krm/servlet/DetailServlet?module=detail&amp;&amp;status=q&amp;&amp;queryterm=primarykey&amp;&amp;id=<%=deRdSet.getD_Serial()%>&amp;&amp;isproblem=1','detail','scrollbars=no,resizable=yes,width=800,height=500,top=2,left=2')" <%}%>><%=StringFormat.changeHTMLTags(deRdSet.getD_Topic())%>
		  </a>  
		  </td>
		  <% } %>
		  <td width="12%" height="15" align="center" class="common" ><%=set.getP_SendDate()%></td>
		  <td width="6%" height="15" align="left" class="common" ><%=setPro.getProperty("I_Name")%></td>
		  <td width="12%" height="15" align="center" class="common" ><%=setPro.getProperty("replydate")%></td>
		  <td width="6%" height="15" align="center" class="common" >
		  <%
		    String replyuser = setPro.getProperty("replyname");
		    if(replyuser!=null && replyuser.equals("")) {
			   replyuser = set.getReply_UserID();
			   if (replyuser!=null && !replyuser.equals("")) {
			      PersonInfoBusiness pibuid = new PersonInfoBusiness();
			      pibuid.setQueryWhere(replyuser);
			      pibuid.execute("query");
			      PersonInfoRecordSet piRdSetid = pibuid.getRecordSet();
			      piRdSetid.next();
			      out.println(piRdSetid.getI_Name());
				}else {
				  out.println("");
				}  
			 }else {
			      out.println(replyuser);
			 }
		   	%>
		  </td>
		  <%if(set.getP_CT().equals("n")){%>
		  <td width="8%" height="15" align="center" class="common" ><font color="#FF0000">未处理</font></td>
		  <%}else if(set.getP_CT().equals("y")) {%>
		  <td width="8%" height="15" align="center" class="common" >正在处理</td>
		  <% } else { %>
		  <td width="8%" height="15" align="center" class="common" >处理结束</td>
		  <%}
		  if (D_Serial!=null) {%>
		  <td width="10%" height="15" align="center" class="common" >
		  <%
		  int bOk = 0;
		  if(set.getP_CT().equals("n") && userid.equals(setPro.getProperty("userid")))
		     bOk = 1;
		  %>
		  <%
		  if(d35>0 && bOk==1){%> 
		  <a href="/krm/servlet/DetailServlet?module=deproblem&&status=d&&id=<%=set.getP_ID()%>&&D_Serial=<%=D_Serial%>" onclick="return(confirm('确定要删除吗?'))">删除</a>
		  <%} else {%>
		  删除
		  <% } %>
		  <%if(u35>0 && bOk==1){%> 
		  <a href="/krm/servlet/DetailServlet?module=deproblem&&status=u&&id=<%=set.getP_ID()%>&&D_Serial=<%=D_Serial%>&&queryterm=obtain">修改</a>
		  <% } else { %>
		  修改
		  <% }
		  } %>
		  </td>
		</tr>
		<%i++;
		}
		}%>
		<tr><td colspan="13" class="tdC">&nbsp;</td>
		</tr> 
		</table>
	</td>
</tr>	
</table>
</body>
</html>

⌨️ 快捷键说明

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