美容院管理系统论文

Frmyuyue.Show End Sub

Private Sub Command6_Click()

Text5.Text = \End Sub

Private Sub Form_Load()

Call Up(\项目名称\Label13.Caption = \操作员:\Label6.Caption = \日期\End Sub

Private Sub Frame1_DragDrop(Source As Control, X As Single, Y As Single) End Sub

Private Sub Label5_Click(Index As Integer) If Val(Text7) < Val(Text9) Then MsgBox \所收费用不足!\提示\ Exit Sub End If

If Text7 = \

MsgBox \输入实际收取金额!\提示\ Text7.SetFocus Exit Sub End If

Text8 = Val(Text7) - Val(Text9) End Sub

6.4会员管理模块

会员管理是实现对美容院会员管理的管理的模块,可以实现对客户信息的新增修改删除刷新等操作,其实现界面及代码如下: 1.实现界面

图6-4 客户管理界面

2.实现代码 Dim yf%

Private Sub Command3_Click() On Error Resume Next If yf <> 0 Then

MsgBox \现在正在执行其他操作,不能进行查询!\提示\Exit Sub End If

If Combo1.Text = \

MsgBox \请选择要查询的字段!\提示\ Combo1.SetFocus Exit Sub End If

If Text2.Text = \

MsgBox \请输入要查询的条件!\提示\ Text2.SetFocus Exit Sub End If

If Combo1.Text = \会员编号\

rst.Open \* From huiyuan where 会员编号='\+ Trim(Text2.Text) + \

If rst.RecordCount = 0 Then

MsgBox \没有要查询的记录!\提示\ End If

rst.Close

Adodc1.RecordSource = \会员编号='\Trim(Text2.Text) + \ Adodc1.Refresh

ElseIf Combo1.Text = \会员名称\

rst.Open \* From huiyuan where 会员名称='\+ Trim(Text2.Text) + \

If rst.RecordCount = 0 Then

MsgBox \没有要查询的记录!\提示\ End If rst.Close

Adodc1.RecordSource = \会员名称='\Trim(Text2.Text) + \ Adodc1.Refresh Else

MsgBox \请选择要查询的正确字段!\提示\End If End Sub

Private Sub Form_Load() Adodc1.ConnectionString = \Server};server=(local);database=mry\

Adodc1.RecordSource = \ Adodc1.Refresh End Sub

Private Sub Command1_Click() On Error Resume Next If yf = 1 Then '新增

rst.Open \ Call Check(\会员编号\ If Fh = 1 Then rst.Close Fh = 0 Exit Sub End If

'----------------------------------------- rst.AddNew

For i = 0 To 4

rst.Fields(i) = Text1(i) Next i

rst.Fields(\性别\ rst.Update

For i = 0 To 4 Text1(i) = \

Next i yf = 0 rst.Close Adodc1.Refresh

ElseIf yf = 2 Then '修改

rst.Open \* From huiyuan where 会员编号='\+ Trim(DataGrid1.Columns(0)) + \ For i = 0 To 4

rst.Fields(i) = Text1(i) Next i

rst.Fields(\性别\ rst.Update yf = 0 rst.Close

Adodc1.Refresh End If

Command1.Enabled = False Command2.Enabled = False End Sub

Private Sub Command2_Click() For i = 0 To 4 Text1(i) = \ Next i yf = 0

Command1.Enabled = False Command2.Enabled = False End Sub

Private Sub DataGrid1_Click()

If yf = 1 Or yf = 2 Then Exit Sub For i = 0 To 4

Text1(i) = DataGrid1.Columns(i) Next i

Combo3.Text = DataGrid1.Columns(6) Text4.Text = DataGrid1.Columns(5)

'------------------------------------会员等级管理 If Val(DataGrid1.Columns(5)) <= 100 Then Text3.Text = \初级会员\

ElseIf Val(DataGrid1.Columns(5)) <= 1000 And Val(DataGrid1.Columns(5)) > 100 Then

Text3.Text = \普通会员\

ElseIf Val(DataGrid1.Columns(5)) <= 10000 And Val(DataGrid1.Columns(5)) > 1000 Then

Text3.Text = \高级会员\

ElseIf Val(DataGrid1.Columns(5)) > 10000 Then

联系客服:779662525#qq.com(#替换为@)