knu project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

98 lines
4.7 KiB

<%
/**
* **********************************************************@@ 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);
%>
<tr>
<td></td>
</tr>
<tr>
<td colspan="4">
<table>
<tr>
<td class="kecttep_title"><img alt="말머리" src="/totsys/common/images/ico_3.gif"><%=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")%></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="4">
<table class="kecttep_list_table">
<tr>
<td class="kecttep_tdmenu_middle" style="padding-left: 20px; width: 150px;">
<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.registrition")%><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.person")%><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.name")%>
</td>
<td colspan="3" class="kecttep_last_graytd" style="padding-left: 15px; padding-top: 4px;">
<%= MString.checkNull(totDoc.getOwnerName(pm))%>&nbsp;
</td>
</tr>
<tr>
<td class="kecttep_tdmenu_middle" style="padding-left: 20px; height: 27px;">
<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.request")%>
<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.coporation")%>/<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.devision")%>
</td>
<td class="kecttep_last_graytd" style="padding-left: 15px; padding-top: 4px; width: 300px;">
<%= totDoc.getDept(pm).getName()%>&nbsp;
</td>
<td class="kecttep_tdmenu_middle"nowrap style="padding-left: 20px; width: 150px; height: 27px;">
<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.telNumber")%>
</td>
<td class="kecttep_last_graytd" style="padding-left: 15px; padding-top: 4px;">
<%= MString.checkNull(totDoc.getOwnerPhone())%>&nbsp;
</td>
</tr>
<tr>
<td class="kecttep_tdmenu" style="padding-left: 20px;">E-MAIL</td>
<td class="kecttep_last_graytd_bottom" style="padding-left: 15px; padding-top: 4px;"><%= MString.checkNull(totDoc.getOwnerEmail())%>&nbsp;</td>
<td class="kecttep_tdmenu" style="padding-left: 20px; width: 80px;"><%="마감일"%></td>
<td class="kecttep_last_graytd_bottom" style="padding-left: 15px; padding-top: 4px;"><%=recTmpMagam%></td>
</tr>
</table>
</td>
</tr>
<%
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();
}
%>