<% /************************************************************@@ * Program Name : main.jsp * Description : /보고자/보고자 메인 * Author : 강원중 * Create Date : 2004.10.12 * History : @@************************************************************/ %> <%@ page contentType="text/html; charset=UTF-8" import="java.net.URLEncoder" import="java.util.Iterator" import="java.util.List" import="javax.jdo.PersistenceManager" import="javax.jdo.Transaction" import="kr.co.kihyun.beans.entity.*" import="kr.co.kihyun.beans.entity.util.*" import="kr.co.kihyun.beans.user.HttpSSOLogin" import="kr.co.kihyun.beans.user.User" import="kr.co.kihyun.moumi.MoumiConfig" import="kr.co.kihyun.moumi.report.MReport" import="kr.co.kihyun.moumi.doc.MDoc" import="java.util.ResourceBundle"%> <%@page import="javax.jdo.Query"%> <% PersistenceManager pm = new MPersistenceManager(PMF.get().getPersistenceManager()); Transaction tx = pm.currentTransaction(); try{ /********** session내의 userId **********/ String usID = HttpSSOLogin.getLoginID(request); String dpID = HttpSSOLogin.getDeptID(request); int sysAuth = new User().getSysAuth(usID); /************ top value ************/ String dirPath = ""; /********* home taget url ***************/ session.setAttribute("homeTagetURL", "/totsys/repoper/main.jsp"); session.setAttribute("envTagetURL", "/totsys/common/inc/repoper/top/top.jsp"); tx.begin(); List categoryList = pm.getObjectById(Category.class, Category.ID_BOARD).getChildCategories(); MUser mUser = pm.getObjectById(MUser.class, usID); List filterDoc = mUser.getOnGoingDocs(pm, "", null); List tempReports = mUser.getSavedReports(pm, "", null); List acceptReports = mUser.getUnwrittenReports(pm, "", null); List returnReports2 = null; Query q = null; q = pm.newQuery(TotReport.class, acceptReports); StringBuilder filter = new StringBuilder(150) .append("process == TotReportProcess.RETURN"); q.setFilter(filter.toString()); //q.declareImports("import kr.co.kihyun.beans.entity.*;"); //q.declareParameters("TotDocType docType, Date sysdate, MUser user"); q.setOrdering("id DESC"); returnReports2 = (List) q.execute(); tx.rollback(); %> <%=MoumiConfig.getTitle()%>
  처리<%= MoumiConfig.getMessageBundle().getString("moumi.message.doc") %>
 
 
<%= TotDocType.TOT_DOC%><%=TotDocProcess.PRSS%> <%= MoumiConfig.getMessageBundle().getString("moumi.message.doc") %> : <%= filterDoc.size() %> <%= TotReportProcess.TEMP%> <%= MoumiConfig.getMessageBundle().getString("moumi.message.doc") %> : <%= tempReports.size() %> <%= TotReportProcess.RETURN%> <%= MoumiConfig.getMessageBundle().getString("moumi.message.doc") %> : <%= returnReports2.size() %>
 
 

<% for(Iterator iter = categoryList.iterator(); iter.hasNext(); ) { %> <% } %>
<% if(iter.hasNext()) { %> <% } else { %>   <% } %>
<% }catch(Exception ex){ ex.printStackTrace(); out.println(kr.co.kihyun.text.html.ServletUtil.getJavaScript("location='/servlet/kr.co.kihyun.beans.user.HttpSSOLogin?mode=logout';")); }finally{ if(tx.isActive()) tx.rollback(); pm.close(); } %>