⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 insertkhcpxz_0002ejsp_jsp.java

📁 客户关系管理系统,包括数据库,类,所有运行所需的代码及文件
💻 JAVA
字号:
package jsp.information.khcpxz;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;

public class insertKhcpxz_0002ejsp_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  public java.util.List getIncludes() {
    return _jspx_includes;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    javax.servlet.jsp.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");
java.util.Date date=new java.util.Date();
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<title>添加产品信息");
      out.write("</title>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\nbody {\r\n\tbackground-color: #000000;\r\n\tmargin-left: 0px;\r\n\tmargin-top: 0px;\r\n}\r\ntd{\r\nfont-size:9pt;\r\n}\r\n.style1 {font-size: 11pt}\r\n-->\r\n");
      out.write("</style>\r\n");
      out.write("</head>\r\n");
      out.write("<script language=\"JavaScript\">\r\nfunction RgTest(){\r\nif(document.form.mc.value==\"\"){\r\nwindow.alert(\"请输入产品名称\");\r\nreturn false;\r\n}\r\n\r\nif(document.form.dj.value==\"\"){\r\nwindow.alert(\"请输入产品单价\");\r\nreturn false;\r\n}\r\n\r\nif(isNan(document.form.dj.value)){\r\nwindow.alert(\"产品单价只能是数字\");\r\nreturn false;\r\n}\r\n\r\nif(document.form.bz.value==\"\"){\r\nwindow.alert(\"请输入产品备注信息\");\r\nreturn false;\r\n}\r\n\r\nreturn true;\r\n}\r\n");
      out.write("</script>\r\n");
      out.write("<body> \r\n");
      out.write("<table width=\"579\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\"> \r\n  ");
      out.write("<tr> \r\n    ");
      out.write("<td>&nbsp;");
      out.write("</td> \r\n  ");
      out.write("</tr> \r\n");
      out.write("</table> \r\n");
      out.write("<table width=\"579\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"> \r\n  ");
      out.write("<tr> \r\n    ");
      out.write("<td align=\"left\" valign=\"top\" bgcolor=\"#FFFFFF\"> ");
      out.write("<table width=\"579\" height=\"487\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\"> \r\n        ");
      out.write("<tr> \r\n          ");
      out.write("<td align=\"left\" valign=\"top\" bgcolor=\"#FFFFFF\">");
      out.write("<table width=\"579\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"> \r\n              ");
      out.write("<tr> \r\n                ");
      out.write("<td width=\"2%\" height=\"28\">&nbsp;");
      out.write("</td> \r\n                ");
      out.write("<td width=\"9%\" background=\"images/circle.jpg\">&nbsp;");
      out.write("</td> \r\n                ");
      out.write("<td width=\"89%\" bgcolor=\"#FFFFFF\">");
      out.write("<span class=\"style1\">添加产品信息");
      out.write("</span>");
      out.write("</td> \r\n              ");
      out.write("</tr> \r\n              ");
      out.write("<tr style=\"line-height:2px\"> \r\n                ");
      out.write("<td width=\"2%\" height=\"5\">&nbsp;");
      out.write("</td> \r\n                ");
      out.write("<td height=\"5\" colspan=\"2\" bgcolor=\"#D4D0C8\">&nbsp;");
      out.write("</td> \r\n              ");
      out.write("</tr> \r\n              ");
      out.write("<tr align=\"center\" valign=\"top\" bgcolor=\"#FFFFFF\"> \r\n                ");
      out.write("<td height=\"454\" colspan=\"3\">");
      out.write("<br> \r\n                  ");
      out.write("<form name=\"form\" method=\"post\" action=\"\"  onSubmit=\"return RgTest()\"> \r\n                    ");
      out.write("<table width=\"515\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\" bgcolor=\"#666666\"> \r\n                      ");
      out.write("<tr> \r\n                        ");
      out.write("<td width=\"86\" height=\"24\" align=\"right\" bgcolor=\"#ffcc33\">");
      out.write("<div align=\"center\">产品编号");
      out.write("</div>");
      out.write("</td> \r\n                        ");
      out.write("<td width=\"146\" align=\"left\" bgcolor=\"#FFFFFF\">");
      out.write("<input name=\"id\" type=\"hidden\" value=\"XS-");
      out.print(request.getAttribute("count"));
      out.write("\"> \r\n                        XS-");
      out.print(request.getAttribute("count"));
      out.write("</td> \r\n                        ");
      out.write("<td width=\"85\" align=\"center\" bgcolor=\"#ffcc33\"> 产品名称");
      out.write("</td> \r\n                        ");
      out.write("<td width=\"177\" bgcolor=\"#FFFFFF\">");
      out.write("<input type=\"text\" name=\"mc\">");
      out.write("</td> \r\n                      ");
      out.write("</tr> \r\n                      ");
      out.write("<tr> \r\n                        ");
      out.write("<td height=\"24\" align=\"right\" bgcolor=\"#ffcc33\">");
      out.write("<div align=\"center\">产品单价");
      out.write("</div>");
      out.write("</td> \r\n                        ");
      out.write("<td bgcolor=\"#FFFFFF\">");
      out.write("<input type=\"text\" name=\"dj\">");
      out.write("</td>\r\n                        ");
      out.write("<td align=\"center\" bgcolor=\"#ffcc33\">产品销售日期");
      out.write("</td> \r\n                        ");
      out.write("<td bgcolor=\"#FFFFFF\">");
      out.write("<input type=\"hidden\" name=\"xsrq\" value=\"");
      out.print(date.getYear()+1900);
      out.write("年");
      out.print(date.getMonth()+1);
      out.write("月");
      out.print(date.getDate());
      out.write("日\">");
      out.print(date.getYear()+1900);
      out.write("年");
      out.print(date.getMonth()+1);
      out.write("月");
      out.print(date.getDate());
      out.write("日");
      out.write("</td>\r\n                      ");
      out.write("</tr> \r\n                     \r\n                      ");
      out.write("<tr> \r\n                        ");
      out.write("<td height=\"24\" align=\"right\" bgcolor=\"#ffcc33\">");
      out.write("<div align=\"center\">产品备注");
      out.write("</div>");
      out.write("</td> \r\n                        ");
      out.write("<td colspan=\"3\" bgcolor=\"#FFFFFF\">");
      out.write("<input name=\"bz\" type=\"text\" value=\"无\" size=\"58\">");
      out.write("</td> \r\n                      ");
      out.write("</tr> \r\n                    ");
      out.write("</table> \r\n                    ");
      out.write("<br>\r\n                    ");
      out.write("<input type=\"submit\" name=\"Submit2\" value=\"提交\"> \r\n&nbsp;&nbsp;&nbsp;&nbsp; \r\n                    ");
      out.write("<input type=\"reset\" name=\"Submit\" value=\"重置\"> \r\n                  ");
      out.write("</form> \r\n            ");
      out.write("</table>");
      out.write("</td> \r\n        ");
      out.write("</tr> \r\n      ");
      out.write("</table>");
      out.write("</td> \r\n  ");
      out.write("</tr> \r\n");
      out.write("</table> \r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
    } catch (Throwable t) {
      out = _jspx_out;
      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 + -