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

📄 xscklist_edit.jsp

📁 java中的jsp+servlet技术编写的一个超市进销存的的系统
💻 JSP
字号:
<%@page contentType="text/html; charset=gb2312" language="java"  errorPage="" %>
<jsp:useBean id="cgb1" scope="page" class="JXC.web.xsckb" />
<jsp:useBean id="list1" scope="page" class="JXC.web.Lists" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title></title>
<link rel="stylesheet" href="../other/customer.css">

</head><body>
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
  <tr>
    <td bordercolor="#FFFFFF">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" bordercolor="#86c2fe">
        <tr> 
          <td bgcolor="#4180BE">
      <table width="100%" height="44" border="0" cellspacing="0" cellpadding="0" bordercolor="#86c2fe">
        <tr> 
          <td bgcolor="#206AB3" bordercolor="#FFFFFF" width="100%" nowrap>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
              <tr> 
			    <td align="center" width="100%" >
                  <font color="#FFFFFF">  
                  商 品 销 售 信 息 管 理&nbsp; --<font size="2">&nbsp;详细资料</font></font>     
                </td>    
              </tr>     
            </table>     
          </td>     
        </tr>     
      </table>     
    </td>     
  </tr>     
</table>
<%
 String id=request.getParameter("id");
 String Page=request.getParameter("page");
 cgb1.setID(id);
 String djbh="";
 String memo="";
 String Fdate="";
 int csbh=0;
 int ygbh=0;
 int ckbh=0;
 int fkfs=0;
 if (cgb1.excute()){
  djbh =cgb1.getDjbh();
  memo =cgb1.getMemo();
  Fdate=cgb1.getFdate().substring(0,10);
  csbh =cgb1.getCsbh();
  ygbh =cgb1.getYgbh();
  ckbh =cgb1.getCkbh();
 // fkfs =cgb1.getFkfs();
 }
 %>
<table width="20%" >
<td class='small'>*标识必填项</td>
</Table>

      <table width="100%" cellspacing="1" align="center">    
        <tr>     
          <td height="100%" colspan="2">     
		  <form method="POST" action="xscklist_ed.jsp?id=<%=id%>&page=<%=Page%>">    
		     <table width="100%" cellspacing="1" bgcolor="#86c2fe">     
                    <tr>     
                      <td class='small' width="15%" bgcolor="#D8EBF5">     
                        <div align="center">单据编号:</div>    
                      </td>    
                      <td width="35%" bgcolor="#D8EBF5"><input type="text" name="djbh"
					   value="<%=djbh%>" size="20" >*</td>    
                      <td class='small' width="15%" bgcolor="#D8EBF5">     
                        <div align="center">客户名称:</div>    
                      </td>    
                      <td bgcolor="#D8EBF5"><select size="1" name="csbh" width="20">
					  <% list1.setShowAll();
					    list1.setSql("khb");
					  if (list1.excute()) {
						  for (int i=0;i<list1.getListCount();i++) {
							list1.setRow(i); 
						    %>
					  <option value="<%=list1.getString("id")%>" <% if (Integer.parseInt(list1.getString("id"))==csbh ) 
						out.println("selected"); %> ><%=list1.getString("csname")%></option>
					  <% } 
					  }%>
					  </select>*</td>    
                    </tr>    
                    <tr>     
                      <td class='small' width="15%" bgcolor="#D8EBF5">     
                        <div align="center">仓库名称:</div>    
                      </td>    
                      <td width="35%" bgcolor="#D8EBF5"><select size="1" name="ckbh" width="20">
					  <% 
					    list1.setSql("ckb");
					  if (list1.excute()) {
						  for (int i=0;i<list1.getListCount();i++) {
							list1.setRow(i); 
						    %>
					  <option value="<%=list1.getString("id")%>" <% if (Integer.parseInt(list1.getString("id"))==ckbh ) 
						out.println("selected"); %> ><%=list1.getString("ckname")%></option>
					  <% } 
					  }%>
					  </select>*</td> 
					  
                      <td class='small' width="15%" bgcolor="#D8EBF5">     
                        <div align="center">员工名称:</div>    
                      </td>    
                      <td bgcolor="#D8EBF5"><select size="1" name="ygbh">
					  <% 
					    list1.setSql("personnel");
					  if (list1.excute()) {
						  for (int i=0;i<list1.getListCount();i++) {
							list1.setRow(i); 
						    %>
					  <option value="<%=list1.getString("id")%>" <% if (Integer.parseInt(list1.getString("id"))==ygbh ) 
						out.println("selected"); %>><%=list1.getString("name")%></option>
					  <% } 
					  }%>
					  </select> *</td>    
                    </tr>    
                    <tr>     
                      <td class='small' width="15%" bgcolor="#D8EBF5">     
                        <div align="center">付款方式:</div>    
                      </td>    
                      <td width="35%" bgcolor="#D8EBF5"><input type="text" name="fkfs" value="<%=fkfs%>" size="20" ></td>    
                      <td class='small' width="15%" bgcolor="#D8EBF5">     
                        <div align="center">日    期:</div>  
                      </td>  
                      <td bgcolor="#D8EBF5"><input type="text" value="<%=Fdate%>" name="Fdate" size="20" id=a7 onkeypress="javascript:if (event.keyCode == 13){form1.a8.focus();{return false;}}"><A     
            onclick="var pathname = (window.location.pathname);&#13;showx = (window.screen.width - 280)/2 ; // + deltaX;&#13;showy = (window.screen.height - 255)/2 ; // + deltaY;&#13;&#13;window.open(pathname.substring(0,(pathname.lastIndexOf('.nsf')))+'time1.jsp','SetStartDate',&#13;'status=yes,resizable=no,scrollbars=yes,'+'top='+showy+',left='+showx+',width=280,height=265');&#13;&#13;return false;"     
            href="time1.jsp"><IMG height=16     
            src="../Pic/datetime.gif" width=16     
            border=0></A></td>  
                    </tr>  
                    <tr>   
                      <td class='small' width="15%" bgcolor="#D8EBF5">   
                        <div align="center">备  注:</div>  
                      </td>  
                      <td colspan="3" bgcolor="#D8EBF5"><input type="text" name="memo" size="64" value="<%=memo%>" ></td>  
                    </tr>  
                    <tr>   
<td  colspan="4" width="100%" bgcolor="#D8EBF5" class='small' align="center">   
          <input style="BORDER-RIGHT: #005dce 1px solid; BORDER-TOP: #005dce 1px solid; FONT-SIZE: 10pt; BORDER-LEFT: #005dce 1px solid; BORDER-BOTTOM: #005dce 1px solid; BACKGROUND-COLOR: #dbeafb" type="submit" value="保存" name="B1" align="center" >
		  <input style="BORDER-RIGHT: #005dce 1px solid; BORDER-TOP: #005dce 1px solid; FONT-SIZE: 10pt; BORDER-LEFT: #005dce 1px solid; BORDER-BOTTOM: #005dce 1px solid; BACKGROUND-COLOR: #dbeafb" type="reset" value="重写" name="B2" align="center" >
		  </td>
    </tr>
  </table>
</form>  
</td>  
        </tr>  
        <tr>   
          <td class="small" width="23%" >   
          </td>  
  
          </td>  
        </tr>  
      </table>  
  
			    
  
</table>  
  
			    
  
</body>

⌨️ 快捷键说明

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