📄 dx_todepot_add.asp
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--#include file="Inc/Config.asp"-->
<!--#include file="inc/Dx_admin_check.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="Css/style.css" rel="stylesheet" type="text/css">
<script language="javascript" src="Ajax/ajaxrequest.js"></script>
<script language="javascript" src="Ajax/Check.js"></script>
<title>商品入库</title>
<style>
body {
background-color:#FFFFFF;
}
#Product_x {
width:450px;
display:none;
}
</style>
</head>
<body>
<%
if session("Dx_Admin")="" then
%>
<br><center><img src="Images/note.gif" align="absmiddle"> <font color="#FF0000">你不具备此权限,请与管理员联系!</font></center>
<%
response.end
end if
%>
<script language="javascript">
function isNumberString (InString,RefString)
{
if(InString.length==0) return (false);
for (Count=0; Count < InString.length; Count++) {
TempChar= InString.substring (Count, Count+1);
if (RefString.indexOf (TempChar, 0)==-1)
return (false);
}
return (true);
}
function check1()
{
if (document.form1.huohao1.value=="单击选择产品")
{
alert("还没有选择产品!");
return false;
}
if (document.form1.shulian1.value=="")
{
alert("请输入数量!");
return false;
}
}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td><img src="Images/r_1.gif" alt="" /></td>
<td width="100%" background="Images/r_0.gif">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td> 已有商品入库(带*号的为必填项)</td>
<td align="right"> </td>
</tr>
</table>
</td>
<td><img src="Images/r_2.gif" alt="" /></td>
</tr>
<tr>
<td></td>
<td>
<table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
<form name="Dx_ToDepot_add" action="Ajax/dx_ToDepot_add.asp" method="post">
<tr>
<td width="20%" align="right" height="30">选择产品:</td>
<td width="80%" class="category">
<table cellpadding="0" cellspacing="0" width="100%" border=0>
<input name="dx_ToDepot_product" type="hidden" value="" />
<tr>
<td>
<div id="Product_x"></div>
<input name="dx_product_model" readonly="true" onClick="JavaScript:window.open('Dx_product_list.asp?form=Dx_ToDepot_add&field=dx_product_model&field2=dx_ToDepot_product','','directorys=no,toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=853,height=470,top=176,left=161');" style="width:80px;" value="单击选择产品">
数量:<input type="text" name="dx_ToDepot_buy_count" style="width:30px" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" value="1">
进价:<input type="text" name="dx_ToDepot_buy_price" style="width:30px" value="" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))">
售价:<input type="text" name="dx_ToDepot_sell_price" style="width:30px" value="" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))">
仓库:<select name="dx_product_depot">
<option value="">请选择仓库</option>
<%
sql="select * from [dx_depot] order by dx_depot_id desc"
rs.open sql,conn,1,1
while not rs.eof
response.Write("<option value='"&rs("dx_depot_id")&"'>"&rs("dx_depot_name")&"</option>")
rs.movenext
wend
rs.close
%>
</select>
<span style="cursor:hand;" onclick="return Check_Dx_temp_add();">下一个商品<font color="#FF0000">*</font></span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right" height="30">资金状况:</td>
<td class="category">
<input name="dx_ToDepot_debt" id="dx_ToDepot_debt1" type="radio" value="0" checked="checked" style="border:0px;" /><label for="dx_ToDepot_debt1">两讫</label>
<input name="dx_ToDepot_debt" id="dx_ToDepot_debt2" type="radio" value="1" style="border:0px;" /><label for="dx_ToDepot_debt2">负债</label>
</td>
</tr>
<tr>
<td align="right" height="30">供应商:</td>
<td class="category">
<select name="dx_ToList_business">
<option value="">请选择供应商</option>
<%
sql="select * from [dx_business] order by dx_business_id desc"
rs.open sql,conn,1,1
while not rs.eof
response.Write("<option value='"&rs("dx_business_id")&"'>"&rs("dx_business_name")&"</option>")
rs.movenext
wend
rs.close
%>
</select>
</td>
</tr>
<tr>
<td align="right" height="30">经办人:</td>
<td class="category">
<select name="dx_ToList_user">
<%
sql="select * from [dx_admin] order by dx_admin_id desc"
rs.open sql,conn,1,1
while not rs.eof
if Session("Admin")=rs("dx_admin_name") then
selected="selected='selected'"
else
selected=""
end if
response.Write("<option "&selected&" value='"&rs("dx_admin_name")&"'>"&rs("dx_admin_name")&"</option>")
rs.movenext
wend
rs.close
%>
</select> </td>
</tr>
<tr>
<td height="30"> </td>
<td class="category">
<input type="button" value=" 确认入库 " class="button" onclick="return Check_Dx_ToDepot_add(this.form)">
<!--<input type="submit" value=" 确认入库 " class="button" >-->
<input type="reset" value=" 重新填写 " class="button">
</td>
</tr>
</form>
</table>
</td>
<td></td>
</tr>
<tr>
<td><img src="Images/r_4.gif" alt="" /></td>
<td></td>
<td><img src="Images/r_3.gif" alt="" /></td>
</tr>
</table>
<br />
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td><img src="Images/r_1.gif" alt="" /></td>
<td width="100%" background="Images/r_0.gif">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td> 新商品入库(带*号的为必填项)</td>
<td align="right"> </td>
</tr>
</table>
</td>
<td><img src="Images/r_2.gif" alt="" /></td>
</tr>
<tr>
<td></td>
<td>
<table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
<form name="Dx_ToDepot_add_new" action="Ajax/dx_ToDepot_add_new.asp" method="post">
<tr>
<td width="20%" align="right" height="30">商品类别:</td>
<td width="80%" class="category">
<select name="dx_product_class">
<option value="">选择分类</option>
<%
sql="select * from [dx_class] order by dx_class_id desc"
rs.open sql,conn,1,1
while not rs.eof
response.Write("<option value='"&rs("dx_class_id")&"'>"&rs("dx_class_name")&"</option>")
rs.movenext
wend
rs.close
%>
</select>
</td>
</tr>
<tr>
<td align="right" height="30">商品品牌:</td>
<td class="category">
<select name="dx_product_brand">
<option value="">选择品牌</option>
<%
sql="select * from [dx_brand] order by dx_brand_id desc"
rs.open sql,conn,1,1
while not rs.eof
response.Write("<option value='"&rs("dx_brand_id")&"'>"&rs("dx_brand_name")&"</option>")
rs.movenext
wend
rs.close
%>
</select>
</td>
</tr>
<tr>
<td align="right" height="30">商品名称:</td>
<td class="category">
<input type="text" name="dx_product_model" size="20" value=""> <font color="#FF0000">*</font>
</td>
</tr>
<tr>
<td align="right" height="30">入库数量:</td>
<td class="category">
<input type="text" name="dx_ToDepot_buy_count" size="20" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))"> <font color="#FF0000">*</font>
</td>
</tr>
<tr>
<td align="right" height="30">商品进价:</td>
<td class="category">
<input type="text" name="dx_ToDepot_buy_price" size="20" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))"> <font color="#FF0000">*</font>
</td>
</tr>
<tr>
<td align="right" height="30">商品售价:</td>
<td class="category">
<input type="text" name="dx_ToDepot_sell_price" size="20" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))"> <font color="#FF0000">*</font>
</td>
</tr>
<tr>
<td align="right" height="30">资金状况:</td>
<td class="category">
<input name="dx_ToDepot_debt_new" id="dx_ToDepot_debt3" type="radio" value="0" checked="checked" style="border:0px;" /><label for="dx_ToDepot_debt3">两讫</label>
<input name="dx_ToDepot_debt_new" id="dx_ToDepot_debt4" type="radio" value="1" style="border:0px;" /><label for="dx_ToDepot_debt4">负债</label>
</td>
</tr>
<tr>
<td align="right" height="30">商品供应:</td>
<td class="category">
<select name="dx_ToList_business">
<option value="">请选择供应商</option>
<%
sql="select * from [dx_business] order by dx_business_id desc"
rs.open sql,conn,1,1
while not rs.eof
response.Write("<option value='"&rs("dx_business_id")&"'>"&rs("dx_business_name")&"</option>")
rs.movenext
wend
rs.close
%>
</select>
</td>
</tr>
<tr>
<td align="right" height="30">存放仓库:</td>
<td class="category">
<select name="dx_product_depot">
<option value="">选择存放仓库</option>
<%
sql="select * from [dx_depot] order by dx_depot_id desc"
rs.open sql,conn,1,1
while not rs.eof
if dx_product_depot=rs("dx_depot_id") then
selected="selected='selected'"
else
selected=""
end if
response.Write("<option "&selected&" value='"&rs("dx_depot_id")&"'>"&rs("dx_depot_name")&"</option>")
rs.movenext
wend
rs.close
%>
</select>
</td>
</tr>
<tr>
<td align="right" height="30">商品参数:</td>
<td class="category">
<textarea name="dx_product_parameter" cols="40" rows="7"><%=dx_product_parameter%></textarea> <font color="#FF0000">*</font>
</td>
</tr>
<tr>
<td align="right" height="30">商品介绍:</td>
<td class="category">
<textarea name="dx_product_about" cols="40" rows="7"><%=dx_product_about%></textarea>
</td>
</tr>
<tr>
<td align="right" height="30">经办人:</td>
<td class="category">
<select name="dx_product_user">
<%
sql="select * from [dx_admin] order by dx_admin_id desc"
rs.open sql,conn,1,1
while not rs.eof
if Session("Admin")=rs("dx_admin_name") then
selected="selected='selected'"
else
selected=""
end if
response.Write("<option "&selected&" value='"&rs("dx_admin_name")&"'>"&rs("dx_admin_name")&"</option>")
rs.movenext
wend
rs.close
%>
</select>
</td>
</tr>
<tr>
<td height="30"> </td>
<td class="category">
<input type="button" value=" 确认添加 " class="button" onclick="return Check_Dx_ToDepot_add_new(this.form)">
<!--<input type="submit" value=" 确认添加 " class="button">-->
<input type="reset" value=" 重新填写 " class="button">
</td>
</tr>
</form>
</table>
</td>
<td></td>
</tr>
<tr>
<td><img src="Images/r_4.gif" alt="" /></td>
<td></td>
<td><img src="Images/r_3.gif" alt="" /></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -