📄 outview.asp
字号:
<table style = 'height:auto;width:100%; border-left: 0px solid buttonhighlight; border-right: 0px solid buttonshadow;border-top: 1px solid buttonhighlight; border-bottom: 0px solid buttonshadow;' cellspacing = '2' cellpadding = '0'>
<tr>
<td style = 'border-top:#848284 solid 1px;border-left:#848284 solid 1px; border-bottom:#ffffff solid 1px;border-right:#ffffff solid 1px;'>
<div style = 'width:100%;height:420px; left:0px; top:0px;z-index:1; overflow-y: auto;overflow-x:hidden;text-align:left;background-color:#ffffff; border-left: 1px solid #000000; border-right: 1px solid buttonface;border-top: 1px solid #000000; border-bottom: 1px solid buttonface;padding: 0px;'>
<table cellpadding='0' cellspacing='0' style = 'width:auto;background-color:buttonface;border-top-style:none;border-left-style:none;' borderColorLight='#424142' borderColorDark='#eeeeee' border = '1'>
<tr>
<td style = 'width:15px;text-align:left;height:20px;'><span style='font-family:webdings;'>8</span></td>
<td style = 'width:35px;text-align:center;padding:0px;'>序号</td>
<td style = 'width:80px;'>商品代码</td>
<td style = 'width:100px;'>商品名称</td>
<td style = 'width:50px;'>保修期</td>
<td style = 'width:180px;'>经销商</td>
<td style = 'width:200px;'>商品描述</td>
<td style = 'width:50px;'>数量</td>
<td style = 'width:50px;'>单价</td>
<td style = 'width:50px;'>税率</td>
<td style = 'width:60px;'>含税价</td>
<td style = 'width:60px;'>小计</td>
</tr>
<%
SQL = "select * from salelist where saleid = " & saleid & ""
Rs.Open(SQL),Conn,1,1
if not Rs.eof then
tCount = Rs.RecordCount
for i_t = 1 to tCount
if Rs.eof then exit for
salelistid = Rs("salelistid")
saleid = isNumber(Rs("saleid"),"int",0)
stockid = isNumber(Rs("stockid"),"int",0)
outHow = Rs("outHow")'这个记录销售的
outPrice = Rs("outPrice")
shuilv = Rs("shuilv")
shuilvPrice = shuilv*outPrice/100+outPrice
Amount = Rs("Amount")
supplieridout = isNumber(Rs("supplierid"),"int",0)
SQL = "select * from stock where stockid = " & stockid & ""
c01.mArray
SQL = "select * from supplier where uid = " & supplieridout & ""
c01.Supplierinfo
inHow = SelectZD("select Sum(inHow) from stock where stockid = " & stockid & "",0) '全部进货
outHowed = SelectZD("select Sum(outHow) from salelist where stockid = " & stockid & " and not saleid = " & saleid & "",0) '以前销售的
%>
<tr style = 'background-color:#ffffff;cursor: default;'>
<td style = 'text-align:center;background-color:buttonface;height:18px;'>×</td>
<td style = 'text-align:center;background-color:buttonface;'><input type = 'hidden' value = '<%=salelistid%>' name = 'lena' id = 'lena' style = 'border-style:none;text-align:center;width:100%;'/><%=salelistid%></td>
<td class ='tempF'><input type="text" name="Code" style = 'border-style:none;width:48px;' value = '<%=MCode%>'readonly/><input type="button" value = 'OP0' name = 'len' id = 'len' onclick="javascript:onclick_();op(this.value.replace('OP',''))" style = 'width:30px;height:17px;border-top:1px #000 solid;border-left:1px #000 solid;border-right:1px #000 solid;border-bottom:1px #000 solid;background-color:buttonface;'></td>
<td class ='tempF'><input type = 'text' name = 'cName' class = 'tempE' value = '<%=McName%>' readonly/></td>
<td class ='tempF'><input type = 'text' name = 'guarantyTime' class = 'tempE' value = '<%=MguarantyTime%>' readonly/></td>
<td class ='tempF'><input type = 'text' name = 'supplier' class = 'tempE' value = '<%=USFullName & " " & USLinkman & "-" & USLinkPhone%>' readonly/></td>
<td class ='tempF'><input type = 'text' name = 'cRemark' class = 'tempE' value = '<%=McRemark%>' readonly/></td>
<td class ='tempF'><input type = 'text' name = 'outHow' class = 'tempE' onkeyup = 'ChangePrice();' value = '<%=outHow%>'/></td>
<td class ='tempF'><input type = 'text' name = 'outPrice' class = 'tempE' value = '<%=outPrice%>' readonly/></td>
<td class ='tempF'><input type = 'text' name = 'shuilv' class = 'tempE' onkeyup = 'ChangePrice();' value = '<%=shuilv%>'/></td>
<td class ='tempF'><input type = 'text' name = 'shuilvPrice' class = 'tempE' value = '<%=shuilvPrice%>' readonly/></td>
<td class ='tempF'><input type = 'text' name = 'Amount' class = 'tempE' value = '<%=Amount%>' readonly/>
<input type = 'hidden' name = 'supplieridout' value = '<%=supplieridout%>'/><!--商品经销商id-->
<input type = 'hidden' name = 'stockid' value = '<%=stockid%>'/><!--商品id-->
<input type = 'hidden' name = 'inHow' value = '<%=(inHow-outHow-outHowed)+outHow%>'/><!--商品库存总数量-->
</td>
</tr>
<%
Rs.movenext
next
else
end if
Rs.Close
%>
</table>
</div></td>
</tr>
</table>
<table style = 'height:auto;width:100%;' cellspacing = '0' cellpadding = '2' borderColorLight='buttonshadow' borderColorDark='#eeeeee' border = '1'>
<tr>
<td>
<table style = 'width:auto;' cellspacing = '0' cellpadding = '2'>
<tr>
<td style = 'width:48px;'>总金额</td>
<td style = 'width:120px;'><input type = 'text' style = 'width:100%;' name = 'AmountALL' value = '<%=Amount__%>'/></td>
<td style = 'width:40px;text-align:center;'>税率</td>
<td style = 'width:50px;'><input type = 'text' style = 'width:100%;' name = 'shuilvALL' onkeyup = 'ChangePrice();' value = '<%=shuilvALL__%>'/></td>
<td style = 'width:50px;text-align:center;'>含税金额</td>
<td style = 'width:100px;'><input type = 'text' style = 'width:100%;' name = 'AmountshuilvALL' onkeyup = 'ChangePrice();' value = '<%=AmountshuilvALL__%>'/></td>
<td style = 'width:50px;text-align:center;'>折减</td>
<td style = 'width:100px;'><input type = 'text' style = 'width:100%;' name = 'ZJ' onkeyup = 'ChangePrice();' value = '<%=ZJ__%>'/></td>
<td style = 'width:60px;text-align:center;'>已付金额</td>
<td style = 'width:120px;'><input type = 'text' style = 'width:100%;' name = 'nowpayment' onkeyup = 'ChangePrice();' value = '<%=nowpayment__%>'/></td>
<td style = 'width:50px;text-align:center;'>尚欠款</td>
<td style = 'width:100px;'><input type = 'text' style = 'width:100%;' name = 'nopayment' value = '<%=nopayment__%>'/></td>
</tr>
</table>
<div style = 'text-align:center;'>后来支付:<span style = 'color:blue;'>¥<%=formatNumber(elsePayment_,2)%></span> 该单实际欠款:<span style = 'color:blue;'>¥<%=formatNumber(AmountshuilvALL__-nowpayment__-elsePayment_-ZJ__,2)%></span></div>
<%
SQL = "select * from admins where aid = " & selectaid & ""
c01.Admininfo
%>
<table style = 'width:auto;' cellspacing = '0' cellpadding = '2'>
<tr>
<td style = 'width:48px;'>操作员</td>
<td style = 'width:128px;'><input type = 'text' style = 'width:80%;border-right-style:none;' name = 'Loginid' value = '<%=ALoginid%>' readonly/><input type = 'button' style = 'border-left-style:none;' value = '…' onclick = "javascript:adminList();"/></td>
<td style = 'width:300px;text-align:center;'><input type = 'text' style = 'width:100%;' name = 'TrueName_Phone' class = 'tempB' value = '<%=ATrueName & " " & APhone %>' readonly/>
<input type = 'hidden' name = 'aid' value ='<%=AAid%>' readonly/>
</td>
<td style =' width:20px;'> </td>
<td>录入者:<%=SelectZD("select Loginid from admins where aid = " & intoaid & "","未知")%></td>
<td style =' width:20px;'> </td>
<td>详细录入时间:<%=outtime%></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div>
<script language="JavaScript">
<!--
function che(sel) {
if(sel=='m') {
var che_len = parent.right.document.form.box_.length
if(che_len == undefined && parent.right.document.form.box_.checked == true) {
SDD('mview.asp?stockid='+parent.right.document.form.box_.value,'mview',440,508,'');
}else{
for(i_che = 0 ;i_che < che_len;i_che++) {
if(parent.right.document.form.box_[i_che].checked == true) {
SDD('mview.asp?stockid='+parent.right.document.form.box_[i_che].value,'mview',430,508,'');
}else{
}
}
}
}
if(sel=='reload') { parent.right.location.reload();}
if(sel=='del') {
var che_len = parent.right.document.form.box_.length
var sel_len = parent.right.document.form.selAnnounce.length
var vinfo = '';
var vinfo_ = '';
var vinfobox = '';
var vinfobox_ = '';
var vinfosel = '';
var vinfosel_ = '';
var selAnnounce_index = parent.right.document.form.selAnnounce.checked;
var box_index = parent.right.document.form.box_.checked
if(selAnnounce_index == true || box_index == true) {
if(selAnnounce_index == true) {
vinfo = parent.right.document.form.selAnnounce.value;
}else{
vinfo = parent.right.document.form.box_.value ;
}
parent.right.document.form.Execute.value = vinfo ;
return confirm('即将删除记录 '+ vinfo + ' !是否继续?');return true;
}else{
for(i_sel = 0; i_sel < sel_len ; i_sel++) {
var selAnnounceCheck = parent.right.document.form.selAnnounce[i_sel].checked
var selAnnounceValue = parent.right.document.form.selAnnounce[i_sel].value + "," ;
var box_Check = parent.right.document.form.box_[i_sel].checked ;
var box_Value = parent.right.document.form.box_[i_sel].value ;
if(selAnnounceCheck == true) {
vinfosel = selAnnounceValue ;
}else{
vinfosel = '';
}
if(box_Check == true) {
vinfobox = box_Value ;
}else{
vinfobox = '';
}
vinfosel_+=vinfosel
vinfobox_+=vinfobox
}
if (!vinfosel_ == '') {
vinfo_ = vinfosel_
}else{
vinfo_ = vinfobox_
}
if(vinfo_!='') {
var vinfo_Split = vinfo_.split(",")
vinfo_SplitLen = vinfo_Split.length
var str_ = '';
for(i = 0 ; i < vinfo_SplitLen-1;i++) {
if(i!==vinfo_SplitLen-2) {
str = vinfo_Split[i] + "," ;
}else{
str = vinfo_Split[i]
}
str_+=str
}
if (str_ == '')str_ = vinfo_ ;
parent.right.document.form.Execute.value = str_ ;
return confirm('即将删除记录:\n' + str_ + '\n是否继续?');
return true;
}else{
return false;
}
}
}
}
//-->
</script>
</body>
</html>
</div>
</body>
</html>
<%
ConnClose()
Set c01 = nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -