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

📄 frmcostrep.frm

📁 用VB6.0编写的关于车辆运输调度的系统
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmRepCost 
   Caption         =   "Form1"
   ClientHeight    =   4365
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6720
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   9
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   ScaleHeight     =   4365
   ScaleWidth      =   6720
   Begin VB.CommandButton cmdexit 
      Caption         =   "Exit"
      Height          =   375
      Left            =   4320
      TabIndex        =   3
      Top             =   3120
      Width           =   975
   End
   Begin VB.CommandButton cmdprint 
      Caption         =   "Print"
      Height          =   375
      Left            =   2760
      TabIndex        =   2
      Top             =   3120
      Width           =   975
   End
   Begin VB.CommandButton cmdpreview 
      Caption         =   "Preview"
      Height          =   375
      Left            =   1200
      TabIndex        =   1
      Top             =   3120
      Width           =   975
   End
   Begin VB.Frame Frame1 
      Caption         =   "Printing Criteria:"
      Height          =   2535
      Left            =   360
      TabIndex        =   0
      Top             =   240
      Width           =   5655
      Begin MSComCtl2.DTPicker DTPicker2 
         Height          =   375
         Left            =   3000
         TabIndex        =   10
         Top             =   1320
         Width           =   1335
         _ExtentX        =   2355
         _ExtentY        =   661
         _Version        =   393216
         Format          =   24510465
         CurrentDate     =   37136
      End
      Begin MSComCtl2.DTPicker DTPicker1 
         Height          =   375
         Left            =   960
         TabIndex        =   5
         Top             =   1320
         Width           =   1335
         _ExtentX        =   2355
         _ExtentY        =   661
         _Version        =   393216
         Format          =   24510465
         CurrentDate     =   37136
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   960
         TabIndex        =   4
         Top             =   480
         Width           =   1815
      End
      Begin VB.Label Label4 
         Caption         =   "To"
         Height          =   255
         Left            =   2520
         TabIndex        =   9
         Top             =   1440
         Width           =   255
      End
      Begin VB.Label Label3 
         Caption         =   "From"
         Height          =   255
         Left            =   360
         TabIndex        =   8
         Top             =   1440
         Width           =   375
      End
      Begin VB.Label Label2 
         Caption         =   "Date:"
         Height          =   255
         Left            =   360
         TabIndex        =   7
         Top             =   1080
         Width           =   495
      End
      Begin VB.Label Label1 
         Caption         =   "Truck No:"
         Height          =   255
         Left            =   120
         TabIndex        =   6
         Top             =   600
         Width           =   855
      End
   End
End
Attribute VB_Name = "frmRepCost"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub cmdexit_Click()
Unload Me
End Sub

Private Sub cmdpreview_Click()
Dim truckno As String
Dim ldate, ldate1 As Date
    Set DataEnv = New DataEnv
    truckno = Text1.Text
    ldate = Format(DTPicker1.Value, "yyyy-mm-dd")
    ldate1 = Format(DTPicker2.Value, "yyyy-mm-dd")
    DataEnv.CmdCost_Grouping truckno, getdate(ldate), getdate(ldate1)
    RepCost.Show
    

End Sub

 Private Function getdate(ByVal sdate As Date) As Long
    
    getdate = CLng(Mid(sdate, 1, 4) & Mid(sdate, 6, 2) & Mid(sdate, 9, 2))
    
 End Function

Private Sub cmdprint_Click()
Dim truckno As String
Dim ldate, ldate1 As Date
    Set DataEnv = New DataEnv
    truckno = Text1.Text
    ldate = Format(DTPicker1.Value, "yyyy-mm-dd")
    ldate1 = Format(DTPicker2.Value, "yyyy-mm-dd")
    DataEnv.CmdCost_Grouping truckno, getdate(ldate), getdate(ldate1)
    RepCost.PrintReport False, rptRangeAllPages
    
    
End Sub

Private Sub Form_Load()
    Text1.SetFocus
End Sub

⌨️ 快捷键说明

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