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

📄 post_update.asp

📁 这是一个自己研发的薪酬管理系统
💻 ASP
字号:
<%@ Language=VBScript %>
<%
'文件功能:wh_logs--存储
'编写人员:阿房
'编写时间:2003-05-06 17:08:59
'开发平台:ASP3.0 + MSSQL2000
'版本:1.1.20030908.01
%>

<!-- #include file="../Common/Cls_DbProcess2.1.asp" -->
<!-- #include file="../wh_logs/Cls_wh_logs.asp" -->

<HTML>
<HEAD>
    <META NAME="GENERATOR" CONTENT="WindSoft Programmer3">
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=gb2312">
    <TITLE>wh_logs--存储</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_log_id                          '主鍵
dim Str_log_time                           '时间
dim Str_log_ip                             'IP
dim Str_log_who                            '操作人
dim Str_log_action                         '动作
dim Str_log_type                           '类型

    Str_PK_log_id                          = trim(request.form("PK_log_id"))
    Str_log_time                           = trim(request.form("log_time"))
    Str_log_ip                             = trim(request.form("log_ip"))
    Str_log_who                            = trim(request.form("log_who"))
    Str_log_action                         = trim(request.form("log_action"))
    Str_log_type                           = trim(request.form("log_type"))

    Str_Mess           =  ""
    Int_Count          =  1

    if (not (IsDate(Str_log_time))) then
        Str_Mess  = Str_Mess +"\n"+ cstr(Int_Count) + ") [时间] 一栏必须为日期!"
        Int_Count = Int_Count+1
    end if
    if (trim(Str_log_ip)="") then
        Str_Mess  = Str_Mess +"\n"+ cstr(Int_Count) + ") [IP] 一栏不能为空!"
        Int_Count = Int_Count+1
    end if
    if (trim(Str_log_who)="") then
        Str_Mess  = Str_Mess +"\n"+ cstr(Int_Count) + ") [操作人] 一栏不能为空!"
        Int_Count = Int_Count+1
    end if
    if (trim(Str_log_action)="") then
        Str_Mess  = Str_Mess +"\n"+ cstr(Int_Count) + ") [动作] 一栏不能为空!"
        Int_Count = Int_Count+1
    end if
    if (not (IsNumeric(Str_log_type))) 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_logs.SaveData(Str_PK_log_id, Str_log_time, Str_log_ip, Str_log_who, Str_log_action, Str_log_type)
end function
%>

⌨️ 快捷键说明

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