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

📄 main_ysyf_lsgzcx.frm

📁 根据餐饮行业的特点和该企业的实际情况
💻 FRM
📖 第 1 页 / 共 2 页
字号:
            Strikethrough   =   0   'False
         EndProperty
         _Version        =   393216
      End
      Begin MSDataGridLib.DataGrid DataGrid1 
         Bindings        =   "main_ysyf_lsgzcx.frx":0000
         Height          =   3390
         Left            =   75
         TabIndex        =   1
         Top             =   210
         Width           =   10455
         _ExtentX        =   18441
         _ExtentY        =   5980
         _Version        =   393216
         AllowUpdate     =   -1  'True
         HeadLines       =   1
         RowHeight       =   15
         FormatLocked    =   -1  'True
         BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ColumnCount     =   8
         BeginProperty Column00 
            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 Column01 
            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 Column02 
            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 Column03 
            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 Column04 
            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 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
         SplitCount      =   1
         BeginProperty Split0 
            BeginProperty Column00 
               ColumnWidth     =   1649.764
            EndProperty
            BeginProperty Column01 
               ColumnWidth     =   1904.882
            EndProperty
            BeginProperty Column02 
               ColumnWidth     =   1800
            EndProperty
            BeginProperty Column03 
               ColumnWidth     =   810.142
            EndProperty
            BeginProperty Column04 
               ColumnWidth     =   689.953
            EndProperty
            BeginProperty Column05 
               ColumnWidth     =   1335.118
            EndProperty
            BeginProperty Column06 
               ColumnWidth     =   1035.213
            EndProperty
            BeginProperty Column07 
               ColumnWidth     =   824.882
            EndProperty
         EndProperty
      End
   End
End
Attribute VB_Name = "main_ysyf_lsgzcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rs1 As New ADODB.Recordset     '定义数据集对象
Private Sub Form_Activate()
 DT2.Value = Date
 DT1.Value = DT2.Value - 365
 '添加挂帐人列表
 rs1.Open "select 挂帐人 from 挂帐历史表 group by 挂帐人", cnn, adOpenKeyset, adLockOptimistic
 If rs1.BOF = False Then rs1.MoveFirst
 For i = 0 To rs1.RecordCount - 1
  Combo1.AddItem (Trim(rs1.Fields("挂帐人")))
  rs1.MoveNext
 Next i
 If Combo1.ListCount > 0 Then Combo1.ListIndex = 0
 rs1.Close
End Sub
Private Sub Comfind_Click()     '查询统计挂帐历史信息
 If Check1.Value = 1 And Check2.Value = 1 Then
  If Combo1.text <> "" Then
    Adodc1.RecordSource = "select * from 挂帐历史表 where 挂帐时间 between '" + Str(DT1.Value) + "'AND '" + Str(DT2.Value) + "'and 挂帐人='" + Trim(Combo1.text) + "'"
    Adodc1.Refresh
    Set DataGrid1.DataSource = Adodc1
    Adodc2.RecordSource = "select count(*)aS 记录,sum(挂帐金额)as 金额合计 from 挂帐历史表 where 挂帐时间 between '" + Str(DT1.Value) + "'AND '" + Str(DT2.Value) + "'and 挂帐人='" + Trim(Combo1.text) + "'"
    Adodc2.Refresh
   Else
    MsgBox "请输入挂帐人!"
  End If
 End If
 If Check1.Value = 1 And Check2.Value = 0 Then
  Adodc1.RecordSource = "select * from 挂帐历史表 where 挂帐时间 between '" + Str(DT1.Value) + "'AND '" + Str(DT2.Value) + "'"
  Adodc1.Refresh
  Set DataGrid1.DataSource = Adodc1
  Adodc2.RecordSource = "select count(*)aS 记录,sum(挂帐金额)as 金额合计 from 挂帐历史表 where 挂帐时间 between '" + Str(DT1.Value) + "'AND '" + Str(DT2.Value) + "'"
  Adodc2.Refresh
 End If
 If Check1.Value = 0 And Check2.Value = 1 Then
  If Combo1.text <> "" Then
   Adodc1.RecordSource = "select * from 挂帐历史表 where 挂帐人='" + Trim(Combo1.text) + "'"
   Adodc1.Refresh
   Set DataGrid1.DataSource = Adodc1
   Adodc2.RecordSource = "select count(*)aS 记录,sum(挂帐金额)as 金额合计 from 挂帐历史表 where 挂帐人='" + Trim(Combo1.text) + "'"
   Adodc2.Refresh
  Else
   MsgBox "请输入挂帐人!"
  End If
 End If
 If Check1.Value = 0 And Check2.Value = 0 Then
  Adodc1.RecordSource = "select * from 挂帐历史表 "
  Adodc1.Refresh
  Set DataGrid1.DataSource = Adodc1
  Adodc2.RecordSource = "select count(*)aS 记录,sum(挂帐金额)as 金额合计 from 挂帐历史表 "
  Adodc2.Refresh
 End If
 If Adodc2.Recordset.Fields(0) <> "" Then Labjl.Caption = Adodc2.Recordset.Fields(0) Else Labjl.Caption = "0"
 If Adodc2.Recordset.Fields(1) <> "" Then Labhjje.Caption = Format(Adodc2.Recordset.Fields(1), "0.00") & " 元" Else Labhjje.Caption = "0.00 元"
End Sub
Private Sub ComView_Click()     '显示点单信息
 Load main_czgl_ddxx
 main_czgl_ddxx.Show
 main_czgl_ddxx.js.text = "4"
 main_ysyf_gzgl.Enabled = False
End Sub
Private Sub comend_Click()
 frm_main.Enabled = True
 Unload Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
 frm_main.Enabled = True
End Sub

⌨️ 快捷键说明

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