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

📄 productsalerecordcreate.asp

📁 一个比较完整的oa系统
💻 ASP
字号:
<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"--><!--#INCLUDE FILE="../HXINCLUDE/SelectDate.ASP"-->
<%if WS_S.MemberPriv("WS_SaleManageProductSaleRecord")<>1 then HX_GoBack "对不起,您的权限不够!",""
ColumnName="":Tablename="HX_ProductSaleRecord":Tablename1="HX_Product":Orderby="":action=request("action")
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
if action="saveinfo" then
 PTID=WS_s.HX_Replace(request("PTID"))
 SaleMan=WS_s.HX_Replace(request("SaleMan"))
 SaleDate=WS_s.HX_Replace(request("SaleDate"))
 SaleDescribe=WS_s.HX_Replace(request("SaleDescribe"))
 rs.addnew :rs("WS_PTID")=PTID:rs("WS_ProductSaleMan")=SaleMan
 if isdate(SaleDate) then rs("WS_ProductSaleDate")=SaleDate
 rs("WS_ProductSaleDescribe")=SaleDescribe:rs("WS_ProductSaleCreateMan")=loginuid:rs.update
 response.write "<script>if(confirm('添加成功!是否继续添加?')) {location.href='ProductSaleRecordCreate.asp';}else {location.href='ProductSaleRecord.asp';}</script>"
 response.end
end if
response.write "<html><head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>销售记录管理</title><link rel=stylesheet type=text/css href='../HXinclude/HX_Style.css'><script src='../HXinclude/HX_Function.js'></script></head><body topmargin='50' leftmargin='0' bottommargin='0'><table width='596'  border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#115F8F'><tr><td colspan='2' bgcolor=ffffff><table width='100%'  border='0' cellspacing='0' cellpadding='0'><tr><td height='25' background='../hximages/titleline.gif'><font class='fontmenu'>添加销售记录</font>     <a href='ProductManage.asp' class='menu'>销售记录管理(销售记录总数 "&rs.recordcount&" )</a></td></tr></table><table width='100%'  border='0' cellspacing='1' cellpadding='3' bgcolor=f1f1f1><form name='form1' method='post' action='?action=saveinfo'><tr bgcolor='#FFFFFF'><td width='23%' align='right'>产品名称:</td><td width='77%'><select name='PTID' id='PTID'>"
Orderby=" where WS_ProductCreateMan="&loginuid&" order by WS_PTID desc"
set urs=WS_S.HX_SetRSD(ColumnName,Tablename1,Orderby)
if urs.recordcount>0 then
	  do until urs.eof
	  response.write "<option value='"&urs("WS_PTID")&"'>"&urs("WS_ProductName")&"</option>"
	   urs.movenext
	   loop
end if
WS_S.HX_RSClose urs  
response.write "</select></td></tr><tr bgcolor='#FFFFFF'><td align='right'>出售日期:</td><td><input type='text' size='28' name='SaleDate' readonly> <input name='button' type='button' title='选择开始时间' onClick=""popUpcalendar(this, form1.SaleDate, 'yyyy/mm/dd')"" value='选择'></td></tr><tr bgcolor='#FFFFFF'><td align='right'>购 买 人:</td><td><input type='text' size='36' name='SaleMan'></td></tr><tr bgcolor='#FFFFFF'><td align='right'>备  注:</td><td><input type='text' size='36' name='SaleDescribe'></td></tr><tr bgcolor='#FFFFFF'><td align='right' valign=top>&nbsp;</td><td><input type='submit' name='Submit' value=' 创 建 '> <input type='reset' name='Submit2' value=' 重 置 '></td></tr></form></table></td></tr></table>"
WS_S.HX_RSClose rs%>

⌨️ 快捷键说明

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