<% /** * **********************************************************@@ Program Name * : doc_list.jsp Description : /Áý°èÀÚ/³»¹®¼­ÇÔ/µî·ÏÇÔ/¹®¼­ ¸ñ·Ï Author : ±âÇöÅ×Å© Create * Date : 2010.11.26 History : * @@*********************************************************** */ %> <%@ page contentType="text/html; charset=UTF-8" import="javax.jdo.PersistenceManager" import="javax.jdo.Transaction" import="kr.co.kihyun.moumi.MoumiConfig" import="kr.co.kihyun.beans.entity.*" import="kr.co.kihyun.beans.entity.util.*" import="kr.co.kihyun.lang.MString" import="kr.co.kihyun.lang.MLong" import="kr.co.kihyun.lang.Encoder" import="java.text.SimpleDateFormat" %> <% PersistenceManager pm = new MPersistenceManager(PMF.get().getPersistenceManager()); Transaction tx = pm.currentTransaction(); try { tx.begin(); TotDoc totDoc = pm.getObjectById(TotDoc.class, MLong.parseLong(request.getParameter("docID"))); AcceptanceLimitStrategy acceptanceLimitStrategy = totDoc.getAcceptanceLimitStrategy(); String tmp = null; if(acceptanceLimitStrategy.getLimitCount() == 0){ tmp = new SimpleDateFormat("yyyy-MM-dd HH").format(totDoc.getEndDate()) + "½Ã Á¾·á"; }else{ tmp = MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.endBySubmitTotal") + " Á¾·á"; } if(tmp.contains("9999-12-30")) tmp=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.endManually"); String recTmpMagam = MString.checkNull(tmp); %>
¸»¸Ó¸®<%=TotDocType.TOT_DOC%><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.request")%><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.person")%> <%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.info")%>
<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.registrition")%><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.person")%><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.name")%> <%= MString.checkNull(totDoc.getOwnerName())%> 
<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.request")%> <%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.coporation")%>/<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.devision")%> <%= totDoc.getDept(pm).getName()%>  <%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.telNumber")%> <%= MString.checkNull(totDoc.getOwnerPhone())%> 
E-MAIL <%= MString.checkNull(totDoc.getOwnerEmail())%>  <%="¸¶°¨ÀÏ"%> <%=recTmpMagam%>
<% tx.commit(); } catch (Exception ex) { ex.printStackTrace(); pm.close(); 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(); } %>