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

📄 moneypeople.frm

📁 这个商品销售管理系统实现了几乎所有的功能,并通过验收
💻 FRM
字号:
VERSION 5.00
Begin VB.Form moneypeople 
   BackColor       =   &H80000009&
   Caption         =   "小型自选商场商品管理系统"
   ClientHeight    =   5595
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   9180
   LinkTopic       =   "Form2"
   ScaleHeight     =   5595
   ScaleWidth      =   9180
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command5 
      BackColor       =   &H00E2D1D3&
      Caption         =   "查询"
      Height          =   495
      Left            =   960
      Style           =   1  'Graphical
      TabIndex        =   19
      Top             =   4440
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      BackColor       =   &H00E2D1D3&
      Caption         =   "插入"
      Height          =   495
      Left            =   2580
      Style           =   1  'Graphical
      TabIndex        =   18
      Top             =   4440
      Width           =   1095
   End
   Begin VB.CommandButton Command2 
      BackColor       =   &H00E2D1D3&
      Caption         =   "更新"
      Height          =   495
      Left            =   4200
      Style           =   1  'Graphical
      TabIndex        =   17
      Top             =   4440
      Width           =   1095
   End
   Begin VB.CommandButton Command3 
      BackColor       =   &H00E2D1D3&
      Caption         =   "删除"
      Height          =   495
      Left            =   5820
      Style           =   1  'Graphical
      TabIndex        =   16
      Top             =   4440
      Width           =   1095
   End
   Begin VB.CommandButton Command4 
      BackColor       =   &H00E2D1D3&
      Caption         =   "退出"
      Height          =   495
      Left            =   7440
      MaskColor       =   &H00987758&
      Style           =   1  'Graphical
      TabIndex        =   15
      Top             =   4440
      Width           =   1095
   End
   Begin VB.TextBox Text5 
      Height          =   495
      Left            =   7200
      TabIndex        =   14
      Top             =   3600
      Width           =   1335
   End
   Begin VB.TextBox Text4 
      Height          =   495
      Left            =   7200
      TabIndex        =   12
      Top             =   2880
      Width           =   1335
   End
   Begin VB.TextBox Text3 
      Height          =   495
      Left            =   3360
      TabIndex        =   10
      Top             =   3600
      Width           =   1335
   End
   Begin VB.TextBox Text2 
      Height          =   495
      Left            =   3360
      TabIndex        =   8
      Top             =   2880
      Width           =   1335
   End
   Begin VB.TextBox Text1 
      Height          =   495
      Left            =   3360
      TabIndex        =   6
      Top             =   2160
      Width           =   1335
   End
   Begin VB.Shape Shape1 
      Height          =   3255
      Left            =   240
      Top             =   1920
      Width           =   8775
   End
   Begin VB.Label Label9 
      BackStyle       =   0  'Transparent
      Caption         =   "工作台:"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00987758&
      Height          =   495
      Left            =   5640
      TabIndex        =   13
      Top             =   3600
      Width           =   1335
   End
   Begin VB.Label Label8 
      BackStyle       =   0  'Transparent
      Caption         =   "工作时间:"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00987758&
      Height          =   495
      Left            =   5400
      TabIndex        =   11
      Top             =   3000
      Width           =   1575
   End
   Begin VB.Label Label7 
      BackStyle       =   0  'Transparent
      Caption         =   "电话号码:"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00987758&
      Height          =   495
      Left            =   1680
      TabIndex        =   9
      Top             =   3720
      Width           =   1215
   End
   Begin VB.Label Label6 
      BackStyle       =   0  'Transparent
      Caption         =   "家庭地址:"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00987758&
      Height          =   495
      Left            =   1680
      TabIndex        =   7
      Top             =   3000
      Width           =   1215
   End
   Begin VB.Label Label5 
      BackStyle       =   0  'Transparent
      Caption         =   "收银员编号:"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00987758&
      Height          =   495
      Left            =   1440
      TabIndex        =   5
      Top             =   2280
      Width           =   1455
   End
   Begin VB.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "Beta Version 1.0"
      BeginProperty Font 
         Name            =   "Monotype Corsiva"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   -1  'True
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00987758&
      Height          =   375
      Left            =   7920
      TabIndex        =   4
      Top             =   5400
      Width           =   1215
   End
   Begin VB.Label Label3 
      BackStyle       =   0  'Transparent
      Caption         =   "版权所有:计算机科学与技术053班"
      ForeColor       =   &H00987758&
      Height          =   375
      Left            =   0
      TabIndex        =   3
      Top             =   5400
      Width           =   3735
   End
   Begin VB.Line Line5 
      BorderColor     =   &H00764E10&
      BorderWidth     =   2
      X1              =   0
      X2              =   9120
      Y1              =   5280
      Y2              =   5280
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      Caption         =   "收银员个人信息"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   11.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00764E10&
      Height          =   255
      Left            =   3720
      TabIndex        =   2
      Top             =   1440
      Width           =   1935
   End
   Begin VB.Line Line4 
      BorderColor     =   &H00764E10&
      BorderWidth     =   2
      X1              =   0
      X2              =   9120
      Y1              =   1800
      Y2              =   1800
   End
   Begin VB.Label loginbar 
      BackStyle       =   0  'Transparent
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   7.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000C0&
      Height          =   375
      Left            =   7320
      TabIndex        =   1
      Top             =   1080
      Width           =   1815
   End
   Begin VB.Line Line3 
      BorderColor     =   &H00764E10&
      BorderWidth     =   2
      X1              =   9240
      X2              =   7320
      Y1              =   1080
      Y2              =   1080
   End
   Begin VB.Line Line2 
      BorderColor     =   &H00764E10&
      BorderWidth     =   2
      X1              =   6960
      X2              =   7320
      Y1              =   1320
      Y2              =   1080
   End
   Begin VB.Line Line1 
      BorderColor     =   &H00764E10&
      BorderWidth     =   2
      X1              =   0
      X2              =   9240
      Y1              =   1320
      Y2              =   1320
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "小型自选商场商品管理系统"
      BeginProperty Font 
         Name            =   "Monotype Corsiva"
         Size            =   27.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   -1  'True
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00764E10&
      Height          =   735
      Left            =   2280
      TabIndex        =   0
      Top             =   360
      Width           =   6855
   End
   Begin VB.Image Image1 
      Height          =   1095
      Left            =   240
      Picture         =   "moneypeople.frx":0000
      Stretch         =   -1  'True
      Top             =   120
      Width           =   2175
   End
End
Attribute VB_Name = "moneypeople"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command1_Click()
If (Text1.Text = "") Then
MsgBox "请输入商品编号!", vbCritical
Text1.SetFocus
Exit Sub
End If
If (Text2.Text = "") Then
MsgBox "请输入家庭地址!", vbCritical
Text1.SetFocus
Exit Sub
End If
If (Text3.Text = "") Then
MsgBox "请输入电话号码!", vbCritical
Text1.SetFocus
Exit Sub
End If
If (Text4.Text = "") Then
MsgBox "请输入工作时间!", vbCritical
Text1.SetFocus
Exit Sub
End If
If (Text5.Text = "") Then
MsgBox "请输入工作台!", vbCritical
Text1.SetFocus
Exit Sub
End If
Call openconn
sqlstr = "insert into syygrxx values('" & Text1.Text & "','" & Text2.Text & "','" & Text3.Text & "','" & Text4.Text & "','" & Text5.Text & "')"
Call rs(sqlstr)
Call closeconn
MsgBox "insert successfully!", vbInformation
Unload Me
moneypeople.Show

End Sub

Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
End Sub

Private Sub Command3_Click()
Call openconn
 sqlstr = "delete from syygrxx where syybh='" & Text1.Text & "' "
Call rs(sqlstr)

MsgBox "delete successfully!", vbInformation
Unload Me
moneypeople.Show


End Sub

Private Sub Command4_Click()
Unload Me
money.Show

End Sub

Private Sub Command5_Click()
If (Text1.Text = "") Then
MsgBox "请输入商品编号!", vbCritical
Text1.SetFocus
Exit Sub
End If
Call openconn
sqlstr = "select * from syygrxx  where syybh='" & Text1.Text & "'"
Call rs(sqlstr)
If adoRS.EOF Then
        MsgBox "NO 记录 Selected", vbCritical
        Call closeconn
        Exit Sub
        End If
        Text2.Text = adoRS.Fields("jtdz")
         Text3.Text = adoRS.Fields("dhhm")
          Text4.Text = adoRS.Fields("gzsj")
           Text5.Text = adoRS.Fields("gzt")
           Call closeconn
        
End Sub

Private Sub Form_Load()
loginbar.Caption = "User = " & userid
End Sub

⌨️ 快捷键说明

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