insertKhxx.jsp
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:11k
源码类别:

企业管理

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.domain.KhxxForm"%>
  3. <%@ page import="com.domain.CqylxForm"%>
  4. <%@ page import="com.domain.CqyxzForm"%>
  5. <%@ page import="com.domain.CqyzxForm"%>
  6. <%@ page import="com.domain.CbankForm"%>
  7. <%@ page import="com.domain.CkhjbForm"%>
  8. <%@ page import="java.sql.*"%>
  9. <%@ page import="java.util.List"%>
  10. <html>
  11. <head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  13. <title>添加客户详细信息</title>
  14. <style type="text/css">
  15. <!--
  16. body {
  17. background-color: #000000;
  18. margin-left: 0px;
  19. margin-top: 0px;
  20. }
  21. td{
  22. font-size:9pt;
  23. }
  24. .style1 {font-size: 11pt}
  25. -->
  26. </style>
  27. </head>
  28. <script language="JavaScript">
  29. function RgTest(){
  30. if(document.form.mc.value==""){
  31. window.alert("请输入客户名称");
  32. document.form.mc.focus();
  33. return false;
  34. }
  35. if(document.form.qyxz.value==""){
  36. window.alert("请输入企业性质");
  37. document.form.qyxz.focus();
  38. return false;
  39. }
  40. if(document.form.qylx.value==""){
  41. window.alert("请输入企业类型");
  42. document.form.qylx.focus();
  43. return false;
  44. }
  45. if(document.form.qyzx.value==""){
  46. window.alert("请输入企业资信");
  47. document.form.qyzx.focus();
  48. return false;
  49. }
  50. if(document.form.qydz.value==""){
  51. window.alert("请输入企业地址");
  52. document.form.qydz.focus();
  53. return false;
  54. }
  55. if(document.form.szsf.value==""){
  56. window.alert("请输入所属省份");
  57. document.form.szsf.focus();
  58. return false;
  59. }
  60. if(document.form.gsyb.value==""){
  61. window.alert("请输入公司邮编");
  62. document.form.gsyb.focus();
  63. return false;
  64. }
  65. if(document.form.szcs.value==""){
  66. window.alert("请输入所属城市");
  67. document.form.szcs.focus();
  68. return false;
  69. }
  70. if(document.form.frdb.value==""){
  71. window.alert("请输入法人代表");
  72. document.form.frdb.focus();
  73. return false;
  74. }
  75. if(document.form.nsh.value==""){
  76. window.alert("请输入纳税号");
  77. document.form.nsh.focus();
  78. return false;
  79. }
  80. if(document.form.khyh.value==""){
  81. window.alert("请输入开户银行");
  82. document.form.khyh.focus();
  83. return false;
  84. }
  85. if(document.form.yhzh.value==""){
  86. window.alert("请输入开户银行账号");
  87. document.form.yhzh.focus();
  88. return false;
  89. }
  90. if(document.form.gswz.value==""){
  91. window.alert("请输入公司网址");
  92. document.form.gswz.focus();
  93. return false;
  94. }
  95. if(document.form.iCcard.value==""){
  96. window.alert("请输入客户IC卡号");
  97. document.form.iCcard.focus();
  98. return false;
  99. }
  100. if(document.form.gsdh.value==""){
  101. window.alert("请输入公司电话");
  102. document.form.gsdh.focus();
  103. return false;
  104. }
  105. if(document.form.gscz.value==""){
  106. window.alert("请输入公司传真");
  107. document.form.gscz.focus();
  108. return false;
  109. }
  110. if(document.form.lxr.value==""){
  111. window.alert("请输入主要联系人");
  112. document.form.lxr.focus();
  113. return false;
  114. }
  115. if(document.form.lxrdh.value==""){
  116. window.alert("请输入联系人电话");
  117. document.form.lxrdh.focus();
  118. return false;
  119. }
  120. if(document.form.khjb.value==""){
  121. window.alert("请输入客户级别");
  122. document.form.khjb.focus();
  123. return false;
  124. }
  125. return true;
  126. }
  127. </script>
  128. <body> 
  129. <table width="579"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> 
  130.   <tr> 
  131.     <td>&nbsp;</td> 
  132.   </tr> 
  133. </table> 
  134. <table width="579" border="0" cellpadding="0" cellspacing="0"> 
  135.   <tr> 
  136.     <td align="left" valign="top" bgcolor="#FFFFFF"> <table width="579" height="487"  border="0" cellpadding="0" cellspacing="0"> 
  137.         <tr> 
  138.           <td align="left" valign="top" bgcolor="#FFFFFF"><table width="579" border="0" cellpadding="0" cellspacing="0"> 
  139.               <tr> 
  140.                 <td width="2%" height="28">&nbsp;</td> 
  141.                 <td width="9%" background="images/circle.jpg">&nbsp;</td> 
  142.                 <td width="89%" bgcolor="#FFFFFF"><span class="style1">添加客户详细信息</span></td> 
  143.               </tr> 
  144.               <tr style="line-height:2px"> 
  145.                 <td width="2%" height="5">&nbsp;</td> 
  146.                 <td height="5" colspan="2" bgcolor="#D4D0C8">&nbsp;</td> 
  147.               </tr> 
  148.               <tr align="center" valign="top" bgcolor="#FFFFFF"> 
  149.                 <td height="454" colspan="3"><br> 
  150.                   <form name="form" method="post" action="khxxInsert.do"  onSubmit="return RgTest()"> 
  151.                     <table width="515" border="0" cellpadding="2" cellspacing="1" bgcolor="#666666"> 
  152.                       <tr> 
  153.                         <td width="86" height="24" align="right" bgcolor="#ffcc33"><div align="center">客户编号</div></td> 
  154.                         <td width="146" align="left" bgcolor="#FFFFFF"><input name="id" type="hidden" value="KH-<%=request.getAttribute("changeType")%>"> 
  155.                         KH-<%=request.getAttribute("changeType")%></td> 
  156.                         <td width="85" align="center" bgcolor="#ffcc33">客户名称</td> 
  157.                         <td width="177" bgcolor="#FFFFFF"><input type="text" name="mc"></td> 
  158.                       </tr> 
  159.                       <tr> 
  160.                         <td height="24" align="right" bgcolor="#ffcc33"><div align="center">企业性质</div></td> 
  161.                         <td bgcolor="#FFFFFF"><select name="qyxz"> 
  162.                             <option value="">请选择企业性质</option> 
  163.                             <%List qyxzlist=(List)request.getAttribute("qyxz");
  164. for(int i=0;i<qyxzlist.size();i++){
  165. CqyxzForm qyxz=(CqyxzForm)qyxzlist.get(i);
  166. %> 
  167.                             <option value="<%=qyxz.getQyxz_xzmc()%>"><%=qyxz.getQyxz_xzmc()%></option> 
  168.                             <%}%> 
  169.                           </select></td> 
  170.                         <td align="center" bgcolor="#ffcc33">企业类型</td> 
  171.                         <td bgcolor="#FFFFFF"><select name="qylx"> 
  172.                             <option value="">请选择企业类型</option> 
  173.                             <%List qylxlist=(List)request.getAttribute("qylx");
  174. for(int i=0;i<qylxlist.size();i++){
  175. CqylxForm qylx=(CqylxForm)qylxlist.get(i);
  176. %> 
  177.                             <option value="<%=qylx.getQylx_lxmc()%>"><%=qylx.getQylx_lxmc()%></option> 
  178.                             <%}%> 
  179.                           </select></td> 
  180.                       </tr> 
  181.                       <tr> 
  182.                         <td height="24" align="right" bgcolor="#ffcc33"><div align="center">企业资信</div></td> 
  183.                         <td bgcolor="#FFFFFF"><select name="qyzx"> 
  184.                             <option value="">请选择企业资信</option> 
  185.                             <%List qyzxlist=(List)request.getAttribute("qyzx");
  186. for(int i=0;i<qyzxlist.size();i++){
  187. CqyzxForm qyzx=(CqyzxForm)qyzxlist.get(i);
  188. %> 
  189.                             <option value="<%=qyzx.getQyzx_zxjb()%>"><%=qyzx.getQyzx_zxjb()%></option> 
  190.                             <%}%> 
  191.                           </select></td> 
  192.                         <td align="center" bgcolor="#ffcc33">企业地址</td> 
  193.                         <td bgcolor="#FFFFFF"><input type="text" name="qydz"></td> 
  194.                       </tr> 
  195.                       <tr> 
  196.                         <td height="24" align="right" bgcolor="#ffcc33"><div align="center">所属省份</div></td> 
  197.                         <td bgcolor="#FFFFFF"><input name="szsf" type="text" size="20"></td> 
  198.                         <td align="center" bgcolor="#ffcc33">公司邮编</td> 
  199.                         <td bgcolor="#FFFFFF"><input type="text" name="gsyb"></td> 
  200.                       </tr> 
  201.                       <tr> 
  202.                         <td height="24" align="right" bgcolor="#ffcc33"><div align="center">所属城市</div></td> 
  203.                         <td bgcolor="#FFFFFF"><input name="szcs" type="text" size="20"></td> 
  204.                         <td align="center" bgcolor="#ffcc33">法人代表</td> 
  205.                         <td bgcolor="#FFFFFF"><input type="text" name="frdb"></td> 
  206.                       </tr> 
  207.                       <tr> 
  208.                         <td height="24" align="right" bgcolor="#ffcc33"><div align="center">纳税号</div></td> 
  209.                         <td bgcolor="#FFFFFF"><input name="nsh" type="text" size="20"></td> 
  210.                         <td height="24" align="center" bgcolor="#ffcc33">开户银行</td> 
  211.                         <td bgcolor="#FFFFFF"><select name="khyh"> 
  212.                             <option value="">请选择开户银行</option> 
  213.                             <%List banklist=(List)request.getAttribute("bank");
  214. for(int i=0;i<banklist.size();i++){
  215. CbankForm bank=(CbankForm)banklist.get(i);
  216. %> 
  217.                             <option value="<%=bank.getBank_name()%>"><%=bank.getBank_name()%></option> 
  218.                             <%}%> 
  219.                           </select></td> 
  220.                       </tr> 
  221.                       <tr> 
  222.                         <td height="24" align="right" bgcolor="#ffcc33"><div align="center">开户银行账号</div></td> 
  223.                         <td bgcolor="#FFFFFF"><input name="yhzh" type="text" size="20"></td> 
  224.                         <td align="center" bgcolor="#ffcc33">公司网址</td> 
  225.                         <td bgcolor="#FFFFFF"><input type="text" name="gswz"></td> 
  226.                       </tr> 
  227.                       <tr> 
  228.                         <td height="24" align="right" bgcolor="#ffcc33"><div align="center">客户IC卡号</div></td> 
  229.                         <td bgcolor="#FFFFFF"><input name="iCcard" type="text" size="20"></td> 
  230.                         <td align="center" bgcolor="#ffcc33">公司电话</td> 
  231.                         <td bgcolor="#FFFFFF"><input type="text" name="gsdh"></td> 
  232.                       </tr> 
  233.                       <tr> 
  234.                         <td height="24" align="right" bgcolor="#ffcc33"><div align="center">公司传真</div></td> 
  235.                         <td bgcolor="#FFFFFF"><input name="gscz" type="text" size="20"></td> 
  236.                         <td align="center" bgcolor="#ffcc33">主要联系人</td> 
  237.                         <td bgcolor="#FFFFFF"><input type="text" name="lxr"></td> 
  238.                       </tr> 
  239.                       <tr> 
  240.                         <td height="24" align="right" bgcolor="#ffcc33"><div align="center">联系人电话</div></td> 
  241.                         <td bgcolor="#FFFFFF"><input name="lxrdh" type="text" size="20"></td> 
  242.                         <td align="center" bgcolor="#ffcc33">客户级别</td> 
  243.                         <td bgcolor="#FFFFFF"><select name="khjb"> 
  244.                             <option value="">请选择客户级别</option> 
  245.                             <%List khjblist=(List)request.getAttribute("khjb");
  246. for(int i=0;i<khjblist.size();i++){
  247. CkhjbForm khjb=(CkhjbForm)khjblist.get(i);
  248. %> 
  249.                             <option value="<%=khjb.getKhjb_jbmc()%>"><%=khjb.getKhjb_jbmc()%></option> 
  250.                             <%}%> 
  251.                           </select></td> 
  252.                       </tr> 
  253.                       <tr> 
  254.                         <td height="24" align="right" bgcolor="#ffcc33"><div align="center">备注信息</div></td> 
  255.                         <td colspan="3" bgcolor="#FFFFFF"><input name="bz" type="text" value="无" size="58"></td> 
  256.                       </tr> 
  257.                     </table> 
  258.                     <br>
  259.                     <input type="submit" name="Submit2" value="提交"> 
  260. &nbsp;&nbsp;&nbsp;&nbsp; 
  261.                     <input type="reset" name="Submit" value="重置"> 
  262.                   </form> 
  263.             </table></td> 
  264.         </tr> 
  265.       </table></td> 
  266.   </tr> 
  267. </table> 
  268. </body>
  269. </html>