用asp,请问这种单据应该怎么做,供应商是通过点击“搜索”按纽,弹出一对话框,找到供应商名称,并且还找到供应商的联系人,同时添加对应的文本框中,产品也是通过“添加产品”按纽来添加的,不只一种产品,填写数量和单价,金额自动显示出来,请哪位高手帮帮忙,小弟也是初学asp,小弟在此先谢过了,还望高手们多多指点!
以下代码:
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="css/aspsky_1.css" type=text/css rel=stylesheet>
<title>入库单</title>
<style>
<!--
a {text-decoration:none}
a:hover {color: red;text-decoration:none}
.border1{ BORDER-RIGHT: #000000 0px solid; BORDER-TOP: #000000 0px solid; BORDER-LEFT: #000000 0px solid; BORDER-BOTTOM: #000000 0px solid}
.LoginInput {
BORDER-RIGHT: #eeeeee 1px solid; BORDER-TOP: #999999 1px solid; FONT: 12px "宋体", "Verdana", "Arial"; BORDER-LEFT: #999999 1px solid; BORDER-BOTTOM: #eeeeee 1px solid; HEIGHT: 17px; BACKGROUND-COLOR: #f6f6f6
}
-->
</style>
</head>
<body>
<br>
<strong><font color="#003333" size="4">入 库 单</font></strong><br>
<hr size="1">
<form name="form1" method="post" action="addindepot.asp">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8">
<tr>
<td width="10%" height="25" align="right">供 应 商:</td>
<td colspan="3"><input name="supplier" type="text" class="border" id="supplier" size="10">
<input name="Csearch" type="button" id="Csearch" value="搜索"></td>
<td width="10%" align="right">日 期:</td>
<td width="30%"><a onClick="SD(this,'document.all.rq')" href="Indepot.asp#SelectDate">
</a>
<input name=rq class=LoginInput id="rq" size=15 readonly value="<%= date() %>">
</td>
</tr>
<tr>
<td align="right">仓 库:</td>
<td width="20%"><input name="depot" type="text" id="depot"> </td>
<td width="10%" height="25" align="right">入库类型:</td>
<td width="20%"><input name="Intype" type="text" id="Intype"> </td>
<td align="right">单 号:</td>
<td><input name="OddNO" type="text" class="border" id="OddNO" readonly> </td>
</tr>
<tr>
<td height="25" align="right">结算方式:</td>
<td><input name="balance" type="text" id="balance"></td>
<td align="right">发票类型:</td>
<td><input name="invoice" type="text" id="invoice"></td>
<td align="right">联 系 人:</td>
<td><input name="linkman" type="text" class="border" id="linkman" readonly>
</td>
</tr>
<tr>
<td height="25" align="right">备 注:</td>
<td colspan="5"><textarea name="remark" cols="135" rows="1" class="border" id="remark" style="overflow:auto"></textarea></td>
</tr>
</table>
<table width="95%" align=center cellpadding=1 cellspacing=1 class=tableborder1 style="MARGIN-BOTTOM: 8px">
<tr bordercolor="#999999" class=but>
<td width="5%" height="20" class="but" style="TEXT-ALIGN: center" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'"><strong>序号</strong></td>
<td width="30%" class="but" style="TEXT-ALIGN: center" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'"><strong>产品名称</strong></td>
<td width="20%" class="but" style="TEXT-ALIGN: center" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'"><strong>规 格</strong></td>
<td width="15%" class="but" style="TEXT-ALIGN: center" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'"><strong>数 量</strong></td>
<td width="15%" class="but" style="TEXT-ALIGN: center" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'"><strong>单 价</strong></td>
<td width="15%" class="but" style="TEXT-ALIGN: center" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'"><strong>金 额</strong></td>
</tr>
<script language="javascript">
for (j=1;j<=10;j++)
{
document.write("<tr class=tablebody1> ")
document.write("<td align='center'>"+j+"</td>")
document.write("<td><input name='Product'"+j+" type='text' id='Product'"+j+" size='35' class='border1'></td>")
document.write("<td><input name='spec'"+j+" type='text' id='spec'"+j+" size='20' class='border1'></td>")
document.write("<td><input name='numb'"+j+" type='text' id='numb'"+j+" size='20' class='border1'></td>")
document.write("<td><input name='Price'"+j+" type='text' id='Price'"+j+" size='20' class='border1'></td>")
document.write("<td><input name='amount'"+j+" type='text' id='amount'"+j+" size='20' class='border1'></td>")
document.write("<tr>")
}
</script>
<tr class=tablebody1>
<td height="20" colspan="3" align="right"><strong>合 计:</strong></td>
<td height="20"><input name="sumnumb" type="text" id="sumnumb" size="20" class="border1" readonly></td>
<td height="20" align="center"> </td>
<td height="20"><input name="sumamount" type="text" id="sumamount" size="20" class="border1" readonly></td>
</tr>
</table>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10%" height="25" align="right">制单人:</td>
<td width="20%"><input name="xm" type="text" id="xm" class="border1"></td>
<td width="10%" align="right">审核人:</td>
<td width="20%"> <input name="Audit" type="text" id="Audit"> </td>
<td width="10%" align="right">审核时间:</td>
<td width="30%"> <input name="Auditrq" type="text" id="Auditrq"> </td>
</tr>
<tr>
<td height="30" align="right"><input name="Addprobtn" type="button" id="Addprobtn5" value="添加产品"></td>
<td colspan="3"> </td>
<td colspan="2"><input type="submit" name="Submit" value="保 存">
<input type="reset" name="Submit2" value="取 消">
<input name="Auditbtn" type="button" id="Auditbtn" value="审 核">
<input name="Printbtn" type="button" id="Printbtn" value="打 印" onClick="javascript:window.location.href='Indepotdata.asp?OddNO=<%= str %>'">
</td>
</tr>
</table>
</form>
</body>
</html>
[求助]这种单据应该怎么做?