📄 officeadd.asp
字号:
<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<!--#include file ="../HXINCLUDE/SelectDate.asp"-->
<%if WS_S.MemberPriv("WS_PublicAffairsOfficeAdd")<>1 then HX_GoBack "对不起,您的权限不够!",""
ColumnName="":Tablename="HX_Office":action=request("action")
if action="saveinfo" then
WS_OfficeName=request("WS_OfficeName"):WS_OfficeNum=request("WS_OfficeNum"):WS_OfficeManageID=request("WS_OfficeManageUID"):WS_OfficeBuyID=request("WS_OfficeBuyUID"):WS_OfficeUnitPrice=request("WS_OfficeUnitPrice"):WS_OfficeMeasurement=request("WS_OfficeMeasurement"):WS_OfficeBuydate=request("OfficeBuydate"):WS_OfficeAddDate=request("OfficeAddDate"):WS_OfficeContent=request("OfficeContent")
Orderby=" where WS_OfficeName='"&WS_OfficeName&"'"
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
if rs.recordcount>0 then
Call HX_GoBack(WS_OfficeName&"办公用品已添加!","")
else
rs.addnew
rs("WS_OfficeName")=WS_OfficeName
if WS_OfficeNum<>"" and isnumeric(WS_OfficeNum) then rs("WS_OfficeNum")=WS_OfficeNum
if WS_OfficeManageID<>"" and isnumeric(WS_OfficeManageID) then rs("WS_OfficeManageID")=WS_OfficeManageID
if WS_OfficeBuyID<>"" and isnumeric(WS_OfficeBuyID) then rs("WS_OfficeBuyID")=WS_OfficeBuyID
rs("WS_OfficeUnitPrice")=WS_OfficeUnitPrice
rs("WS_OfficeMeasurement")=WS_OfficeMeasurement
if isdate(WS_OfficeBuydate) then rs("WS_OfficeBuydate")=WS_OfficeBuydate
if isdate(WS_OfficeAddDate) then rs("WS_OfficeAddDate")=WS_OfficeAddDate
rs("WS_OfficeContent")=WS_OfficeContent
rs.update
response.Write "<script>if(!confirm('"&WS_OfficeName&"办公用品添加成功!\n是否继续添加!')) location.href='officelist.asp'; else location.href='officeadd.asp'; </script>"
response.end
end if
end if
response.Write "<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='20' 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></td></tr></table><table width='100%' border='0' cellspacing='1' cellpadding='3'><form name='form1' method='post' action='?action=saveinfo' onSubmit='return offieccheck();'><tr bgcolor=f1f1f1><td width='13%'><div align='right'>名 称:</div></td><td colspan='3'><input name='WS_OfficeName' type='text' size='40' maxlength='40'><font color=red> *</font></td></tr><tr bgcolor='f1f1f1'><td><div align='right'>单 价:</div></td><td colspan='3'><input name='WS_OfficeUnitPrice' type='text' style='ime-mode:disabled' value='10' size='15' maxlength='40'> 元 <font color=red>* 请填写数字,否则系统将被格式化成0</font></td></tr><tr bgcolor='f1f1f1'><td><div align='right'>数 量:</div></td><td width='31%'><input name='WS_OfficeNum' type='text' value='1' size='10' maxlength='4' style='ime-mode:disabled' onKeyPress='event.returnValue=IsDigit();'></td><td width='15%'><div align='right'>单 位:</div></td><td width='41%'><input name='WS_OfficeMeasurement' type='text' value='个' size='10' maxlength='10'></td></tr><tr bgcolor='f1f1f1'><td><div align='right'>保 管 员:</div></td><input name='WS_OfficeManageUid' type='hidden'><td><input name='WS_OfficeManageName' type='text' size='20' maxlength='40' readonly> <input onclick=""openwin(510,500,'../HXinclude/HX_Checkuser.asp?checkuser=OfficeManage')"" type='button' value='选择' class='bdlogin'></td><td><div align='right'>购 买 人:</div></td><input name='WS_OfficeBuyUid' type='hidden'><td><input name='WS_OfficeBuyName' type='text' size='20' maxlength='40' readonly> <input onclick=""openwin(510,500,'../HXinclude/HX_Checkuser.asp?checkuser=OfficeBuy')"" type='button' value='选择' class='bdlogin'></td></tr><tr bgcolor='f1f1f1'><td><div align='right'>购买时间:</div></td><td><input name='OfficeBuydate' type='text' value='"&date&"' size='20' maxlength='40' readonly> <input onclick=""popUpcalendar(this, form1.OfficeBuydate, 'yyyy-mm-dd')"" type='button' value='选择' class='bdlogin'></td><td><div align='right'>入库时间:</div></td><td><input name='OfficeAddDate' type='text' value='"&date&"' size='20' maxlength='40' readonly> <input name='button' type='button' class='bdlogin' onClick=""popUpcalendar(this, form1.OfficeAddDate, 'yyyy-mm-dd')"" value='选择'></td></tr><tr bgcolor='f1f1f1'><td valign='top'><div align='right'>备 注:</div></td><td colspan='3'><textarea name='OfficeContent' cols='75' rows='10' class='bgline'></textarea></td></tr><tr bgcolor='f1f1f1'><td> </td><td colspan='3'><input type='submit' name='Submit' value=' 提 交 '> <input type='reset' name='Submit2' value=' 重 输 '> <input type='button' name='Submit3' value=' 返 回 ' onclick='history.go(-1);'></td></tr></form></table></td></tr></table>"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -