网上商城详细设计说明书

更新时间:2023-06-07 04:19:01 阅读量: 实用文档 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

网上商城详细设计说明书(范本1)

2.会员模块

2.1用户注册页面

图2-2.1-用户注册

/// <summary>

/// 用户名注册校验

/// </summary>

If(用户名==空)

{

提示“用户名不能为空”

}

Else

{

UserNameChk 校验系统中是否存在指定用户并传给userID

if(userID>0)

{

提示“这个用户名还未注册,赶快注册吧!!”

返回

}}

/// <summary>

/// 用户注册

/// </summary>

If(用户名==0)

{

提示“用户名不能为空”

regChkPass值为 0

返回

}

Else{

UserNameChk 校验系统中是否存在指定用户并传给userID

If(userID>0)

{

提示“用户名已经被注册,请换个名字再试试”

regChkPass值为 0

}

}

If(UserPwd==0)

{

提示“密码不能为空!”

regChkPass值为 0

返回

}

If(确认密码==0)

{

提示“确认密码不能为空!”

regChkPass值为 0

返回

}

Else

{

If(确认密码!=密码)

{

提示“确认密码错误!”

regChkPass值为 0

返回

}}

If(密码提问为空)

提示“密码提问不能为空!”

regChkPass值为 0

返回

}

If(密码回答==0)

{

提示“密码回答不能为空!”

regChkPass值为 0

返回

}

If(真实姓名==0)

{

提示“真实姓名不能为空!”

regChkPass值为 0

返回

}

If(手机号码==0)

{

提示“手机号码不能为空!”

regChkPass值为 0

返回

}

Else

If(UserMobile长度不为十一位|| UserMobile前两位不为“13”)

提示“手机号码错误!”

regChkPass值为 0

返回

}

}

If(UserTelphone1==0|| UserTelphone2==0)

{

提示“电话号码不能为空”

regChkPass值为 0

返回

}

If(UserPostcode==0)

{

提示“电子邮件不能为空”

regChkPass值为 0

返回

}

If(UserAddress==0)

{

提示“详细地址不能为空”

regChkPass值为 0

返回

If(regChkPass 值为 1)

{

StringUtil.CheckStr对输入的用户名进行过滤传给字符串userName

StringUtil.CheckStr对输入的密码进行解密传给字符串userPwd

StringUtil.CheckStr方法对输入的PwdQuestion过滤传给字符串pwdQuestion StringUtil.CheckStr方法对输入的PwdAnswer过滤传给字符串PwdAnswer

StringUtil.CheckStr方法对输入的UserRealName过滤传给字符串UserRealName

StringUtil.CheckStr方法对输入的UserSex过滤传给字符串UserSex

StringUtil.CheckStr方法对输入的UserTelphone1和UserTelphone2过滤传给字符串

userTelphone

StringUtil.CheckStr方法对输入的UserEmail过滤传给字符串UserEmail

StringUtil.CheckStr方法对输入的UserMobile过滤传给字符串userMobile StringUtil.CheckStr方法对输入的UserPostcode过滤传给字符串userPostcode StringUtil.CheckStr方法对输入的UserAddress过滤传给字符串userAddress

Request对象获取客户端地址并传给userLastVisitIP

调用UserReg函数把(userName, userPwd, pwdQuestion, pwdAnswer, userRealName, userSex, userTelphone, userEmail, userMobile, userPostcode, userAddress,

userLastVisitIP)添加到表中,并把返回值传给变量regOK

If(regOk> 0)

{

把userName传给Session对象中的UserName

UserChk检查userName和 userPwd传给Session对象中的UserID

}else

{

提示“注册失败,请稍后回来!!”

返回}

本文来源:https://www.bwwdw.com/article/nci1.html

Top