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

📄 atpcbxh.dsr

📁 餐饮管理系统数据库设计文档 表名:bzqbj(保质期报警表) 字段名 字段类型 字段长度 (0表示不允许NULL
💻 DSR
字号:
VERSION 5.00
Begin {82282820-C017-11D0-A87C-00A0C90F29FC} atpcbxh 
   Caption         =   "成本消耗"
   ClientHeight    =   11010
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   15240
   StartUpPosition =   3  'Windows Default
   WindowState     =   2  'Maximized
   _ExtentX        =   26882
   _ExtentY        =   19420
   SectionData     =   "atpcbxh.dsx":0000
End
Attribute VB_Name = "atpcbxh"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private sumkin As Double

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.dtccbxh.Recordset.RecordCount = 0 Then
        MsgBox "这段时间内没有成本消耗!", vbInformation, "成本消耗"
        Unload atpcbxh
        Exit Sub
    End If

    With Me.dtccbxh.Recordset
        sumkin = sumkin + Val(.Fields("cgj")) * Val(.Fields("cksl"))

        Field2 = Fields("ckid")
        Field3 = Fields("ylbm")
        Field4 = Fields("ylmc")
        Field5 = Fields("dw")
        Field6 = Format(Fields("cgj"), "#,##0.00")
        Field7 = Format(Fields("cksl"), "0.00")
        Field8 = Format(Val(Fields("cgj")) * Val(Fields("cksl")), "#,##0.00")
        Field9 = Format(Fields("cksj"), "YYYY-MM-DD")
        Field10 = Format(Fields("cksj"), "hh:mm:ss")
        
    End With

End Sub

Private Sub GroupFooter1_Format()
    FldSum = Format(sumkin, kfmtc)
End Sub

Private Sub PageHeader_Format()

    Label2 = "出库单号"
    Label3 = "商品编号"
    Label4 = "商品名称"
    Label5 = "供 货 商"
    Label6 = "采购单价"
    Label7 = "出库数量"
    Label8 = "出库金额"
    Label9 = "出库日期"
    Label10 = "出库时间"
    
End Sub


⌨️ 快捷键说明

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