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

📄 frmyh_yhdzcxtjlr.frm

📁 一个用VB写的财务软件源码
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomct2.ocx"
Begin VB.Form frmYH_Yhdzcxtjlr 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "条件设定"
   ClientHeight    =   930
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4560
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   930
   ScaleWidth      =   4560
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取消"
      Height          =   315
      Left            =   3510
      TabIndex        =   3
      Top             =   495
      Width           =   945
   End
   Begin VB.CommandButton cmdok 
      Caption         =   "确定"
      Height          =   315
      Left            =   3510
      TabIndex        =   2
      Top             =   90
      Width           =   945
   End
   Begin VB.TextBox Text1 
      Height          =   240
      Left            =   1800
      TabIndex        =   1
      Text            =   "Text1"
      Top             =   540
      Width           =   735
   End
   Begin MSComCtl2.DTPicker DTP1 
      Height          =   285
      Left            =   1350
      TabIndex        =   0
      Top             =   90
      Width           =   1260
      _ExtentX        =   2223
      _ExtentY        =   503
      _Version        =   393216
      Format          =   23658497
      CurrentDate     =   37554
   End
   Begin VB.Label Label2 
      Caption         =   "天"
      Height          =   255
      Left            =   2565
      TabIndex        =   6
      Top             =   540
      Width           =   375
   End
   Begin VB.Label Label1 
      Caption         =   "到截止日期超过天数"
      Height          =   255
      Left            =   90
      TabIndex        =   5
      Top             =   540
      Width           =   1665
   End
   Begin VB.Label lblzhqx 
      Caption         =   "截 止 日 期"
      Height          =   255
      Left            =   135
      TabIndex        =   4
      Top             =   135
      Width           =   1095
   End
End
Attribute VB_Name = "frmYH_Yhdzcxtjlr"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit


Public OK As Boolean
Private Sub cmdCancel_Click()
OK = False
Me.Hide
End Sub

Private Sub cmdOk_Click()
Dim rstTemp As ADODB.Recordset
Dim sSQL As String
OK = False
Set rstTemp = New ADODB.Recordset
    rstTemp.CursorLocation = adUseClient
    If g_FLAT = "ORACLE" Then
        sSQL = "SELECT * FROM tZW_Yhdzqyrq where rownum<2"
    Else
        sSQL = "SELECT top 1 * FROM tZW_Yhdzqyrq "
    End If
    rstTemp.Open sSQL, glo.cnnMain, adOpenStatic, adLockReadOnly
    If rstTemp.EOF Or rstTemp.BOF Then
     MsgBox "对账系统尚未启动!", , "提示"
     Exit Sub
     Else
        If DTP1.Value < rstTemp!qyrq Then
          MsgBox "您选择的日期有误!", , "警告"
          Exit Sub
        Else
            If Text1.text = "" Or IsNumeric(Text1.text) = False Then
              MsgBox "请输入天数!", , "提示"
              Exit Sub
            Else
                If CDbl(Text1.text) < 30000 Then
                    OK = True
                    Me.Hide
                Else
                    MsgBox "天数不能大于30000!"
                    Exit Sub
                End If
            End If
    End If
End If
End Sub

Private Sub DTP1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
  Text1.SetFocus
  End If
End Sub

Private Sub form_load()
 DTP1.Value = Format(glo.sOperateDate, "yyyy-MM-dd")
 Text1.text = ""
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
  cmdOk.SetFocus
End If
KeyAscii = IntegerEnabled(KeyAscii)
End Sub

⌨️ 快捷键说明

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