📄 frmfloor.frm
字号:
Begin VB.CommandButton CmdLoss
Caption = "挂失"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3720
TabIndex = 18
Top = 1320
Width = 975
End
Begin VB.TextBox TxtICNumber
Enabled = 0 'False
Height = 375
Left = 1320
TabIndex = 12
Top = 1320
Width = 2415
End
Begin VB.TextBox TxtName
Height = 375
Left = 1320
MaxLength = 8
TabIndex = 7
Top = 3720
Width = 1335
End
Begin VB.TextBox TxtIDCard
Height = 375
Left = 3360
MaxLength = 18
TabIndex = 8
Top = 3720
Width = 4455
End
Begin VB.TextBox TxtRemark
Height = 1095
Left = 1320
MaxLength = 255
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 9
Top = 4680
Width = 6495
End
Begin VB.CommandButton CmdAccept
Caption = "发行"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 6000
TabIndex = 10
Top = 1440
Width = 1335
End
Begin VB.CommandButton CmdCancel
Caption = "取消"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 6000
TabIndex = 11
Top = 2160
Width = 1335
End
Begin VB.ComboBox CboBuildingNumber
Height = 330
Left = 1320
TabIndex = 0
Top = 1920
Width = 1455
End
Begin VB.ComboBox CboFloorNumber
Height = 330
Left = 3480
TabIndex = 1
Top = 1920
Width = 1575
End
Begin VB.Label LblHeader
Alignment = 2 'Center
Caption = "发行楼层卡"
BeginProperty Font
Name = "隶书"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1320
TabIndex = 46
Top = 120
Width = 4095
End
Begin VB.Line Line1
X1 = 1200
X2 = 5400
Y1 = 720
Y2 = 720
End
Begin VB.Label Label2
Caption = "帐号"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 600
TabIndex = 45
Top = 4200
Visible = 0 'False
Width = 495
End
Begin VB.Label Label3
Caption = "终止时间"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 240
TabIndex = 43
Top = 3240
Width = 975
End
Begin VB.Label LblValidDate
Caption = "起始时间"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 240
TabIndex = 42
Top = 2640
Width = 975
End
Begin VB.Label LblName
Caption = "持卡人"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 600
TabIndex = 20
Top = 3840
Width = 735
End
Begin VB.Label LblICNumber
Caption = "卡号"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 600
TabIndex = 17
Top = 1320
Width = 855
End
Begin VB.Label LblIDCard
Caption = "证件"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 2760
TabIndex = 16
Top = 3720
Width = 735
End
Begin VB.Label Label4
Caption = "备注"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 600
TabIndex = 15
Top = 4800
Width = 735
End
Begin VB.Label LblBuildingNumber
Caption = "楼号"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 600
TabIndex = 14
Top = 1920
Width = 615
End
Begin VB.Label Label7
Caption = "层号"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3000
TabIndex = 13
Top = 1920
Width = 615
End
End
Attribute VB_Name = "FrmOutFloor"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'************************
'* 功能:获得默认的有效日期,时间
'* 作者:韩国栋
'* 时间:2000-2-12
'************************
Sub ValidDate()
gValidBeginDate = Date
gValidEndDate = Date + 1
TxtYear(0).Text = Year(Date)
TxtMonth(0).Text = Right("00" & Month(Date), 2)
TxtDay(0).Text = Right("00" & Day(Date), 2)
TxtYear(1).Text = Year(gValidEndDate)
TxtMonth(1).Text = Right("00" & Month(gValidEndDate), 2)
TxtDay(1).Text = Right("00" & Day(gValidEndDate), 2)
TxtHour.Text = Right("00" & Hour(Time), 2)
TxtMinute.Text = Right("00" & Minute(Time), 2)
TxtHour1.Text = Right("00" & Hour(gCheckOutTime), 2)
TxtMinute1.Text = Right("00" & Minute(gCheckOutTime), 2)
End Sub
'****************************
'* 功能:更新有效时间gValidBeginTime1~gValidEndTime3 and gValidBeginDate
'* 韩国栋
'* 时间:2000-02-11
'****************************
Function gValidTimeRefresh() As Boolean
On Error GoTo ErrHand:
gValidTimeRefresh = True
gValidBeginDate = Format(TxtYear(0).Text & "-" & TxtMonth(0).Text & "-" & TxtDay(0), "yyyy-mm-dd")
gValidEndDate = Format(TxtYear(1).Text & "-" & TxtMonth(1).Text & "-" & TxtDay(1), "yyyy-mm-dd")
gValidBeginTime1 = Format(TxtHour.Text & ":" & TxtMinute.Text & ":00", "hh:mm:ss")
gValidEndTime1 = Format(TxtHour1.Text & ":" & TxtMinute1.Text & ":00", "hh:mm:ss")
If (gValidEndDate < gValidBeginDate) Then
gValidTimeRefresh = False
MsgBox "Sorry,起始日期比终止日期大!", vbInformation + vbOKOnly, "错误"
Exit Function
End If
If (gValidEndDate = gValidBeginDate) Then
If gValidEndTime1 < gValidBeginTime1 Then
gValidTimeRefresh = False
MsgBox "Sorry,起始时间比终止时间大!", vbInformation + vbOKOnly, "错误"
Exit Function
End If
End If
gValidTimeRefresh = True
Exit Function
ErrHand:
gValidTimeRefresh = False
MsgBox "Sorry,有效期输入错误!", vbInformation + vbOKOnly, "错误"
End Function
Sub gICPropertyGetValue()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -