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

📄 frm_adddate.frm

📁 这是个进销存管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form frm_addDate 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "请选择查询日期"
   ClientHeight    =   1875
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4335
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1875
   ScaleWidth      =   4335
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton cmdExit 
      Caption         =   "退出"
      Height          =   360
      Left            =   2880
      TabIndex        =   5
      Top             =   1410
      Width           =   1245
   End
   Begin VB.CommandButton cmdDate 
      Caption         =   "确  定"
      Height          =   360
      Left            =   1650
      TabIndex        =   4
      Top             =   1410
      Width           =   1245
   End
   Begin VB.Frame Frame1 
      Height          =   1215
      Left            =   150
      TabIndex        =   0
      Top             =   75
      Width           =   3915
      Begin MSComCtl2.DTPicker DTPicker2 
         Height          =   330
         Left            =   2295
         TabIndex        =   1
         Top             =   630
         Width           =   1395
         _ExtentX        =   2461
         _ExtentY        =   582
         _Version        =   393216
         Format          =   23724033
         CurrentDate     =   38753
      End
      Begin MSComCtl2.DTPicker DTPicker1 
         Height          =   330
         Left            =   285
         TabIndex        =   2
         Top             =   615
         Width           =   1395
         _ExtentX        =   2461
         _ExtentY        =   582
         _Version        =   393216
         Format          =   23724033
         CurrentDate     =   38416
      End
      Begin MSDataListLib.DataCombo DataCombo2 
         Height          =   330
         Left            =   1590
         TabIndex        =   6
         Top             =   195
         Visible         =   0   'False
         Width           =   2115
         _ExtentX        =   3731
         _ExtentY        =   582
         _Version        =   393216
         ListField       =   ""
         BoundColumn     =   ""
         Text            =   ""
      End
      Begin VB.Label Label5 
         Alignment       =   2  'Center
         AutoSize        =   -1  'True
         Caption         =   "选择商品名称:"
         Height          =   180
         Left            =   285
         TabIndex        =   7
         Top             =   255
         Visible         =   0   'False
         Width           =   1275
      End
      Begin VB.Label Label1 
         Caption         =   "至"
         Height          =   210
         Left            =   1875
         TabIndex        =   3
         Top             =   660
         Width           =   285
      End
   End
   Begin MSAdodcLib.Adodc Adodc2 
      Height          =   330
      Left            =   105
      Top             =   1380
      Visible         =   0   'False
      Width           =   1815
      _ExtentX        =   3201
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc2"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
End
Attribute VB_Name = "frm_addDate"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdDate_Click()
  If frm_unitsList.u = 1 Then
     frm_accountBook.Show  '窗体的 Show方法 显示指定的窗体
  End If
  If frm_saleStatus.p = 1 Then
     frm_saleStatus_book.Show  '窗体的 Show方法 显示指定的窗体
  End If
  If frm_Stock.Stock = 1 Then
      Frm_stockBook.Show  '窗体的 Show方法 显示指定的窗体
  End If
  If frm_stockChangeTb.Tb = 1 Then
      Frm_stockBook.Show  '窗体的 Show方法 显示指定的窗体
  End If
  frm_addDate.Hide
End Sub
Private Sub cmdExit_Click()
  If frm_saleStatus.p = 1 Then Unload Me: frm_saleStatus.p = 222 '在初始化另外一个值,否则重复使用窗体。会将多余的窗体调出
  If frm_unitsList.u = 1 Then Unload Me: frm_unitsList.u = 222
  If frm_Stock.Stock = 1 Then Unload Me: frm_Stock.Stock = 222: DataCombo2.Visible = False: Label5.Visible = False
  Unload Me
End Sub
Private Sub Form_Load()
  Adodc2.ConnectionString = PublicStr
  Adodc2.RecordSource = "select * from tbS_stock"
  Adodc2.Refresh
  Set DataCombo2.DataSource = Adodc2
  Set DataCombo2.RowSource = Adodc2
  DataCombo2.ListField = "fullname"
  DTPicker1.Value = Format(Date, "yyyy-mm-dd")   '将系统当前日期格式化长日期格式,供程序使用
  DTPicker2.Value = Format(Date, "yyyy-mm-dd")   '将系统当前日期格式化长日期格式,供程序使用
End Sub

Private Sub Form_Unload(Cancel As Integer)
  If frm_saleStatus.p = 1 Then Unload Me: frm_saleStatus.p = 222 '在初始化另外一个值,否则重复使用窗体。会将多余的窗体调出
  If frm_unitsList.u = 1 Then Unload Me: frm_unitsList.u = 222
  If frm_Stock.Stock = 1 Then Unload Me: frm_Stock.Stock = 222: DataCombo2.Visible = False: Label5.Visible = False
End Sub

⌨️ 快捷键说明

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