% /************************************************************@@ * Program Name : doc_list.jsp * Description : /Áý°èÀÚ/³»¹®¼ÇÔ/µî·ÏÇÔ/¹®¼ ¸ñ·Ï * Author : ±âÇöÅ×Å© * Create Date : 2010.11.25 * History : @@************************************************************/ %> <%@ page contentType="text/html; charset=euc-kr" import="kr.co.kihyun.beans.user.UserView" import="kr.co.kihyun.beans.user.DeptView" import="java.net.URLDecoder" import="kr.co.kihyun.moumi.Moumi" import="kr.co.kihyun.lang.MInteger" import="kr.co.kihyun.beans.totsys.doc.Doc" import="kr.co.kihyun.lang.MString" import="kr.co.kihyun.lang.MLong" import="kr.co.kihyun.lang.Encoder"%> <%@ include file="/totsys/common/inc/sec/secure.inc.jsp"%> <% try{ /******* Parameter *********/ String userID = clearXSS(Encoder.toJava(request.getParameter("userID")),""); String deptID = request.getParameter("deptID"); Long docID = MLong.parseLong(request.getParameter("docID"),null); int formName = MInteger.parseInt(request.getParameter("formName")); /***** doc getUserID *********/ Doc doc = new Doc(); if(docID != null){ userID = doc.getRegisterID(docID); deptID = doc.getRegisterDept(docID); } /******* Áý°èÀÚ Á¤º¸ *********/ //String deptID = ""; String deptName = ""; String userName = ""; String phone = ""; String email = ""; UserView userView = new UserView(); if(deptID != null){ //v2. 13.SQL »ðÀÔ : userView.executeQuery()¿¡¼ prepare SQL ¹®À¸·Î µÇ¾î ÀÖ´Ù. userView.executeQuery(userID,deptID); //================= }else{ //v2. 13.SQL »ðÀÔ : userView.executeQuery()¿¡¼ prepare SQL ¹®À¸·Î µÇ¾î ÀÖ´Ù. userView.executeQuery(userID); //================= } DeptView deptView = new DeptView(); //v2. 13.SQL »ðÀÔ : deptView.executeQuery()¿¡¼ prepare SQL ¹®À¸·Î µÇ¾î ÀÖ´Ù. deptView.executeQuery(deptID); //================= //deptID = userView.getDeptID(); deptName = deptView.getName(); userName = userView.getName(); phone = userView.getPhone(); email = userView.getEmail(); if(phone==null) phone=""; if(email==null) email=""; %>
<%if(formName == 1){%><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.registrition")%><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.person")%><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.name")%> <%}else{%><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.tot_doc")%><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.request")%><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.person")%> <%}%> | <%= userName %> | ||
<%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.request")%> <%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.coporation")%>/<%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.devision")%> | <%= deptName %> | <%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.telNumber")%> | <%= phone %> |
<%= email %> | <%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.others")%> |