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

📄 clientinsert_jsp.java

📁 销售管理系统 随着我国国民经济的持续发展
💻 JAVA
字号:
package org.apache.jsp.client;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import java.util.*;
import com.domain.BankVO;
import com.dao.BankDao;
import com.domain.CreditVO;
import com.dao.CreditDao;
import com.domain.ClientStyleVO;
import com.dao.ClientStyleDao;
import com.domain.TypeVO;
import com.dao.TypeDao;
import com.domain.AreaVO;
import com.dao.AreaDao;

public final class clientInsert_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  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;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=gb2312");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n");
BankDao bank = new BankDao();
      out.write('\r');
      out.write('\n');
CreditDao credit = new CreditDao();
      out.write('\r');
      out.write('\n');
ClientStyleDao clientStyle = new ClientStyleDao();
      out.write('\r');
      out.write('\n');
TypeDao type = new TypeDao();
      out.write('\r');
      out.write('\n');
AreaDao area = new AreaDao();
      out.write("\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<link href=\"css/style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n<title>添加企业信息</title>\r\n<script language=\"JavaScript\">\r\nfunction insertUnit(){\r\nif(document.form.name.value==\"\"){\r\nwindow.alert(\"请填写名称\");\r\nreturn false;\r\n}\r\nif(document.form.remark.value==\"\"){\r\nwindow.alert(\"请填写备注信息\");\r\nreturn false;\r\n}\r\nreturn true;\r\n}\r\n</script>\r\n\r\n</head>\r\n<body>\r\n<table width=\"80%\" height=\"100%\" border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n  <tr align=\"left\" valign=\"top\">\r\n    <td height=\"20%\" colspan=\"3\">\r\n    ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../top.jsp", out, false);
      out.write("\r\n    </td>\r\n  </tr>\r\n  <tr>\r\n    <td width=\"189\" height=\"80%\" scope=\"row\">\r\n    ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../ba.jsp", out, false);
      out.write("\r\n    </td>\r\n    <td width=\"612\" height=\"80%\" scope=\"row\">\r\n      <div align=\"center\">\r\n        <p>&nbsp;</p>\r\n        <p>\r\n          <strong>添加企业信息</strong>\r\n        </p>\r\n      <form name=\"form\" method=\"post\" action=\"\" onSubmit=\"return insertUnit()\">\r\n        <table width=\"87%\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\r\n          <tr align=\"center\">\r\n            <td width=\"16%\" height=\"30\">企业名称</td>\r\n            <td width=\"33%\">\r\n              <div align=\"left\">\r\n                <input type=\"text\" name=\"name\">\r\n              </div></td>\r\n            <td width=\"16%\">企业类型</td> ");
List clientStyleList =clientStyle.bankSelect();       
      out.write("\r\n            <td width=\"35%\">\r\n              <div align=\"left\">\r\n                <select name=\"ptype\">\r\n                    <option value=\"\">请选择</option>\r\n                    ");

                for (int i = 0; i < clientStyleList.size(); i++) {
                  ClientStyleVO clientStyleVO = (ClientStyleVO) clientStyleList.get(i);
              
      out.write("\r\n                    <option value=\"");
      out.print(clientStyleVO.getClientStyle_name());
      out.write('"');
      out.write('>');
      out.print(clientStyleVO.getClientStyle_name());
      out.write("                </option>\r\n                    ");
}              
      out.write("\r\n                </select>\r\n              </div></td>\r\n          </tr>\r\n          <tr align=\"center\">\r\n            <td height=\"30\">企业资信</td>\r\n             ");
List creditList =credit.creditSelect();       
      out.write("\r\n            <td>\r\n              <div align=\"left\">\r\n                <select name=\"credit\">\r\n                    <option value=\"\">请选择</option>\r\n                    ");

                for (int i = 0; i < creditList.size(); i++) {
                  CreditVO creditvo = (CreditVO) creditList.get(i);
              
      out.write("\r\n                    <option value=\"");
      out.print(creditvo.getCredit_name());
      out.write('"');
      out.write('>');
      out.print(creditvo.getCredit_name());
      out.write("                </option>\r\n                    ");
}              
      out.write("\r\n                </select>\r\n              </div></td>\r\n            <td>企业实质类型</td>  ");
List typeList =type.typeSelect();       
      out.write("\r\n            <td>\r\n              <div align=\"left\">\r\n                 <select name=\"type\">\r\n                    <option value=\"\">请选择</option>\r\n                    ");

                for (int i = 0; i < typeList.size(); i++) {
                  TypeVO typevo = (TypeVO) typeList.get(i);
              
      out.write("\r\n                    <option value=\"");
      out.print(typevo.getType_name());
      out.write('"');
      out.write('>');
      out.print(typevo.getType_name());
      out.write("                </option>\r\n                    ");
}              
      out.write("\r\n                </select>\r\n              </div></td>\r\n          </tr>\r\n          <tr align=\"center\">\r\n            <td height=\"30\">开户银行</td>\r\n          ");
List bankList = bank.bankSelect();          
      out.write("\r\n            <td>\r\n              <div align=\"left\">\r\n                <select name=\"bank\">\r\n                    <option value=\"\">请选择</option>\r\n                    ");

                for (int i = 0; i < bankList.size(); i++) {
                  BankVO bankvo = (BankVO) bankList.get(i);
              
      out.write("\r\n                    <option value=\"");
      out.print(bankvo.getBank_name());
      out.write('"');
      out.write('>');
      out.print(bankvo.getBank_name());
      out.write("                </option>\r\n                    ");
}              
      out.write("\r\n                </select>\r\n              </div></td>\r\n            <td>银行账号</td>\r\n            <td>\r\n              <div align=\"left\">\r\n                <input type=\"text\" name=\"bankNumber\">\r\n              </div></td>\r\n          </tr>\r\n          <tr align=\"center\">\r\n            <td height=\"30\">所在省份</td>");
List areaList=area.areaSelectProvicne();
      out.write("\r\n            <td>\r\n              <div align=\"left\">\r\n               <select name=\"provicne\" size=\"1\">\r\n                    <option value=\"\">请选择</option>\r\n                    ");

                for (int i = 0; i < areaList.size(); i++) {
                  AreaVO areavo = (AreaVO) areaList.get(i);
              
      out.write("\r\n                    <option value=\"");
      out.print(areavo.getCsxx_csmc());
      out.write('"');
      out.write('>');
      out.print(areavo.getCsxx_csmc());
      out.write("                </option>\r\n                    ");
}              
      out.write("\r\n                </select>\r\n              </div></td>\r\n            <td>所在城市</td>");
List areaCity=area.areaSelectCity(request.getHeader("provicne"));
      out.write("\r\n            <td>\r\n              <div align=\"left\">\r\n                      <select name=\"city\">\r\n                    <option value=\"\">请选择</option>\r\n                    ");

                for (int i = 0; i < areaCity.size(); i++) {
                  AreaVO city = (AreaVO) areaCity.get(i);
              
      out.write("\r\n                    <option value=\"");
      out.print(city.getCsxx_csmc());
      out.write('"');
      out.write('>');
      out.print(city.getCsxx_csmc());
      out.write("                </option>\r\n                    ");
}              
      out.write("\r\n              </div></td>\r\n          </tr>\r\n          <tr align=\"center\">\r\n            <td height=\"30\">主要产品</td>\r\n            <td>\r\n              <div align=\"left\">\r\n                <input type=\"text\" name=\"content\">\r\n              </div></td>\r\n            <td>联系电话</td>\r\n            <td>\r\n              <div align=\"left\">\r\n                <input type=\"text\" name=\"tel\">\r\n              </div></td>\r\n          </tr>\r\n          <tr align=\"center\">\r\n            <td height=\"30\">联系人姓名</td>\r\n            <td>\r\n              <div align=\"left\">\r\n                <input type=\"text\" name=\"contact\">\r\n              </div></td>\r\n            <td>电子邮件</td>\r\n            <td>\r\n              <div align=\"left\">\r\n                <input type=\"text\" name=\"email\">\r\n              </div></td>\r\n          </tr>\r\n          <tr align=\"center\">\r\n            <td height=\"30\">详细地址</td>\r\n            <td>\r\n              <div align=\"left\">\r\n                <input type=\"text\" name=\"address\">\r\n              </div></td>\r\n            <td>备注信息</td>\r\n            <td>\r\n");
      out.write("              <div align=\"left\">\r\n                <input type=\"text\" name=\"remark\">\r\n              </div></td>\r\n          </tr>\r\n        </table>\r\n        <p>\r\n          <input type=\"submit\" name=\"Submit2\" value=\"提交\">\r\n          &nbsp;\r\n          <input type=\"reset\" name=\"Submit3\" value=\"重置\">\r\n          &nbsp;\r\n          <input type=\"button\" name=\"Submit3\" value=\"返回\" onclick=\"javascript:history.back();\">\r\n        </p>\r\n      </form>\r\n      </div>\r\n      <p>&nbsp;</p>\r\n      <p>&nbsp;</p>\r\n      <p>&nbsp;</p>\r\n      <p>&nbsp;</p>\r\n    </td>\r\n  </tr>\r\n</table>\r\n</body>\r\n</html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -