%
/**
* **********************************************************@@ 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")%> |
|
<%= MString.checkNull(totDoc.getOwnerName(pm))%>
|
<%= totDoc.getDept(pm).getName()%>
|
<%= MString.checkNull(totDoc.getOwnerPhone())%>
|
<%= 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();
}
%>