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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? produit_add.asp

?? web development asp languages easy source enterprise Invoicing System
?? ASP
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
<%
if request.Cookies("shiwei_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%> - 產(chǎn)品入庫(kù)</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 request.Cookies("shiwei_id")<>"1" then
%>
<br><center><img src="../images/note.gif" align="absmiddle">&nbsp;<font color="#FF0000">你不具備此權(quán)限,請(qǐng)與管理員聯(lián)系!</font></center>
<%  
  response.end
end if
%>

<%
if request("hid1")="ok" then
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=replace(replace(replace(replace(replace(replace(FormatDateTime(now(),0),":","")," ",""),"-",""),"/",""),"上午",""),"下午","")

for x=1 to maxproduit
nowhuohao=request("huohao"&x)
nowshulian=request("shulian"&x)
if nowhuohao<>"單擊選擇產(chǎn)品" and nowshulian<>"" then
set rs_produit=conn.execute("select * from produit where huohao='"&nowhuohao&"'")
if rs_produit.eof then
%>
<script language="javascript">
alert("沒(méi)有貨號(hào) <%=nowhuohao%>!")
window.history.go(-1)
</script> 
<%
  response.end
  exit for
end if  
end if
next

totalshulian=0
totalprice2=0
aaa=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<>"單擊選擇產(chǎn)品" and nowshulian<>"" then
aaa=aaa+1
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
if aaa>0 then
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)
end if
%>
<script language="javascript">
alert("產(chǎn)品入庫(kù)成功!")
</script> 
<%if dayin1="yes" then%>
<script language="javascript">
window.open('print_buy.asp?bianhao=<%=nowbianhao%>','打印','width=853,height=470,top=176,left=161,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=yes');
</script>
<%end if%>
<script language="javascript">
window.location.href="produit_add.asp"
</script>
<%
end if
%>

<%
if request("hid2")<>"" then
nowbigclass=request("bigclass")
nowsmallclass=request("smallclass")
nowtitle=request("title")
nowhuohao=request("huohao")
nowku=request("ku")
nowshulian=request("shulian")
nowdanwei=request("danwei")
nowprice=request("price")
if nowprice="" then
  nowprice=0
end if
nowprice2=request("price2")
if nowprice2="" then
  nowprice2=0
end if
nowguige=request("guige")
nowbaojin=request("baojin")
nowclass=request("class")
nowduihuan=request("duihuan")
nowtichen_type=request("tichen_type")
nowtichen=request("tichen")
nowphoto=request("photo")
nowbeizhu=request("beizhu")
nowid_login=request("id_login")
nowid_gys=request("id_gys")
nowgys=""
set rs_login=conn.execute("select * from login where id="&nowid_login)
set rs_gys=conn.execute("select * from gys where id="&nowid_gys)
if rs_gys.eof=false then nowgys=rs_gys("company")
sql="select * from produit where huohao='"&nowhuohao&"'"
set rs=conn.execute(sql)
if rs.eof=false then
%>
<script language="javascript">
alert("您輸入的產(chǎn)品貨號(hào)已經(jīng)存在,請(qǐng)使用已有產(chǎn)品入庫(kù)進(jìn)行添加!")
window.history.go(-1)
</script> 
<%
  response.end
end if
sql="insert into produit(id_bigclass,id_smallclass,title,huohao,id_ku,shulian,danwei,price,price2,guige,baojin,class,duihuan,tichen_type,tichen,photo,beizhu) values("&nowbigclass&","&nowsmallclass&",'"&nowtitle&"','"&nowhuohao&"',"&nowku&","&nowshulian&",'"&nowdanwei&"',"&nowprice&","&nowprice2&",'"&nowguige&"',"&nowbaojin&","&nowclass&","&nowduihuan&","&nowtichen_type&","&nowtichen&",'"&nowphoto&"','"&nowbeizhu&"')"
conn.execute(sql)
sql="select * from produit order by id desc"
set rs_produit=conn.execute(sql)
sql="select bigclass from bigclass where id="&nowbigclass
set rs_bigclass=conn.execute(sql)
sql="select smallclass from smallclass where id="&nowsmallclass
set rs_smallclass=conn.execute(sql)
if rs_smallclass.eof then
  smallclass=""
else
  smallclass=rs_smallclass(0)
end if
sql="select * from ku where id="&nowku
set rs_ku=conn.execute(sql)
nowbianhao=replace(replace(replace(replace(replace(replace(FormatDateTime(now(),0),":","")," ",""),"-",""),"/",""),"上午",""),"下午","")
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) values("&rs_produit("id")&",'"&rs_bigclass(0)&"','"&smallclass&"','"&nowtitle&"','"&nowhuohao&"',"&rs_ku("id")&",'"&rs_ku("ku")&"',"&nowshulian&",'"&nowguige&"',"&nowid_login&",'"&rs_login("username")&"',0,#"&date()&"#,"&nowprice2&",'"&nowphoto&"',"&nowid_gys&",'"&nowgys&"','"&nowbianhao&"')"
conn.execute(sql)
sql="insert into buy(shulian,id_login,login,type,selldate,price2,id_gys,gys,bianhao,zu) values("&nowshulian&","&nowid_login&",'"&rs_login("username")&"',0,#"&date()&"#,"&nowprice2*nowshulian&","&nowid_gys&",'"&nowgys&"','"&nowbianhao&"',true)"
conn.execute(sql)
%>
<script language="javascript">
alert("產(chǎn)品入庫(kù)成功!")
</script> 
<%if dayin1="yes" then%>
<script language="javascript">
window.open('print_buy.asp?bianhao=<%=nowbianhao%>','打印','width=853,height=470,top=176,left=161,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=yes');
</script>
<%end if%>
<script language="javascript">
window.location.href="produit_add.asp"
</script>
<%
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 check()
{
if (document.form2.title.value==""||document.form2.huohao.value==""||document.form2.shulian.value=="")
{
alert("有*號(hào)的必須填寫!");
return false;
}
if (isNumberString(document.form2.tichen.value,"1234567890.")!=1)
{
alert("價(jià)格只能為數(shù)字!");
return false;
}
}

function check1()
{
if (document.form1.huohao1.value=="單擊選擇產(chǎn)品")
{
alert("還沒(méi)有選擇產(chǎn)品!");
return false;
}
if (document.form1.shulian1.value=="")
{
alert("請(qǐng)輸入入庫(kù)數(shù)量!");
return false;
}
}

function chg1(a)
{
if (a=="0") {document.all.bian1.innerHTML="%"}
else {document.all.bian1.innerHTML="元"}
}
</script>
<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;已有產(chǎn)品入庫(kù)(帶*號(hào)的為必填項(xiàng))</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">
      <tr>
        <td width="20%" align="right" height="30">選擇產(chǎn)品:</td>
        <td width="80%" class="category">
          <table cellpadding="0" cellspacing="0" width="100%" border=0>
		    <%for x=1 to maxproduit%>
		    <tr id="cailiaohan<%=x%>"<%if x<>1 then%> style="display:none;"<%end if%>>
			  <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="單擊選擇產(chǎn)品">
				數(shù)量: <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">
				單價(jià): <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 request.Cookies("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,',"&request.Cookies("shiwei_id")&",')>0 order by id"
				  set rs_ku=conn.execute(sql)	  
				end if
				if rs_ku.eof then
				%>
				<script language="javascript">
				  alert("沒(méi)有屬于你管理的倉(cāng)庫(kù),請(qǐng)先添加倉(cāng)庫(kù)!")
				  window.location.href="../system/ku_add.asp"
				</script>
				<%
				response.end
				end if
				%>
				倉(cāng)庫(kù): <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;">下一個(gè)產(chǎn)品</span><%end if%>
				<%if x<>1 then%><input type="button" value="清除" onClick="huohao<%=x%>.value='單擊選擇產(chǎn)品';shulian<%=x%>.value='1';price2<%=x%>.value=''" class="button"><%end if%>
				<%if x=1 then%><font color="#ff0000">*</font><%end if%>
				<div id="showshulian<%=x%>"></div>
		      </td>
			</tr>		
			<%next%>		
		  </table>
		</td>
      </tr>
	  <tr>
        <td align="right" height="30">供應(yīng)商:</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")%>"><%=rs_gys("company")%></option>
			    <%
				  rs_gys.movenext
			    loop
			    %>
			    </select>		

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品一级片| 久久久精品黄色| 欧洲中文字幕精品| 色婷婷久久久亚洲一区二区三区 | 国内久久婷婷综合| 日韩二区三区四区| 久久国产精品色婷婷| 激情久久五月天| 国产精品一区二区不卡| 成人免费毛片高清视频| 99久久综合国产精品| 91在线视频免费观看| 一本色道久久综合亚洲精品按摩 | 国产片一区二区| 欧美国产精品久久| 亚洲色图清纯唯美| 亚洲成a人片在线观看中文| 午夜视频一区二区三区| 免费成人在线观看视频| 久草精品在线观看| 国产成人综合网| 色哟哟一区二区三区| 日本韩国一区二区三区视频| 欧美性极品少妇| 精品免费一区二区三区| 国产精品免费看片| 亚洲国产精品综合小说图片区| 日韩 欧美一区二区三区| 国内久久精品视频| 一本色道久久综合狠狠躁的推荐| 欧美日韩免费在线视频| 久久综合av免费| 国产精品国产三级国产专播品爱网| 亚洲欧美日韩国产另类专区| 日本美女视频一区二区| 国产成a人无v码亚洲福利| 色综合久久66| 精品免费日韩av| 亚洲美女电影在线| 久久国内精品视频| 99天天综合性| 日韩天堂在线观看| 国产精品成人在线观看| 男男成人高潮片免费网站| 成人一级视频在线观看| 欧美日韩一级二级三级| 亚洲精品一区二区三区99| 亚洲精品自拍动漫在线| 黄页网站大全一区二区| 日本电影欧美片| 精品入口麻豆88视频| 中文字幕 久热精品 视频在线 | 久久91精品国产91久久小草| 97精品久久久午夜一区二区三区 | 国产午夜精品久久久久久免费视| 夜夜嗨av一区二区三区| 国产成人精品网址| 欧美精品一二三| 中文字幕日本不卡| 久久国产精品99久久久久久老狼| 色综合久久久久久久| 国产午夜精品福利| 日韩专区一卡二卡| 一本一本大道香蕉久在线精品 | 亚洲最新视频在线观看| 国产伦精品一区二区三区在线观看 | 成年人国产精品| 欧美成人乱码一区二区三区| 亚洲黄色在线视频| 成人av在线一区二区| 欧美精品一区二区三区蜜臀| 亚洲五码中文字幕| 91在线视频观看| 国产欧美综合色| 久久99精品久久久久久动态图| 欧美日韩午夜影院| 亚洲欧美日韩国产一区二区三区| 国产成人av福利| 精品久久人人做人人爽| 奇米影视一区二区三区| 欧美色网一区二区| 亚洲乱码国产乱码精品精可以看 | 一本到三区不卡视频| 亚洲国产成人在线| 国产麻豆视频精品| 欧美mv日韩mv国产| 精品一区二区在线免费观看| 欧美精品黑人性xxxx| 亚洲成a人片在线不卡一二三区| 色综合久久久久综合体桃花网| 国产精品理论片在线观看| 国产白丝精品91爽爽久久| 久久综合狠狠综合久久综合88| 麻豆精品在线播放| 日韩你懂的电影在线观看| 日韩av网站在线观看| 91精品国产乱| 日本不卡视频一二三区| 91精品久久久久久久99蜜桃| 天天色天天爱天天射综合| 欧美日韩成人在线一区| 日韩精品一级二级| 欧美一区二区三区在线视频| 日韩制服丝袜先锋影音| 欧美电影一区二区三区| 日本人妖一区二区| 欧美成人精品1314www| 国内成人免费视频| 久久久天堂av| 成人中文字幕在线| 中文字幕中文字幕一区| 99在线精品视频| 亚洲综合色噜噜狠狠| 欧美日韩黄色一区二区| 日韩精品1区2区3区| 欧美一区二区视频观看视频| 精品午夜一区二区三区在线观看| 精品国产91亚洲一区二区三区婷婷 | 另类中文字幕网| 久久夜色精品国产噜噜av| 国产精品一区二区你懂的| 中文字幕av在线一区二区三区| 91在线观看视频| 亚洲成av人**亚洲成av**| 成人动漫精品一区二区| 一区二区激情小说| 欧美一区二区三区婷婷月色| 极品少妇xxxx精品少妇偷拍| 国产丝袜美腿一区二区三区| 91美女蜜桃在线| 青青草原综合久久大伊人精品| 精品国产a毛片| 97se亚洲国产综合自在线| 午夜精品久久久久久久久| 2023国产精品自拍| 99久久99久久精品免费看蜜桃| 亚洲成av人片一区二区梦乃| 久久久久久久综合狠狠综合| 99精品桃花视频在线观看| 午夜在线电影亚洲一区| 国产丝袜美腿一区二区三区| 色婷婷亚洲精品| 久色婷婷小香蕉久久| 国产精品无人区| 6080午夜不卡| 99在线精品视频| 日韩国产欧美在线观看| 中文字幕高清不卡| 欧美另类一区二区三区| 国产69精品久久久久毛片 | 国产传媒久久文化传媒| 亚洲一二三四区| 国产亚洲一区二区三区| 在线观看亚洲精品视频| 国产一区在线观看视频| 一区二区三区精品| 久久精品人人做人人综合| 欧美日韩国产一二三| 高清国产一区二区| 蜜乳av一区二区三区| 亚洲欧美日韩综合aⅴ视频| 精品国产乱码久久久久久久| 色婷婷综合在线| 成人午夜伦理影院| 九九视频精品免费| 亚洲一区二区视频在线观看| 国产精品丝袜91| 日韩天堂在线观看| 欧美日韩三级一区| 91小宝寻花一区二区三区| 极品美女销魂一区二区三区| 亚洲综合男人的天堂| 国产精品久久久久婷婷| 久久一二三国产| 日韩欧美你懂的| 欧美美女喷水视频| 色综合久久88色综合天天6| 成人一区二区三区在线观看| 国产一区二区精品久久99| 琪琪一区二区三区| 性感美女久久精品| 一片黄亚洲嫩模| 综合激情网...| 国产精品亲子乱子伦xxxx裸| 久久伊人中文字幕| 精品国产乱码久久久久久1区2区| 91精品国产综合久久国产大片| 欧美午夜理伦三级在线观看| 91丨porny丨国产入口| 成人激情小说网站| 国产成人免费在线观看| 国产精品亚洲成人| 久久99国产乱子伦精品免费| 美女视频黄a大片欧美| 日韩精品欧美精品| 天天av天天翘天天综合网| 亚洲一区二区不卡免费| 亚洲一区二区三区影院| 亚洲一线二线三线视频| 一区二区三区免费观看|