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

📄 jhuodan_modi.asp

📁 下了就能用 不信你看一下 一定能用的
💻 ASP
📖 第 1 页 / 共 2 页
字号:
 {
 var subid=document.ck.subid.value
 if(subid=="")
  {
   alert("请选择一条记录!")
   return false;
  }
  else if (subid.substr(0,3)=="new")
   {
    table1.deleteRow(subid.substr(3,4));
	window.location.reload();
   }
   else
   {
   window.delrow.location='jhuodaninfo_del.asp?id='+subid;
   }
 }
//-->
</script>
</head>

<body bgcolor="#CCCCCC" topmargin="3">
<form action="jhuodan_modi.asp" name="ck" method="post">
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr style="line-height:5px;">
	 <td>&nbsp;</td>
	</tr>
    <tr> 
      <td colspan="2" bgcolor="#BAD2D3"><fieldset style="height:120px;">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#BAD2D3">
          <tr> 
            <td><font color="#800000" size="4" face="楷体CS"><strong> 进货单</strong></font></td>
            <td>录单时期:</td>
            <td valign="bottom"> <input name="thedate" type="text" id="thedate4" class="inputfield" value="<%=trim(rs("maketabdate"))%>" size="15" readonly="true"> 
              <img src="images/arrow.gif" alt="选择日期" width="15" height="16" border="0" onClick="MM_openBrWindow('../base/date.asp','','width=300,height=200')"></td>
            <td>单 据 号:</td>
            <td><input name="bill_bh" type="text" class="inputfield" id="bill_bh2" value="<%=trim(rs("bill_bh"))%>" size="20"></td>
          </tr>
          <tr> 
            <td height="90" colspan="5"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td><fieldset>
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                      <tr> 
                        <td height="25">供 货 商 
                          <input name="gonghs" type="text" class="inputfield" id="gonghs" value="<%=trim(rs("gonghs"))%>" size="20"> 
                          <img src="images/select.gif" alt="选择供货商" border="0"> 经 
                          手 人 
                          <input name="jingsren" type="text" class="inputfield" id="jingsren2" value="<%=trim(rs("jingsren"))%>" size="15" readonly="true"> 
                          <img src="images/select.gif" alt="选择经手人" width="15" height="14" border="0" onClick="MM_openBrWindow('../renshi/name_select3.asp?fieldname=jingsren','','width=550,height=300')"> 
                        </td>
                      </tr>
                      <tr> 
                        <td height="25" align="left"> 仓  库 
                          <input name="storage" type="text" class="inputfield" id="storage" value="<%=trim(rs("storage"))%>" size="30" readonly="true"> 
                          <img src="../caigou/images/select.gif" alt="选择仓库" width="15" height="14" border="0" onClick="MM_openBrWindow('cangku.asp?fieldname=storage','','width=550,height=300')"> 
                          <input name="mainid" type="hidden" id="mainid2" value="<%=trim(rs("id"))%>"> 
                          <input name="subid" type="hidden" id="subid2"></td>
                      </tr>
                      <tr> 
                        <td height="25"> 备  注 
                          <input name="memo" type="text" class="inputfield" id="memo" value="<%=trim(rs("memo"))%>" size="40"></td>
                      </tr>
                    </table>
                    </fieldset></td>
                </tr>
              </table> </td>
          </tr>
        </table>
        </fieldset></td>
    </tr>
    <tr style="line-height:8px;"> 
      <td colspan="2">&nbsp;</td>
    </tr>
    <tr> 
      <td colspan="2"> <fieldset>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td height="170" valign="top" bgcolor="#E6F0F0"> <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#E6F0F0" frame="void" style="border-bottom:1px solid #CCCCCC">
                <tr align="center"> 
                  <td width="1%" height="22" class="borderon2">&nbsp;</td>
                  <td width="10%" class="borderon2"> 
                    <div>商品编号</div></td>
                  <td width="10%" class="borderon2"> 
                    <div>名称</div></td>
                  <td width="10%" class="borderon2"> 
                    <div>单位</div></td>
                  <td width="10%" class="borderon2"> 
                    <div>型号</div></td>
                  <td width="10%" class="borderon2"> 
                    <div>规格</div></td>
                  <td width="10%" class="borderon2"> 
                    <div>数量</div></td>
                  <td width="9%" class="borderon2"> 
                    <div>单价</div></td>
                  <td width="10%" class="borderon2"> 
                    <div>金额</div></td>
                  <td width="10%" class="borderon2">退货数量</td>
                  <td width="10%" class="borderon2"> 
                    <div>备注</div></td>
                </tr>
                <tr align="center"> 
                  <td colspan="11" bgcolor="#E6F0F0"> <div style="OVERFLOW: auto; HEIGHT: 170px">
                      <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#E6F0F0" frame="void" id="table1" style="border-bottom:1px solid #CCCCCC">
                        <%
				bill_bh=trim(rs("bill_bh"))
				set ps=server.CreateObject("adodb.recordset")
				 ps.open"select * from yw_ingoodsbillinfo where bill_bh='"&bill_bh&"'",conn,1,1
				 if not ps.eof then
				  Dim i:i=0
				  dim sum_amount:sum_amount=0
				dim sum_money:sum_money=0
				dim sum_shamount:sumshamount=0
				 do while not ps.eof
				%>
                        <tr align="center"> 
                          <td width="1%" height="20" bgcolor="#E6F0F0" class="borderon2"> 
                            <div align="center" id="<%=i%>"></div></td>
                          <td width="10%"><input name="r<%=i%>c1" type="text" class="inputfield2" id="r<%=i%>c12" onFocus="focusChange(this.name,'<%=i%>','<%=trim(ps("id"))%>','<%=trim(ps("bill_bh"))%>')" onBlur="blurChange(this.name)" value="<%=trim(ps("goods_bh"))%>" size="10"></td>
                          <td width="10%"><input name="r<%=i%>c2" type="text" class="inputfield2" id="r<%=i%>c22" onFocus="focusChange(this.name)" onBlur="blurChange(this.name)" value="<%=trim(ps("goods_name"))%>"  size="10"></td>
                          <td width="10%"><input name="r<%=i%>c3" type="text" class="inputfield2" id="r<%=i%>c32" onFocus="focusChange(this.name)" onBlur="blurChange(this.name)" value="<%=trim(ps("danwei"))%>"  size="10"></td>
                          <td width="10%"><input name="r<%=i%>c4" type="text" class="inputfield2" id="r<%=i%>c42" onFocus="focusChange(this.name)" onBlur="blurChange(this.name)" value="<%=trim(ps("xinghao"))%>"  size="10"></td>
                          <td width="10%"><input name="r<%=i%>c5" type="text" class="inputfield2" id="r<%=i%>c52" onFocus="focusChange(this.name)" onBlur="blurChange(this.name)" value="<%=trim(ps("specs"))%>"  size="10"></td>
                          <td width="10%"><input name="r<%=i%>c6" type="text" class="inputfield2" id="r<%=i%>c62" onFocus="focusChange(this.name)" onBlur="blurChange(this.name)" value="<%=trim(ps("amount"))%>"  size="10"></td>
                          <td width="9%"><input name="r<%=i%>c7" type="text" class="inputfield2" id="r<%=i%>c72" onFocus="focusChange(this.name)" onBlur="blurChange(this.name)" value="<%=Trim(ps("price"))%>" size="10"></td>
                          <td width="10%"> <input name="r<%=i%>c8" type="text" class="inputfield2" id="r<%=i%>c8" size="10" value="<%=Ccur(Trim(ps("amount")))*Ccur(Trim(ps("price")))%>" readonly="true"></td>
                          <td width="10%"><input name="r<%=i%>c9" type="text" class="inputfield2" id="r<%=i%>c92" onFocus="focusChange(this.name)" onBlur="blurChange(this.name)" value="<%=trim(ps("th_amount"))%>" size="10"> 
                            <input name="subid<%=i%>" type="hidden" id="subid<%=i%>" value="<%=trim(ps("id"))%>"></td>
                          <td width="10%"><input name="r<%=i%>c10" type="text" class="inputfield2" id="r<%=i%>c10" onFocus="focusChange(this.name)" onBlur="blurChange(this.name)" value="<%=trim(ps("memo"))%>" size="10"> 
                          </td>
                        </tr>
                        <%
				 sum_shamount=ccur(trim(ps("th_amount")))+sum_shamount
				 sum_money=ccur(trim(ps("amount")))*ccur(trim(ps("price")))+sum_money
				 sum_amount=clng(trim(ps("amount")))+sum_amount
				 ps.movenext
				 i=i+1
				 loop
				 else
				 %>
                        <tr align="center"> 
                          <td bgcolor="#E6F0F0" class="borderon2"> <div align="center"></div></td>
                          <td class="inputfieldtd" width="10%"> <input name="r0c1" type="text" class="inputfield2" id="r1c12" onFocus="focusChange(this.name)" onBlur="blurChange(this.name)" size="10"></td>
                          <td class="inputfieldtd" width="10%"> <input name="r0c2" type="text" class="inputfield2" id="r1c22" onFocus="focusChange(this.name)" onBlur="blurChange(this.name)"  size="10"></td>
                          <td class="inputfieldtd" width="10%"> <input name="r0c3" type="text" class="inputfield2" id="r1c32" onFocus="focusChange(this.name)" onBlur="blurChange(this.name)"  size="10"></td>
                          <td class="inputfieldtd" width="10%"> <input name="r0c4" type="text" class="inputfield2" id="r1c42" onFocus="focusChange(this.name)" onBlur="blurChange(this.name)"  size="10"></td>
                          <td class="inputfieldtd" width="10%"> <input name="r0c5" type="text" class="inputfield2" id="r1c52" onFocus="focusChange(this.name)" onBlur="blurChange(this.name)"  size="10"></td>
                          <td class="inputfieldtd" width="10%"> <input name="r0c6" type="text" class="inputfield2" id="r1c62" onFocus="focusChange(this.name)" onBlur="blurChange(this.name)"  size="10"></td>
                          <td class="inputfieldtd" width="9%"><input name="r0c7" type="text" class="inputfield2" id="r1c72" onFocus="focusChange(this.name)" onBlur="blurChange(this.name)" size="10"></td>
                          <td class="inputfieldtd" width="10%"> <input name="r0c8" type="text" class="inputfield2" id="r1c82" size="10" readonly="true"></td>
                          <td class="inputfieldtd" width="10%"><input name="r0c9" type="text" class="inputfield2" id="r0c9" onFocus="focusChange(this.name)" onBlur="blurChange(this.name)" size="10"></td>
                          <td class="inputfieldtd" width="10%"><input name="r0c10" type="text" class="inputfield2" id="r1c102" onFocus="focusChange(this.name)" onBlur="blurChange(this.name)" size="10"> 
                          </td>
                        </tr>
                        <%
				 end if
				 ps.close
				 set ps=nothing
				 rs.close
				 set rs=nothing
				  closedataconn
				%>
                      </table>
                    </div>
                    </td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td> <table width="100%" height="25" border="0" cellpadding="0" cellspacing="0" style="border-top:1px solid #CCCCCC;">
                <tr bgcolor="#BAD2D3"> 
                  <td width="2%">&nbsp;</td>
                  <td width="10%">&nbsp;</td>
                  <td width="11%">&nbsp;</td>
                  <td width="11%"> <div align="center"> 
                      <input name="abc" type="text" id="abc2" style="background-color:#BAD2D3;" value=" 合 计 " size="10" readonly="true">
                    </div></td>
                  <td width="11%" align="center">&nbsp;</td>
                  <td width="11%" align="center">&nbsp;</td>
                  <td width="11%" align="center"> <input name="sum_amount" type="text" id="sum_amount2" style="background-color:#BAD2D3;" value="<%=sum_amount%>" size="8" readonly="true"> 
                  </td>
                  <td width="11%" align="center">&nbsp;</td>
                  <td width="11%" align="center"> <input name="sum_money" type="text" id="sum_money2" style="background-color:#BAD2D3;" value="<%=sum_money%>" size="8" readonly="true"> 
                  </td>
                  <td width="11%" align="center"> <input name="sum_shamount" type="text" id="sum_shamount2" style="background-color:#BAD2D3;" value="<%=sum_shamount%>" size="8" readonly="true"></td>
                </tr>
              </table></td>
          </tr>
        </table>
        </fieldset></td>
    </tr>
    <tr> 
      <td width="95%" align="right"> <input name="rowcount" type="hidden" id="rowcount" value=""> 
        <input name="ckadd" type="hidden" id="ckadd">
        <img src="images/saveadd.gif" width="80" height="29" border="0" onClick="javascript:return check('新增');"> 
        <img src="images/save.gif" width="82" height="29" border="0" onClick="javascript:return check('添加');"> 
        <input name="imageField3" type="image" src="images/quit.gif" width="82" height="29" border="0" onClick="javascript:window.close();">
        <img src="images/del.gif" width="82" height="29" onClick="delRow();"> 
          </td>
      <td width="5%" align="right"><iframe name="delrow" width="0" height="0"></iframe></td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

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