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.
645 lines
31 KiB
645 lines
31 KiB
|
|
<%@page import="java.util.Date"%> |
|
<%@page import="kr.co.kihyun.util.Base64_2"%> |
|
<%@page import="kr.co.kihyun.util.Base64"%> |
|
<%@page import="java.net.URLDecoder"%> |
|
<%/** |
|
* **********************************************************@@ Program Name |
|
* : report_view.jsp Description : /보고자/내문서함/임시보고함/보고자료 보기 Author : 기현테크 |
|
* Create Date : 2010.11.26 History : |
|
* @@*********************************************************** |
|
*/%> |
|
|
|
<%@ page contentType="text/html; charset=euc-kr" |
|
import="java.net.URLEncoder" |
|
import="javax.jdo.PersistenceManager" |
|
import="javax.jdo.Query" |
|
import="kr.co.kihyun.beans.entity.util.*" |
|
import="kr.co.kihyun.beans.user.HttpSSOLogin" |
|
import="kr.co.kihyun.lang.MString" |
|
import="kr.co.kihyun.lang.MLong" |
|
import="kr.co.kihyun.moumi.MoumiConfig" |
|
import="kr.co.kihyun.beans.entity.MUser" |
|
import="kr.co.kihyun.beans.user.DeptAdd" |
|
import="kr.co.kihyun.beans.entity.TotDoc" |
|
import="kr.co.kihyun.beans.entity.TotReport" |
|
import="kr.co.kihyun.beans.entity.TotReportProcess" |
|
import="kr.co.kihyun.beans.user.*" |
|
import="kr.co.kihyun.moumi.report.MReport" |
|
import="kr.co.kihyun.beans.totsys.report.Report" |
|
import="kr.co.kihyun.lang.MInteger" |
|
import="kr.co.kihyun.beans.totsys.repoper.RepoadmList" |
|
import="kr.co.kihyun.beans.totsys.report.ReportView" |
|
import="kr.co.kihyun.beans.totsys.report.ReportViewManager" |
|
import="javax.jdo.PersistenceManager" |
|
import="javax.jdo.Transaction" |
|
import="kr.co.kihyun.beans.entity.util.*" |
|
import="kr.co.kihyun.beans.entity.TotDoc" |
|
import="org.slf4j.Logger" |
|
import="org.slf4j.LoggerFactory" |
|
import="kr.co.kihyun.beans.entity.Board" |
|
import="kr.co.kihyun.service.*" |
|
import="kr.co.kihyun.service.vo.*" |
|
import="kr.co.kihyun.text.html.TagFilter" |
|
import="kr.co.kihyun.lang.Encoder" |
|
import="kr.co.kihyun.beans.entity.*"%> |
|
<%@ page import="java.util.Map.Entry"%> |
|
<%@ page import="java.util.List"%> |
|
<%@ include file="/totsys/common/inc/sec/secure.inc.jsp"%> |
|
<% |
|
PersistenceManager pm = new MPersistenceManager(PMF.get().getPersistenceManager()); |
|
Transaction tx = pm.currentTransaction(); |
|
try { |
|
/** |
|
* ******** session내의 userId ********* |
|
*/ |
|
String usID = HttpSSOLogin.getLoginID(request); |
|
String dtID = HttpSSOLogin.getDeptID(request); |
|
String deptName = HttpSSOLogin.getDeptName(request); |
|
|
|
// DeptAdd dept = new DeptAdd(); |
|
// int grade = dept.getGrade(usID, dtID); |
|
// int foundation = dept.getFoundation(usID, dtID); |
|
|
|
//String rootDept = dept.getRootDept(usID); |
|
/** |
|
* ******** Parameter ********* |
|
*/ |
|
Long reportID = MLong.parseLong(request.getParameter("reportID")); |
|
Long docID = MLong.parseLong(request.getParameter("docID")); |
|
String totperInfo = clearXSS(MString.checkNull(request.getParameter("totperInfo")), ""); |
|
String reportType = clearXSS(request.getParameter("reportType"), null); |
|
Long repoadminID = MLong.parseLong(request.getParameter("repoadminID")); |
|
String tmpStrMagam = clearXSS(request.getParameter("tmpStrMagam"), null); |
|
//String tmpSubStrEndDate = clearXSS(request.getParameter("tmpSubStrEndDate"), null); |
|
/*tmpSubStrEndDate = tmpSubStrEndDate.replaceAll("-", ""); |
|
tmpSubStrEndDate = tmpSubStrEndDate.replaceAll(":", "");*/ |
|
//System.out.println(" tmpSubStrEndDate:::::::" + tmpSubStrEndDate + " tmpStrMagam::::::" + tmpStrMagam); |
|
String strPage = clearXSS(request.getParameter("strPage"), ""); |
|
String findOption = clearXSS(request.getParameter("findOption"), null); |
|
String findWord = clearXSS(Encoder.toJava(request.getParameter("findWord")), null); |
|
|
|
session.setAttribute("compSuccTargetURI", "/totsys/repoper/mydocbox/subtempbox/report_list.jsp?reportType=" + reportType); |
|
|
|
String procMode = request.getParameter("proc_mode"); |
|
|
|
if (MString.isNull(procMode)) { |
|
|
|
String tmpFlag = null; |
|
String tmpAcceptFlag = null; |
|
|
|
|
|
String recogFlag3 = clearXSS(MString.checkNull(tmpFlag),"N"); |
|
session.setAttribute("compSuccTargetURI", "/totsys/repoper/mydocbox/subtempbox/report_list.jsp?reportType="+reportType); |
|
|
|
String alertState = clearXSS(MString.checkNull(request.getParameter("alertState")),"N"); |
|
String cancelState = clearXSS(MString.checkNull(request.getParameter("cancelState")),"N"); |
|
if(alertState.equals("Y")){ |
|
out.println("<script> alert(\"승인지정 하셨습니다. 확인을 눌러주십시요\")</script>"); |
|
} |
|
if(cancelState.equals("Y")){ |
|
out.println("<script> alert(\"승인회수 하셨습니다. 확인을 눌러주십시요\")</script>"); |
|
} |
|
|
|
Repoadm repoadm = null; |
|
// TotReport totReport = pm.getObjectById(TotReport.class, reportID); |
|
TotDoc totDoc = pm.getObjectById(TotDoc.class, docID); |
|
String accDocCd = clearXSS(MString.checkNull(request.getParameter("accDocCd")), ""); |
|
// String daegu = totReport.getTotDoc().getDept().substring(0, 2); |
|
|
|
boolean closedFlag = false; |
|
|
|
String docName = totDoc.getName(); |
|
Long downDocId = null; |
|
|
|
downDocId = totDoc.getId(); |
|
|
|
String doctName = totDoc.getName(); |
|
String doctName2 = totDoc.getName(); |
|
|
|
/* |
|
doctName=Base64.Base64encoding(doctName); |
|
doctName=doctName.replaceAll("\n"," "); |
|
*/ |
|
doctName = Base64_2.encode(doctName); |
|
doctName = URLEncoder.encode(doctName, "UTF-8"); |
|
//doctName=doctName.replaceAll("\n",""); |
|
|
|
//System.out.println("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ :"+doctName); |
|
//System.out.println("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ :"+new String(Base64_2.decode(doctName))); |
|
String doctName4 = new String(Base64_2.decode(doctName)); |
|
|
|
if (repoadminID != null) { |
|
repoadm = pm.getObjectById(Repoadm.class, repoadminID); |
|
} |
|
|
|
tx.begin(); |
|
|
|
pm.refresh(totDoc); |
|
pm.makePersistent(totDoc); |
|
|
|
int totRange = totDoc.getTotRange().ordinal(); |
|
tx.commit(); |
|
|
|
//String slav = clearXSS(MString.checkNull(totReport.getTotDoc().getSlaveTotDocs().toString()),""); |
|
String slav = ""; |
|
|
|
Long tmpLong = totDoc.getId(); |
|
slav = clearXSS(MString.checkNull(tmpLong.toString()), "[]"); |
|
|
|
String boardGroupID = Category.ID_TOT_DOC_COMMENT; |
|
String url = clearXSS(request.getParameter("url"), ""); |
|
|
|
if (url == null) { |
|
url = ""; |
|
} |
|
|
|
String boardContents = ""; |
|
String svrFilenames = ""; |
|
// int visit = 0; |
|
|
|
// Board totperComment = totReport.getTotDoc().getBoard(); |
|
// |
|
// if (totperComment != null) { |
|
// |
|
// tx.begin(); |
|
// boardContents = TagFilter.convertSpace(totperComment.getContents()); |
|
// |
|
// for (Entry<String, List<Byte>> entry : totperComment.getAttachments().entrySet()) { |
|
// svrFilenames += entry.getKey() + ";"; |
|
// } |
|
//// visit = totperComment.getVisit(); |
|
//// totperComment.setVisit(visit + 1); |
|
//// pm.makePersistent(totperComment); |
|
// tx.rollback(); |
|
// } |
|
|
|
String titleName = URLEncoder.encode(MoumiConfig.getMessageBundle().getString("moumi.message.tot_report.recog") + MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.box") + doctName2, "UTF-8"); |
|
|
|
tx.begin(); |
|
%> |
|
|
|
|
|
<html> |
|
<head> |
|
<title><%=MoumiConfig.getTitle()%></title> |
|
<link rel="stylesheet" href="/totsys/common/css/text.css" type="text/css"> |
|
<link rel="stylesheet" href="/totsys/common/css/kecttep.css" type="text/css"> |
|
<link rel="stylesheet" href="/totsys/common/css/tabs.css" type="text/css"> |
|
<link rel="stylesheet" href="/totsys/common/css/SquareButtons.css" type="text/css"> |
|
<script src="/totsys/common/js/rollover.js"></script> |
|
<script src="/totsys/common/js/popup.js"></script> |
|
<script type="text/javascript" src="/totsys/common/js/jquery-1.6.2.min.js"></script> |
|
<script type="text/javascript" src="/totsys/common/js/jquery.fixFormTable.js"></script> |
|
<script type="text/javascript" src="/totsys/common/js/jquery.custom.indicator.js"></script> |
|
<script> |
|
function reportComp() { |
|
if (<%=closedFlag%> == false) |
|
{ |
|
alert('집계가 종료되지않았습니다. 먼저 집계를 종료하신후 승인상신하셔야 합니다'); |
|
return false; |
|
} |
|
|
|
// var uri = '/totsys/memo/rereport/pop_accDocCd.jsp'; |
|
// sendReport = getOpener(uri, 'sendReport', 300, 200, 'center', 'middle', 'no', 'no'); |
|
// sendReport.focus(); |
|
alert("<%= MoumiConfig.getMessageBundle().getString("moumi.message.popup.docSubmitTotdoc") %>"); |
|
compForm.prss.value = '<%=MReport.COMP%>'; |
|
compForm.submit(); |
|
} |
|
|
|
// 재입력 상태로 만들어 목록에서 더 이상 나타나지 않게 하고 |
|
// 집계가 재진행 될 경우 재입력요청 상태로 접수함에 나타남. |
|
function reportDel() { |
|
if (!confirm("<%= MoumiConfig.getMessageBundle().getString("moumi.message.popup.deletion")%>")) { |
|
return; |
|
} |
|
compForm.proc_mode.value = "delete"; |
|
compForm.prss.value = '<%=MReport.RETURN%>'; |
|
compForm.submit(); |
|
} |
|
|
|
function printReport() { |
|
var uri = '/totsys/common/inc/documents/report/report_view_print.jsp?reportID=<%=reportID%>'; |
|
sendReport = getOpener(uri, 'sendReport', 600, 650, 'center', 'middle', 'yes', 'yes'); |
|
sendReport.focus(); |
|
} |
|
|
|
function NotDocGO() { |
|
var bool = confirm("<%=MoumiConfig.getMessageBundle().getString("moumi.message.popup.notTrans")%>"); |
|
if (bool) { |
|
NotDoc.submit(); |
|
} else |
|
return; |
|
} |
|
|
|
function prssForm() { |
|
if (confirm("<%= MoumiConfig.getMessageBundle().getString("moumi.message.popup.collectInit")%>")) { |
|
prssChange.submit(); |
|
} |
|
} |
|
|
|
function deptRegist() { |
|
|
|
var height = screen.height; |
|
var width = screen.width; |
|
var leftpos = width / 2 - 350; |
|
var toppos = height / 2 - 350; |
|
var urlname = "/totsys/common/web/report_dept/edit_dept_list.jsp?reportID=<%=reportID%>&usedType=RECOG"; |
|
|
|
post = window.open(urlname, "post", "width=713, height=425, toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=" + leftpos + ",top=" + toppos); |
|
post.focus(); |
|
} |
|
|
|
|
|
function acptdoc() { |
|
if (confirm("<%=MoumiConfig.getMessageBundle().getString("moumi.message.popup.deletion")%>")) { |
|
acptdocform.target = "hiddenFrame"; |
|
acptdocform.submit(); |
|
} |
|
} |
|
|
|
//LJH |
|
function sendDraft() { // 엑셀 결재하기 버튼을 눌렀을 시 |
|
var height = screen.height; |
|
var width = screen.width; |
|
var leftpos = width / 2 - 350; |
|
var toppos = height / 2 - 350; |
|
frm = document.payForm; |
|
frm.action = '/servlet/kr.co.kihyun.beans.totsys.repoper.HttpExcelDown'; |
|
frm.target = 'payform'; |
|
frm.method = 'post'; |
|
win = window.open('', 'payform', "width=713,height=455,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left=" + leftpos + ",top=" + toppos); |
|
win.focus(); |
|
frm.submit(); |
|
//location.href="./moumi_ex.jsp?reportID=<%= reportID%>"; |
|
} |
|
|
|
//승인상신 버튼 |
|
function sendNeisRecog(p_reportID) { |
|
if (<%=closedFlag%> == false) { |
|
alert('집계가 종료되지않았습니다. 먼저 집계를 종료하신후 승인상신하셔야 합니다.'); |
|
return false; |
|
} |
|
|
|
try { |
|
$.ajax({ |
|
url:"/servlet/kr.co.kihyun.service.servlet.AjaxProcessServlet", |
|
type:"POST", |
|
dataType:"json", |
|
async: true, |
|
data:{ |
|
proc_type:"send_neis_recog", |
|
report_id:p_reportID |
|
}, |
|
success:function(data) { |
|
fn_callBackForSuccess(data); |
|
}, |
|
error:function(e) { |
|
alert("error=" + e); |
|
} |
|
//, |
|
//beforeSend:function() { |
|
// $.customIndicator.show(window.self); |
|
//}, |
|
//complete:function() { |
|
// $.customIndicator.hide(window.self); |
|
//} |
|
}); |
|
} catch (e) { |
|
alert(e.message); |
|
} |
|
} |
|
|
|
function fn_callBackForSuccess(data) { |
|
var target_win = null; |
|
var unModifiableCount = 0 |
|
|
|
if( data != null ) { |
|
for(var i = 0; i < data.length; i++ ) { |
|
unModifiableCount = data[i].unModifiableCount; |
|
} |
|
} |
|
|
|
if(unModifiableCount > 0) { |
|
alert('제출자료의 정보를 수정할 수 없습니다. 제출된 자료가 결재대기중 또는 결재완료된 상태에 있습니다.'); |
|
return false; |
|
} |
|
|
|
target_win = window.open("http://<%= request.getServerName().replace("ats", "gan")%>/displayXUI.jsp?mipid=cm.bcm.cfm.rt::bcm_cfmrt00_m01.xfdl&reportID=<%=reportID%>&USER_ID=<%=usID%>&DEPT_CODE=<%=dtID%>&doctName=<%=doctName%>", "NEIS_POPUP", "width=835px, height=555px, top=0px, left=0px, toolbar=no, scrollbars=no, resizable=no, status=no, location=no, menubar=no, fullscreen=no"); |
|
//document.location.href= "report_list.jsp?reportType=TEMP"; |
|
fn_goToList(); |
|
} |
|
|
|
/* |
|
* 접수자료 상세페이지로 이동처리하는 함수 |
|
*/ |
|
function fn_goToAcceptPage() { |
|
document.rsForm.submit(); |
|
} |
|
|
|
/* |
|
* 목록페이지로 이동처리하는 함수 |
|
*/ |
|
function fn_goToList() { |
|
document.listForm.submit(); |
|
} |
|
|
|
/* |
|
* 자료수정Tab으로 이동처리하는 함수 |
|
*/ |
|
function fn_goToModofyTab() { |
|
document.modifyForm.submit(); |
|
} |
|
|
|
function deptSelect2() |
|
{ |
|
etc2.deptIDs.value=dform.deptIDs.value; |
|
etc2.deptTypes.value=dform.deptTypes.value; |
|
var height = screen.height; |
|
var width = screen.width; |
|
var leftpos = width / 2 - 350; |
|
var toppos = height / 2 - 350; |
|
post2= window.open("","post2","width=900,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left="+leftpos+",top="+toppos); |
|
etc2.target="post2"; |
|
etc2.submit(); |
|
} |
|
|
|
function cancelApprove() |
|
{ |
|
alert("결재를 회수하시겠습니까?"); |
|
dform3.submit(); |
|
} |
|
</script> |
|
</head> |
|
<body style='' bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="scrollObjectContent('formDiv');"> |
|
<span id="SetWin" style="position: absolute; z-index: 10; Visibility: hidden; height: 65px; width: 210px; background: silver; border: 1px #333333 solid; line-height: 1.4em; padding: 3px 3px"></span> |
|
<form name="listForm" method="post" action="/totsys/repoper/mydocbox/subtempbox/report_list.jsp"> |
|
<input type="hidden" name="strPage" value="<%= strPage%>"> |
|
<input type="hidden" name="findOption" value="<%=MString.checkNull(findOption)%>"> |
|
<input type="hidden" name="findWord" value="<%=MString.checkNull(findWord)%>"> |
|
<input type="hidden" name="reportType" value="<%=reportType%>"> |
|
</form> |
|
<form name="modifyForm" method="post" action="./temp_report_modify.jsp"> |
|
<input type="hidden" name="strPage" value="<%= strPage%>"> |
|
<input type="hidden" name="findOption" value="<%=MString.checkNull(findOption)%>"> |
|
<input type="hidden" name="findWord" value="<%=MString.checkNull(findWord)%>"> |
|
<input type="hidden" name="reportType" value="<%=reportType%>"> |
|
<input type="hidden" name="doctName" value="<%=URLEncoder.encode(doctName2, "UTF-8")%>"> |
|
<input type="hidden" name="reportID" value="<%=reportID%>"> |
|
<input type="hidden" name="totperInfo" value="<%=totperInfo%>"> |
|
<input type="hidden" name="tmpStrMagam" value="<%=tmpStrMagam%>"> |
|
</form> |
|
<form name="dform" action="/servlet/kr.co.kihyun.beans.totsys.repoadm.HttpRecogSet" method="post"> |
|
<input type="hidden" name="deptIDs"> |
|
<input type="hidden" name="deptNames"> |
|
<input type="hidden" name="deptTypes"> |
|
<input type="hidden" name="deptCountText"> |
|
<input type="hidden" name="deptChange"> |
|
<input type="hidden" name="contents"> |
|
<input type="hidden" name="reportID" value="<%=reportID%>"> |
|
<input type="hidden" name="repoadminID" value="<%=repoadminID%>"> |
|
<input type="hidden" name="repoadmType"> |
|
<input type="hidden" name="reportType" value="<%=reportType%>"> |
|
</form> |
|
<form name="dform2" action="/servlet/kr.co.kihyun.beans.user.HttpApproveSet" method="post"> |
|
<input type="hidden" name="deptIDs"> |
|
<input type="hidden" name="deptNames"> |
|
<input type="hidden" name="deptTypes"> |
|
<input type="hidden" name="deptCountText"> |
|
<input type="hidden" name="deptChange"> |
|
<input type="hidden" name="contents"> |
|
<input type="hidden" name="docReportID"> |
|
<input type="hidden" name="reportID" value="<%=reportID %>"> |
|
<input type="hidden" name="repoadminID" value="<%=repoadminID %>"> |
|
<input type="hidden" name="repoadmType"> |
|
<input type="hidden" name="reportType" value="<%=reportType %>"> |
|
</form> |
|
<form name="dform3" action="/servlet/kr.co.kihyun.beans.user.HttpApproveCancel" method="post"> |
|
<input type="hidden" name="deptIDs"> |
|
<input type="hidden" name="deptNames"> |
|
<input type="hidden" name="deptTypes"> |
|
<input type="hidden" name="deptCountText"> |
|
<input type="hidden" name="deptChange"> |
|
<input type="hidden" name="contents"> |
|
<input type="hidden" name="docReportID" value="<%=reportID %>"> |
|
<input type="hidden" name="reportID" value="<%=reportID %>"> |
|
<input type="hidden" name="repoadminID" value="<%=repoadminID %>"> |
|
<input type="hidden" name="repoadmType"> |
|
<input type="hidden" name="reportType" value="<%=reportType %>"> |
|
</form> |
|
<!--연계등록 초기화를 위한 폼--> |
|
<form name="acptdocform" action="/servlet/kr.co.kihyun.beans.totsys.repoper.HttpAcptDocUpdate" method="post" > |
|
<input type="hidden" name="reportID" value="<%=reportID%>"> |
|
<input type="hidden" name="callbackFunc" value="parent.fn_goToAcceptPage();"> |
|
</form> |
|
<form name="rsForm" method="post" action="/totsys/repoper/mydocbox/tempbox/report_regist.jsp"> |
|
<input type="hidden" name="reportID" value="<%= reportID%>"> |
|
<input type="hidden" name="type" value="returndoc"> |
|
<input type="hidden" name="totperInfo" value="true"> |
|
</form> |
|
<form name="compForm" method="post"> |
|
<input type="hidden" name="proc_mode" value="complete"> |
|
<input type="hidden" name="reportID" value="<%=reportID%>"> |
|
<input type="hidden" name="prss" value="<%=MReport.COMP%>"> |
|
<input type="hidden" name="repDocID" value=""> |
|
<input type="hidden" name="accDocCd" value="<%=accDocCd%>"> |
|
<input type="hidden" name="strPage" value="<%= strPage%>"> |
|
<input type="hidden" name="findOption" value="<%=MString.checkNull(findOption)%>"> |
|
<input type="hidden" name="findWord" value="<%=MString.checkNull(findWord)%>"> |
|
<input type="hidden" name="reportType" value="<%=reportType%>"> |
|
</form> |
|
<form name="NotDoc" method="post"action="/servlet/kr.co.kihyun.beans.totsys.repoper.HttpNotUpdate"> |
|
<input type="hidden" name="reportID" value="<%=reportID%>"> |
|
</form> |
|
<form name="prssChange" method="post" action="/servlet/kr.co.kihyun.beans.totsys.repoper.HttpPrssUpdate"> |
|
<input type="hidden" name="reportID" value="<%=reportID%>"> |
|
<input type="hidden" name="prss" value="<%=MReport.ACCEPT_LIST%>"> |
|
<input type="hidden" name="totRange" value="<%=totRange%>"> |
|
<input type="hidden" name="repDocID" value=""> |
|
</form> |
|
<form name="payForm" method="post"> |
|
<input type="hidden" name="reportID" value="<%=reportID%>"> |
|
</form> |
|
<form name="etc2" method="post" action="/totsys/common/web/report_dept/approve_user_select.jsp"> |
|
<input type="hidden" name="formName" value="dform"> |
|
<input type="hidden" name="section" value="1"> |
|
<input type="hidden" name="deptTypes"> |
|
<input type="hidden" name="deptIDs"> |
|
<input type="hidden" name="reportID" value="<%=reportID %>"> |
|
<input type="hidden" name="repoadminID" value="<%=repoadminID %>"> |
|
<input type="hidden" name="repoadmType"> |
|
<input type="hidden" name="reportType" value="<%=reportType %>"> |
|
</form> |
|
|
|
<div> |
|
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
<jsp:include page="/totsys/common/inc/totper/top/top.jsp" flush="true" /> |
|
<jsp:include page="/totsys/common/inc/title/title.jsp" flush="true"> |
|
<jsp:param value="<%= URLEncoder.encode(doctName2, \"UTF-8\")%>" name="desc" /> |
|
</jsp:include> |
|
</table> |
|
</div> |
|
|
|
<div id="header"> |
|
<ul id="primary"> |
|
<li><span class="kecttep_menu_focous">자료확인</span></li> |
|
|
|
</ul> |
|
</div> |
|
<div id="main"> |
|
<div id="contents"> |
|
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
|
<tr class="toolbar"> |
|
<td align="left"> |
|
<table border="0" cellpadding="0" cellspacing="0"> |
|
<tr> |
|
<!-- <td class="kecttep_button_td"> |
|
<a href="/totsys/common/inc/documents/tot_reports/total_reports_excel.jsp?reportID=<%=reportID%>&gradeCode=-1&searchType=-1&displaySummary=false&docID=<%=downDocId%>&tableNum=&docName=<%=URLEncoder.encode(docName, "UTF-8")%>" target="_parent"> |
|
<img src="/totsys/common/images/bt_excel.gif" alt="<%= MoumiConfig.getMessageBundle().getString("moumi.message.button_small.excel")%>" /> |
|
</a> |
|
</td> |
|
//인쇄// |
|
<td class="kecttep_button_td"> |
|
<a href="javascript:void(0);" onclick="printReport();"> |
|
<img src="/totsys/common/images/bt_print2.gif" alt="<%= MoumiConfig.getMessageBundle().getString("moumi.message.button_small.print")%>" /> |
|
</a> |
|
</td>--> |
|
|
|
<td class="kecttep_button_td"> |
|
<a href="#" onclick="fn_goToList();"> |
|
<img src="/totsys/common/images/bt_doc_list.gif" alt="<%= MoumiConfig.getMessageBundle().getString("moumi.message.doc")%><%= MoumiConfig.getMessageBundle().getString("moumi.message.button.boardList")%>" /> |
|
</a> |
|
</td> |
|
</tr> |
|
</table> |
|
</td> |
|
</tr> |
|
|
|
<!---- 내용----> |
|
<tr> |
|
<td height="31" valign="top"> |
|
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
|
|
|
|
|
<!------------------------------- 집계자 정보 시작 -------------------------------> |
|
<!-- |
|
<jsp:include page="/totsys/common/inc/totper/totper.jsp" flush="true"> |
|
<jsp:param name="docID" value='<%= totDoc.getId()%>' /> |
|
<jsp:param name="tmpStrMagam" value="<%= tmpStrMagam%>" /> |
|
</jsp:include> |
|
--> |
|
<!------------------------------- 집계자 정보 끝 ---------------------------------> |
|
<tr nowrap height="10"> |
|
<td nowrap width="149" height="10"></td> |
|
<td height="10"></td> |
|
<td nowrap width="149" height="10"></td> |
|
<td height="10"></td> |
|
</tr> |
|
|
|
<!---- 승인상태----> |
|
<%if (false) { //if(totReport.getRecog() != Recog.NOT_RECOG){%> |
|
<tr> |
|
<td colspan="4" valign="top"> |
|
<jsp:include page="/totsys/common/inc/repoadm/repoadm_info.jsp" flush="true"> |
|
<jsp:param name="reportID" value="<%= reportID%>" /> |
|
</jsp:include> |
|
</td> |
|
</tr> |
|
<%}%> |
|
<!---- 승인상태 끝----> |
|
|
|
<!---- 반려 사유----> |
|
<%if (false) { //if(totReport.getRecog() == Recog.RETURN_RECOG){%> |
|
<tr style="padding-top: 10px"> |
|
<td colspan="4" valign="top"> |
|
<jsp:include page="/totsys/common/inc/memo/recog_return_message.jsp" flush="true"> |
|
<jsp:param name="repoadminID" value="<%= repoadminID%>" /> |
|
</jsp:include> |
|
</td> |
|
</tr> |
|
<%}%> |
|
<!------ 반려사유 끝 -----> |
|
|
|
<!------------------------------- 보고 내용 시작 -------------------------------> |
|
<tr> |
|
<td colspan="4" valign="top"> |
|
<jsp:include page="/totsys/common/inc/documents/report/report_subdoc_view.jsp" flush="true"> |
|
<jsp:param name="docID" value="<%= totDoc.getId()%>" /> |
|
<jsp:param name="tmpStrMagam" value="<%= tmpStrMagam%>" /> |
|
<jsp:param name="usID" value="<%= usID%>" /> |
|
</jsp:include> |
|
</td> |
|
</tr> |
|
<!------------------------------- 보고 내용 시작 -------------------------------> |
|
|
|
<tr> |
|
<td> |
|
</td> |
|
</tr> |
|
|
|
</table> |
|
</td> |
|
</tr> |
|
<!------------------------------- top menu start -------------------------------> |
|
<%@ include file="/totsys/common/inc/buttom/buttom.jsp"%> |
|
<!------------------------------- top menu end -------------------------------> |
|
</table> |
|
</div> |
|
</div> |
|
<form name="reuseForm" method="post"> |
|
<input type="hidden" name="reportID"> |
|
<input type="hidden" name="USER_ID"> |
|
<input type="hidden" name="DEPT_CODE"> |
|
<input type="hidden" name="doctName"> |
|
</form> |
|
<iframe name="hiddenFrame" frameborder="0" width="0" height="0" src="" style="display: none" /> |
|
</body> |
|
</html> |
|
<% |
|
tx.rollback(); |
|
} else { |
|
tx.begin(); |
|
TotReportService reportService = new TotReportService(pm); |
|
if (procMode.equals("delete")) { |
|
reportService.updatePrssForReport(reportID, TotReportProcess.RETURN); |
|
} else if (procMode.equals("complete")) { |
|
int accDocCdInt = MInteger.parseInt(request.getParameter("accDocCd")); |
|
reportService.procCompleteForReport(reportID, accDocCdInt, deptName); |
|
} |
|
tx.commit(); |
|
|
|
%> |
|
<html> |
|
<head> |
|
<script> |
|
/* |
|
* 목록페이지로 이동처리하는 함수 |
|
*/ |
|
function fn_goToList() { |
|
document.listForm.submit(); |
|
} |
|
window.onload = fn_goToList; |
|
</script> |
|
</head> |
|
<body> |
|
<form name="listForm" method="post" action="/totsys/repoper/mydocbox/subtempbox/report_list.jsp"> |
|
<input type="hidden" name="strPage" value="<%= strPage%>"> |
|
<input type="hidden" name="findOption" value="<%=MString.checkNull(findOption)%>"> |
|
<input type="hidden" name="findWord" value="<%=MString.checkNull(findWord)%>"> |
|
<input type="hidden" name="reportType" value="<%=reportType%>"> |
|
</form> |
|
</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(); |
|
} |
|
%>
|
|
|