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

📄 mlist_right.asp

📁 一个比较完整的企业erp系统
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<%@language="vbscript" codepage="936"%>
<%response.buffer = true%>
<%Public HOME_PATH:HOME_PATH = "../"%>
<!--#include file="../db.asp"-->
<!--#include file="../inc/function.asp"-->
<%Public title:title = "库存列表"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title><%=title%></title><%
  if isLogin = false then
     Response.Write viewinfo("Logingo","","")
	 Response.end
  end if
%><meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<link href="<%=HOME_PATH%>css/style.css" rel="stylesheet" type="text/css">
<script type = 'text/javascript' src = '<%=HOME_PATH%>js/layer00.js'></script>
<style type = 'text/css'>
.tempA td {border-top:solid 0px #fff;border-left:solid 0px #fff;border-right:solid 1px #d6d3ce;border-bottom:solid 1px #d6d3ce;}
.clicked { background-color:#08246B;color:#ffffff;}
.onover { background-color:#ffffff;border-left:1px solid #000;border-top:1px solid #000;border-bottom:1px solid #000;border-right:1px solid #000;line-height:17px;height:20px;text-align:center;}
.onout { background-color:transparent;border-left:1px solid #000;border-top:1px solid #000;border-bottom:1px solid #000;border-right:1px solid #000;line-height:17px;height:20px;text-align:center;}
</style>

<script language="JavaScript">
<!--
function clicked_(s) {
 var td_len = td_.length;
 if (td_len == undefined) { 
    td_.className = 'clicked';
    form.box_.checked = true;

    }else{
		for(i_ = 0 ; i_<td_len;i_++) {
			if(s!=i_) {
			   td_[i_].className = '';
			   form.box_[i_].checked = false;
			}else{
			   td_[i_].className = 'clicked';
			   form.box_[i_].checked = true;
			}
		}
    }
}

function checked_(s) {
   var selLen = form.selAnnounce.length ;
   if (selLen==undefined) {
       if(form.selAnnounce.checked == true) {
	      selid_.className = 'clicked' ;
	   }else{
	      selid_.className = '' ;
	   }
   }else{
      if(form.selAnnounce[s].checked == true) {
         selid_[s].className = 'clicked';
      }else{
         selid_[s].className = '';
      }
   }
}
//-->
</script>

<!--onClick="this.value=check(this.form.del_producr)-->
</head>
<body style = 'margin:0px;'>
<div style = 'text-align:center;'>
<%
     LinkFile = SELVAR("FN","adminlist_right.asp")
     Rmainid = GetText("maintypeid","G","number",1,10,0)
	 mtypeName = v1v2(Rmainid,0,"全部",SelectZD("select mtypeName from mtype where mtypeid = " & Rmainid & "","未知"))
     Rsubid = GetText("subtypeid","G","number",1,10,0)
     sel = trim(Request("sel"))
	 key_ = trim(Request("key"))
	 updateStock = trim(Request("updateStock"))


	 selSQL = ""
	 C_Checked = ""
	 N_Checked = ""
	 P_Checked = ""
     BadStr = " ~`!@#$%^&*()-_+=|\{}[][]:;" & chr(34) & chr(39) & "<,>.?/"
     viewBadStr = ""
	 key__ = Check(BadStr,key_,viewBadStr,"0")
	 keyColor = v1v2(key_,"",""," style = 'color:red;' ")
	 select case sel
			case "C"
				 selSQL = " and Code like '%" & key__ & "%'"
				 C_Checked = " checked = 'checked' "
			case "N"
				 selSQL = " and cName like '%" & key__ & "%'"
				 N_Checked = " checked = 'checked' "
			case "P"
			     key__ = isNumber(key__,"dec",0)
				 selSQL = " and outPrice = " & key__ & ""
				 key_ = key__
				 P_Checked = " checked = 'checked' "
			case "J"
				 selSQL = " and supplierid in(select uid from supplier where FullName like '%" & key_ & "%')"
				 J_Checked = " checked = 'checked' "
	 end select


	 if updateStock = "YES" then 
	    upChecked = " checked = 'checked' " 
		seeTitle = ""
     else 
	    upChecked = ""
		seeTitle = "只显示有商品的库存"
     end if



	 seenullKC = trim(Request("nullKC"))
	 if seenullKC = "seeYES" then
	    seeSQL = "  and outhowed < inHow "
	 elseif seenullKC = "seeNO" then
	    seeSQL = " and inHow <= outhowed "
	 else
	    seeSQL = ""
	 end if



%>

     <table border = '1' cellspacing = '0' cellpadding = '1' borderColorLight='#000000' borderColorDark='#eeeeee' style = 'width:100%;border-bottom:0px solid;border-right:0px solid;border-top:0px solid;border-left:0px solid;'/>
	   <form method='post' action="<%=SELVAR("FN","?")%>" name = 'formSearch'>
	   <input type = 'hidden' name = 'maintypeid' value = '<%=Rmainid%>'/>
	   <input type = 'hidden' name = 'subtypeid' value = '<%=Rsubid%>'/>
	   <input type = 'hidden' name = 'Searched' value = 'Y'/>
       <tr>
	   <td style = 'height:30px;'>
		 搜索:按代码<input type="radio" name="sel" style = 'border-style:none;' value = 'C' <%=C_Checked%> />
		 名称<input type="radio" name="sel" style = 'border-style:none;' value = 'N' <%=N_Checked%>/>
		 销价<input type="radio" name="sel" style = 'border-style:none;' value = 'P' <%=P_Checked%>/>
		 经销商名<input type="radio" name="sel" style = 'border-style:none;' value = 'J' <%=J_Checked%>/>
		 <%SQL = "select * from usertype where uTypeSelect = 0 Order by uTypeArray Desc"%>
		 关键字 <input <%=keyColor%> type="text" name="key" style = 'width:100px;' value = '<%=key_%>' style = 'border-left:1px solid #000;border-top:1px solid #000;border-bottom:1px solid #000;border-right:0px solid #000;line-height:17px;height:20px;'/><input type="button" value = '搜索' style = 'border:1px solid #000;line-height:17px;height:20px;' onclick="javascript:formSearch.submit();"/>   <input type = 'checkbox' value = 'YES' name = 'updateStock' style = 'border-style:none;' <%=upChecked %>/>选上同时更新当前页商品库存
		 <select name = 'nullKC' onchange = "javascript:location.href='<%=LinkFile & "?maintypeid=" & Rmainid & "&subtypeid=" & Rsubid & "&sel=" & sel & "&key=" & key_ & "&updateStock=" & updateStock & "&nullKC="%>'+this.value;">
		    <option value = 'seeALL' <%=v1v2(seenullKC,"seeALL"," selected = 'true' style = 'color:red;' ","")%>> 显示(全部)库存</option>
			<option value = 'seeYES' <%=v1v2(seenullKC,"seeYES"," selected = 'true' style = 'color:red;' ","")%>>只显示(有)库存</option>
			<option value = 'seeNO' <%=v1v2(seenullKC,"seeNO"," selected = 'true' style = 'color:red;' ","")%>>只显示(空)库存</option>
		 </select>
		 <span class = 'onout' onclick = "javascript:this.blur();WindowOpen('<%=HOME_PATH%>thisDayStock.asp','thisDaystock',800,600,'Y');" onmouseover = "javascript:this.className='onover';" onmouseout = "javascript:this.className = 'onout';" style = 'cursor:default;width:100px;'/>查看当天记录</span></td>
	   </tr>
	   </form>
	 </table>


     <table border = '1' cellspacing = '0' cellpadding = '1' borderColorLight='#000000' borderColorDark='#eeeeee' style = 'width:100%;border-bottom:0px solid;border-right:0px solid;border-top:0px solid;border-left:0px solid;' class = 'LinkA'/>
	 <form method='post' action="<%=SELvar("FN","?")%>" name = 'form'>
	 <input type = 'hidden' name = 'Options'/>
	 <input type = 'hidden' name = 'Execute'/>
	 <input type = 'hidden' name = 'movetosupplierid'/>
	 <input type = 'hidden' name = 'movetomtypeid'/>
<!----------------top Javascript ----------------->
<input type = 'hidden' name = 'selAnnouncem' value = ''/>
<input type = 'hidden' name = 'boxm_' value = ''/>



	        <tr>
			   <td style = 'text-align:center;'>进货编号</td>
			   <td style ='height:20px;width:40px;text-align:center;'>序号</td>
			   <td>代码</td>
			   <td>名称</td>
			   <td>型号</td>
			   <td>进价</td>
			   <td>销价</td>
			   <td>入库日期</td>
			   <td>进货数</td>
			   <td>已销售</td>
			   <td>现库存</td>
			   <td>返修</td>
			   <td>经销商</td>
			   <td style = 'width:42px;text-align:center;'>可用性</td>
			   <td style = 'width:30px;text-align:center;'><input name = '' type = 'button' style = 'border-style:none;' onClick="this.value=sel(this.form.selAnnounce,'反选','全选',selid_,'clicked');" value = '全选' onfocus="this.blur();"/></td>
			</tr>
	        <tr>
			   <td style ='height:1px;line-height:1px;background-color:#adaaad;border-style:none;' colspan = '15'></td>
			</tr>
<%
  LUrl = "maintypeid=" & Rmainid & "&subtypeid=" & Rsubid & "&sel=" & sel & "&key=" & key_ & "&updateStock=" & updateStock & "&nullKC=" & seenullKC

  mainSQL = v1v2(Rmainid,0,"","  and mTypeid in(select mTypeid from mtype where mTypeSelect = " & Rmainid & ") ")
  subSQL = v1v2(Rsubid,0,""," and mTypeid=" & Rsubid & "")
  SQL = "select * from stock where 1 = 1 " & mainSQL & subSQL & selSQL & seeSQL & " Order By thisDate Desc ,stockid desc"
  'Response.Write SQL
  Rs.Open(SQL),Conn,1,3

	 dim uCount , KCJZinprice , KCJZoutprice , PCount
	 KCJZinprice = 0
	 KCJZoutprice = 0
	 thisPageSize = 20
	 PCount = 5 '当前页的前面和后面显示页数
  if not Rs.eof then
     nullKC = 0
     PageWrite = PaginatinoGoogle(Rs,noteTotal,thisPageSize,LinkFile,LUrl,LArr)

⌨️ 快捷键说明

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