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

VB+SQL Server2000中小型医院药品管理系统 第11页

更新时间:2008-1-4:  来源:毕业论文

VB+SQL Server2000中小型医院药品管理系统 第11页

End If

    If Trim(Text2.Text) <> Trim(Text3.Text) Then

       MsgBox "两次密码不一致", vbOKOnly + vbExclamation, ""

       Text2.SetFocus

       Text2.Text = ""

       Text3.Text = ""

       Exit Sub

    ElseIf Trim(Combo1.Text) <> "system" And Trim(Combo1.Text) <> "guest" Then

       MsgBox "请选择正确的用户权限", vbOKOnly + vbExclamation, ""

       Combo1.SetFocus

       Combo1.Text = ""

       Exit Sub

    Else

       rs_add.AddNew

       rs_add.Fields(0) = Text1.Text

       rs_add.Fields(1) = Text2.Text

       rs_add.Fields(2) = Combo1.Text

       rs_add.Update

       rs_add.Close

       MsgBox "添加用户成功", vbOKOnly + vbExclamation, ""

       Unload Me

    End If

End If

End Sub

Private Sub Command2_Click()

Unload Me

Main.Show

End Sub

Private Sub Form_Load()

Combo1.AddItem "system"

Combo1.AddItem "guest"

End Sub

Private Sub Label1_Click()

Unload Me

Main.Show

End Sub

Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)

If Button = 1 Then

    Dim ReturnVal As Long

    Xs = ReleaseCapture()

    ReturnVal = SendMessage(hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0)

  End If

End Sub

6.5药品查询表界面

6.5药品查询表界面图

Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)

If Button = 1 Then

    Dim ReturnVal As Long

    Xs = ReleaseCapture()

    ReturnVal = SendMessage(hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0)

  End If

End Sub

 

Private Sub Text1_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then

If Combo1.Text = "按名称" Then

   Adodc1.CommandType = adCmdText

   Adodc1.RecordSource = "Select * from medicdate where medicname like '%" & Text1.Text & "%'"

   Adodc1.Refresh

   Set DataGrid1.DataSource = Adodc1

ElseIf Combo1.Text = "按类型" Then

   Adodc1.CommandType = adCmdText

   Adodc1.RecordSource = "Select * from medicdate where leixing like '%" & Text1.Text & "%'"

   Adodc1.Refresh

   Set DataGrid1.DataSource = Adodc1

ElseIf Combo1.Text = "按商品名" Then

   Adodc1.CommandType = adCmdText

   Adodc1.RecordSource = "Select * from medicdate where shangpinming like '%" & Text1.Text & "%'"

   Adodc1.Refresh

   Set DataGrid1.DataSource = Adodc1

ElseIf Combo1.Text = "按拼音简码" Then

   Adodc1.CommandType = adCmdText

   Adodc1.RecordSource = "Select * from medicdate where pingyinjianma like '%" & Text1.Text & "%'"

   Adodc1.Refresh

   Set DataGrid1.DataSource = Adodc1

End If

End If

End Sub

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

VB+SQL Server2000中小型医院药品管理系统 第11页下载如图片无法显示或论文不完整,请联系qq752018766
设为首页 | 联系站长 | 友情链接 | 网站地图 |

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