- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.domain.KhxxForm"%>
- <%@ page import="com.domain.CqylxForm"%>
- <%@ page import="com.domain.CqyxzForm"%>
- <%@ page import="com.domain.CqyzxForm"%>
- <%@ page import="com.domain.CbankForm"%>
- <%@ page import="com.domain.CkhjbForm"%>
- <%@ page import="java.sql.*"%>
- <%@ page import="java.util.List"%>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>添加客户详细信息</title>
- <style type="text/css">
- <!--
- body {
- background-color: #000000;
- margin-left: 0px;
- margin-top: 0px;
- }
- td{
- font-size:9pt;
- }
- .style1 {font-size: 11pt}
- -->
- </style>
- </head>
- <script language="JavaScript">
- function RgTest(){
- if(document.form.mc.value==""){
- window.alert("请输入客户名称");
- document.form.mc.focus();
- return false;
- }
- if(document.form.qyxz.value==""){
- window.alert("请输入企业性质");
- document.form.qyxz.focus();
- return false;
- }
- if(document.form.qylx.value==""){
- window.alert("请输入企业类型");
- document.form.qylx.focus();
- return false;
- }
- if(document.form.qyzx.value==""){
- window.alert("请输入企业资信");
- document.form.qyzx.focus();
- return false;
- }
- if(document.form.qydz.value==""){
- window.alert("请输入企业地址");
- document.form.qydz.focus();
- return false;
- }
- if(document.form.szsf.value==""){
- window.alert("请输入所属省份");
- document.form.szsf.focus();
- return false;
- }
- if(document.form.gsyb.value==""){
- window.alert("请输入公司邮编");
- document.form.gsyb.focus();
- return false;
- }
- if(document.form.szcs.value==""){
- window.alert("请输入所属城市");
- document.form.szcs.focus();
- return false;
- }
- if(document.form.frdb.value==""){
- window.alert("请输入法人代表");
- document.form.frdb.focus();
- return false;
- }
- if(document.form.nsh.value==""){
- window.alert("请输入纳税号");
- document.form.nsh.focus();
- return false;
- }
- if(document.form.khyh.value==""){
- window.alert("请输入开户银行");
- document.form.khyh.focus();
- return false;
- }
- if(document.form.yhzh.value==""){
- window.alert("请输入开户银行账号");
- document.form.yhzh.focus();
- return false;
- }
- if(document.form.gswz.value==""){
- window.alert("请输入公司网址");
- document.form.gswz.focus();
- return false;
- }
- if(document.form.iCcard.value==""){
- window.alert("请输入客户IC卡号");
- document.form.iCcard.focus();
- return false;
- }
- if(document.form.gsdh.value==""){
- window.alert("请输入公司电话");
- document.form.gsdh.focus();
- return false;
- }
- if(document.form.gscz.value==""){
- window.alert("请输入公司传真");
- document.form.gscz.focus();
- return false;
- }
- if(document.form.lxr.value==""){
- window.alert("请输入主要联系人");
- document.form.lxr.focus();
- return false;
- }
- if(document.form.lxrdh.value==""){
- window.alert("请输入联系人电话");
- document.form.lxrdh.focus();
- return false;
- }
- if(document.form.khjb.value==""){
- window.alert("请输入客户级别");
- document.form.khjb.focus();
- return false;
- }
- return true;
- }
- </script>
- <body>
- <table width="579" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
- <tr>
- <td> </td>
- </tr>
- </table>
- <table width="579" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td align="left" valign="top" bgcolor="#FFFFFF"> <table width="579" height="487" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td align="left" valign="top" bgcolor="#FFFFFF"><table width="579" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="2%" height="28"> </td>
- <td width="9%" background="images/circle.jpg"> </td>
- <td width="89%" bgcolor="#FFFFFF"><span class="style1">添加客户详细信息</span></td>
- </tr>
- <tr style="line-height:2px">
- <td width="2%" height="5"> </td>
- <td height="5" colspan="2" bgcolor="#D4D0C8"> </td>
- </tr>
- <tr align="center" valign="top" bgcolor="#FFFFFF">
- <td height="454" colspan="3"><br>
- <form name="form" method="post" action="khxxInsert.do" onSubmit="return RgTest()">
- <table width="515" border="0" cellpadding="2" cellspacing="1" bgcolor="#666666">
- <tr>
- <td width="86" height="24" align="right" bgcolor="#ffcc33"><div align="center">客户编号</div></td>
- <td width="146" align="left" bgcolor="#FFFFFF"><input name="id" type="hidden" value="KH-<%=request.getAttribute("changeType")%>">
- KH-<%=request.getAttribute("changeType")%></td>
- <td width="85" align="center" bgcolor="#ffcc33">客户名称</td>
- <td width="177" bgcolor="#FFFFFF"><input type="text" name="mc"></td>
- </tr>
- <tr>
- <td height="24" align="right" bgcolor="#ffcc33"><div align="center">企业性质</div></td>
- <td bgcolor="#FFFFFF"><select name="qyxz">
- <option value="">请选择企业性质</option>
- <%List qyxzlist=(List)request.getAttribute("qyxz");
- for(int i=0;i<qyxzlist.size();i++){
- CqyxzForm qyxz=(CqyxzForm)qyxzlist.get(i);
- %>
- <option value="<%=qyxz.getQyxz_xzmc()%>"><%=qyxz.getQyxz_xzmc()%></option>
- <%}%>
- </select></td>
- <td align="center" bgcolor="#ffcc33">企业类型</td>
- <td bgcolor="#FFFFFF"><select name="qylx">
- <option value="">请选择企业类型</option>
- <%List qylxlist=(List)request.getAttribute("qylx");
- for(int i=0;i<qylxlist.size();i++){
- CqylxForm qylx=(CqylxForm)qylxlist.get(i);
- %>
- <option value="<%=qylx.getQylx_lxmc()%>"><%=qylx.getQylx_lxmc()%></option>
- <%}%>
- </select></td>
- </tr>
- <tr>
- <td height="24" align="right" bgcolor="#ffcc33"><div align="center">企业资信</div></td>
- <td bgcolor="#FFFFFF"><select name="qyzx">
- <option value="">请选择企业资信</option>
- <%List qyzxlist=(List)request.getAttribute("qyzx");
- for(int i=0;i<qyzxlist.size();i++){
- CqyzxForm qyzx=(CqyzxForm)qyzxlist.get(i);
- %>
- <option value="<%=qyzx.getQyzx_zxjb()%>"><%=qyzx.getQyzx_zxjb()%></option>
- <%}%>
- </select></td>
- <td align="center" bgcolor="#ffcc33">企业地址</td>
- <td bgcolor="#FFFFFF"><input type="text" name="qydz"></td>
- </tr>
- <tr>
- <td height="24" align="right" bgcolor="#ffcc33"><div align="center">所属省份</div></td>
- <td bgcolor="#FFFFFF"><input name="szsf" type="text" size="20"></td>
- <td align="center" bgcolor="#ffcc33">公司邮编</td>
- <td bgcolor="#FFFFFF"><input type="text" name="gsyb"></td>
- </tr>
- <tr>
- <td height="24" align="right" bgcolor="#ffcc33"><div align="center">所属城市</div></td>
- <td bgcolor="#FFFFFF"><input name="szcs" type="text" size="20"></td>
- <td align="center" bgcolor="#ffcc33">法人代表</td>
- <td bgcolor="#FFFFFF"><input type="text" name="frdb"></td>
- </tr>
- <tr>
- <td height="24" align="right" bgcolor="#ffcc33"><div align="center">纳税号</div></td>
- <td bgcolor="#FFFFFF"><input name="nsh" type="text" size="20"></td>
- <td height="24" align="center" bgcolor="#ffcc33">开户银行</td>
- <td bgcolor="#FFFFFF"><select name="khyh">
- <option value="">请选择开户银行</option>
- <%List banklist=(List)request.getAttribute("bank");
- for(int i=0;i<banklist.size();i++){
- CbankForm bank=(CbankForm)banklist.get(i);
- %>
- <option value="<%=bank.getBank_name()%>"><%=bank.getBank_name()%></option>
- <%}%>
- </select></td>
- </tr>
- <tr>
- <td height="24" align="right" bgcolor="#ffcc33"><div align="center">开户银行账号</div></td>
- <td bgcolor="#FFFFFF"><input name="yhzh" type="text" size="20"></td>
- <td align="center" bgcolor="#ffcc33">公司网址</td>
- <td bgcolor="#FFFFFF"><input type="text" name="gswz"></td>
- </tr>
- <tr>
- <td height="24" align="right" bgcolor="#ffcc33"><div align="center">客户IC卡号</div></td>
- <td bgcolor="#FFFFFF"><input name="iCcard" type="text" size="20"></td>
- <td align="center" bgcolor="#ffcc33">公司电话</td>
- <td bgcolor="#FFFFFF"><input type="text" name="gsdh"></td>
- </tr>
- <tr>
- <td height="24" align="right" bgcolor="#ffcc33"><div align="center">公司传真</div></td>
- <td bgcolor="#FFFFFF"><input name="gscz" type="text" size="20"></td>
- <td align="center" bgcolor="#ffcc33">主要联系人</td>
- <td bgcolor="#FFFFFF"><input type="text" name="lxr"></td>
- </tr>
- <tr>
- <td height="24" align="right" bgcolor="#ffcc33"><div align="center">联系人电话</div></td>
- <td bgcolor="#FFFFFF"><input name="lxrdh" type="text" size="20"></td>
- <td align="center" bgcolor="#ffcc33">客户级别</td>
- <td bgcolor="#FFFFFF"><select name="khjb">
- <option value="">请选择客户级别</option>
- <%List khjblist=(List)request.getAttribute("khjb");
- for(int i=0;i<khjblist.size();i++){
- CkhjbForm khjb=(CkhjbForm)khjblist.get(i);
- %>
- <option value="<%=khjb.getKhjb_jbmc()%>"><%=khjb.getKhjb_jbmc()%></option>
- <%}%>
- </select></td>
- </tr>
- <tr>
- <td height="24" align="right" bgcolor="#ffcc33"><div align="center">备注信息</div></td>
- <td colspan="3" bgcolor="#FFFFFF"><input name="bz" type="text" value="无" size="58"></td>
- </tr>
- </table>
- <br>
- <input type="submit" name="Submit2" value="提交">
-
- <input type="reset" name="Submit" value="重置">
- </form>
- </table></td>
- </tr>
- </table></td>
- </tr>
- </table>
- </body>
- </html>