atpcdfx.dsr

来自「餐饮管理系统数据库设计文档 表名:bzqbj(保质期报警表) 字段名 字段」· DSR 代码 · 共 70 行

DSR
70
字号
VERSION 5.00
Begin {82282820-C017-11D0-A87C-00A0C90F29FC} atpcdfx 
   Caption         =   "菜  单  分  析"
   ClientHeight    =   11010
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   15240
   StartUpPosition =   3  'Windows Default
   WindowState     =   2  'Maximized
   _ExtentX        =   26882
   _ExtentY        =   19420
   SectionData     =   "atpcdfx.dsx":0000
End
Attribute VB_Name = "atpcdfx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub ActiveReport_ReportStart()
    Me.Printer.Orientation = ddOPortrait '??
    Me.Printer.PaperSize = vbPRPSA4
'    Me.PageSettings.BottomMargin = 1200
'    Me.PageSettings.LeftMargin = 900
'    Me.PageSettings.RightMargin = 600
'    Me.PageSettings.TopMargin = 1200
End Sub
Private Sub Detail_Format()
On Error Resume Next

    If Me.dtccdfx.Recordset.RecordCount = 0 Then
        MsgBox "这段时间内没有销售任何菜肴!", vbInformation, "菜单分析"
        Unload atpcdfx
        Exit Sub
    End If

    With Me.dtccdfx.Recordset
        Field2 = Fields("cid")
        Field3 = Fields("cdid")
        Field4 = Fields("mc")
        Field5 = Fields("lsl")
        
         If Fields("sftj") = 0 Then
                Field6 = Format(Fields("lsl") * Fields("price"), kfmtc)
            Else
                Field6 = Format(Fields("lsl") * Fields("tj"), kfmtc)
            
            End If
           
        Field6 = Fields("cnt")

    End With
            
End Sub

Private Sub PageHeader_Format()

    
    Label2 = "编号"
    Label3 = "菜单编号"
    Label4 = "菜单名称"
    Label5 = "销售总数"
    Label6 = "销售总金额"


End Sub



⌨️ 快捷键说明

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