📄 newprice.asp
字号:
</tr>
<tr>
<td height="16" colspan="4" background="../images/title.gif"> </td>
</tr>
<tr><td colspan="4" height=4></td></tr>
<tr valign="middle">
<td height="25" colspan="4" align=center><div align=center>
<img src="../images/button_history.gif" style="cursor:hand" border=0 onClick="JavaScript:if(form1.product1.value==''){alert('请选择产品')}else {opensubwin6('form1','quoteandorder',form1.product1.value,form1.account.value)}">
<img src="../images/button_save.gif" style="cursor:hand" border=0 onclick="save2();">
<img src="../images/button_cancel.gif" style="cursor:hand" border=0 onclick="window.close();">
</div></td>
</tr>
<tr valign="middle">
<td height="25" align=center bgcolor="DEDFDE">客户</td>
<td height="25" colspan="3" bgcolor="efefef">
<div align="left">
<input name="account" type="hidden" size="20" value=<%=account%>>
<input name="accountname" type="text" size="14" value="<%=accountname%>" readonly>
<input type="button" name="bnaccount" onClick="JavaScript:opensubwin2('form1','account')" value=... class=black>
</div></td>
</tr>
<tr valign="middle">
<td height="25" align=center bgcolor="DEDFDE">型号</td>
<td height="25" colspan="3" bgcolor="efefef"><div align="left">
<font color=red>
<div name="product1name" id="product1name"><%=model%></div>
</font> </div></td>
</tr>
<tr valign="middle">
<td width="15%" height="25" align=center bgcolor="DEDFDE">货号</td>
<td width="35%" height="25" align=left bgcolor="efefef">
<input type=hidden name=product1 value=<%=productid%>>
<input type=text name=code1 size=14 readonly value="<%=productcode%>">
<input type=button name=bproduct1 onClick="JavaScript:opensubwin4('form1','product1','code1','price1')" value="..." class=black>
</td>
<td width="15%" height="25" align=center bgcolor="DEDFDE">单价</td>
<td width="35%" height="25" align=center bgcolor="efefef"> <div align="left">
<input type=text name="price1" size=12 readonly value=<%=retail_price%>>
</div></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="FFFFFF" align="center">
<tr align="left" valign="bottom" bgcolor="FFFFFF">
<td height="25" colspan="6"> 价格明细</td>
</tr>
<tr valign="middle">
<td width="15%" height="25" align=center bgcolor="DEDFDE">折扣</td>
<td width="18%" height="25" bgcolor="efefef"> <input type=text name=discount1 size=4 onChange="calculateamount(1);" value=<%=discount1%>>
%</td>
<td width="15%" bgcolor="DEDFDE"><div align="center">折扣价</div></td>
<td width="18%" bgcolor="efefef"> <div align="left">
<input type=text name=productprice1 size=12 onChange="recalculateamount(1);" value=<%=productprice1%>>
</div></td>
<td width="15%" height="25" align=center bgcolor="DEDFDE">失效</td>
<td width="18%" height="25" align=center bgcolor="efefef"> <div align="left">
<input type="checkbox" name="disable" value=1 <%if disable=true then Response.Write "checked"%>>
</div></td>
</tr>
<tr valign="middle">
<td height="25" align=center bgcolor="DEDFDE">描述</td>
<td height="25" colspan="5" bgcolor="efefef"><textarea name="description" cols="50" rows="5" id="description"><%=description%></textarea></td>
</tr>
</table>
</form>
<%'产品-数量-价格#############################################################################################################
elseif Request("type")="productqty" then%>
<form name="form1" id="form1" method="post" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="FFFFFF" align="center">
<tr>
<td height="25" colspan=3><div align="left"><strong><font size="2" class=title>按产品与数量制定销售价格</font></strong></div></td>
<td height="25" align="right">
<select name="strfield" onchange="chgselect();">
<option value=productprice <%if request.querystring("type")="productprice" or request.querystring("type")="" then Response.Write "selected"%>>按产品</option>
<option value=productaccount <%if request.querystring("type")="productaccount" then Response.Write "selected"%>>按产品与客户</option>
<option value=productqty <%if request.querystring("type")="productqty" then Response.Write "selected"%>>按产品与数量</option>
<option value=producttype <%if request.querystring("type")="producttype" then Response.Write "selected"%>>按产品类型</option>
</select>
</td>
</tr>
<tr>
<td height="16" colspan="4" background="../images/title.gif"> </td>
</tr>
<tr><td colspan="4" height=4></td></tr>
<tr valign="middle">
<td height="25" colspan="4" align=center><div align=center>
<input type=hidden name=account value=<%=account%>>
<img src="../images/button_history.gif" style="cursor:hand" border=0 onClick="JavaScript:if(form1.product1.value==''){alert('请选择产品')}else {opensubwin6('form1','quoteandorder',form1.product1.value,form1.account.value)}">
<img src="../images/button_save.gif" style="cursor:hand" border=0 onclick="save3();">
<img src="../images/button_cancel.gif" style="cursor:hand" border=0 onclick="window.close();">
</div></td>
</tr>
<tr valign="middle">
<td height="25" align=center bgcolor="DEDFDE">型号</td>
<td height="25" colspan="3" bgcolor="efefef"><div align="left">
<font color=red>
<div name="product1name" id="product1name"><%=model%></div>
</font> </div></td>
</tr>
<tr valign="middle">
<td width="15%" height="25" align=center bgcolor="DEDFDE">货号</td>
<td width="35%" height="25" align=left bgcolor="efefef">
<input type=hidden name=product1 value=<%=productid%>>
<input type=text name=code1 size=14 readonly value="<%=productcode%>">
<input type=button name=bproduct1 onClick="JavaScript:opensubwin4('form1','product1','code1','price1')" value="..." class=black>
</td>
<td width="15%" height="25" align=center bgcolor="DEDFDE">单价</td>
<td width="35%" height="25" align=center bgcolor="efefef"> <div align="left">
<input type=text name="price1" size=12 readonly value=<%=retail_price%>>
</div></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="FFFFFF">
<tr valign="bottom" bgcolor="#FFFFFF">
<td height="25" colspan="6"> 价格明细</td>
</tr>
<tr>
<td width="15%" height="25" align="center" bgcolor="DEDFDE">数量1</td>
<td width="18%" bgcolor="efefef"> <input type=text name=qty1 size=8 value=<%=qty11%>></td>
<td width="15%" bgcolor="DEDFDE"> <div align="center">折扣1</div></td>
<td width="18%" align="left" bgcolor="efefef"> <div align="LEFT">
<input type=text name=discount1 size=4 onChange="calculateamount(1);" value=<%=discount11%>>
% </div></td>
<td width="15%" bgcolor="DEDFDE"> <div align="center">折扣价1 </div></td>
<td nowrap bgcolor="efefef"> <div align="LEFT">
<input type=text name=productprice1 size=8 onChange="recalculateamount(1);" value=<%=price11%>>
</div></td>
</tr>
<tr>
<td width="15%" height="25" align="center" bgcolor="DEDFDE">数量2</td>
<td width="18%" bgcolor="efefef"> <input type=text name=qty2 size=8 value=<%=qty12%>></td>
<td width="15%" bgcolor="DEDFDE"> <div align="center">折扣2</div></td>
<td width="18%" align="left" bgcolor="efefef"> <div align="LEFT">
<input type=text name=discount2 size=4 onChange="calculateamount(2);" value=<%=discount12%>>
%</div></td>
<td width="15%" bgcolor="DEDFDE"> <div align="center">折扣价2 </div></td>
<td align="LEFT" nowrap bgcolor="efefef"> <input type=text name=productprice2 size=8 onChange="recalculateamount(2);" value=<%=price12%>>
</td>
</tr>
<tr>
<td width="15%" height="25" align="center" bgcolor="DEDFDE">数量3</td>
<td width="18%" bgcolor="efefef"> <input type=text name=qty3 size=8 value=<%=qty13%>></td>
<td width="15%" bgcolor="DEDFDE"> <div align="center">折扣3</div></td>
<td width="18%" align="left" bgcolor="efefef"> <div align="LEFT">
<input type=text name=discount3 size=4 onChange="calculateamount(3);" value=<%=discount13%>>
%</div></td>
<td width="15%" bgcolor="DEDFDE"> <div align="center">折扣价3 </div></td>
<td align="LEFT" nowrap bgcolor="efefef"> <input type=text name=productprice3 size=8 onChange="recalculateamount(3);" value=<%=price13%>>
</td>
</tr>
<tr>
<td height="25" align="center" bgcolor="DEDFDE">失效</td>
<td bgcolor="efefef"><input type="checkbox" name="disable" value=1 <%if disable=true then Response.Write "checked"%>></td>
<td bgcolor="DEDFDE"> </td>
<td align="left" bgcolor="efefef"> </td>
<td bgcolor="DEDFDE"> </td>
<td align="LEFT" nowrap bgcolor="efefef"> </td>
</tr>
<tr>
<td height="25" align="center" bgcolor="DEDFDE">描述</td>
<td colspan="5" bgcolor="efefef"><textarea name="description" cols="50" rows="5" id="description"><%=description%></textarea></td>
</tr>
</table>
</form>
<%'产品类型-折扣#############################################################################################################
elseif Request("type")="producttype" then%>
<form name="form1" id="form1" method="post" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="FFFFFF" align="center">
<tr>
<td height="25" colspan=2><div align="left"><strong><font size="2" class=title>按产品类型制定销售价格</font></strong></div></td>
<td align="right"><select name="strfield" onChange="chgselect();">
<option value=productprice <%if request.querystring("type")="productprice" or request.querystring("type")="" then Response.Write "selected"%>>按产品</option>
<option value=productaccount <%if request.querystring("type")="productaccount" then Response.Write "selected"%>>按产品与客户</option>
<option value=productqty <%if request.querystring("type")="productqty" then Response.Write "selected"%>>按产品与数量</option>
<option value=producttype <%if request.querystring("type")="producttype" then Response.Write "selected"%>>按产品类型</option>
</select></td>
</tr>
<tr>
<td height="16" colspan="3" background="../images/title.gif"> </td>
</tr>
<tr>
<td colspan="3" height=4></td>
</tr>
<tr valign="middle">
<td height="25" colspan="3" align=center><div align=center> <img src="../images/button_save.gif" style="cursor:hand" border=0 onclick="save4();">
<img src="../images/button_cancel.gif" style="cursor:hand" border=0 onclick="window.close();">
</div></td>
</tr>
<tr valign="middle">
<td width="15%" height="25" align=center bgcolor="DEDFDE">产品类型</td>
<td height="25" colspan="2" bgcolor="efefef"><select name="producttype" class="stedit">
<option value="">--请选择产品类型--</option>
<%getdefine "产品类型",producttype%>
</select></td>
</tr>
</TABLE>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="FFFFFF">
<tr valign="middle" bgcolor="#FFFFFF">
<td width="15%" height="25" align=LEFT valign="bottom"> 价格明细</td>
<td width="18%" height="25" align=center> </td>
<td width="15%" height="25" align=center> </td>
<td width="18%" height="25" align=center> </td>
<td width="15%" height="25" align=center> </td>
<td height="25" align=center> </td>
</tr>
<tr valign="middle" bgcolor="DEDFDE">
<td width="15%" height="25" align=center>折扣</td>
<td width="18%" height="25" align=center bgcolor="efefef"> <input type=text name=discount1 size=4 onChange="calculateamount(1);" value=<%=discount1%>>
%</td>
<td width="15%" height="25" align=center>失效</td>
<td width="18%" height="25" align=left bgcolor="efefef"><input type="checkbox" name="disable" value=1 <%if disable=true then Response.Write "checked"%>></td>
<td width="15%" height="25" align=center> </td>
<td height="25" align=center bgcolor="efefef"> </td>
</tr>
<tr valign="middle" bgcolor="DEDFDE">
<td height="25" align=center>描述</td>
<td height="25" colspan="5" align=center bgcolor="efefef"><div align="left">
<textarea name="description" cols="50" rows="5" id="textarea3"><%=description%></textarea>
</div></td>
</tr>
</table>
</form>
<%
end if
%>
<script language=javascript>
function chgselect(){
if(form1.strfield.value=="productprice"){
link="newprice.asp?type=productprice";
document.location.href=link;
}
if(form1.strfield.value=="productqty"){
link="newprice.asp?type=productqty";
document.location.href=link;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -