📄 post_update.asp
字号:
<%@ Language=VBScript %>
<%
'文件功能:wh_salaryItems2--存储
'编写人员:阿房
'编写时间:2003-08-23 09:46:35
'开发平台:ASP3.0 + MSSQL2000
'版本:1.1.20030908.01
%>
<!-- #include file="../Common/Cls_DbProcess2.1.asp" -->
<!-- #include file="../wh_salaryItems2/Cls_wh_salaryItems2.asp" -->
<!-- #include file="../pub/conn.asp" -->
<!-- #include file="../pub/fun.asp" -->
<%call checklogin()%>
<%
if session("right")<3 then
dim lr
lr="<font color=red>"&now()&"有"&session("name")&"试图修改工资栏目表 IP:"&REQUEST.SERVERVARIABLES("REMOTE_ADDR")&"</font>"
call savelog("../pub/error.htm",lr)
response.redirect("../error.asp?msg=2")
end if
%><HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="WindSoft Programmer3">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=gb2312">
<TITLE>wh_salaryItems2--存储</TITLE>
<%
dim mStr_WINDCallType
mStr_WINDCallType = trim(request.querystring("WINDCallType")) '调用方式
dim mStr_WINDURL '请将需要全局传递的变量链接到本变量上,使用方法参见WINDCallType,多个变量之间采用&链接
mStr_WINDURL = "WINDCallType="+Server.URLEncode(mStr_WINDCallType)
%>
</HEAD>
<BODY>
<%
call InitData()
%>
</BODY>
</HTML>
<%
function InitData()
'功能:初始化
'参数:无
'返回:无
dim Str_Mess
Str_Mess = CheckData()
if (Str_Mess<>"") then
call ShowMess(16,Str_Mess)
call WindowBack()
else
if (request.form("Continue")="") then
select case mStr_WINDCallType
case else:
call WindowReplace("Main.asp?"+mStr_WINDURL)
end select
else
call WindowReplace("Update.asp?"+mStr_WINDURL+"&Continue=1")
end if
end if
end function
function CheckData()
'功能:存储资料
'参数:无
'返回:无
dim Str_Mess
dim Int_Count
dim Str_PK_item2_id '主鍵
dim Str_item2_number '排序
dim Str_item2_name '工资项目
dim Str_item2_isused '是否使用
dim Str_item2_tech '技术部
dim Str_item2_market '市场部
dim Str_item2_adm '行政
dim Str_item2_other '其他
dim Str_item2_memo '备注
Str_PK_item2_id = trim(request.form("PK_item2_id"))
Str_item2_number = trim(request.form("item2_number"))
Str_item2_name = trim(request.form("item2_name"))
Str_item2_isused = trim(request.form("item2_isused"))
Str_item2_tech = trim(request.form("item2_tech"))
Str_item2_market = trim(request.form("item2_market"))
Str_item2_adm = trim(request.form("item2_adm"))
Str_item2_other = trim(request.form("item2_other"))
Str_item2_memo = trim(request.form("item2_memo"))
Str_Mess = ""
Int_Count = 1
if (not (IsNumeric(Str_item2_number))) then
Str_Mess = Str_Mess +"\n"+ cstr(Int_Count) + ") [排序] 一栏必须为数值!"
Int_Count = Int_Count+1
end if
if (trim(Str_item2_name)="") then
Str_Mess = Str_Mess +"\n"+ cstr(Int_Count) + ") [工资项目] 一栏不能为空!"
Int_Count = Int_Count+1
end if
if (trim(Str_item2_isused)="") then
Str_Mess = Str_Mess +"\n"+ cstr(Int_Count) + ") [是否使用] 一栏不能为空!"
Int_Count = Int_Count+1
end if
if (Str_Mess<>"") then
CheckData= "对不起,您录入的资料存在以下错误:" _
+"\n"+ Str_Mess _
+"\n"+"\n"+"请检查资料或联系管理员!"
exit function
end if
CheckData = mCls_wh_salaryItems2.SaveData(Str_PK_item2_id, Str_item2_number, Str_item2_name, Str_item2_isused, Str_item2_tech, Str_item2_market, Str_item2_adm, Str_item2_other, Str_item2_memo)
end function
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -