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.
 
 
 
 
 
 

122 lines
5.2 KiB

<% /**
* **********************************************************@@ Program Name
* : doc_list.jsp Description : /집계자/내문서함/등록함/문서 목록 Author : 기현테크 Create
* Date : 2010.11.27 History :
* @@***********************************************************
*/
%>
<%@ page contentType="text/html; charset=UTF-8"
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>
<!--
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>
<tbody>
<tr>
<td class="kecttep_title"><img alt="글머리" src="/totsys/common/images/ico_3.gif">
<%=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>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="4">
<table class="kecttep_list_table">
<tr>
<%if (tmp1 != 0) {%>
<td class="kecttep_tdmenu_middle" style="padding-left: 20px; width: 150px;">
<%=Moumi.getMessageBundle().getString("moumi.message.tot_report.submit")%><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.person")%>&nbsp;
</td>
<td style="padding-left: 15px; padding-top: 4px; width: 300px;" class="kecttep_last_graytd">
<%= totReport.getOwnerName(pm)%>&nbsp;
</td>
<td class="kecttep_tdmenu" style="padding-left: 20px; width: 150px;">
<%=TotDocType.SUB_DOC%><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.modify")%>&nbsp;
</td>
<td style="padding-left: 15px; padding-top: 4px;" class="kecttep_list_graytd">
<a href="#" onClick="viewNote();">
<%=Moumi.getMessageBundle().getString("moumi.message.tot_report.career")%>&nbsp;
</a>
</td>
<%} else {%>
<td class="kecttep_tdmenu_middle" style="padding-left: 20px; width: 150px;">
<%=Moumi.getMessageBundle().getString("moumi.message.tot_report.submit")%><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.person")%>&nbsp;
</td>
<td colspan="3" style="padding-left: 15px; padding-top: 4px;" class="kecttep_last_graytd">
<%= totReport.getOwnerName(pm)%>&nbsp;
</td>
<%}%>
</tr>
<tr>
<td class="kecttep_tdmenu" style="padding-left: 20px; width: 150px;">E-MAIL</td>
<td style="padding-left: 15px; padding-top: 4px; width: 300px;" class="kecttep_last_graytd_bottom">
<%= MString.checkNull(totReport.getOwnerEmail())%>&nbsp;
</td>
<td class="kecttep_tdmenu" style="padding-left: 20px; width: 150px;">
<%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.telNumber")%>&nbsp;
</td>
<td style="padding-left: 15px; padding-top: 4px;" class="kecttep_last_graytd_bottom">
<%= MString.checkNull(totReport.getOwnerPhone())%>&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<%
tx.rollback();
} catch (Exception ex) {
ex.printStackTrace();
} finally {
if (tx.isActive()) {
tx.rollback();
}
pm.close();
}
%>