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

企业管理

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%java.util.Date date=new java.util.Date();%>
  3. <%@ page import="java.sql.*"%>
  4. <%@ page import="java.util.List"%>
  5. <%@ page import="com.domain.KhxxForm"%>
  6. <%List list=(List)request.getAttribute("list");%>
  7. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  10. <title>添加业务来往详细信息</title>
  11. <style type="text/css">
  12. <!--
  13. body {
  14. background-color: #000000;
  15. margin-left: 0px;
  16. margin-top: 0px;
  17. }
  18. td{
  19. font-size:9pt;
  20. }
  21. .style1 {font-size: 11pt}
  22. -->
  23. </style>
  24. </head>
  25. <script language="JavaScript">
  26. function RgTest(){
  27. if(document.form.cpxx_mc.value==""){
  28. window.alert("请输入产品销售名称");
  29. return false;
  30. }
  31. if(document.form.cpxx_cpdj.value==""){
  32. window.alert("请输入产品价格名称");
  33. return false;
  34. }
  35. if(document.form.cpxx_cpdj.value==""){
  36. window.alert("请输入产品价格");
  37. return false;
  38. }
  39. if(isNaN(document.form.cpdj.value)){
  40. window.alert("请输入填写数字");
  41. return false;
  42. }
  43. if(document.form.cpxx_khId.value==""){
  44. window.alert("请选择客户名称");
  45. return false;
  46. }
  47. if(document.form.cpxx_bz.value==""){
  48. window.alert("请输入备注信息");
  49. return false;
  50. }
  51. return true;
  52. }
  53. </script>
  54. <body> 
  55. <table width="579"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> 
  56.   <tr> 
  57.     <td>&nbsp;</td> 
  58.   </tr> 
  59. </table> 
  60. <table width="579" border="0" cellpadding="0" cellspacing="0"> 
  61.   <tr> 
  62.     <td align="left" valign="top" bgcolor="#FFFFFF"> <table width="579" height="487"  border="0" cellpadding="0" cellspacing="0"> 
  63.         <tr> 
  64.           <td align="left" valign="top" bgcolor="#FFFFFF"><table width="579" border="0" cellpadding="0" cellspacing="0"> 
  65.               <tr> 
  66.                 <td width="2%" height="28">&nbsp;</td> 
  67.                 <td width="9%" background="images/circle.jpg">&nbsp;</td> 
  68.                 <td width="89%" bgcolor="#FFFFFF"><span class="style1">添加业务来往详细信息</span></td> 
  69.               </tr> 
  70.               <tr style="line-height:2px"> 
  71.                 <td width="2%" height="5">&nbsp;</td> 
  72.                 <td height="5" colspan="2" bgcolor="#D4D0C8">&nbsp;</td> 
  73.               </tr> 
  74.               <tr align="center" valign="top" bgcolor="#FFFFFF"> 
  75.                 <td height="454" colspan="3"><br> 
  76.                   <form name="form" method="post" action="khcpxzInsert.do"  onSubmit="return RgTest()"> 
  77.                     <table width="515" border="0" cellpadding="2" cellspacing="1" bgcolor="#666666"> 
  78.                       <tr align="center"> 
  79.                         <td width="86" height="24" align="right" bgcolor="#ffcc33"><div align="center">产品销售编号</div></td> 
  80.                         <td width="146" align="center" bgcolor="#FFFFFF"><input type="hidden" name="cpxx_id"  value="XS-<%=request.getAttribute("countID")%>">XS-<%=request.getAttribute("countID")%></td> 
  81.                         <td width="85" align="center" bgcolor="#ffcc33"> 产品销售名称</td> 
  82.                         <td width="177" bgcolor="#FFFFFF"><input type="text" name="cpxx_mc" ></td>
  83.                       </tr> 
  84.                       <tr align="center"> 
  85.                         <td height="24" align="right" bgcolor="#ffcc33"><div align="center">产品价格</div></td> 
  86.                         <td bgcolor="#FFFFFF"><input name="cpxx_cpdj" type="text" >
  87.                         元</td>
  88.                         <td align="center" bgcolor="#ffcc33">产品销售日期</td> 
  89.                         <td bgcolor="#FFFFFF"><input type="hidden" name="cpxx_xsrp" value="<%=date.getYear()+1900%>年<%=date.getMonth()+1%>月<%=date.getDate()%>日"><%=date.getYear()+1900%>年<%=date.getMonth()+1%>月<%=date.getDate()%>日</td>
  90.                       </tr> 
  91.                       <tr align="center"> 
  92.     
  93.                         <td height="24" align="right" bgcolor="#ffcc33"><div align="center">销售的客户名称</div></td> 
  94.                         <td bgcolor="#FFFFFF">
  95. <select name="cpxx_khId">
  96. <option></option>
  97. <%for(int i=0;i<list.size();i++){
  98. KhxxForm khxxForm=(KhxxForm)list.get(i);
  99. %>
  100. <option value="<%=khxxForm.getKhxx_id()%>"><%=khxxForm.getKhxx_mc()%></option>
  101. <%}%></select>
  102. </td>
  103.                         <td align="center" bgcolor="#ffcc33"></td> 
  104.                         <td bgcolor="#FFFFFF"></td>
  105.                        
  106.       </tr> 
  107.                       <tr> 
  108.                         <td height="24" align="right" bgcolor="#ffcc33"><div align="center">备注信息</div></td> 
  109.                         <td colspan="3" bgcolor="#FFFFFF"><div align="center"><textarea name="cpxx_bz" cols="40" rows="8" id="cpxx_bz"></textarea></div></td>
  110.                       </tr> 
  111.                     </table> 
  112.                     <p>
  113.                       <input type="submit" name="Submit" value="提交">
  114.   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  115.                       <input type="reset" name="Submit2" value="重置">
  116. </p>
  117.                   </form>                  
  118.               </table></td> 
  119.         </tr> 
  120.       </table></td> 
  121.   </tr> 
  122. </table> 
  123. </body>
  124. </html>