?? elecdev_005fchk_005finsert_jsp.java
字號:
package org.apache.jsp.imis_005felec;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import java.text.SimpleDateFormat;
import java.util.Date;
public final class elecDev_005fChk_005finsert_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_forEach_var_items;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_test;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_c_forEach_var_items = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_if_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_c_forEach_var_items.release();
_jspx_tagPool_c_if_test.release();
}
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;
JspWriter _jspx_out = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
imis_elec.TreeDemo Demo = null;
synchronized (pageContext) {
Demo = (imis_elec.TreeDemo) pageContext.getAttribute("Demo", PageContext.PAGE_SCOPE);
if (Demo == null){
try {
Demo = (imis_elec.TreeDemo) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "imis_elec.TreeDemo");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException("Cannot create bean of class " + "imis_elec.TreeDemo", exc);
}
pageContext.setAttribute("Demo", Demo, PageContext.PAGE_SCOPE);
}
}
out.write("\r\n");
out.write("\r\n\r\n\r\n\r\n\r\n");
out.write("<html>\r\n\t");
out.write("<head>\r\n\t\t\r\n\r\n\t\t");
out.write("<title>用電檢查派單信息錄入");
out.write("</title>\r\n\t\t\r\n\t\t");
out.write("<script language=\"JavaScript\" src=\"js/checkdata.js\">");
out.write("</script>\t\t\r\n\t\t");
out.write("<script type=\"text/javascript\" src=\"js/ElecDevChkcheck.js\">");
out.write("</script>\r\n\t");
out.write("</head>\r\n\t");
out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"/Imis/imis_elec/css/style.css\">\r\n\t");
HashMap list = Demo.getElecDev_TypeForTable();
out.write("\r\n\t\r\n\t");
out.write("<body BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 scrolling=\"auto\" background=\"images/bg_main.png\">\r\n \t");
String ElecDevTypeNo = "";
String UserId = "";
if(request.getParameter("ElecDevTypeNo") != null) {
ElecDevTypeNo = request.getParameter("ElecDevTypeNo");
request.setAttribute("ElecDevTypeNo", ElecDevTypeNo);
}
if(request.getParameter("UserId") != null) {
UserId = request.getParameter("UserId");
}
Date date = new Date();
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
String today = format.format(date);
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n\t\t");
out.write("<form name=\"form1\" method=\"post\" action=\"/Imis/servlet/ElecDev_Chk?pattern=insert\" onSubmit=\"return checkValue()\">\r\n\t\t\t");
out.write("<table align=\"left\" width=\"100%\" border=\"0\" class=\"ziti\">\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td> ");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td> ");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td width=\"20%\" align=\"right\">檢查設備類型:");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td width=\"80%\">\r\n");
out.write("\r\n\t\t\t\t\t");
out.write("<select name=\"ChkDevType\" id=\"ChkDevType\" class=\"text1\">\r\n\t\t\t\t\t\t\t");
out.write("<option value=\"\">");
out.write("</option>\r\n\t\t \t\t\t\t");
// c:forEach
org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_forEach_0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _jspx_tagPool_c_forEach_var_items.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
_jspx_th_c_forEach_0.setPageContext(pageContext);
_jspx_th_c_forEach_0.setParent(null);
_jspx_th_c_forEach_0.setItems(list );
_jspx_th_c_forEach_0.setVar("item");
int[] _jspx_push_body_count_c_forEach_0 = new int[] { 0 };
try {
int _jspx_eval_c_forEach_0 = _jspx_th_c_forEach_0.doStartTag();
if (_jspx_eval_c_forEach_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\t\t \t\t\t\t\r\n\t\t \t\t\t\t\t");
out.write("<option value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.key }", java.lang.String.class, (PageContext)pageContext, null, false));
out.write("\" ");
if (_jspx_meth_c_if_0(_jspx_th_c_forEach_0, pageContext, _jspx_push_body_count_c_forEach_0))
return;
out.write(">");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${item.value }", java.lang.String.class, (PageContext)pageContext, null, false));
out.write("</option>\r\n\t\t \t\t\t\t");
int evalDoAfterBody = _jspx_th_c_forEach_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_forEach_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return;
} catch (Throwable _jspx_exception) {
while (_jspx_push_body_count_c_forEach_0[0]-- > 0)
out = pageContext.popBody();
_jspx_th_c_forEach_0.doCatch(_jspx_exception);
} finally {
_jspx_th_c_forEach_0.doFinally();
_jspx_tagPool_c_forEach_var_items.reuse(_jspx_th_c_forEach_0);
}
out.write("\r\n\t \t\t\t\t");
out.write("</select>\r\n\t\t\t\t\t");
out.write("<font color=\"red\"> *");
out.write("</font>");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td align=\"right\">戶 號:");
out.write("</td>\r\n\t\t\t\t ");
out.write("<td>");
out.write("<input type=\"text\" name=\"UserId\" value=\"");
out.print( UserId);
out.write("\" class=\"text1\" readonly=\"readonly\" size=\"20\"/>");
out.write("<font color=\"red\"> *");
out.write("</font>\r\n\t\t\t\t ");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td align=\"right\">維修需求標志:");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td>\r\n\t\t\t\t\t");
out.write("<select name=\"ElecDevRepFlag\" id=\"ElecDevRepFlag\" class=\"text1\">\r\n\t\t\t\t\t\t\t");
out.write("<option value=\"1\" selected>\r\n\t\t\t\t\t\t\t\t需要維修\r\n\t\t\t\t\t\t\t");
out.write("</option>\r\n\t\t\t\t\t\t\t");
out.write("<option value=\"2\">\r\n\t\t\t\t\t\t\t\t不需要\r\n\t\t\t\t\t\t\t");
out.write("</option>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t");
out.write("</select>\r\n\t\t\t\t\t");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td align=\"right\">用電檢查人員:");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td>");
out.write("<input type=\"text\" name=\"ElecDevChkStaff\" class=\"text1\" size=\"15\"/>");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td align=\"right\">用電檢查內容:");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td>\r\n\t\t\t\t\t");
out.write("<textarea name=\"ElecDevChkContent\" rows=\"4\" cols=\"25\" class=\"text1\">");
out.write("</textarea>\r\n\t\t\t\t\t");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td align=\"right\">派 單 日 期 :");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td>\r\n\t\t\t\t\t");
out.write("<input name=\"ElecDevChkDate\" id=\"ElecDevChkDate\" size=\"10\" maxlength=\"10\" type=\"text\" value=\"");
out.print(today );
out.write("\" onmousedown=\"javascript:setday(form1.ElecDevChkDate);\" readonly=\"readonly\">\r\n\t\t\t\t\t");
out.write("<font color=\"red\"> *");
out.write("</font>");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td align=\"right\">備 注:");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td>");
out.write("<textarea name=\"Memo\" rows=\"4\" cols=\"25\" class=\"text1\">");
out.write("</textarea>");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td > ");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td> ");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\r\n\t\t\t\t");
out.write("<tr>\r\n\t\t\t\t\t");
out.write("<td>");
out.write("</td>\r\n\t\t\t\t\t");
out.write("<td align=\"left\">");
out.write("<input type=\"submit\" name=\"Submit\" value=\"提 交\" class=\"anniu\"/>");
out.write("</td>\r\n\t\t\t\t");
out.write("</tr>\t\t\t\t\r\n\t\t\t");
out.write("</table>\r\n\t\t");
out.write("</form>\r\n");
out.write("</body>\r\n");
out.write("</html>");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (pageContext != null) pageContext.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
}
}
private boolean _jspx_meth_c_if_0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_forEach_0, PageContext pageContext, int[] _jspx_push_body_count_c_forEach_0)
throws Throwable {
JspWriter out = pageContext.getOut();
// c:if
org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
_jspx_th_c_if_0.setPageContext(pageContext);
_jspx_th_c_if_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_forEach_0);
_jspx_th_c_if_0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${requestScope.ElecDevTypeNo==item.key}", java.lang.Boolean.class, (PageContext)pageContext, null, false)).booleanValue());
int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("selected");
int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
return false;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -