📄 dms_0002farchive_0002fcasemanager_0002ejsp_jsp.java
字号:
package DMS.archive;
import com.jasson.common.ExtendString;
import com.jasson.business.archive.ArchiveCaseDAO;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class DMS_0002farchive_0002fCaseManager_0002ejsp_jsp extends HttpJspBase {
static {
}
public DMS_0002farchive_0002fCaseManager_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/archive/CaseManager.jsp";from=(0,0);to=(1,0)]
out.write("<!-- CaseManager.jsp-->\r\n");
// end
// HTML // begin [file="/DMS/archive/CaseManager.jsp";from=(1,49);to=(2,0)]
out.write("\r\n");
// end
// HTML // begin [file="/DMS/archive/CaseManager.jsp";from=(2,50);to=(3,0)]
out.write("\r\n");
// end
// HTML // begin [file="/DMS/archive/CaseManager.jsp";from=(3,62);to=(5,0)]
out.write("\r\n\r\n");
// end
// begin [file="/DMS/archive/CaseManager.jsp";from=(5,2);to=(15,0)]
ExtendString ExStr=new ExtendString();
String strErrorMsg = "";
String[] categoryNOs = (String[])session.getAttribute("CategoryNOs");
String[] categoryNames = (String[])session.getAttribute("CategoryNames");
ArchiveCaseDAO[] archiveCases = (ArchiveCaseDAO[])session.getAttribute("ArchiveCase");
if(session.getAttribute("Error") != null){
strErrorMsg = session.getAttribute("Error").toString();
session.removeAttribute("Error");
}
// end
// HTML // begin [file="/DMS/archive/CaseManager.jsp";from=(15,2);to=(24,19)]
out.write("\r\n\r\n<html>\r\n<head>\r\n<title></title>\r\n</head>\r\n<body onload=\"windowLoad()\">\r\n<script>\r\n\tfunction windowLoad(){\r\n\t\tvar strErrorMsg=\"");
// end
// begin [file="/DMS/archive/CaseManager.jsp";from=(24,22);to=(24,34)]
out.print( strErrorMsg);
// end
// HTML // begin [file="/DMS/archive/CaseManager.jsp";from=(24,36);to=(113,85)]
out.write("\";\r\n\t\tif(strErrorMsg != \"\")\r\n\t\t\talert(strErrorMsg);\r\n\t}\r\n\r\n\tfunction btnInsertClick(){\r\n\t\tvar strPath = \"/WebAgenda/servlet/CaseManagerServlet?Action=StartInsert\";\r\n\t\tvar strFeatures = \"dialogWidth=320px;dialogHeight=250px;center=yes;help=no;status=no\";\r\n\t\tvar returnValue = showModalDialog(strPath, 0, strFeatures);\r\n\t\tif(returnValue){\r\n\t\t\tnewValues = returnValue.split(\"&\");\r\n\t\t\tfor(i=0; i<newValues.length; i++){\r\n\t\t\t\tvar strName = newValues[i].split(\"=\");\r\n\t\t\t\tvar obj = eval(\"form1.\" + strName[0]);\r\n\t\t\t\tobj.value = strName[1];\r\n\t\t\t}\r\n\t\t\tform1.action=\"/WebAgenda/servlet/CaseManagerServlet?Action=Insert\";\r\n\t\t\tform1.submit();\r\n\t\t}\r\n\t}\r\n\r\n\tfunction btnModifyClick(){\r\n\t\tvar i = mainform.ItemSelected.value;\r\n\t\tif(i == \"\"){\r\n\t\t\talert(\"請選擇一項!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t//alert(i);\r\n\t\tvar strCaseNO = caseTable.rows(i*1).cells(1).innerText;\r\n\t\tvar strCaseName = caseTable.rows(i*1).cells(2).innerText;\r\n\t\tvar strCategoryNO = caseTable.rows(i*1).cells(3).innerText;\r\n\t\tvar strYearNO = caseTable.rows(i*1).cells(4).innerText;\r\n\t\tvar strKeepYear = caseTable.rows(i*1).cells(5).innerText;\r\n\t\tvar strParam = \"&CaseNO=\" + strCaseNO + \"&CaseName=\" + strCaseName + \"&CategoryNO=\" + strCategoryNO\r\n\t\t\t+ \"&YearNO=\" + strYearNO + \"&KeepYear=\" + strKeepYear;\r\n\t\tvar strPath = \"/WebAgenda/servlet/CaseManagerServlet?Action=StartModify\" + strParam;\r\n\t\tvar strFeatures = \"dialogWidth=320px;dialogHeight=250px;center=yes;help=no;status=no\";\r\n\t\t//alert(strPath);\r\n\t\tvar returnValue = showModalDialog(strPath, 0, strFeatures);\r\n\t\tif(returnValue){\r\n\t\t\tnewValues = returnValue.split(\"&\");\r\n\t\t\tfor(i=0; i<newValues.length; i++){\r\n\t\t\t\tvar strName = newValues[i].split(\"=\");\r\n\t\t\t\tvar obj = eval(\"form1.\" + strName[0]);\r\n\t\t\t\tobj.value = strName[1];\r\n\t\t\t}\r\n\t\t\tform1.OldCaseNO.value = strCaseNO;\r\n\t\t\tform1.OldCategoryNO.value = strCategoryNO;\r\n\t\t\tform1.OldYearNO.value = strYearNO;\r\n\t\t\t//alert(\"CaseNO=\" + form1.CaseNO.value+\"&CaseName=\"+form1.CaseName.value+\"&CategoryNO=\" + form1.CategoryNO.value\r\n\t\t\t//\t\t+ \"&KeepYear=\" + form1.KeepYear.value);\r\n\t\t\tform1.action=\"/WebAgenda/servlet/CaseManagerServlet?Action=Modify\";\r\n\t\t\tform1.submit();\r\n\t\t}\r\n\t}\r\n\r\n\tfunction btnDeleteClick(){\r\n\t\tvar i = mainform.ItemSelected.value;\r\n\t\tif(i == \"\"){\r\n\t\t\talert(\"請選擇一項!\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif(!window.confirm(\"你確定要刪除嗎?\"))\r\n\t\t\treturn false;\r\n\t\talert(i);\r\n\t\tform1.CaseNO.value = caseTable.rows(i*1).cells(1).innerText;\r\n\t\tform1.CaseName.value = caseTable.rows(i*1).cells(2).innerText;\r\n\t\tform1.CategoryNO.value = caseTable.rows(i*1).cells(3).innerText;\t\t\r\n\t\tform1.YearNO.value = caseTable.rows(i*1).cells(4).innerText;\r\n\t\tform1.KeepYear.value = caseTable.rows(i*1).cells(5).innerText;\r\n\t\tform1.action = \"/WebAgenda/servlet/CaseManagerServlet?Action=Delete\"\r\n\t\tform1.submit();\r\n\t\treturn true;\r\n\t}\r\n\r\n\tfunction selectItem(index){\r\n\t\t;\r\n\t}\r\n\r\n\tfunction clickRadioBox(index){\r\n\t\tmainform.ItemSelected.value = index;\r\n\t}\t\r\n\r\n\tfunction returnClick(){\r\n\t\tthis.parent.frames.basefrm.location.href = \"/WebAgenda/DMS/archive/DocSystem.jsp\";\r\n\t}\r\n\t//\r\n\tfunction btnFindClick(){\r\n\t\tvar strFeatures = \"dialogWidth=320px;dialogHeight=250px;center=yes;help=no;status=no\";\r\n\t\tvar returnValue = showModalDialog(\"/WebAgenda/DMS/archive/FindCase.jsp?categoryNOs=");
// end
// begin [file="/DMS/archive/CaseManager.jsp";from=(113,88);to=(113,99)]
out.print(categoryNOs);
// end
// HTML // begin [file="/DMS/archive/CaseManager.jsp";from=(113,101);to=(113,116)]
out.write("&categoryNames=");
// end
// begin [file="/DMS/archive/CaseManager.jsp";from=(113,119);to=(113,132)]
out.print(categoryNames);
// end
// HTML // begin [file="/DMS/archive/CaseManager.jsp";from=(113,134);to=(137,1)]
out.write("\", 0, strFeatures);\r\n\t\tif(returnValue!=null){ \r\n\t\t\t//alert(returnValue);\r\n\t\t\tform1.action=\"/WebAgenda/servlet/CaseManagerServlet?Action=Find\"+returnValue;\r\n\t\t\tform1.submit();\r\n\t\t}\r\n\t}\r\n</script>\r\n<form name=\"mainform\">\r\n\t<p align=\"center\"><input type=\"button\" value=\"新增\" onclick=\"btnInsertClick();\">\r\n\t\t<input type=\"button\" value=\"刪除\" onclick=\"btnDeleteClick();\">\r\n\t\t<input type=\"button\" value=\"修改\" onclick=\"btnModifyClick();\">\r\n\t\t<input type=\"button\" value=\"查詢\" onclick=\"btnFindClick();\">\r\n\t\t<input type=\"button\" value=\"返回\" LANGUAGE=javascript onclick=\"returnClick();\">\r\n\t</p>\r\n<table id=\"caseTable\" width=\"95%\" border=\"1\" align=\"center\">\r\n\t<tr>\r\n\t\t<th nowrap>選項</th>\t\t\r\n <th nowrap>案代碼</th>\r\n <th nowrap>案名稱</th>\r\n\t\t<th nowrap>所屬類代碼</th>\r\n\t\t<th nowrap>歸檔年號</th>\r\n <th nowrap>保存年限</th>\r\n\t</tr>\r\n\t");
// end
// begin [file="/DMS/archive/CaseManager.jsp";from=(137,3);to=(141,1)]
if(archiveCases!=null)
for(int i=0; i<archiveCases.length; i++){
ArchiveCaseDAO archiveCase = archiveCases[i];
// end
// HTML // begin [file="/DMS/archive/CaseManager.jsp";from=(141,3);to=(142,27)]
out.write("\r\n\t\t<tr onclick=\"selectItem('");
// end
// begin [file="/DMS/archive/CaseManager.jsp";from=(142,30);to=(142,34)]
out.print( i+1);
// end
// HTML // begin [file="/DMS/archive/CaseManager.jsp";from=(142,36);to=(143,74)]
out.write("')\">\t\r\n\t\t\t<td align=center><input type=\"radio\" name=\"r1\" onclick=\"clickRadioBox('");
// end
// begin [file="/DMS/archive/CaseManager.jsp";from=(143,77);to=(143,81)]
out.print( i+1);
// end
// HTML // begin [file="/DMS/archive/CaseManager.jsp";from=(143,83);to=(144,20)]
out.write("');\"></td>\t\t\t\r\n\t\t\t<td align=center>");
// end
// begin [file="/DMS/archive/CaseManager.jsp";from=(144,23);to=(144,47)]
out.print( archiveCase.getCaseNO());
// end
// HTML // begin [file="/DMS/archive/CaseManager.jsp";from=(144,49);to=(145,20)]
out.write("</td>\r\n\t\t\t<td align=center>");
// end
// begin [file="/DMS/archive/CaseManager.jsp";from=(145,23);to=(145,68)]
out.print( ExStr.nullToSpace(archiveCase.getCaseName()));
// end
// HTML // begin [file="/DMS/archive/CaseManager.jsp";from=(145,70);to=(146,20)]
out.write("</td>\r\n\t\t\t<td align=center>");
// end
// begin [file="/DMS/archive/CaseManager.jsp";from=(146,23);to=(146,51)]
out.print( archiveCase.getCategoryNO());
// end
// HTML // begin [file="/DMS/archive/CaseManager.jsp";from=(146,53);to=(147,20)]
out.write("</td>\r\n\t\t\t<td align=center>");
// end
// begin [file="/DMS/archive/CaseManager.jsp";from=(147,23);to=(147,47)]
out.print( archiveCase.getYearNO());
// end
// HTML // begin [file="/DMS/archive/CaseManager.jsp";from=(147,49);to=(148,20)]
out.write("</td>\r\n\t\t\t<td align=center>");
// end
// begin [file="/DMS/archive/CaseManager.jsp";from=(148,23);to=(148,49)]
out.print( archiveCase.getKeepYear());
// end
// HTML // begin [file="/DMS/archive/CaseManager.jsp";from=(148,51);to=(150,2)]
out.write("</td>\r\n\t\t</tr>\r\n\t ");
// end
// begin [file="/DMS/archive/CaseManager.jsp";from=(150,4);to=(151,2)]
}
// end
// HTML // begin [file="/DMS/archive/CaseManager.jsp";from=(151,4);to=(166,7)]
out.write("\r\n</table>\r\n\t<input type=\"hidden\" name=\"ItemSelected\">\r\n</form>\r\n<form id=form1 name=form1 method=\"post\" >\r\n\t<input type=\"hidden\" ID=\"CaseNO\" name=\"CaseNO\" value=\"\">\r\n\t<input type=\"hidden\" ID=\"CaseName\" name=\"CaseName\" value=\"\">\r\n\t<input type=\"hidden\" ID=\"CategoryNO\" name=\"CategoryNO\" value=\"\">\r\n\t<input type=\"hidden\" ID=\"YearNO\" name=\"YearNO\" value=\"\">\r\n\t<input type=\"hidden\" ID=\"KeepYear\" name=\"KeepYear\" value=\"\">\r\n\t<input type=\"hidden\" ID=\"OldCaseNO\" name=\"OldCaseNO\" value=\"\">\r\n\t<input type=\"hidden\" ID=\"OldCategoryNO\" name=\"OldCategoryNO\" value=\"\">\r\n\t<input type=\"hidden\" ID=\"OldYearNO\" name=\"OldYearNO\" value=\"\">\r\n</form>\r\n</body>\r\n</html>");
// 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 + -