<% /** * **********************************************************@@ Program Name * sub_doc_user_regist.jsp Description : 접수자료/연계등록 * Author : jskim * Date : 2022.12.14 * History : 경북대학교 연계등록시 사용자단위 취합 * @@*********************************************************** */ %> <%@ page contentType="text/html; charset=UTF-8" import="java.util.Calendar" import="java.net.URLEncoder" import="java.util.Date" import="java.text.SimpleDateFormat" import="kr.co.kihyun.beans.user.HttpSSOLogin" import="kr.co.kihyun.lang.Encoder" import="kr.co.kihyun.lang.MString" import="kr.co.kihyun.lang.MInteger" import="kr.co.kihyun.lang.MLong" import="kr.co.kihyun.moumi.MoumiConfig" import="kr.co.kihyun.moumi.doc.MDoc" import="kr.co.kihyun.lang.StringConverter" import="kr.co.kihyun.text.html.TagFilter" import="javax.jdo.PersistenceManager" import="javax.jdo.Transaction" import="kr.co.kihyun.beans.entity.util.*" import="kr.co.kihyun.beans.entity.*" import="kr.co.kihyun.beans.entity.TotDocType" %> <%@ 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 deptID = HttpSSOLogin.getDeptID(request); /** * ********** Parameter values *********** */ Long reportID = MLong.parseLong(request.getParameter("reportID"), null); String totType = clearXSS(request.getParameter("totType"), ""); Long downDocID = MLong.parseLong(request.getParameter("downDocID"), null); String boxName = MString.checkNull(request.getParameter("boxName")); if (MString.isNull(totType) || totType.equals("")) { totType = "1step"; } String tmpMagam = MString.checkNull(request.getParameter("tmpMagam")); String strPage = clearXSS(request.getParameter("strPage"),""); String findOption = clearXSS(request.getParameter("findOption"),null); String findWord = clearXSS(Encoder.toJava(request.getParameter("findWord")),null); TotReport totReport = pm.getObjectById(TotReport.class, reportID); String usrFilenames = ""; String svrFilenames = ""; int fileCount = 0; tx.begin(); /** * **** Doc list data get ***** */ TotDoc totDoc = totReport.getTotDoc(); String docName = totDoc.getName(); String docForm = totDoc.getForm(); String regID = totDoc.getUser(pm).getId(); Date startDate = totDoc.getStartDate(); Date endDate = totDoc.getEndDate(); AccessAuth accAuth = totDoc.getAccessAuth(); TotDoc.TotRange totRange = totDoc.getTotRange(); Board board = totDoc.getBoard(); for (Entry> entry : board.getAttachments().entrySet()) { usrFilenames += entry.getKey() + ";"; svrFilenames += entry.getKey() + ";"; } fileCount = board.getAttachments().size(); tx.rollback(); /** * ******** 시작, 종료 년, 월, 일 ********* */ String stDate = startDate == null ? "" : new SimpleDateFormat("yyyy-MM-dd").format(startDate); String stTime = startDate == null ? "" : new SimpleDateFormat("HH").format(startDate); String edDate = new SimpleDateFormat("yyyy-MM-dd").format(endDate); String edTime = new SimpleDateFormat("HH").format(endDate); %> <%=MoumiConfig.getTitle()%>
<%--파일취합일경우 붙여넣기 영역 표시안함 --%>
<%= MoumiConfig.getMessageBundle().getString(<%= MoumiConfig.getMessageBundle().getString("moumi.message.button.boardList")%>" />
글머리 <%= MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.doc")%><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.registrition")%>    
<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.doc")%><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.name")%> <%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.executionCode")%> <%= HttpSSOLogin.getDeptName(request)%>_ (<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.day")%>  )
<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.dataInputDevision")%> <%=MoumiConfig.getMessageBundle().getString("> "> <%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.input")%><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.trick")%> <%=MoumiConfig.getMessageBundle().getString(" />
<%=MoumiConfig.getMessageBundle().getString("moumi.message.doc")%><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.type.share")%>
<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.endMethod")%>   <%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.day")%>    <%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.time")%>
">
<%= MoumiConfig.getMessageBundle().getString("/> <%=MoumiConfig.getMessageBundle().getString(" />
<%@ include file="/totsys/common/inc/buttom/buttom.jsp"%> <% } 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 { /** * ******** session내의 doc info reset ********* */ MDoc.initSession(session); if (tx.isActive()) { tx.rollback(); } pm.close(); } %>