亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? buy_modi.asp

?? 不錯的進銷存管理系統。功能比較全
?? ASP
字號:
<%
if session("yida_username")="" then
%>
<script language="javascript">
top.location.href="../index.asp"
</script>
<%  
  response.end
end if
%>
<!-- #include file="../conn2.asp" -->
<!-- #include file="../const.asp" -->

<html>
<head>
<title><%=dianming%> - 修改銷售</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style/style.css" rel="stylesheet" type="text/css">
<style>
body {
	background-color:#FFFFFF;
}
</style>
</HEAD>

<BODY>
<%
if fla1="0" and session("shiwei_id")<>"1" then
%>
<br><center><img src="../images/note.gif" align="absmiddle">&nbsp;<font color="#FF0000">你不具備此權限,請與管理員聯系!</font></center>
<%  
  response.end
end if
%>

<%
if request("hid1")="ok" then
set rs_id=conn.execute("select * from buy where id="&request("id"))
nowselldate=request("selldate")
nowbeizhu=request("beizhu")
nowid_login=request("id_login")
set rs_login=conn.execute("select * from login where id="&nowid_login)
nowid_gys=request("id_gys")
nowgys=""
set rs_gys=conn.execute("select * from gys where id="&nowid_gys)
if rs_gys.eof=false then nowgys=rs_gys("company")
nowbianhao=rs_id("bianhao")

'-------------------------
  set rs=conn.execute("select * from buy where bianhao='"&rs_id("bianhao")&"' and zu=false")
  do while rs.eof=false
    conn.execute("update produit set shulian=shulian-"&rs("shulian")&" where huohao='"&rs("huohao")&"' and id_ku="&rs("id_ku"))
    rs.movenext
  loop
  sql="delete from buy where bianhao='"&rs_id("bianhao")&"'"
  conn.execute(sql)
'-------------------------

totalshulian=0
totalprice2=0
for x=1 to maxproduit
nowku=request("ku"&x)
set rs_ku=conn.execute("select * from ku where id="&nowku)
nowhuohao=request("huohao"&x)
nowshulian=request("shulian"&x)
nowprice2=request("price2"&x)
if nowprice2="" then
  nowprice2=0
end if
if nowhuohao<>"單擊選擇產品" and nowshulian<>"" then
set rs_produit=conn.execute("select * from produit where huohao='"&nowhuohao&"'")
set rs_prix=conn.execute("select sum(shulian) from produit where huohao='"&nowhuohao&"'")
if rs_prix(0)+nowshulian>0 then
nowpinprice2=(rs_prix(0)*rs_produit("price2")+nowprice2*nowshulian)/(rs_prix(0)+nowshulian)
else
nowpinprice2=rs_produit("price2")
end if
set rs=server.createobject("ADODB.RecordSet")
sql="select * from produit where huohao='"&nowhuohao&"' and id_ku="&nowku
rs.open sql,conn,1,3
if rs.eof then
  rs.addnew
  rs("id_bigclass")=rs_produit("id_bigclass")
  rs("id_smallclass")=rs_produit("id_smallclass")
  rs("title")=rs_produit("title")
  rs("huohao")=rs_produit("huohao")
  rs("id_ku")=nowku
  rs("shulian")=nowshulian
  rs("danwei")=rs_produit("danwei")
  rs("price")=rs_produit("price")
  rs("price2")=nowpinprice2
  rs("guige")=rs_produit("guige")
  rs("baojin")=rs_produit("baojin")
  rs("class")=rs_produit("class")
  rs("duihuan")=rs_produit("duihuan")
  rs("tichen_type")=rs_produit("tichen_type")
  rs("tichen")=rs_produit("tichen")
  rs("photo")=rs_produit("photo")
  rs("beizhu")=rs_produit("beizhu")
else
  rs("shulian")=rs("shulian")+nowshulian
  rs("price2")=nowpinprice2 
end if
rs.update

set rs2=server.createobject("ADODB.RecordSet")
sql="select * from produit where huohao='"&nowhuohao&"'"
rs2.open sql,conn,1,3
do while rs2.eof=false
rs2("price2")=nowpinprice2
rs2.movenext
loop

sql="select bigclass from bigclass where id="&rs_produit("id_bigclass")
set rs_bigclass=conn.execute(sql)
sql="select smallclass from smallclass where id="&rs_produit("id_smallclass")
set rs_smallclass=conn.execute(sql)
if rs_smallclass.eof then
  smallclass=""
else
  smallclass=rs_smallclass(0)
end if
totalshulian=totalshulian+nowshulian
totalprice2=totalprice2+nowprice2*nowshulian
sql="insert into buy(id_produit,bigclass,smallclass,title,huohao,id_ku,ku,shulian,guige,id_login,login,type,selldate,price2,photo,id_gys,gys,bianhao,beizhu) values("&rs_produit("id")&",'"&rs_bigclass(0)&"','"&smallclass&"','"&rs_produit("title")&"','"&nowhuohao&"',"&rs_ku("id")&",'"&rs_ku("ku")&"',"&nowshulian&",'"&rs_produit("guige")&"',"&nowid_login&",'"&rs_login("username")&"',0,#"&nowselldate&"#,"&nowprice2&",'"&rs_produit("photo")&"',"&nowid_gys&",'"&nowgys&"','"&nowbianhao&"','"&nowbeizhu&"')"
conn.execute(sql)
end if
next
sql="insert into buy(shulian,id_login,login,type,selldate,price2,id_gys,gys,bianhao,zu,beizhu) values("&totalshulian&","&nowid_login&",'"&rs_login("username")&"',0,#"&nowselldate&"#,"&totalprice2&","&nowid_gys&",'"&nowgys&"','"&nowbianhao&"',true,'"&nowbeizhu&"')"
conn.execute(sql)
%>
<script language="javascript">
alert("訂單修改成功!")
window.opener.location.reload();
window.close();
</script>
<%
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.shulian1.value=="")
{
alert("請輸入數量!");
return false;
}
}
</script>
<%
set rs=conn.execute("select * from buy where id="&request("id"))
set rs_buy=conn.execute("select * from buy where bianhao='"&rs("bianhao")&"' and zu=false")
%>
<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>&nbsp;修改銷售(帶*號的為必填項)</td>
	  <td align="right">&nbsp;</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="form1" method="post">
	  <input type="hidden" name="id" value="<%=request("id")%>">
      <tr>
        <td width="20%" align="right" height="30">產品列表:</td>
        <td width="80%" class="category">
          <table cellpadding="0" cellspacing="0" width="100%" border=0>
		    <%
			y=0
			do while rs_buy.eof=false
			  y=y+1
			%>
		    <tr id="cailiaohan<%=y%>">
			  <td>
			    <input name="huohao<%=y%>" readonly onClick="JavaScript:window.open('produit1.asp?form=form1&field=huohao<%=y%>&field2=price2<%=y%>&span1=showshulian<%=y%>','','directorys=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=853,height=470,top=176,left=161');" style="width:80px" value="<%=rs_buy("huohao")%>">
				數量: <input type="text" name="shulian<%=y%>" style="width:30px" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" value="<%=rs_buy("shulian")%>">
				單價: <input type="text" name="price2<%=y%>" style="width:50px" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" value="<%=rs_buy("price2")%>">
				<%
				if session("shiwei_id")="1" or fla88="1" then
				  sql="select * from ku order by id"
				  set rs_ku=conn.execute(sql)
				else
				  sql="select * from ku where instr(login,'"&session("shiwei_id")&",')>0 order by id"
				  set rs_ku=conn.execute(sql)	  
				end if
				if rs_ku.eof then
				%>
				<script language="javascript">
				  alert("沒有屬于你管理的倉庫,請先添加倉庫!")
				  window.location.href="../system/ku_add.asp"
				</script>
				<%
				response.end
				end if
				%>
				倉庫: <select name="ku<%=y%>">
				<%
				do while rs_ku.eof=false
				%>
			      <option value="<%=rs_ku("id")%>"<%if rs_ku("id")=rs_buy("id_ku") then%> selected="selected"<%end if%>><%=rs_ku("ku")%></option>
				<%
				  rs_ku.movenext
				loop
				%>
				</select>
				<%if y<>maxproduit then%><span onClick="cailiaohan<%=(y+1)%>.style.display=''" style="cursor:hand;">下一個產品</span><%end if%>	
				<%if y<>1 then%><input type="button" value="清除" onClick="huohao<%=y%>.value='單擊選擇產品';shulian<%=y%>.value='1';price2<%=y%>.value=''" class="button"><%end if%>							
				<div id="showshulian<%=y%>"></div>
		      </td>
			</tr>		
			<%
			  rs_buy.movenext
			loop
			%>
		    <%for x=(y+1) to maxproduit%>
		    <tr id="cailiaohan<%=x%>" style="display:none;">
			  <td>
			    <input name="huohao<%=x%>" readonly onClick="JavaScript:window.open('produit1.asp?form=form1&field=huohao<%=x%>&field2=price2<%=x%>&span1=showshulian<%=x%>','','directorys=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=853,height=470,top=176,left=161');" style="width:80px" value="單擊選擇產品">
				數量: <input type="text" name="shulian<%=x%>" 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="price2<%=x%>" style="width:50px" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))">
				<%
				if session("shiwei_id")="1" or fla88="1" then
				  sql="select * from ku order by id"
				  set rs_ku=conn.execute(sql)
				else
				  sql="select * from ku where instr(login,'"&session("shiwei_id")&",')>0 order by id"
				  set rs_ku=conn.execute(sql)	  
				end if
				if rs_ku.eof then
				%>
				<script language="javascript">
				  alert("沒有屬于你管理的倉庫,請先添加倉庫!")
				  window.location.href="../system/ku_add.asp"
				</script>
				<%
				response.end
				end if
				%>
				倉庫: <select name="ku<%=x%>">
				<%
				do while rs_ku.eof=false
				%>
			      <option value="<%=rs_ku("id")%>"<%if rs_ku("moren") then%> selected="selected"<%end if%>><%=rs_ku("ku")%></option>
				<%
				  rs_ku.movenext
				loop
				%>
				</select>								
				<%if x<>maxproduit then%><span onClick="cailiaohan<%=(x+1)%>.style.display=''" style="cursor:hand;">下一個產品</span><%end if%>
				<%if x<>1 then%><input type="button" value="清除" onClick="huohao<%=x%>.value='單擊選擇產品';shulian<%=x%>.value='1';price2<%=x%>.value=''" class="button"><%end if%>
				<div id="showshulian<%=x%>"></div>
		      </td>
			</tr>		
			<%next%>		
		  </table>
		</td>
      </tr>
	  <tr>
        <td align="right" height="30">供應商:</td>
        <td class="category">
		  <%
			    sql="select * from gys order by id"
			    set rs_gys=conn.execute(sql)
			    %>
			    <select name="id_gys">
				  <option value="0"></option>
			    <%
			    do while rs_gys.eof=false
			    %>
				  <option value="<%=rs_gys("id")%>"<%if rs_gys("id")=rs("id_gys") then%> selected="selected"<%end if%>><%=rs_gys("company")%></option>
			    <%
				  rs_gys.movenext
			    loop
			    %>
			    </select>		
		</td>
      </tr>
	  <tr>
	    <td align="right" height="30">入庫時間:</td>
        <td class="category">
		  <input name="selldate" value="<%=rs("selldate")%>" readonly style="width:150px">
		  <img src="../images/date.gif" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:window.open('day.asp?form=form1&field=selldate&oldDate='+selldate.value,'','directorys=no,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,width=250,height=170,top=200,left=520');">
		</td>
      </tr>
	  <tr>
        <td align="right" height="30">經辦人:</td>
        <td class="category">
		  <%
		  if session("shiwei_id")=1 then
			sql="select * from login order by id_zu,id"
			set rs_login=conn.execute(sql)
		  else
			sql="select * from login where id="&session("shiwei_id")
			set rs_login=conn.execute(sql)	  
		  end if
		  if rs_login.eof then
		  %>
	      <script language="javascript">
	        alert("請先添加員工!")
	        window.location.href="../system/user_add.asp"
	      </script>
		  <%
		  response.end
		  else
		  %>
		  <select name="id_login">
		  <%
		  do while rs_login.eof=false
		  %>
		    <option value="<%=rs_login("id")%>"<%if rs_login("id")=rs("id_login") then%> selected="selected"<%end if%>><%=rs_login("username")%> (<%=rs_login("bianhao")%>)</option>
		  <%
		    rs_login.movenext
		  loop
		  %>
		  </select>
		  <%
		  end if
		  %>		
		</td>
      </tr>
	  <tr>
	    <td align="right" height="30">備注:</td>
        <td class="category">
		  <textarea name="beizhu" cols="60" rows="3"><%=rs("beizhu")%></textarea>
		</td>
      </tr>   
      <tr>
	    <td height="30">&nbsp;</td>
        <td class="category">
		  <input type="submit" value=" 確認 " onClick="return check1()" class="button">
		  <input type="hidden" name="hid1" value="ok">
		  <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 + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产综合色视频| 九色|91porny| 国产精品视频第一区| 久久久久久久电影| 国产欧美日韩在线| 国产欧美日韩麻豆91| 中文字幕第一区二区| 国产精品高清亚洲| 伊人色综合久久天天| 亚洲 欧美综合在线网络| 天堂午夜影视日韩欧美一区二区| 日韩高清中文字幕一区| 麻豆91精品视频| 国产99久久久精品| 91亚洲精品久久久蜜桃| 欧美欧美欧美欧美| 精品日韩一区二区三区| 国产精品久久久久桃色tv| 亚洲曰韩产成在线| 精品无人区卡一卡二卡三乱码免费卡 | 日韩一级免费一区| 2020国产精品| 亚洲欧美日韩一区二区三区在线观看| 一区二区三区av电影| 久久99精品久久只有精品| av在线不卡免费看| 6080国产精品一区二区| 亚洲国产精品v| 亚洲午夜在线视频| 狠狠久久亚洲欧美| 欧美午夜在线一二页| 久久蜜桃av一区二区天堂| 亚洲欧美精品午睡沙发| 经典三级在线一区| 91福利在线看| 国产亚洲一区二区在线观看| 亚洲综合视频在线观看| 国产精品一二三区| 欧美日韩一卡二卡| 亚洲国产精品激情在线观看| 日韩国产欧美在线播放| 色综合天天视频在线观看 | 国产成人在线观看| 欧美日韩精品福利| 国产精品不卡在线| 韩国精品一区二区| 欧美一区二区三区免费| 亚洲三级电影网站| 成人伦理片在线| 精品少妇一区二区三区在线播放 | 日本一区二区动态图| 人人超碰91尤物精品国产| 91丨九色丨蝌蚪丨老版| 国产欧美日韩亚州综合| 蜜臀a∨国产成人精品| 欧美日韩日日夜夜| 亚洲精品国产品国语在线app| 国产91精品在线观看| 日韩一区二区视频| 日韩不卡一区二区三区| 欧美巨大另类极品videosbest| 国产精品色噜噜| 国产精品888| 久久久久久麻豆| 国产剧情一区在线| 日韩精品自拍偷拍| 美女视频免费一区| 欧美成人三级电影在线| 日韩av一区二区在线影视| 欧美三级一区二区| 天天av天天翘天天综合网色鬼国产 | 捆绑调教一区二区三区| 欧美乱妇15p| 日韩激情av在线| 555www色欧美视频| 六月丁香综合在线视频| 日韩一区二区三区三四区视频在线观看| 一区二区三区在线高清| 欧洲一区在线电影| 亚洲国产成人porn| 制服.丝袜.亚洲.另类.中文| 免费不卡在线视频| 亚洲精品一区二区在线观看| 久久av老司机精品网站导航| 久久久www成人免费毛片麻豆 | 亚洲精品一二三| 欧美在线观看一区| 麻豆精品新av中文字幕| 久久蜜桃av一区二区天堂 | 亚洲在线视频免费观看| 欧美军同video69gay| 久久精品国产在热久久| 国产精品美女久久久久av爽李琼| 91色婷婷久久久久合中文| 亚洲一区在线观看免费 | 国产盗摄精品一区二区三区在线 | 欧美国产97人人爽人人喊| 色哟哟欧美精品| 免费观看在线综合| 亚洲国产高清aⅴ视频| www.视频一区| 日日夜夜免费精品视频| 26uuu精品一区二区| 91亚洲国产成人精品一区二三| 日韩二区三区在线观看| 国产视频911| 欧美福利一区二区| 国产91丝袜在线播放0| 亚洲成人7777| 国产精品午夜久久| 91精品国产综合久久香蕉的特点 | 午夜欧美视频在线观看| 久久人人97超碰com| 在线观看av一区| 国产一区二区三区观看| 一区二区高清在线| 国产欧美精品一区二区色综合朱莉| 欧美亚洲日本一区| 成人免费黄色在线| 狠狠色丁香婷综合久久| 亚洲最色的网站| 国产欧美日韩三级| 欧美大片拔萝卜| 欧美在线一二三四区| 国产.欧美.日韩| 免费观看一级欧美片| 亚洲国产成人精品视频| 亚洲欧美在线另类| 久久久综合精品| 日韩欧美www| 欧美一区二区人人喊爽| 色老汉av一区二区三区| 一个色综合av| 在线观看日韩电影| 日韩一级二级三级| 日本韩国精品在线| 99久久精品一区| va亚洲va日韩不卡在线观看| 精品无人区卡一卡二卡三乱码免费卡 | 欧美日韩综合一区| 色婷婷亚洲精品| 95精品视频在线| 91伊人久久大香线蕉| 成人a级免费电影| 不卡在线视频中文字幕| 国产成人免费9x9x人网站视频| 国产在线不卡视频| 国产毛片精品一区| 国产一区二区剧情av在线| 激情综合网天天干| 国产伦精品一区二区三区在线观看| 久久国产夜色精品鲁鲁99| 狠狠久久亚洲欧美| 国产乱对白刺激视频不卡| 国产一区二区成人久久免费影院| 激情深爱一区二区| 国产米奇在线777精品观看| 国产91在线观看丝袜| 成人av免费在线观看| 91浏览器在线视频| 欧美日韩国产一级二级| 日韩欧美激情四射| 精品国产一区a| 国产精品你懂的| 一区二区三区欧美视频| 一区二区三区电影在线播| 天天综合色天天| 国内成人自拍视频| 99国产精品一区| 欧美三级日韩在线| 久久综合资源网| 亚洲天堂精品视频| 日本欧美肥老太交大片| 国产一区二区在线影院| 丁香婷婷综合网| 欧美日韩精品一区二区三区| 精品国产乱码久久久久久久久 | 成人性生交大片免费看视频在线 | 亚洲成人手机在线| 黄一区二区三区| 色综合网站在线| 欧美不卡一区二区| 国产精品午夜电影| 天天影视涩香欲综合网 | 欧美亚洲国产bt| 欧美大片拔萝卜| 一区二区三区免费在线观看| 免费观看30秒视频久久| 99这里都是精品| 精品国产一区二区亚洲人成毛片| 中文字幕日韩一区二区| 久久精品国产999大香线蕉| 日本韩国一区二区三区视频| 26uuu久久综合| 香蕉成人啪国产精品视频综合网| 成人丝袜18视频在线观看| 91精品国产一区二区三区蜜臀| 亚洲国产成人私人影院tom| 视频一区二区三区入口| 色哟哟精品一区|