📄 bfhq_judge.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GBK" import="imis.*,javax.naming.*,javax.rmi.PortableRemoteObject,java.util.*"%><% request.setCharacterEncoding("GBK"); session=request.getSession(); userStruct user=(userStruct)session.getAttribute("user"); if(user==null){ response.sendRedirect("../../login.html"); }else{%><% Integer planyear = new Integer(request.getParameter("planyear")); Integer unitid = new Integer(request.getParameter("unitid")); Context ctx=new InitialContext(); Object ref=ctx.lookup("SchemeplanController"); SchemeplanControllerHome schemeplanControllerHome=(SchemeplanControllerHome) PortableRemoteObject.narrow(ref,SchemeplanControllerHome.class);; SchemeplanController schemeplanController=schemeplanControllerHome.create(); Collection c = new ArrayList(); c = schemeplanController.getPlanByPlanyear(planyear); boolean ok = false;Judge jd = new Judge(); Iterator i = c.iterator(); while(i.hasNext()) { SchemeplanStruct sps = (SchemeplanStruct)i.next(); if(sps.planstatus.intValue()==3) { if(jd.decide(unitid,sps.unitid)) {ok = true;break; } } } if(ok) { %><font color="red"><%=planyear%>年度的申请有计划处审批未通过,或者修改后计划处还没有审批的记录!<br>仍然要上报请点上报按钮,要修改未通过的记录请点修改按钮!</font><br><br><input type="button" name="fdafg" value=" 上 报 " class="file" onclick="location='bfhq_up.jsp?planyear=<%=planyear%>&unitid=<%=unitid%>'"> <input type="button" name="fdafg" value=" 修 改 " class="file" onclick="location='bfhqmodify.jsp?planyear=<%=planyear%>&unitid=<%=unitid%>'"> <input type="button" name="Button32" value=" 返 回 " class="file" onClick="location='up_query.jsp'"> <% } else {response.sendRedirect("bfhq_up.jsp?planyear="+planyear+"&unitid="+unitid); }%><%}%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -