frmpddate.frm

来自「通用书店管理系统」· FRM 代码 · 共 101 行

FRM
101
字号
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmPDDate 
   Caption         =   "盘点时间"
   ClientHeight    =   1860
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   3510
   LinkTopic       =   "Form1"
   ScaleHeight     =   1860
   ScaleWidth      =   3510
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton cmdCancel 
      Height          =   450
      Left            =   2325
      Picture         =   "frmPDDate.frx":0000
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   1095
      Width           =   945
   End
   Begin VB.CommandButton cmdOk 
      Height          =   450
      Left            =   1035
      Picture         =   "frmPDDate.frx":14E4
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   1095
      Width           =   915
   End
   Begin MSComCtl2.DTPicker dtpPDdate 
      Height          =   375
      Left            =   1410
      TabIndex        =   3
      Top             =   405
      Width           =   1860
      _ExtentX        =   3281
      _ExtentY        =   661
      _Version        =   393216
      CustomFormat    =   "yyyy-mm-dd"
      Format          =   24444929
      CurrentDate     =   37333
   End
   Begin VB.Label Label1 
      Caption         =   "盘点日期:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   11.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   450
      Left            =   60
      TabIndex        =   0
      Top             =   480
      Width           =   1320
   End
End
Attribute VB_Name = "frmPDDate"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public strWindowCaption As String

Private Sub cmdCancel_Click()
  Unload Me
End Sub

Private Sub CmdOk_Click()
  
  Select Case strWindowCaption
    Case "盘点信息录入"
      frmPDInput.strDate = dtpPDdate.Value
      Unload Me
      frmPDInput.Show
    Case "历史库存查询"
      frmHistoryStorageQuery.strDate = Format(dtpPDdate.Value, "yyyy-mm-dd")
      Unload Me
      frmHistoryStorageQuery.Show
  End Select
  
End Sub

Private Sub Form_Load()

  dtpPDdate.Value = Format(Date, "yyyy-mm-dd")
  
  Select Case strWindowCaption
    Case "盘点信息录入"
      Label1.Caption = "盘点时间:"
    Case "历史库存查询"
      Label1.Caption = "历史库存:"
  End Select
End Sub

⌨️ 快捷键说明

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