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.
 
 
 
 
 
 

286 lines
17 KiB

<%@page import="kr.co.kihyun.service.TotReportService"%>
<%@page import="kr.co.kihyun.service.TotDocService"%>
<%@page import="kr.co.kihyun.beans.user.ApproveGet"%>
<%
/************************************************************@@
* Program Name : main.jsp
* Description : /보고자/보고자 메인
* Author : 강원중
* Create Date : 2004.10.12
* History :
@@************************************************************/
%>
<%@ page contentType="text/html; charset=euc-kr"
import="java.net.URLEncoder" import="java.util.Iterator"
import="java.util.List" import="javax.jdo.PersistenceManager"
import="javax.jdo.Transaction" import="kr.co.kihyun.beans.entity.*"
import="kr.co.kihyun.beans.entity.util.*"
import="kr.co.kihyun.beans.user.HttpSSOLogin"
import="kr.co.kihyun.beans.user.User" import="kr.co.kihyun.moumi.MoumiConfig"
import="kr.co.kihyun.moumi.report.MReport"
import="kr.co.kihyun.moumi.doc.MDoc" import="java.util.ResourceBundle"%>
<%@page import="javax.jdo.Query"%>
<%
long docCnt = 0L;
int reportCnt = 0;
int reportPrssCnt = 0;
int reportRtnCnt = 0;
String usID = HttpSSOLogin.getLoginID(request);
String dpID = HttpSSOLogin.getDeptID(request);
int sysAuth = new User().getSysAuth(usID);
PersistenceManager pm = new MPersistenceManager(PMF.get().getPersistenceManager());
Transaction tx = pm.currentTransaction();
try {
tx.begin();
MUser mUser = pm.getObjectById(MUser.class, usID);
/****************************************************
docCnt = mUser.getOnGoingDocsCount(pm);
reportCnt = mUser.getUnwrittenReportsCount(pm);
*****************************************************/
// DBManager 를 사용하던 방식을 사용하지 않도록 수정. 2014.11.18 by YOUNGJUN,CHO
//TotsysEtc te=new TotsysEtc();
//docCnt=(long)(te.getDocCount(mUser.getId(),mUser.getDept(),mUser.getSysAuth()));
//reportCnt=(long)(te.getReportCount(mUser.getId(),mUser.getDept()));
// 집계진행자료 건수 조회
TotDocService totdocService = new TotDocService(pm);
docCnt = (long)totdocService.getTotDocCount( mUser.getId(),mUser.getDept(),mUser.getSysAuth() );
// 접수자료 건수 조회
TotReportService totReportService = new TotReportService(pm);
reportCnt = (int) totReportService.getTotReportCount( mUser.getId(),mUser.getDept() );
reportPrssCnt = (int) totReportService.getTotReportPrssCount( mUser.getId(),mUser.getDept() );
reportRtnCnt = (int) totReportService.getTotReportRtnCount( mUser.getId(),mUser.getDept() );
tx.rollback();
String docUrl = "/servlet/kr.co.kihyun.beans.user.HttpSSOLogin?redirect=/totsys/totper/mydocbox/prssbox/doc_list.jsp?docType=PRSS";
String reportUrl = "/servlet/kr.co.kihyun.beans.user.HttpSSOLogin?redirect=/totsys/repoper/mydocbox/returnbox/report_list.jsp";
/********** session내의 userId **********/
/************ top value ************/
String dirPath = "";
/********* home taget url ***************/
session.setAttribute("homeTagetURL", "/totsys/repoper/main.jsp");
session.setAttribute("envTagetURL", "/totsys/common/inc/repoper/top/top.jsp");
tx.begin();
ApproveGet aprg = new ApproveGet();
aprg.getApproveReadyCnt(usID);
String readyCnt = aprg.getReady();
aprg.getApproveCompleteCnt(usID);
String completeCnt = aprg.getComplete();
// System.out.println("readyCnt:::::"+readyCnt+"completeCnt:::::"+completeCnt);
tx.rollback();
%>
<html>
<head>
<title><%=MoumiConfig.getTitle()%></title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link href="/totsys/common/css/style.css" rel="stylesheet" type="text/css">
<script>
function openTop(topType){
parent.topx.topForm.topStat.value = topType;
parent.topx.topForm.submit();
parent.topx.menuView(topType,<%=sysAuth%>);
}
function repoperLocation(page){
if(page == "prssbox"){
location.href="/totsys/totper/mydocbox/prssbox/doc_list.jsp?docType=PRSS";
}else if(page == "tempbox"){
location.href="/totsys/repoper/mydocbox/tempbox/report_list.jsp?reportType=TEMP";
}else if(page == "returnbox"){
location.href="/totsys/repoper/mydocbox/returnbox/report_list.jsp";
}
}
</script>
</HEAD>
<body style='' BGCOLOR="#FFFFFF" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 14px;">
<tr>
<td><!--모우미 서브 메인 페이지 컨텐츠 시작-->
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" style="font-size: 13pt; color: black">
<!--// 처리자료 //-->
<img align="bottom" src="/totsys/common/images/title.jpg" border="0">&nbsp;&nbsp;<b>처리<%= MoumiConfig.getMessageBundle().getString("moumi.message.doc")%></b>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#e5edf7">
<tr>
<td width="16" height="16"><img src="images/pw_box01_1.gif" width="16" height="16"></td>
<td background="images/pw_box01_2.gif">&nbsp;</td>
<td width="16"><img src="images/pw_box01_3.gif" width="16" height="16"></td>
</tr>
<tr>
<td background="images/pw_box01_8.gif">&nbsp;</td>
<td align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="center" height="15">
</tr>
<tr align="left">
<td align="left" height="15" style="font-size: 12pt;" nowrap class="kecttep_last_graytd">
<img src="/totsys/common/images/title_circle.gif" width="15" height="15">&nbsp;<strong>접수</strong>
</td>
<td width="150" nowrap class="kecttep_last_graytd"><!-- 접수자료 :: 수신함-->
&nbsp;&nbsp;<a href="/totsys/repoper/mydocbox/returnbox/report_list.jsp">
<%="수신함"%></a>
</td>
<td width="50" nowrap class="kecttep_graytd"><!-- 접수자료 :: 수신함-->
<strong><span class="f_12_orange"><%= reportCnt%>
</span></strong>건
</td>
<td width="150" nowrap class="kecttep_last_graytd"><!-- 재입력요청 자료 -->
&nbsp;&nbsp;<a href="#" onclick="<%if (MoumiConfig.isOnTopMenu()) {%>openTop(2);<%}%>repoperLocation('returnbox');">
<%= TotReportProcess.RETURN%> <%= MoumiConfig.getMessageBundle().getString("moumi.message.doc")%>
</td>
<td width="50" nowrap class="kecttep_last_graytd">
<strong><span class="f_12_orange"><%= reportRtnCnt%>
</span></strong>건</a>
</td>
</tr>
<tr>
<td align="left" height="15" style="font-size: 12pt;" nowrap class="kecttep_last_graytd">
<img src="/totsys/common/images/title_circle.gif" width="15" height="15">&nbsp;<strong>진행</strong>
</td>
<td width="150" nowrap class="kecttep_last_graytd"><!-- 집계집계진행자료 :: 취합현황 자료 : 0건 -->
&nbsp;&nbsp;<a href="#"
onclick="<%if (MoumiConfig.isOnTopMenu()) {%>openTop(1);<%}%>repoperLocation('prssbox');">
<%= MoumiConfig.getMessageBundle().getString("moumi.message.doc.prss.status")%> <%= MoumiConfig.getMessageBundle().getString("moumi.message.doc")%>
</td>
<td width="50" nowrap class="kecttep_graytd">
<strong><span class="f_12_orange"><%= docCnt%>
</span></strong>건</a>
</td>
<td width="150" nowrap class="kecttep_last_graytd"><!-- 제출진행자료 :: 제출현황 TEMP-->
&nbsp;&nbsp;<a href="#"
onclick="<%if (MoumiConfig.isOnTopMenu()) {%>openTop(2);<%}%>repoperLocation('tempbox');">
<%= MoumiConfig.getMessageBundle().getString("moumi.message.totsys.sysadm.prssbox.reports.report_list_jsp")%><%= MoumiConfig.getMessageBundle().getString("moumi.message.doc")%>
</td>
<td width="50" nowrap class="kecttep_last_graytd"> <strong><span class="f_12_orange"><%= reportPrssCnt%>
</span></strong>건</a>
</td >
</tr>
<tr align="left">
<td align="left" height="15" style="font-size: 12pt;" nowrap class="kecttep_last_graytd">
<img src="/totsys/common/images/title_circle.gif" width="15" height="15">&nbsp;<strong>승인(결재)</strong>
</td>
<td width="150" nowrap class="kecttep_last_graytd"><!-- 승인결재대기 :: 승인제출진행 -->
&nbsp;&nbsp;<a href="/totsys/repoper/mydocbox/approve/report_list.jsp?reportType=READY">
<%="승인제출진행"%>
</td>
<td width="50" nowrap class="kecttep_graytd">
<strong><span class="f_12_orange"><%=readyCnt%>
</span></strong>건</a>
</td>
<td width="150" nowrap class="kecttep_last_graytd"><!-- 승인결재완료 :: 승인제출완료 -->
&nbsp;&nbsp;<a href="/totsys/repoper/mydocbox/approve/report_list.jsp?reportType=COMPLETE">
<%="승인제출완료"%>
</td>
<td width="50" nowrap class="kecttep_last_graytd">
<strong><span class="f_12_orange"><%=completeCnt%>
</span></strong>건</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td background="images/pw_box01_4.gif">&nbsp;</td>
</tr>
<tr>
<td height="16"><img src="images/pw_box01_7.gif" width="16" height="16"></td>
<td background="images/pw_box01_6.gif">&nbsp;</td>
<td><img src="images/pw_box01_5.gif" width="16" height="16"></td>
</tr>
</table>
<br /><br />
<!--include페이지를 묶어놓은 테이블-->
<table width="700px" border="0" cellspacing="0" cellpadding="0" >
<tr style="font-size: 12pt;">
<img align="bottom" src="/totsys/common/images/title.jpg" border="0">&nbsp;&nbsp;<b>수신함</b>
</tr>
<tr style="padding-top: 10px;">
<td width="100%" valign="top" colspan="2"><!-- 접수자료 :: 수신함 -->
<jsp:include page="/portlet/A00/report_list.jsp" flush="true" />
</td>
</tr>
</table>
<br />
<table width="700px" border="0" cellspacing="0" cellpadding="0">
<tr style="font-size: 12pt;">
<img align="bottom" src="/totsys/common/images/title.jpg" border="0">&nbsp;&nbsp;<b>취합현황</b>
</tr>
<tr style="padding-top: 10px;">
<td width="100%" valign="top" colspan="2"><!-- 집행진행자료 :: 취합현황 -->
<jsp:include page="/portlet/A00/doc_list.jsp" flush="true" >
<jsp:param name="docType" value="PRSS" />
</jsp:include>
</td>
</tr>
</table>
<br />
<table width="700px" border="0" cellspacing="0" cellpadding="0">
<tr style="font-size: 12pt;">
<img align="bottom" src="/totsys/common/images/title.jpg" border="0">&nbsp;&nbsp;<b>자료실</b>
</tr>
<tr style="padding-top: 10px;">
<td width="100%" valign="top" colspan="2"><!-- 공지사항 boardGroupID=ID_SYSTEM_NOTICE :: 자료실 boardGroupID=ID_PDS -->
<jsp:include page="/portlet/A00/board_list.jsp" flush="true">
<jsp:param name="boardGroupID" value="ID_PDS" />
</jsp:include></td>
</tr>
</table>
<!--test 진행 하는 것입니다. 끝-->
<!--모우미 서브 메인 페이지 컨텐츠 끝--></td>
</tr>
</table>
</BODY>
</HTML>
<%
}catch(Exception ex){
ex.printStackTrace();
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();
}
%>