%@ page contentType="text/html; charset=euc-kr"
import="kr.co.kihyun.beans.user.HttpSSOLogin"
import="kr.co.kihyun.text.html.ServletUtil"
import="kr.co.kihyun.beans.user.User"
import="kr.co.kihyun.beans.totsys.repoper.RepTransfer"
import="kr.co.kihyun.lang.MInteger" import="kr.co.kihyun.lang.MLong"
import="kr.co.kihyun.lang.Encoder" import="kr.co.kihyun.moumi.Moumi"%>
<%@ include file="/totsys/common/inc/sec/secure.inc.jsp"%>
<%
try{
/*********** User HttpSSOLogin check ***********/
if(!HttpSSOLogin.isLogin(request)){
//login ¼º°øÈÄ µÇµ¹¾Æ¿Ã ÁÖ¼Ò
String connURL="opener.location='/totsys/login/login.jsp';";
out.println(ServletUtil.getJavaScript(connURL));
out.println(ServletUtil.getJavaScript("window.close();"));
return;
}
/********** session³»ÀÇ userId **********/
String userID = HttpSSOLogin.getLoginID(request);
/****** Parameter ******/
Long docID = MLong.parseLong(request.getParameter("docID"),null);
String deptID = request.getParameter("deptID");
int strPage = MInteger.parseInt(request.getParameter("strPage"), 1);
String dataType = clearXSS(Encoder.toJava(request.getParameter("dataType")),"");
int sys_auth = 2;
String boxName = clearXSS(Encoder.toJava(request.getParameter("boxName")),"");
String option = clearXSS(Encoder.toJava(request.getParameter("option")),"");
String findword = clearXSS(Encoder.toJava(request.getParameter("findword")),"");
String addString = "";
String select = clearXSS(request.getParameter("select"),"");
/****** list data get ******/
int count = 0;
String[] userIDList = null;
String[] changeUserIDList = null;
String[] changeUserDateList = null;
RepTransfer rt = new RepTransfer();
User us = new User();
rt.userTransListQuery(docID, deptID);
count = rt.getCount();
userIDList = rt.getUserIDList();
changeUserIDList = rt.getChangeUserIDList();
changeUserDateList = rt.getChangeUserDateList();
/************ ¸®½ºÆ® ÆäÀÌÁö ±¸¼º ************/
int endPage = 0;
int pageSize =0 ;
int currentPage = 0;
int absolutePage = 0;
int currentPageSetUp = 0;
int recordSize = 15;
currentPage=strPage;
if((count%recordSize) == 0){
pageSize = (int)(count/recordSize);
}else{
pageSize = (int)(count/recordSize)+1;
}
currentPageSetUp = (int)(currentPage/10)*10;
if (currentPage%10 == 0){
currentPageSetUp-=10;
}
//page link
//String uri = "./report_list.jsp?docID="+ docID +"&dataType="+ dataType;
String uri = "./popup_list.jsp?docID="+ docID +"&deptID="+deptID;
%>
<%=Moumi.getTitle()%>
<%
int index = 0;
int nextCount = 0;
if(currentPage > 1){
nextCount = ((currentPage-1)*recordSize);
}
for(int i = 0; (i < recordSize) && ((nextCount+i) < count); i++){
index = nextCount+i;
%>
<%= new User().getName(userIDList[index])%> |
<%if(changeUserIDList[index]==null || changeUserIDList[index].equals("")){%>
ÃʱâÈ <%}else{%> <%=us.getName(changeUserIDList[index])%> <%}%>
|
<%if(changeUserIDList[index]==null || changeUserIDList[index].equals("")){%>
ÃʱâÈ <%}else{%> <%=changeUserDateList[index]%> <%}%>
|
<%}%>
|
|
<%if(count > 0){%>
|
<%}else{%>
ÇØ´ç
ÀÚ·á°¡ ¾ø½À´Ï´Ù. |
<%}%>
<%
}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{
}
%>