📄 开户日期.frm
字号:
VERSION 5.00
Object = "{A0C292A3-118E-11D2-AFDF-000021730160}#1.0#0"; "UFEDIT.OCX"
Begin VB.Form frmOpenDate
BorderStyle = 3 'Fixed Dialog
Caption = "开户日期"
ClientHeight = 1800
ClientLeft = 2310
ClientTop = 3255
ClientWidth = 3285
ControlBox = 0 'False
Icon = "开户日期.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1800
ScaleWidth = 3285
ShowInTaskbar = 0 'False
Begin VB.CommandButton cmdcancel
Cancel = -1 'True
Height = 365
Left = 1975
Style = 1 'Graphical
TabIndex = 5
Top = 1245
Width = 1080
End
Begin VB.CommandButton cmdfind
Default = -1 'True
Height = 365
Left = 765
Style = 1 'Graphical
TabIndex = 4
Top = 1245
Width = 1080
End
Begin VB.Frame Frame1
Height = 990
Left = 225
TabIndex = 0
Top = 105
Width = 2835
Begin VB.CommandButton cmdQxcz
Height = 270
Left = 2220
Style = 1 'Graphical
TabIndex = 3
TabStop = 0 'False
Top = 420
Width = 270
End
Begin EDITLib.Edit txtDate
Height = 270
Left = 1080
TabIndex = 2
Top = 420
Width = 1035
_Version = 65536
_ExtentX = 1826
_ExtentY = 476
_StockProps = 253
ForeColor = 0
BackColor = 16777215
Appearance = 1
Property = 5
MaxLength = 10
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "开户日期"
Height = 180
Left = 180
TabIndex = 1
Top = 465
Width = 720
End
End
End
Attribute VB_Name = "frmOpenDate"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'软件著作权: 北京用友软件集团有限公司
'系统名称: 资金管理8.0
'功能说明: 账户开户日期
'作者: 魏小黎
Option Explicit
Private Sub cmdcancel_Click()
View_Tref = ""
Unload Me
End Sub
Private Sub cmdfind_Click()
If txtDate.Text = "" Then
Beep
MsgBox "开户日期不能为空,请检查!", vbCritical, zjGl_Name
txtDate.SetFocus
Exit Sub
Else
txtDate.Text = ForDate(txtDate.Text)
If Not IsDate(txtDate.Text) Then
Beep
MsgBox "日期非法,请检查!", vbCritical, zjGl_Name
SetTxtFocus txtDate
Exit Sub
End If
If CDate(txtDate.Text) > zjLogInfo.curDate Or CDate(txtDate.Text) < ZjAccInfo.zjStartdate Then
Beep
MsgBox "开户日期不能大于登录日期或小于系统启用日期!", vbCritical, zjGl_Name
SetTxtFocus txtDate
Exit Sub
End If
If Pd_lldmer(View_Tref, txtDate.Text, True) Then
SetTxtFocus txtDate
Exit Sub
End If
View_Tref = txtDate.Text
Unload Me
End If
End Sub
Private Sub cmdQxcz_Click()
DisplayCalendar Me.txtDate, Me.hWnd, Frame1.Left, Frame1.Top
txtDate.SetFocus
End Sub
Private Sub Form_Load()
CenterForm Me
Me.Icon = LoadResPicture(109, vbResIcon)
cmdQxcz.Picture = LoadResPicture(1108, vbResBitmap)
txtDate.Text = Format(zjLogInfo.curDate, "yyyy-mm-dd")
cmdfind.Picture = LoadResPicture(103, vbResBitmap)
cmdCancel.Picture = LoadResPicture(104, vbResBitmap)
SetEdtTxtFocus txtDate
End Sub
Private Sub txtDate_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = 113 Then 'F2
DisplayCalendar Me.txtDate, Me.hWnd, Frame1.Left, Frame1.Top
txtDate.SetFocus
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -