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.
126 lines
5.5 KiB
126 lines
5.5 KiB
|
|
<% /** |
|
* **********************************************************@@ Program Name |
|
* : doc_list.jsp Description : /집계자/내문서함/등록함/문서 목록 Author : 기현테크 Create |
|
* Date : 2010.11.27 History : |
|
* @@*********************************************************** |
|
*/ |
|
%> |
|
|
|
<%@ page contentType="text/html; charset=euc-kr" |
|
import="kr.co.kihyun.lang.MLong" |
|
import="kr.co.kihyun.lang.MInteger" |
|
import="kr.co.kihyun.lang.MString" |
|
import="kr.co.kihyun.moumi.Moumi" |
|
import="java.net.URLDecoder" |
|
import="kr.co.kihyun.beans.entity.*" |
|
import="javax.jdo.PersistenceManager" |
|
import="javax.jdo.Transaction" |
|
import="kr.co.kihyun.beans.user.HttpSSOLogin" |
|
import="kr.co.kihyun.beans.user.DeptAdd" |
|
import="kr.co.kihyun.beans.entity.util.*"%> |
|
<%@ include file="/totsys/common/inc/sec/secure.inc.jsp"%> |
|
<% PersistenceManager pm = new MPersistenceManager(PMF.get().getPersistenceManager()); |
|
Transaction tx = pm.currentTransaction(); |
|
try { |
|
String usID = HttpSSOLogin.getLoginID(request); |
|
String dtID = HttpSSOLogin.getDeptID(request); |
|
DeptAdd dept = new DeptAdd(); |
|
int grade = dept.getGrade(usID, dtID); |
|
int foundation = dept.getFoundation(usID, dtID); |
|
/** |
|
* ***** Parameter ******** |
|
*/ |
|
Long reportID = MLong.parseLong(request.getParameter("reportID")); |
|
int tmp1 = MInteger.parseInt(request.getParameter("tmp1"), 0); //기본정보 표출을 위한 변수 |
|
|
|
tx.begin(); |
|
|
|
TotReport totReport = pm.getObjectById(TotReport.class, reportID); |
|
%> |
|
|
|
<SCRIPT language=javascript> |
|
<!-- |
|
function viewNote() { |
|
var width = 600; |
|
var height = 350; |
|
var leftpos = (screen.width - width) / 2; |
|
var toppos = (screen.height - height) / 2; |
|
window.open("/totsys/common/web/note/popup_doc_history.jsp?reportID=<%=reportID%>", "", "width=" + width + ", height=" + height + ", toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left= " + leftpos + " ,top= " + toppos); |
|
} |
|
//--> |
|
</SCRIPT> |
|
|
|
<!--세미타이틀--> |
|
<tr> |
|
<td colspan="4"> |
|
<table border="0" width="100%" cellpadding="0" cellspacing="0"> |
|
<tr> |
|
<td style="width: 14"><img src="/totsys/common/images/ico_3.gif"></td> |
|
<td class="kecttep_title" style="padding-left: 5" align="left" width="100"> |
|
<%=Moumi.getMessageBundle().getString("moumi.message.tot_report.submit")%><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.person")%><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.info")%></td> |
|
<td> </td> |
|
<td> </td> |
|
</tr> |
|
<tr> |
|
<td height="3"></td> |
|
</tr> |
|
</table> |
|
</td> |
|
</tr> |
|
|
|
<tr> |
|
<td colspan="4"> |
|
<table border="1px" class="kecttep_list_table" bordercolor="#e3e3e3" |
|
width="800" cellpadding="0" cellspacing="0"> |
|
<tr> |
|
<%if (tmp1 != 0) {%> |
|
<td width="147" class="kecttep_tdmenu" nowrap style="padding-left: 20px;"> |
|
<%=Moumi.getMessageBundle().getString("moumi.message.tot_report.submit")%><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.person")%> |
|
</td> |
|
<td width="200" style="padding-left: 15; padding-top: 4;" class="kecttep_list_graytd" nowrap> |
|
<%= totReport.getOwnerName()%> |
|
</td> |
|
<td width="147" class="kecttep_tdmenu" nowrap style="padding-left: 20px;"> |
|
<%=TotDocType.SUB_DOC%><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.modify")%> |
|
</td> |
|
<td width="200" style="padding-left: 15; padding-top: 4;" class="kecttep_list_graytd" nowrap> |
|
<a href="#" onClick="viewNote();"> |
|
<%=Moumi.getMessageBundle().getString("moumi.message.tot_report.career")%> |
|
</a> |
|
</td> |
|
<%} else {%> |
|
<td width="147" class="kecttep_tdmenu" style="padding-left: 20px;"> |
|
<%=Moumi.getMessageBundle().getString("moumi.message.tot_report.submit")%><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.person")%> |
|
</td> |
|
<td width="200" style="padding-left: 15; padding-top: 4;" class="kecttep_list_graytd" colspan="3"> |
|
<%= totReport.getOwnerName()%> |
|
</td> |
|
<%}%> |
|
</tr> |
|
<tr> |
|
<td width="147" class="kecttep_tdmenu" nowrap style="padding-left: 20px;">E-MAIL</td> |
|
<td width="212" style="padding-left: 15; padding-top: 4;" class="kecttep_list_graytd" nowrap> |
|
<%= MString.checkNull(totReport.getOwnerEmail())%> |
|
</td> |
|
<td width="170" class="kecttep_tdmenu" nowrap style="padding-left: 20px;"> |
|
<%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.telNumber")%> |
|
</td> |
|
<td width="*" style="padding-left: 15; padding-top: 4;" class="kecttep_list_graytd" nowrap> |
|
<%= MString.checkNull(totReport.getOwnerPhone())%> |
|
</td> |
|
</tr> |
|
</table> |
|
</td> |
|
</tr> |
|
<% |
|
tx.rollback(); |
|
} catch (Exception ex) { |
|
ex.printStackTrace(); |
|
} finally { |
|
if (tx.isActive()) { |
|
tx.rollback(); |
|
} |
|
pm.close(); |
|
} |
|
%>
|
|
|