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

📄 frmmerch.frm

📁 小型超市管理系统.
💻 FRM
📖 第 1 页 / 共 3 页
字号:
         Top             =   2280
         Width           =   2655
      End
      Begin VB.Shape Shape4 
         BackColor       =   &H006A240A&
         BackStyle       =   1  'Opaque
         BorderStyle     =   0  'Transparent
         Height          =   270
         Left            =   30
         Top             =   4125
         Width           =   2655
      End
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   8760
      Top             =   5520
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   24
      ImageHeight     =   16
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   4
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMerch.frx":0198
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMerch.frx":2098
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMerch.frx":3F98
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMerch.frx":5E98
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin SuperMarket.FCombo cboPage 
      Height          =   300
      Left            =   15360
      TabIndex        =   3
      Top             =   7770
      Width           =   1215
      _extentx        =   2143
      _extenty        =   529
      font            =   "frmMerch.frx":7D98
      listindex       =   -1
      enabledtext     =   0   'False
      enabledtext     =   0   'False
   End
   Begin VB.PictureBox PicTop 
      BackColor       =   &H00808080&
      BorderStyle     =   0  'None
      Height          =   450
      Left            =   45
      ScaleHeight     =   30
      ScaleMode       =   3  'Pixel
      ScaleWidth      =   452
      TabIndex        =   0
      TabStop         =   0   'False
      Top             =   45
      Width           =   6780
      Begin VB.Image imgIcon 
         Height          =   480
         Left            =   60
         Top             =   -15
         Width           =   480
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "商品管理"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FFFFFF&
         Height          =   210
         Left            =   600
         TabIndex        =   1
         Top             =   120
         Width           =   900
      End
   End
   Begin MSComctlLib.ListView List1 
      Height          =   3975
      Left            =   240
      TabIndex        =   2
      Top             =   1140
      Width           =   4320
      _ExtentX        =   7620
      _ExtentY        =   7011
      View            =   3
      LabelEdit       =   1
      MultiSelect     =   -1  'True
      LabelWrap       =   -1  'True
      HideSelection   =   0   'False
      FullRowSelect   =   -1  'True
      GridLines       =   -1  'True
      _Version        =   393217
      SmallIcons      =   "ImageList1"
      ForeColor       =   -2147483640
      BackColor       =   -2147483643
      Appearance      =   1
      NumItems        =   8
      BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Text            =   "名称"
         Object.Width           =   2646
      EndProperty
      BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   1
         Text            =   "价格"
         Object.Width           =   1587
      EndProperty
      BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   2
         Text            =   "条形码"
         Object.Width           =   2646
      EndProperty
      BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   3
         Text            =   "库存数"
         Object.Width           =   1349
      EndProperty
      BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   4
         Text            =   "打折"
         Object.Width           =   979
      EndProperty
      BeginProperty ColumnHeader(6) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Alignment       =   2
         SubItemIndex    =   5
         Text            =   "状态"
         Object.Width           =   1191
      EndProperty
      BeginProperty ColumnHeader(7) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   6
         Text            =   "厂商"
         Object.Width           =   2117
      EndProperty
      BeginProperty ColumnHeader(8) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   7
         Text            =   "供应商"
         Object.Width           =   2117
      EndProperty
   End
   Begin SuperMarket.XButton cmdFirst 
      Height          =   300
      Left            =   15120
      TabIndex        =   4
      Top             =   7530
      Visible         =   0   'False
      Width           =   300
      _extentx        =   529
      _extenty        =   529
      caption         =   ""
      mousedowncolor  =   12363422
      mouseoncolor    =   14204854
      stylecolor      =   6956042
      style3dcolor1   =   6956042
      style3dcolor2   =   6956042
      style           =   1
      font            =   "frmMerch.frx":7DBC
      picture         =   "frmMerch.frx":7DE0
   End
   Begin SuperMarket.XButton cmdNext 
      Height          =   300
      Left            =   13560
      TabIndex        =   5
      Top             =   210
      Width           =   300
      _extentx        =   529
      _extenty        =   529
      caption         =   ""
      mousedowncolor  =   12363422
      mouseoncolor    =   14204854
      stylecolor      =   6956042
      style3dcolor1   =   6956042
      style3dcolor2   =   6956042
      style           =   1
      font            =   "frmMerch.frx":837A
      picture         =   "frmMerch.frx":839E
   End
   Begin SuperMarket.XButton cmdLast 
      Height          =   300
      Left            =   15360
      TabIndex        =   6
      Top             =   7560
      Width           =   300
      _extentx        =   529
      _extenty        =   529
      caption         =   ""
      mousedowncolor  =   12363422
      mouseoncolor    =   14204854
      stylecolor      =   6956042
      style3dcolor1   =   6956042
      style3dcolor2   =   6956042
      style           =   1
      font            =   "frmMerch.frx":8938
      picture         =   "frmMerch.frx":895C
   End
   Begin SuperMarket.XButton cmdPre 
      Height          =   300
      Left            =   15480
      TabIndex        =   7
      Top             =   7530
      Visible         =   0   'False
      Width           =   300
      _extentx        =   529
      _extenty        =   529
      caption         =   ""
      mousedowncolor  =   12363422
      mouseoncolor    =   14204854
      stylecolor      =   6956042
      style3dcolor1   =   6956042
      style3dcolor2   =   6956042
      style           =   1
      font            =   "frmMerch.frx":8EF6
      picture         =   "frmMerch.frx":8F1A
   End
   Begin SuperMarket.XPButton cmdDel 
      Height          =   345
      Left            =   2400
      TabIndex        =   8
      Top             =   660
      Width           =   975
      _extentx        =   1720
      _extenty        =   609
      caption         =   "删除(&D)"
      capalign        =   2
      backstyle       =   2
      font            =   "frmMerch.frx":94B4
      mode            =   0
      value           =   0   'False
      cback           =   -2147483633
   End
   Begin SuperMarket.XPButton cmdEdit 
      Height          =   345
      Left            =   1320
      TabIndex        =   9
      Top             =   660
      Width           =   975
      _extentx        =   1720
      _extenty        =   609
      caption         =   "修改(&E)"
      capalign        =   2
      backstyle       =   2
      font            =   "frmMerch.frx":94D8
      mode            =   0
      value           =   0   'False
      cback           =   -2147483633
   End
   Begin SuperMarket.XPButton cmdAdd 
      Height          =   345
      Left            =   240
      TabIndex        =   10
      Top             =   660
      Width           =   975
      _extentx        =   1931
      _extenty        =   609
      caption         =   "添加(&A)"
      capalign        =   2
      backstyle       =   2
      font            =   "frmMerch.frx":94FC
      mode            =   0
      value           =   0   'False
      cback           =   -2147483633
   End
End
Attribute VB_Name = "frmMerch"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Dim strCurSQL1 As String, strCurSQL2 As String, strCurSQL3 As String
Dim lngCurPageSize As Long
Dim NoChangeSQL As Boolean
Public xChangeItem As String

Private Sub cboFactory_Click()
    ChangeSQL
End Sub

Private Sub ChangeSQL()
    If NoChangeSQL Then Exit Sub
    strCurSQL2 = "Where "
    If cboFactory.ListIndex > 0 Then strCurSQL2 = strCurSQL2 & "FactoryName='" & cboFactory.Text & "' and "
    If cboProvide.ListIndex > 0 Then strCurSQL2 = strCurSQL2 & "ProvideName='" & cboProvide.Text & "' and "
    Select Case cboState.ListIndex
    Case 1
        strCurSQL2 = strCurSQL2 & "SalesProPrice is not null and SalesProDateS<='" & Date & "' and SalesProDateE>='" & Date & "' and "
    Case 2
        strCurSQL2 = strCurSQL2 & "MerchNum<=CautionNum and "
    Case 3
        strCurSQL2 = strCurSQL2 & "AllowSale=0 and "
    End Select
    LoadMerchSQL strCurSQL1 & strCurSQL2 & strCurSQL3, 1, lngCurPageSize
End Sub

Private Sub cboPage_Click()
    If cboPage.Enabled = False Then Exit Sub
    If cboPage.ListIndex = 0 Then
        LoadMerchSQL strCurSQL1 & strCurSQL2 & strCurSQL3, 1
    Else
        LoadMerchSQL strCurSQL1 & strCurSQL2 & strCurSQL3, cboPage.ListIndex, lngCurPageSize
    End If
End Sub

Private Sub cboProvide_Click()
    ChangeSQL
End Sub

Private Sub cboState_Click()
    ChangeSQL
End Sub

Private Sub cmdAdd_Click()
    If lstFactory.ListCount <= 0 Or lstProvide.ListCount <= 0 Then
        If MsgBox("添加商品之前,您必须分别拥有至少一个的厂商或供货商。" & vbCrLf & vbCrLf & "现在马上添加厂商或供货商?", vbInformation + vbOKCancel) = vbOK Then
            frmMain.cmdLeft_Click (4)
        End If
        Exit Sub
    End If
    xChangeItem = ""
    frmMerchItem.Show 1
End Sub

Private Sub cmdASale_Click(Index As Integer)
'On Error GoTo aaaa

⌨️ 快捷键说明

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