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

📄 frmprint.frm

📁 小型企业进销存源代码 一款小型企业进销存源代码
💻 FRM
📖 第 1 页 / 共 2 页
字号:
         EndProperty
         ForeColor       =   16711680
         MouseOverColor  =   65535
         ScaleWidth      =   97
         ScaleMode       =   0
         ScaleHeight     =   17
         BackStyle       =   0
      End
      Begin as97Popup.asPopup asPopup10 
         Height          =   255
         Left            =   -74760
         Top             =   120
         Width           =   1215
         _ExtentX        =   2143
         _ExtentY        =   450
         CustomPicture   =   "frmPrint.frx":1D40
         Caption         =   "打印检索"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   16711680
         MouseOverColor  =   65535
         ScaleWidth      =   81
         ScaleMode       =   0
         ScaleHeight     =   17
         BackStyle       =   0
      End
      Begin as97Popup.asPopup asPopup11 
         Height          =   255
         Left            =   240
         Top             =   120
         Width           =   1215
         _ExtentX        =   2143
         _ExtentY        =   450
         CustomPicture   =   "frmPrint.frx":22DA
         Caption         =   "打印检索"
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   16711680
         MouseOverColor  =   65535
         ScaleWidth      =   81
         ScaleMode       =   0
         ScaleHeight     =   17
         BackStyle       =   0
      End
   End
   Begin MSComCtl2.DTPicker DTPicker1 
      Height          =   255
      Left            =   2280
      TabIndex        =   3
      Top             =   960
      Width           =   2055
      _ExtentX        =   3625
      _ExtentY        =   450
      _Version        =   393216
      CustomFormat    =   "MM-dd-yyyy"
      Format          =   25559043
      CurrentDate     =   37369
   End
   Begin MSComCtl2.DTPicker DTPicker2 
      Height          =   255
      Left            =   4440
      TabIndex        =   4
      Top             =   960
      Width           =   2055
      _ExtentX        =   3625
      _ExtentY        =   450
      _Version        =   393216
      CustomFormat    =   "MM-dd-yyyy"
      Format          =   25559043
      CurrentDate     =   37369
   End
   Begin VB.Image Image1 
      BorderStyle     =   1  'Fixed Single
      Height          =   3975
      Left            =   600
      Top             =   1200
      Width           =   1575
   End
   Begin VB.Image imgTitleMinimize 
      Height          =   195
      Left            =   8520
      Picture         =   "frmPrint.frx":2874
      Top             =   840
      Width           =   195
   End
   Begin VB.Image imgTitleClose 
      Height          =   195
      Left            =   8520
      Picture         =   "frmPrint.frx":2ABE
      Top             =   600
      Width           =   195
   End
   Begin VB.Image imgTitleHelp 
      Height          =   195
      Left            =   8520
      Picture         =   "frmPrint.frx":2D08
      Top             =   240
      Width           =   195
   End
   Begin VB.Label lblTitle 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "数据报表"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFFFFF&
      Height          =   240
      Left            =   7440
      TabIndex        =   0
      Top             =   1200
      Width           =   1020
   End
   Begin VB.Image imgTitleMain 
      Height          =   450
      Left            =   7080
      Picture         =   "frmPrint.frx":2F52
      Stretch         =   -1  'True
      Top             =   600
      Width           =   285
   End
   Begin VB.Image imgWindowBottomRight 
      Height          =   450
      Left            =   8160
      Picture         =   "frmPrint.frx":369C
      Top             =   120
      Width           =   285
   End
   Begin VB.Image imgWindowRight 
      Height          =   450
      Left            =   8160
      Picture         =   "frmPrint.frx":3DE6
      Stretch         =   -1  'True
      Top             =   600
      Width           =   285
   End
   Begin VB.Image imgWindowLeft 
      Height          =   450
      Left            =   7800
      Picture         =   "frmPrint.frx":4530
      Stretch         =   -1  'True
      Top             =   600
      Width           =   285
   End
   Begin VB.Image imgWindowBottom 
      Height          =   450
      Left            =   7440
      Picture         =   "frmPrint.frx":4C7A
      Stretch         =   -1  'True
      Top             =   600
      Width           =   285
   End
   Begin VB.Image imgWindowBottomLeft 
      Height          =   450
      Left            =   7800
      Picture         =   "frmPrint.frx":53C4
      Top             =   120
      Width           =   285
   End
   Begin VB.Image imgTitleRight 
      Height          =   450
      Left            =   7440
      Picture         =   "frmPrint.frx":5B0E
      Top             =   120
      Width           =   285
   End
   Begin VB.Image imgTitleLeft 
      Height          =   450
      Left            =   7080
      Picture         =   "frmPrint.frx":6258
      Top             =   120
      Width           =   285
   End
End
Attribute VB_Name = "frmPrint"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居汉化收藏整理
'发布日期:2007/05/02
'描    述:小型企业进销存源代码
'网    站:http://www.Mndsoft.com/  (VB6源码博客)
'网    站:http://www.VbDnet.com/   (VB.NET源码博客,主要基于.NET2005)
'e-mail  :Mndsoft@163.com
'e-mail  :Mndsoft@126.com
'OICQ    :88382850
'          如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************

Private Sub asPopup1_Click(Cancel As Boolean)
If DataEnvironment1.rsCommand2.State <> adStateClosed Then
        DataEnvironment1.rsCommand2.Close
    End If
    
    ' 读取 Text1 设定给参数一
      DataEnvironment1.Commands("Command2").Parameters(0) = CStr(DTPicker1.Value)
    ' 读取 Text2 设定给参数二
      DataEnvironment1.Commands("Command2").Parameters(1) = CStr(DTPicker2.Value)

    DataGrid1.DataMember = "Command2"
    Set DataGrid1.DataSource = DataEnvironment1
End Sub

Private Sub asPopup10_Click(Cancel As Boolean)
If DataEnvironment1.rsCommand1.State <> adStateClosed Then
        DataEnvironment1.rsCommand1.Close
    End If
    
    ' 读取 Text1 设定给参数一
      DataEnvironment1.Commands("Command1").Parameters(0) = CStr(DTPicker1.Value)
    ' 读取 Text2 设定给参数二
      DataEnvironment1.Commands("Command1").Parameters(1) = CStr(DTPicker2.Value)

    DataGrid1.DataMember = "Command1"
    Set DataGrid1.DataSource = DataEnvironment1
DataReport2.Show
    DataReport2.Sections(2).Controls("Label13").Caption = "开始时间:" & CStr(DTPicker1.Value)
    DataReport2.Sections(2).Controls("Label14").Caption = "结束时间:" & CStr(DTPicker2.Value)
End Sub

Private Sub asPopup11_Click(Cancel As Boolean)
If DataEnvironment1.rsCommand2.State <> adStateClosed Then
        DataEnvironment1.rsCommand2.Close
    End If
    
    ' 读取 Text1 设定给参数一
      DataEnvironment1.Commands("Command2").Parameters(0) = CStr(DTPicker1.Value)
    ' 读取 Text2 设定给参数二
      DataEnvironment1.Commands("Command2").Parameters(1) = CStr(DTPicker2.Value)

    DataGrid1.DataMember = "Command2"
    Set DataGrid1.DataSource = DataEnvironment1
DataReport3.Show
DataReport3.Sections(2).Controls("Label13").Caption = "开始时间:" & CStr(DTPicker1.Value)
DataReport3.Sections(2).Controls("Label14").Caption = "结束时间:" & CStr(DTPicker2.Value)
End Sub

Private Sub asPopup2_Click(Cancel As Boolean)
If DataEnvironment1.rsCommand1.State <> adStateClosed Then
        DataEnvironment1.rsCommand1.Close
    End If
    
    ' 读取 Text1 设定给参数一
      DataEnvironment1.Commands("Command1").Parameters(0) = CStr(DTPicker1.Value)
    ' 读取 Text2 设定给参数二
      DataEnvironment1.Commands("Command1").Parameters(1) = CStr(DTPicker2.Value)

    DataGrid1.DataMember = "Command1"
    Set DataGrid1.DataSource = DataEnvironment1
End Sub

Private Sub asPopup5_Click(Cancel As Boolean)
SSTab1.Tab = 0
asPopup5.BackColor = &HFFC0C0
asPopup6.BackColor = &H8000000F
asPopup7.BackColor = &H8000000F
asPopup8.BackColor = &H8000000F
End Sub

Private Sub asPopup6_Click(Cancel As Boolean)
SSTab1.Tab = 1
asPopup5.BackColor = &H8000000F
asPopup6.BackColor = &HFFC0C0
asPopup7.BackColor = &H8000000F
asPopup8.BackColor = &H8000000F
End Sub

Private Sub asPopup7_Click(Cancel As Boolean)
SSTab1.Tab = 2
asPopup5.BackColor = &H8000000F
asPopup6.BackColor = &H8000000F
asPopup7.BackColor = &HFFC0C0
asPopup8.BackColor = &H8000000F
End Sub

Private Sub asPopup8_Click(Cancel As Boolean)
SSTab1.Tab = 3
asPopup5.BackColor = &H8000000F
asPopup6.BackColor = &H8000000F
asPopup7.BackColor = &H8000000F
asPopup8.BackColor = &HFFC0C0
End Sub

Private Sub Form_Load()
 MakeWindow Me
   ' AlwaysOnTop Me, True
Me.Top = 主窗体.Height / 2 - Me.Height / 2 - 1000
Me.Left = 主窗体.Width / 2 - Me.Width / 2
DTPicker1.Value = Date
DTPicker2.Value = Date
SSTab1.Tab = 0
asPopup5.BackColor = &HFFC0C0
asPopup6.BackColor = &H8000000F
asPopup7.BackColor = &H8000000F
asPopup8.BackColor = &H8000000F
End Sub

Private Sub imgTitleClose_Click()
Unload Me
End Sub

Private Sub imgTitleLeft_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
    DoDrag Me
End Sub

Private Sub imgTitleMain_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
    DoDrag Me
End Sub

Private Sub imgTitleMinimize_Click()
    Me.WindowState = 1
End Sub

Private Sub imgTitleRight_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
    DoDrag Me
End Sub

Private Sub lblTitle_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
    DoDrag Me
End Sub

⌨️ 快捷键说明

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