毕业论文论文范文课程设计实践报告法律论文英语论文教学论文医学论文农学论文艺术论文行政论文管理论文计算机安全
您现在的位置: 毕业论文 >> 课程设计 >> 正文

VB+SQL书店图书管理系统(任务书+开题报告+论文) 第11页

更新时间:2010-5-3:  来源:毕业论文
VB+SQL书店图书管理系统(任务书+开题报告+论文) 第11页
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select sum([实收金额]) as [总金额] from [售书记录] where [会员卡号]=""" & HYKaHao & """"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
    Adodc1.Recordset.MoveFirst
    SUMBook = CInt(Adodc1.Recordset!总金额)
Else
    SUMBook = 0
End If

Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select [会员标准] from [会员政策] where [会员级别]='★☆☆☆☆'"
Adodc1.Refresh
Adodc1.Recordset.MoveFirst
BiaoZhun = CInt(Adodc1.Recordset!会员标准)

If SUMBook >= BiaoZhun Then
    Adodc1.CommandType = adCmdText
    Adodc1.RecordSource = "select * from [会员表] where [会员卡号]=""" & HYKaHao & """"
    Adodc1.Refresh
    If Adodc1.Recordset.RecordCount > 0 Then
        Adodc1.Recordset.MoveFirst
        Adodc1.Recordset!会员等级 = "★☆☆☆☆"
        Adodc1.Recordset.Update
    End If
End If

Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select [会员标准] from [会员政策] where [会员级别]='★★☆☆☆'"
Adodc1.Refresh
Adodc1.Recordset.MoveFirst
BiaoZhun = CInt(Adodc1.Recordset!会员标准)

If SUMBook >= BiaoZhun Then
    Adodc1.CommandType = adCmdText
    Adodc1.RecordSource = "select * from [会员表] where [会员卡号]=""" & HYKaHao & """"
    Adodc1.Refresh
    If Adodc1.Recordset.RecordCount > 0 Then
        Adodc1.Recordset.MoveFirst
        Adodc1.Recordset!会员等级 = "★★☆☆☆"
        Adodc1.Recordset.Update
    End If
End If

Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select [会员标准] from [会员政策] where [会员级别]='★★★☆☆'"
Adodc1.Refresh
Adodc1.Recordset.MoveFirst
BiaoZhun = CInt(Adodc1.Recordset!会员标准)

If SUMBook >= BiaoZhun Then
    Adodc1.CommandType = adCmdText
    Adodc1.RecordSource = "select * from [会员表] where [会员卡号]=""" & HYKaHao & """"
    Adodc1.Refresh
    If Adodc1.Recordset.RecordCount > 0 Then
        Adodc1.Recordset.MoveFirst
        Adodc1.Recordset!会员等级 = "★★★☆☆"
        Adodc1.Recordset.Update
    End If
End If

Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select [会员标准] from [会员政策] where [会员级别]='★★★★☆'"
Adodc1.Refresh
Adodc1.Recordset.MoveFirst
BiaoZhun = CInt(Adodc1.Recordset!会员标准)

If SUMBook >= BiaoZhun Then
    Adodc1.CommandType = adCmdText
    Adodc1.RecordSource = "select * from [会员表] where [会员卡号]=""" & HYKaHao & """"
    Adodc1.Refresh
    If Adodc1.Recordset.RecordCount > 0 Then
        Adodc1.Recordset.MoveFirst
        Adodc1.Recordset!会员等级 = "★★★★☆"
        Adodc1.Recordset.Update
    End If
End If

Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select [会员标准] from [会员政策] where [会员级别]='★★★★★'"
Adodc1.Refresh
Adodc1.Recordset.MoveFirst
BiaoZhun = CInt(Adodc1.Recordset!会员标准)

If SUMBook >= BiaoZhun Then
    Adodc1.CommandType = adCmdText
    Adodc1.RecordSource = "select * from [会员表] where [会员卡号]=""" & HYKaHao & """"
    Adodc1.Refresh
    If Adodc1.Recordset.RecordCount > 0 Then
        Adodc1.Recordset.MoveFirst
        Adodc1.Recordset!会员等级 = "★★★★★"
        Adodc1.Recordset.Update
    End If
End If

CommitTrans
HYShengJi = False

Exit Function
errEnd:
    Rollback
    HYShengJi = True
    Screen.MousePointer = vbDefault
    MsgBox "检查会员是否应升级时操作失败!", vbOKOnly + vbExclamation, "图书销售"
    CmdOK.Enabled = True
End Function

模块名:CmdSellBook_Click

 << 上一页  [11] [12] [13] [14] [15] [16] 下一页

VB+SQL书店图书管理系统(任务书+开题报告+论文) 第11页下载如图片无法显示或论文不完整,请联系qq752018766
设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©751com.cn 辣文论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。