📄 dms_0002fcommon_0002frecipientlst_0002ejsp_jsp.java
字号:
package DMS.common;
import com.jasson.business.document.RecipientDAO;
import com.jasson.common.ExtendString;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class DMS_0002fcommon_0002fRecipientLst_0002ejsp_jsp extends HttpJspBase {
static {
}
public DMS_0002fcommon_0002fRecipientLst_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/common/RecipientLst.jsp";from=(0,49);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/DMS/common/RecipientLst.jsp";from=(1,62);to=(2,0)]
out.write("\r\n");
// end
// HTML // begin [file="/DMS/common/RecipientLst.jsp";from=(2,50);to=(4,0)]
out.write("\r\n\r\n");
// end
// begin [file="/DMS/common/RecipientLst.jsp";from=(4,2);to=(7,0)]
RecipientDAO[] recipientDAOs = (RecipientDAO[])request.getAttribute("RecipientDAOs");
System.out.println("找到 " + recipientDAOs.length + " 筆質料");
// end
// HTML // begin [file="/DMS/common/RecipientLst.jsp";from=(7,2);to=(71,6)]
out.write("\r\n<html>\r\n<head>\r\n<title>機關列表</title>\r\n</head>\r\n<body onload=\"windowLoad()\">\r\n<script language=javascript>\r\n\tfunction windowLoad(){\r\n\t\tif(form1.R1){\r\n\t\t\tif(form1.R1.length)\r\n\t\t\t\tform1.R1[0].checked=true;\r\n\t\t\telse\r\n\t\t\t\tform1.R1.checked=true;\r\n\t\t}\r\n\t\twindow.returnValue=\"\";\r\n\t} \r\n\r\n\tfunction Check(valueSel){\r\n\t\tif(form1.R1.length){\r\n\t\t\tfor(var i=0; i<form1.R1.length; i++){\r\n\t\t\t\tif(form1.R1[i].value==valueSel){\r\n\t\t\t\t\tform1.R1[i].checked=true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\tform1.R1.checked=true;\r\n\t\t}\r\n\t}\r\n\r\n\tfunction DbClick(valueSel){\r\n\t\twindow.returnValue = valueSel;\r\n\t\twindow.close();\r\n\t}\r\n\r\n\tfunction OkClick(){\r\n\t\tif(!form1.R1){\t\t//沒有數據\r\n\t\t\twindow.close();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif(form1.R1.length){\t\t\t//有多條數據\r\n\t\t\tfor(var i=0; i<form1.R1.length; i++){\r\n\t\t\t\tif(form1.R1[i].checked){\r\n\t\t\t\t\twindow.returnValue=form1.R1[i].value\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\t\t//只有一條數據\r\n\t\t\tif(form1.R1.checked){\r\n\t\t\t\twindow.returnValue=form1.R1.value\r\n\t\t\t}\r\n\t\t}\r\n\t\twindow.close();\r\n }\r\n\r\n\tfunction ReturnClick(){\r\n\t\twindow.returnValue=\"\";\r\n\t\twindow.close();\r\n\t}\r\n</script>\r\n\r\n<form name=\"form1\">\r\n <br><p align=\"right\"><font color=\"#0000FF\">\r\n 共找到 ");
// end
// begin [file="/DMS/common/RecipientLst.jsp";from=(71,9);to=(71,31)]
out.print( recipientDAOs.length );
// end
// HTML // begin [file="/DMS/common/RecipientLst.jsp";from=(71,33);to=(71,38)]
out.write(" 筆資料 ");
// end
// begin [file="/DMS/common/RecipientLst.jsp";from=(71,40);to=(72,36)]
if (recipientDAOs.length > 100) {
// end
// HTML // begin [file="/DMS/common/RecipientLst.jsp";from=(72,38);to=(73,13)]
out.write("\r\n\t, 顯示前 100 筆 ");
// end
// begin [file="/DMS/common/RecipientLst.jsp";from=(73,15);to=(74,4)]
}
// end
// HTML // begin [file="/DMS/common/RecipientLst.jsp";from=(74,6);to=(83,0)]
out.write("\r\n </font><br>\r\n <table border=\"1\" width=\"100%\" height=\"44\" align=\"center\">\r\n <tr>\r\n <th>選項</th>\r\n <th>機關代碼</th>\r\n <th>機關名稱</th>\r\n <th>機關地址</th>\r\n </tr>\r\n");
// end
// begin [file="/DMS/common/RecipientLst.jsp";from=(83,2);to=(91,0)]
for(int i=0; i<recipientDAOs.length; i++){
if (i > 100) {
break;
}
RecipientDAO recipientDAO = recipientDAOs[i];
String valueSelected = recipientDAO.getRecipientID()+","+recipientDAO.getRecipientName();
// end
// HTML // begin [file="/DMS/common/RecipientLst.jsp";from=(91,2);to=(92,37)]
out.write("\r\n <tr title=\"雙擊選擇\" onclick=\"Check('");
// end
// begin [file="/DMS/common/RecipientLst.jsp";from=(92,40);to=(92,54)]
out.print( valueSelected);
// end
// HTML // begin [file="/DMS/common/RecipientLst.jsp";from=(92,56);to=(92,81)]
out.write("')\" onDblclick=\"DbClick('");
// end
// begin [file="/DMS/common/RecipientLst.jsp";from=(92,84);to=(92,98)]
out.print( valueSelected);
// end
// HTML // begin [file="/DMS/common/RecipientLst.jsp";from=(92,100);to=(93,52)]
out.write("')\">\r\n <td align=\"center\"><input type=\"radio\" value=\"");
// end
// begin [file="/DMS/common/RecipientLst.jsp";from=(93,55);to=(93,69)]
out.print( valueSelected);
// end
// HTML // begin [file="/DMS/common/RecipientLst.jsp";from=(93,71);to=(94,25)]
out.write("\" name=\"R1\"></td>\r\n <td align=\"center\">");
// end
// begin [file="/DMS/common/RecipientLst.jsp";from=(94,28);to=(94,51)]
out.print(recipientDAO.getOrgID());
// end
// HTML // begin [file="/DMS/common/RecipientLst.jsp";from=(94,53);to=(95,25)]
out.write("</td>\r\n <td align=\"center\">");
// end
// begin [file="/DMS/common/RecipientLst.jsp";from=(95,28);to=(95,59)]
out.print(recipientDAO.getRecipientName());
// end
// HTML // begin [file="/DMS/common/RecipientLst.jsp";from=(95,61);to=(96,25)]
out.write("</td>\r\n <td align=\"center\">");
// end
// begin [file="/DMS/common/RecipientLst.jsp";from=(96,28);to=(96,62)]
out.print(recipientDAO.getRecipientAddress());
// end
// HTML // begin [file="/DMS/common/RecipientLst.jsp";from=(96,64);to=(98,0)]
out.write("</td>\r\n </tr>\r\n");
// end
// begin [file="/DMS/common/RecipientLst.jsp";from=(98,2);to=(99,0)]
}
// end
// HTML // begin [file="/DMS/common/RecipientLst.jsp";from=(99,2);to=(101,0)]
out.write("\r\n </table>\r\n");
// end
// begin [file="/DMS/common/RecipientLst.jsp";from=(101,2);to=(103,0)]
if(recipientDAOs.length == 0){
// end
// HTML // begin [file="/DMS/common/RecipientLst.jsp";from=(103,2);to=(105,0)]
out.write("\r\n <p align=\"center\"><font color=\"#FF00\">沒有找到滿足條件的機關</font><br>\r\n");
// end
// begin [file="/DMS/common/RecipientLst.jsp";from=(105,2);to=(106,0)]
}
// end
// HTML // begin [file="/DMS/common/RecipientLst.jsp";from=(106,2);to=(113,0)]
out.write("\r\n <p align=\"center\"><input type=\"button\" value=\"確定\" name=\"btnOK\" language=javascript onclick=\"OkClick()\">\r\n <input type=\"button\" value=\"返回\" name=\"btnReturn\" language=javascript onclick=\"ReturnClick()\">\r\n </p>\r\n</form>\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 + -