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

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

?? tui_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 fla5="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 sell 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")

totalshulian=0
totalprice=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)
nowprice=request("price"&x)
if nowprice="" then
  nowprice=0
end if
if nowhuohao<>"單擊選擇產品" and nowshulian<>"" then
set rs_produit=conn.execute("select * from produit where huohao='"&nowhuohao&"'")
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
%>
<script language="javascript">
alert("<%=rs_ku("ku")%> 中沒有產品 <%=rs_produit("title")%>!")
window.history.go(-1)
</script> 
<%
  response.end
  exit for
elseif rs("shulian")-nowshulian<0 then
%>
<script language="javascript">
alert("<%=rs_ku("ku")%> 中 <%=rs_produit("title")%> 庫存不足!")
window.history.go(-1)
</script> 
<%
  response.end
  exit for
end if
end if
next

'-------------------------
  set rs=conn.execute("select * from sell 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 sell where bianhao='"&rs_id("bianhao")&"'"
  conn.execute(sql)
'-------------------------

totalshulian=0
totalprice=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)
nowprice=request("price"&x)
if nowprice="" then
  nowprice=0
end if
if nowhuohao<>"單擊選擇產品" and nowshulian<>"" then
set rs_produit=conn.execute("select * from produit where huohao='"&nowhuohao&"'")
set rs=server.createobject("ADODB.RecordSet")
sql="select * from produit where huohao='"&nowhuohao&"' and id_ku="&nowku
rs.open sql,conn,1,3
rs("shulian")=rs("shulian")-nowshulian 
rs.update
rs.close
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
totalprice=totalprice+nowprice*nowshulian
sql="insert into sell(id_produit,bigclass,smallclass,title,huohao,id_ku,ku,shulian,guige,id_login,login,type,selldate,price,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")&"',2,#"&nowselldate&"#,"&nowprice&",'"&rs_produit("photo")&"',"&nowid_gys&",'"&nowgys&"','"&nowbianhao&"','"&nowbeizhu&"')"
conn.execute(sql)
end if
next
sql="insert into sell(shulian,id_login,login,type,selldate,price,id_gys,gys,bianhao,zu,beizhu) values("&totalshulian&","&nowid_login&",'"&rs_login("username")&"',2,#"&nowselldate&"#,"&totalprice&","&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 sell where id="&request("id"))
set rs_buy=conn.execute("select * from sell 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=price<%=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="price<%=y%>" style="width:30px" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" value="<%=rs_buy("price")%>">
				<%
				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';price<%=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=price<%=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="price<%=x%>" style="width:30px" 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';price<%=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一区二区三区免费野_久草精品视频
日韩精品一区在线| 精品一区二区综合| 精品一区二区在线播放| 91尤物视频在线观看| 91精品婷婷国产综合久久性色| 久久免费看少妇高潮| 一区二区免费看| 成人精品国产一区二区4080| 日韩情涩欧美日韩视频| 亚洲精品免费在线| 国产成人精品免费视频网站| 欧美日韩精品一区二区三区 | 日韩欧美成人激情| 亚洲精品国产a| av中文一区二区三区| 久久久久久免费网| 麻豆91免费观看| 欧美一级片在线| 亚洲国产sm捆绑调教视频| 成人免费福利片| 久久九九影视网| 国产一区二区三区免费| 欧美一区二区三级| 日日欢夜夜爽一区| 欧美群妇大交群的观看方式 | 久久网站最新地址| 日韩不卡一二三区| 在线不卡中文字幕播放| 亚洲成人久久影院| 欧美久久婷婷综合色| 性久久久久久久久| 欧美日产在线观看| 首页国产欧美久久| 欧美四级电影网| 日韩不卡一区二区三区| 欧美一级高清片| 久久99久久久久久久久久久| 欧美大白屁股肥臀xxxxxx| 日韩精品一卡二卡三卡四卡无卡| 欧美精品一卡二卡| 午夜一区二区三区视频| 制服.丝袜.亚洲.另类.中文| 偷拍一区二区三区四区| 亚洲丝袜制服诱惑| av激情成人网| 一区二区三区日韩精品| 欧美三级日韩三级国产三级| 全部av―极品视觉盛宴亚洲| 日韩女优av电影| 国产成人av电影在线观看| 亚洲国产高清aⅴ视频| 日本精品视频一区二区| 日韩综合一区二区| 久久久国产午夜精品 | 国产精品久久久久婷婷| 91免费看`日韩一区二区| 亚洲高清一区二区三区| 精品国产sm最大网站| 成人性视频网站| 亚洲风情在线资源站| 日韩一区二区三区精品视频| 国产69精品久久99不卡| 一区二区成人在线视频| 日韩精品中文字幕一区二区三区 | voyeur盗摄精品| 亚洲综合色丁香婷婷六月图片| 日韩一卡二卡三卡| 成人一区二区三区| 日本视频一区二区| 国产欧美精品一区二区三区四区| 99久久99久久精品国产片果冻 | 7777精品伊人久久久大香线蕉| 久久av资源网| 亚洲免费av观看| 久久一留热品黄| 91国产视频在线观看| 蜜臀av一级做a爰片久久| 国产精品久久久久aaaa| 日韩一区二区三区电影在线观看| 99国内精品久久| 国产最新精品精品你懂的| 亚洲一二三区视频在线观看| 国产欧美精品日韩区二区麻豆天美| 欧美视频在线一区二区三区| 国产成人精品午夜视频免费| 视频一区在线视频| 亚洲欧美日韩在线不卡| 国产午夜亚洲精品羞羞网站| 在线不卡免费欧美| 色综合激情久久| 成人动漫在线一区| 韩国毛片一区二区三区| 偷偷要91色婷婷| 亚洲一区二区三区中文字幕在线| 国产日产精品一区| 综合久久综合久久| 国产午夜亚洲精品理论片色戒 | 麻豆精品在线播放| 伊人婷婷欧美激情| 国产精品乱人伦| 久久久精品国产免费观看同学| 在线欧美日韩精品| 色综合色综合色综合色综合色综合 | 精品一区二区三区的国产在线播放| 亚洲欧美日韩国产一区二区三区| 中文字幕免费一区| 国产欧美一区二区精品久导航| 日韩视频免费直播| 欧美日本一区二区三区四区| 欧美三级日本三级少妇99| 99国产精品一区| 一本色道a无线码一区v| 色综合一区二区| 91视频免费看| 在线观看视频一区二区| 在线观看一区日韩| 欧美日韩一区二区三区视频| 欧美人狂配大交3d怪物一区| 欧美色网一区二区| 911精品国产一区二区在线| 欧美喷潮久久久xxxxx| 欧美精品第1页| 日韩精品影音先锋| 久久精品亚洲一区二区三区浴池| 久久一留热品黄| 国产人成一区二区三区影院| 国产亲近乱来精品视频| 国产精品二三区| 亚洲乱码中文字幕综合| 亚洲一区二区不卡免费| 日韩在线播放一区二区| 精品一区二区三区av| 国产69精品一区二区亚洲孕妇| www.爱久久.com| 欧美日韩一区二区三区在线看| 91麻豆精品国产91久久久久| 日韩欧美一级在线播放| 日本电影欧美片| caoporn国产精品| 成人国产精品免费观看视频| 在线一区二区三区四区| 不卡欧美aaaaa| 欧美精品日日鲁夜夜添| 久久影视一区二区| 国产女人18毛片水真多成人如厕| 伊人开心综合网| 午夜成人免费电影| 麻豆精品国产传媒mv男同| 国产精品一区二区在线播放| 99久久久无码国产精品| 99re热这里只有精品视频| 在线观看三级视频欧美| 精品国产乱码久久久久久久| 精品国产3级a| 国产乱淫av一区二区三区| 91美女片黄在线观看| 欧美日韩国产一级| 久久天天做天天爱综合色| 中文字幕一区二区在线观看| 蜜臀国产一区二区三区在线播放| 久久成人免费网| www.色综合.com| 精品久久人人做人人爽| 国产精品久99| 国产在线观看免费一区| 韩国精品一区二区| 欧美日韩一级黄| 国产精品久久久久天堂| 日本少妇一区二区| 色综合久久久久久久久久久| 日韩亚洲电影在线| 亚洲国产精品久久人人爱| 国产精品自拍网站| 欧美在线免费观看亚洲| 亚洲国产精品精华液2区45| 亚洲一区视频在线观看视频| 成人av在线一区二区| 91精品国产麻豆国产自产在线| 亚洲精品va在线观看| 成人h动漫精品| 精品国产不卡一区二区三区| 秋霞av亚洲一区二区三| 国内久久精品视频| 欧美一区二区黄色| 午夜精品在线看| 99久久综合狠狠综合久久| 久久精品在这里| 热久久免费视频| 欧美日韩精品免费观看视频| 自拍偷自拍亚洲精品播放| 国内久久婷婷综合| 久久久久亚洲综合| 国模娜娜一区二区三区| 欧美伦理电影网| 日本免费新一区视频| 在线免费亚洲电影| 亚洲h在线观看| 欧美区在线观看| 亚洲在线视频网站| 精品婷婷伊人一区三区三|