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

📄 main_jlcx_ztfwcx.frm

📁 一个比较完整的数据库编程技巧”洗浴管理系统“
💻 FRM
📖 第 1 页 / 共 2 页
字号:
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column05 
         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 Column06 
         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 Column07 
         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 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
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
            ColumnWidth     =   585.071
         EndProperty
         BeginProperty Column01 
            ColumnWidth     =   540.284
         EndProperty
         BeginProperty Column02 
            ColumnWidth     =   794.835
         EndProperty
         BeginProperty Column03 
            ColumnWidth     =   810.142
         EndProperty
         BeginProperty Column04 
            ColumnWidth     =   1140.095
         EndProperty
         BeginProperty Column05 
            ColumnWidth     =   524.976
         EndProperty
         BeginProperty Column06 
            ColumnWidth     =   510.236
         EndProperty
         BeginProperty Column07 
            ColumnWidth     =   494.929
         EndProperty
         BeginProperty Column08 
            ColumnWidth     =   810.142
         EndProperty
         BeginProperty Column09 
            ColumnWidth     =   1814.74
         EndProperty
         BeginProperty Column10 
            ColumnWidth     =   555.024
         EndProperty
         BeginProperty Column11 
            ColumnWidth     =   959.811
         EndProperty
      EndProperty
   End
   Begin VB.Label Labzj 
      BackStyle       =   0  'Transparent
      ForeColor       =   &H00FF0000&
      Height          =   240
      Left            =   5625
      TabIndex        =   4
      Top             =   3960
      Width           =   2145
   End
   Begin VB.Label Labzd 
      BackStyle       =   0  'Transparent
      ForeColor       =   &H000000FF&
      Height          =   240
      Left            =   3255
      TabIndex        =   3
      Top             =   3960
      Width           =   1395
   End
   Begin VB.Label Labdd 
      BackStyle       =   0  'Transparent
      ForeColor       =   &H00FF0000&
      Height          =   240
      Left            =   900
      TabIndex        =   2
      Top             =   3945
      Width           =   1395
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "点单金额:                赠单金额:                金额总计:"
      Height          =   225
      Left            =   30
      TabIndex        =   1
      Top             =   3975
      Width           =   8040
   End
End
Attribute VB_Name = "main_jlcx_ztfwcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Activate()
'添加查询字段列表
 Combo1.AddItem ("箱号")
 Combo1.AddItem ("所在大厅")
 Combo1.AddItem ("项目编号")
 Combo1.AddItem ("名称")
 Combo1.ListIndex = 0
 '统计点单金额、赠单金额、金额总计
 Adodc2.RecordSource = "select 消费状态 as 状态1,sum(金额小计)as 金额合计 from 临时消费信息表 group by 消费状态 order by 消费状态"
 Adodc2.Refresh
 If Adodc2.Recordset.RecordCount > 1 Then
  Labdd.Caption = Format(Val(Adodc2.Recordset.Fields(1)), "0.00")
  If Adodc2.Recordset.EOF = False Then Adodc2.Recordset.MoveNext
  Labzd.Caption = Format(Val(Adodc2.Recordset.Fields(1)), "0.00")
 ElseIf Adodc2.Recordset.RecordCount = 1 Then
  If Adodc2.Recordset.Fields(0) = "赠单" Then
   Labzd.Caption = Format(Val(Adodc2.Recordset.Fields(1)), "0.00")
   Labdd.Caption = "0.00"
  Else
   Labdd.Caption = Format(Val(Adodc2.Recordset.Fields(1)), "0.00")
   Labzd.Caption = "0.00"
  End If
 End If
 Labzj.Caption = Format(Val(Labdd.Caption) + Val(Labzd.Caption), "0.00")
End Sub
Private Sub Form_Load()
 Me.Caption = Me.Caption & "     操作员: " & frm_main.St1.Panels(3).Text
End Sub
Private Sub Form_Unload(Cancel As Integer)
 frm_main.Enabled = True
End Sub
Private Sub CmdFind_Click()     '查询统计临时消费信息
 Adodc1.RecordSource = "select * from 临时消费信息表 where 临时消费信息表." & Combo1.Text & " like + '" + Text1.Text + "'+'%' order by 记录号"
 Adodc1.Refresh
 Adodc2.RecordSource = "select 消费状态 as 状态1,sum(金额小计)as 金额合计 from 临时消费信息表 where 临时消费信息表." & Combo1.Text & " like + '" + Text1.Text + "'+'%' group by 消费状态 order by 消费状态"
 Adodc2.Refresh
 If Adodc2.Recordset.RecordCount > 1 Then
  Labdd.Caption = Format(Val(Adodc2.Recordset.Fields(1)), "0.00")
  If Adodc2.Recordset.EOF = False Then Adodc2.Recordset.MoveNext
  Labzd.Caption = Format(Val(Adodc2.Recordset.Fields(1)), "0.00")
 ElseIf Adodc2.Recordset.RecordCount = 1 Then
  If Adodc2.Recordset.Fields(0) = "赠单" Then
   Labzd.Caption = Format(Val(Adodc2.Recordset.Fields(1)), "0.00")
   Labdd.Caption = "0.00"
  Else
   Labdd.Caption = Format(Val(Adodc2.Recordset.Fields(1)), "0.00")
   Labzd.Caption = "0.00"
  End If
 End If
 Labzj.Caption = Format(Val(Labdd.Caption) + Val(Labzd.Caption), "0.00")
End Sub
Private Sub CmdEnd_Click()
 frm_main.Enabled = True
 Unload Me
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
  If KeyAscii = vbKeyReturn Then CmdFind.SetFocus
End Sub

⌨️ 快捷键说明

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