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

📄 frminitial.frm

📁 超市管理系统为了方管理,可以看看这个东西,同学做的
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frminitial 
   BackColor       =   &H00C0C0FF&
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "系统初始化"
   ClientHeight    =   1650
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1650
   ScaleWidth      =   4680
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.Frame Frame1 
      BackColor       =   &H00C0C0FF&
      Caption         =   "系统初始化"
      ForeColor       =   &H00FF0000&
      Height          =   1215
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   4455
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "是"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   18
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   375
         Left            =   960
         TabIndex        =   3
         Top             =   720
         Width           =   375
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "否"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   18
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   375
         Left            =   2520
         TabIndex        =   2
         Top             =   720
         Width           =   375
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "是否初始化本超市管理系统"
         BeginProperty Font 
            Name            =   "隶书"
            Size            =   15.75
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   255
         Left            =   120
         TabIndex        =   1
         Top             =   240
         Width           =   4215
      End
   End
End
Attribute VB_Name = "frminitial"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rs_sell As New ADODB.Recordset
Dim rs_goods As New ADODB.Recordset
Dim rs_buy As New ADODB.Recordset
Dim rs_retreat As New ADODB.Recordset
Dim rs_manufacturer As New ADODB.Recordset
Dim strsell As String
Dim strgoods As String
Dim strbuy As String
Dim strretreat As String
Dim strmanufacturer As String

Private Sub Command1_Click()
End Sub

Private Sub Command2_Click()

End Sub

Private Sub Label2_Click()

If MsgBox("真的要初始化?", vbYesNo + vbQuestion, "") = vbNo Then
 Exit Sub
End If
'初始化销售表
strsell = "select * from sell "
rs_sell.Open strsell, cnn, adOpenStatic, adLockOptimistic
If rs_sell.EOF = True Then
   rs_sell.Close
Else
    rs_sell.MoveFirst
    Dim i As Integer
    For i = 0 To rs_sell.RecordCount - 1
        rs_sell.Delete
        rs_sell.Update
        rs_sell.MoveNext
    Next
   rs_sell.Close
End If
'初始化库存表
strgoods = "select * from goods"
rs_goods.Open strgoods, cnn, adOpenStatic, adLockOptimistic
If rs_goods.EOF = True Then
   rs_goods.Close
Else
    rs_goods.MoveFirst
    Dim a As Integer
    For a = 0 To rs_goods.RecordCount - 1
        rs_goods.Delete
        rs_goods.Update
        rs_goods.MoveNext
    Next
   rs_goods.Close
End If
   '初始化进货表
strbuy = "select * from buy"
rs_buy.Open strbuy, cnn, adOpenStatic, adLockOptimistic
If rs_buy.EOF = True Then
   rs_buy.Close
Else
    rs_buy.MoveFirst
    Dim b As Integer
    For b = 0 To rs_buy.RecordCount - 1
       rs_buy.Delete
       rs_buy.Update
       rs_buy.MoveNext
    Next
   rs_buy.Close
End If
   '初始化退货表
strretreat = "select * from retreat"
rs_retreat.Open strretreat, cnn, adOpenStatic, adLockOptimistic
If rs_retreat.EOF = True Then
   rs_retreat.Close
Else
    rs_retreat.MoveFirst
    Dim c As Integer
    For c = 0 To rs_retreat.RecordCount - 1
        rs_retreat.Delete
        rs_retreat.Update
        rs_retreat.MoveNext
    Next
   rs_retreat.Close
End If
   '初始化进货商表
strmanufacturer = "select * from manufacturer"
rs_manufacturer.Open strmanufacturer, cnn, adOpenStatic, adLockOptimistic
If rs_manufacturer.EOF = True Then
   rs_manufacturer.Close
Else
    rs_manufacturer.MoveFirst
    Dim d As Integer
    For d = 0 To rs_manufacturer.RecordCount - 1
        rs_manufacturer.Delete
        rs_manufacturer.Update
        rs_manufacturer.MoveNext
    Next
   rs_manufacturer.Close
End If
frmMain.Show
Unload Me
frmMain.mnjiaoyi.Enabled = False

End Sub

Private Sub Label3_Click()
frmMain.Show
Unload Me
frmMain.mnjiaoyi.Enabled = False
End Sub

⌨️ 快捷键说明

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