📄 zhexamed.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{%><%String [] planids = request.getParameterValues("planids");request.getSession();Collection collect=(Collection)session.getAttribute("examzonghec");Context ctx=new InitialContext();Object ref=ctx.lookup("SchemeplanController");SchemeplanControllerHome schemeplanControllerHome=(SchemeplanControllerHome) PortableRemoteObject.narrow(ref,SchemeplanControllerHome.class);;SchemeplanController schemeplanController=schemeplanControllerHome.create();Collection cc = new ArrayList();for(int i=0;i<planids.length;i++){Integer planid = new Integer(planids[i]);Iterator ii = collect.iterator();while(ii.hasNext()){SchemeplanStruct spst = (SchemeplanStruct)ii.next();if(spst.planid.intValue()==planid.intValue()){cc.add(spst);}}SchemeplanStruct sps = new SchemeplanStruct();sps = schemeplanController.getPlanByPlanid(planid);sps.planstatus = new Integer(2);schemeplanController.editPlan(sps.planid,sps);}collect.removeAll(cc);Iterator ti = collect.iterator();while(ti.hasNext()){SchemeplanStruct sps = (SchemeplanStruct)ti.next();sps.planstatus = new Integer(3);schemeplanController.editPlan(sps.planid,sps);}session.removeAttribute("examzonghec");response.sendRedirect("zonghesp.jsp");%><%}%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -