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