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

📄 main_htgl_jhcxtj.frm

📁 餐饮企业的管理系统主要包括前台管理、后台管理、财务管理、报表打印等功能
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      EndProperty
      BeginProperty Column08 
         DataField       =   "供应商"
         Caption         =   "供应商"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column09 
         DataField       =   "操作员"
         Caption         =   "操作员"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column10 
         DataField       =   "经手人"
         Caption         =   "经手人"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column11 
         DataField       =   "日期"
         Caption         =   "日期"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column12 
         DataField       =   "票号"
         Caption         =   "票号"
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
            ColumnWidth     =   1140.095
         EndProperty
         BeginProperty Column01 
            ColumnWidth     =   1709.858
         EndProperty
         BeginProperty Column02 
            ColumnWidth     =   645.165
         EndProperty
         BeginProperty Column03 
            ColumnWidth     =   810.142
         EndProperty
         BeginProperty Column04 
            ColumnWidth     =   629.858
         EndProperty
         BeginProperty Column05 
            ColumnWidth     =   1140.095
         EndProperty
         BeginProperty Column06 
            ColumnWidth     =   915.024
         EndProperty
         BeginProperty Column07 
            ColumnWidth     =   854.929
         EndProperty
         BeginProperty Column08 
            ColumnWidth     =   1604.976
         EndProperty
         BeginProperty Column09 
            ColumnWidth     =   689.953
         EndProperty
         BeginProperty Column10 
            ColumnWidth     =   810.142
         EndProperty
         BeginProperty Column11 
            ColumnWidth     =   1005.165
         EndProperty
         BeginProperty Column12 
            ColumnWidth     =   1604.976
         EndProperty
      EndProperty
   End
   Begin VB.Frame Frame3 
      Caption         =   "Frame3"
      Height          =   1230
      Left            =   1470
      TabIndex        =   0
      Top             =   2400
      Visible         =   0   'False
      Width           =   2745
      Begin MSAdodcLib.Adodc Adodc2 
         Height          =   360
         Left            =   450
         Top             =   780
         Width           =   1905
         _ExtentX        =   3360
         _ExtentY        =   635
         ConnectMode     =   0
         CursorLocation  =   3
         IsolationLevel  =   -1
         ConnectionTimeout=   15
         CommandTimeout  =   30
         CursorType      =   3
         LockType        =   3
         CommandType     =   8
         CursorOptions   =   0
         CacheSize       =   50
         MaxRecords      =   0
         BOFAction       =   0
         EOFAction       =   0
         ConnectStringType=   1
         Appearance      =   1
         BackColor       =   -2147483643
         ForeColor       =   -2147483640
         Orientation     =   0
         Enabled         =   -1
         Connect         =   ""
         OLEDBString     =   ""
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   ""
         Caption         =   "Adodc2"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         _Version        =   393216
      End
      Begin MSAdodcLib.Adodc Adodc1 
         Height          =   330
         Left            =   465
         Top             =   255
         Width           =   1830
         _ExtentX        =   3228
         _ExtentY        =   582
         ConnectMode     =   0
         CursorLocation  =   3
         IsolationLevel  =   -1
         ConnectionTimeout=   15
         CommandTimeout  =   30
         CursorType      =   3
         LockType        =   3
         CommandType     =   8
         CursorOptions   =   0
         CacheSize       =   50
         MaxRecords      =   0
         BOFAction       =   0
         EOFAction       =   0
         ConnectStringType=   1
         Appearance      =   1
         BackColor       =   -2147483643
         ForeColor       =   -2147483640
         Orientation     =   0
         Enabled         =   -1
         Connect         =   ""
         OLEDBString     =   ""
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   ""
         Caption         =   "Adodc1"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         _Version        =   393216
      End
   End
End
Attribute VB_Name = "main_htgl_jhcxtj"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Public Sub eval()     '定义赋值函数
 If Adodc2.Recordset.Fields(0) <> "" Then Labpz.Caption = Adodc2.Recordset.Fields(0) Else Labpz.Caption = 0
 If Adodc2.Recordset.Fields(1) <> "" Then Labsl.Caption = Adodc2.Recordset.Fields(1) Else Labsl.Caption = 0
 If Adodc2.Recordset.Fields(2) <> "" Then Labje.Caption = Format(Adodc2.Recordset.Fields(2), "0.00") Else Labje.Caption = "0.00"
End Sub
Private Sub Form_Activate()
 '向combo1添加查询项目列表
 Combo1.AddItem ("商品编号")
 Combo1.AddItem ("商品名称")
 Combo1.AddItem ("票号")
 Combo1.ListIndex = 1
 '向combo2添加查询条件列表
 Combo2.AddItem ("like")
 Combo2.AddItem ("=")
 Combo2.ListIndex = 0
 '汇总记录、数量、金额
 Sql = "select count(*)as 品种,sum(数量)as 数量1,sum(金额)as 金额1 from 进货表"
 Call FunAdo(Adodc2, Sql)
 Adodc2.Refresh
  Call eval     '调用函数
 Me.Caption = Me.Caption & "    " & frm_main.St1.Panels(3).text
End Sub

Private Sub Form_Load()
    Sql = "select * from 进货表"
    Call FunAdo(Adodc1, Sql)
    Call FunAdo(Adodc2, Sql)
End Sub

Private Sub Form_Unload(Cancel As Integer)
  frm_main.Enabled = True
End Sub
Private Sub Comfind_Click()                    '查询并汇总进货信息
 If Check1(0).Value = 0 And Check1(1).Value = 1 Then
   Select Case Combo2.text
    Case Is = "like"
      Sql = "select * from 进货表 where (进货表." & Combo1.text & " like'%'+ '" + Text1.text + "'+'%')"
      Call FunAdo(Adodc1, Sql)
      Adodc1.Refresh
      sqlStr = "select count(*)as pz,sum(数量)as 数量1,sum(金额)as 金额1 from 进货表 where (进货表." & Combo1.text & " like +'%'+ '" + Text1.text + "'+'%')"
      Call FunAdo(Adodc2, sqlStr)
      Adodc2.Refresh
    Case Is = "="
      Sql = "select * from 进货表 where (进货表." & Combo1.text & " = '" + Text1.text + "')"
      Call FunAdo(Adodc1, Sql)
      Adodc1.Refresh
      sqlStr = "select count(*)as pz,sum(数量)as 数量1,sum(金额)as 金额1 from 进货表 where (进货表." & Combo1.text & " = '" + Text1.text + "')"
      Call FunAdo(Adodc2, sqlStr)
      Adodc2.Refresh
   End Select
  End If
  If Check1(0).Value = 1 And Check1(1).Value = 0 Then
   Sql = "select * from 进货表 where 进货表.日期 between '" + Str(DTP1.Value) + "'AND '" + Str(DTP2.Value) + "'"
   Call FunAdo(Adodc1, Sql)
   Adodc1.Refresh
   sqlStr = "select count(*)as pz,sum(数量)as 数量1,sum(金额)as 金额1 from 进货表 where 进货表.日期 between '" + Str(DTP1.Value) + "'AND '" + Str(DTP2.Value) + "'"
   Call FunAdo(Adodc2, sqlStr)
   Adodc2.Refresh
  End If
  If Check1(0).Value = 1 And Check1(1).Value = 1 Then
   Select Case Combo2.text
    Case Is = "like"
      Sql = "select * from 进货表 where (进货表." & Combo1.text & " like'%'+ '" + Text1.text + "'+'%'and 进货表.日期 between '" + Str(DTP1.Value) + "'AND '" + Str(DTP2.Value) + "')"
      Call FunAdo(Adodc1, Sql)
      Adodc1.Refresh
      sqlStr = "select count(*)as pz,sum(数量)as 数量1,sum(金额)as 金额1 from 进货表 where (进货表." & Combo1.text & " like +'%'+ '" + Text1.text + "'+'%'and 进货表.日期 between '" + Str(DTP1.Value) + "'AND '" + Str(DTP2.Value) + "')"
      Call FunAdo(Adodc2, sqlStr)
      Adodc2.Refresh
    Case Is = "="
      Sql = "select * from 进货表 where (进货表." & Combo1.text & " = '" + Text1.text + "'and 进货表.日期 between '" + Str(DTP1.Value) + "'AND '" + Str(DTP2.Value) + "')"
      Call FunAdo(Adodc1, Sql)
      Adodc1.Refresh
      sqlStr = "select count(*)as pz,sum(数量)as 数量1,sum(金额)as 金额1 from 进货表 where (进货表." & Combo1.text & " = '" + Text1.text + "'and 进货表.日期 between '" + Str(DTP1.Value) + "'AND '" + Str(DTP2.Value) + "')"
      Call FunAdo(Adodc2, sqlStr)
      Adodc2.Refresh
   End Select
  End If
  Call eval     '调用函数
End Sub
Private Sub comend_Click()
  frm_main.Enabled = True
  Unload Me
End Sub



⌨️ 快捷键说明

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