📄 dms_0002fdocument_0002fdispatchdepartment_0002ejsp_jsp.java
字号:
package DMS.document;
import com.jasson.integration.agentflow.Department;
import java.util.Vector;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class DMS_0002fdocument_0002fDispatchDepartment_0002ejsp_jsp extends HttpJspBase {
static {
}
public DMS_0002fdocument_0002fDispatchDepartment_0002ejsp_jsp( ) {
}
private static boolean _jspx_inited = false;
public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
String _value = null;
try {
if (_jspx_inited == false) {
synchronized (this) {
if (_jspx_inited == false) {
_jspx_init();
_jspx_inited = true;
}
}
}
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=BIG5");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(0,63);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(1,64);to=(2,0)]
out.write("\r\n");
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(2,37);to=(10,102)]
out.write("\r\n<html>\r\n<head>\r\n<script lang=\"JavaScript\">\r\n\r\n// function chooseDepartment(TargetDepart)\r\n function chooseDepartment(TargetDepart, DeptName)\r\n {\r\n//\t\t\t\twindow.returnValue = \"setUndertakeDepartment.jsp?DepartmentID=\" + strDepartmentID + \"&Condition=");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(10,105);to=(10,140)]
out.print( request.getParameter("Condition") );
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(10,142);to=(28,0)]
out.write("\";\r\n window.returnValue=\"DispatchDepartmentServlet?TargetDepart=\"+ TargetDepart + \"&DeptName=\" + DeptName;\r\n window.event.returnValue = false;\r\n window.close();\r\n }\r\n function window_onload()\r\n {\r\n window.dialogHeight=20;\r\n window.dialogWidth=35;\r\n }\r\n\r\n </script>\r\n<title>\r\n選擇分文單位\r\n</title>\r\n</head>\r\n<body onload=\"window_onload()\">\r\n<center>\r\n");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(28,2);to=(35,0)]
Department[] arrDeptLev1 = (Department[])request.getAttribute("arrDeptLev1");
Department[] arrDeptLev2 = (Department[])request.getAttribute("arrDeptLev2");
Vector vtrDeptAllLev3 = (Vector)request.getAttribute("vtrDeptAllLev3");
String flagLev1[] = (String[])request.getAttribute("flagLev1");
String flagLev2[] = (String[])request.getAttribute("flagLev2");
Vector vtrflagLev3 = (Vector)request.getAttribute("vtrflagLev3");
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(35,2);to=(46,5)]
out.write("\r\n請選擇承辦單位<br>\r\n<table border =1 cellspacing =0>\r\n<tr>\r\n <td height=100%>\r\n <table border =1 height =100%>\r\n <tr>\r\n <td align= center><b>一級單位</b></td>\r\n </tr>\r\n <tr>\r\n <td>\r\n ");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(46,7);to=(54,5)]
for(int i=0; i< arrDeptLev1.length; i++)
{
String strDeptLev1Name = arrDeptLev1[i].getName();
String strDeptLev1 = arrDeptLev1[i].getID()+"--"+arrDeptLev1[i].getName();
String flag1 = flagLev1[i];
if(flag1.equals("1"))
{
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(54,7);to=(56,49)]
out.write("\r\n\r\n <a href =\"\" onClick=\"chooseDepartment('");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(56,52);to=(56,74)]
out.print(arrDeptLev1[i].getID());
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(56,76);to=(56,80)]
out.write("', '");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(56,83);to=(56,98)]
out.print(strDeptLev1Name);
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(56,100);to=(56,104)]
out.write("')\">");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(56,107);to=(56,122)]
out.print(strDeptLev1Name);
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(56,124);to=(57,5)]
out.write("</a>\r\n ");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(57,7);to=(60,10)]
}
else
{
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(60,12);to=(61,9)]
out.write("\r\n ");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(61,12);to=(61,27)]
out.print(strDeptLev1Name);
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(61,29);to=(62,9)]
out.write("\r\n ");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(62,11);to=(66,5)]
}
out.print("<br>");
}
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(66,7);to=(76,0)]
out.write("\r\n </td>\r\n </tr>\r\n </table>\r\n </td>\r\n <td>\r\n<table border=1 bordercolor=\"black\" >\r\n<tr>\r\n <td align= center><b>二級單位</b></td><td align= \"center\"><b>三級單位</b></td>\r\n</tr>\r\n");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(76,2);to=(83,4)]
for (int i = 0; i < arrDeptLev2.length; i++)
{
String strDeptLev2Name = arrDeptLev2[i].getName();
String strDeptLev2 = arrDeptLev2[i].getID()+"--"+arrDeptLev2[i].getName();
Department[] arrDeptLev3 = (Department[])vtrDeptAllLev3.elementAt(i);
String[] arrflagLev3 = (String[])vtrflagLev3.elementAt(i);
String flag2 = flagLev2[i];
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(83,6);to=(86,7)]
out.write("\r\n <tr>\r\n <td>\r\n ");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(86,9);to=(89,8)]
if(flag2.equals("1"))
{
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(89,10);to=(90,50)]
out.write("\r\n <a href =\"\" onClick=\"chooseDepartment('");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(90,53);to=(90,75)]
out.print(arrDeptLev2[i].getID());
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(90,77);to=(90,81)]
out.write("', '");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(90,84);to=(90,99)]
out.print(strDeptLev2Name);
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(90,101);to=(90,105)]
out.write("')\">");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(90,108);to=(90,123)]
out.print(strDeptLev2Name);
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(90,125);to=(91,7)]
out.write("</a> \r\n ");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(91,9);to=(95,8)]
}
else
{
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(95,10);to=(96,8)]
out.write("\r\n ");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(96,11);to=(96,26)]
out.print(strDeptLev2Name);
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(96,28);to=(97,8)]
out.write(" \r\n ");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(97,10);to=(99,8)]
}
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(99,10);to=(102,7)]
out.write("\r\n </td>\r\n <td>\r\n ");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(102,9);to=(110,7)]
for(int j = 0; j < arrDeptLev3.length ; j++)
{
String strDeptLev3Name = arrDeptLev3[j].getName();
String flag3 = arrflagLev3[j];
String strDeptLev3 = arrDeptLev3[j].getID()+"--"+arrDeptLev3[j].getName();
if(flag3.equals("1"))
{
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(110,9);to=(111,55)]
out.write("\r\n <a href=\"\" onClick=\"chooseDepartment('");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(111,58);to=(111,80)]
out.print(arrDeptLev3[j].getID());
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(111,82);to=(111,86)]
out.write("', '");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(111,89);to=(111,104)]
out.print(strDeptLev3Name);
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(111,106);to=(111,110)]
out.write("')\">");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(111,113);to=(111,128)]
out.print(strDeptLev3Name);
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(111,130);to=(112,7)]
out.write("</a>\r\n ");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(112,9);to=(116,21)]
}
else
{
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(116,23);to=(117,16)]
out.write("\r\n ");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(117,19);to=(117,34)]
out.print(strDeptLev3Name);
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(117,36);to=(118,17)]
out.write(" \r\n ");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(118,19);to=(121,7)]
}
}
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(121,9);to=(124,0)]
out.write("\r\n <td>\r\n </tr>\r\n");
// end
// begin [file="/DMS/document/DispatchDepartment.jsp";from=(124,2);to=(126,0)]
}
// end
// HTML // begin [file="/DMS/document/DispatchDepartment.jsp";from=(126,2);to=(136,0)]
out.write("\r\n\r\n\r\n</table>\r\n</td>\r\n</tr>\r\n</table>\r\n</center>\r\n</bodY>\r\n</html>\r\n");
// end
} catch (Throwable t) {
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -