📄 cx_yddk_yddh.frm
字号:
VERSION 5.00
Begin VB.Form cx_yddk_yddh
ClientHeight = 1440
ClientLeft = 3420
ClientTop = 4320
ClientWidth = 3975
ControlBox = 0 'False
LinkTopic = "Form1"
LockControls = -1 'True
ScaleHeight = 1440
ScaleWidth = 3975
Begin VB.TextBox m_ydd_h
BackColor = &H00FFFFFF&
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 270
Left = 2040
MaxLength = 12
TabIndex = 0
Text = "123456789012"
Top = 360
Width = 1335
End
Begin VB.Label MSG
AutoSize = -1 'True
BackColor = &H80000018&
ForeColor = &H00FF0000&
Height = 180
Left = 2400
TabIndex = 1
Top = 120
Width = 90
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H00C0FFFF&
Caption = "请输入预订单号:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 210
Left = 120
TabIndex = 2
Top = 360
Width = 1710
End
Begin VB.Label Label2
BackColor = &H80000018&
Height = 1455
Left = 0
TabIndex = 3
ToolTipText = "预定单前缀:散客 SK 团队 TD 长包 CB"
Top = 0
Width = 3975
End
End
Attribute VB_Name = "cx_yddk_yddh"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim rec As Recordset
Dim t_f As Boolean
Dim dh As String
Dim t_nam As String
Dim response As String
Private Sub Form_Load()
KeyPreview = True
t_f = False
End Sub
Private Sub m_ydd_h_Change()
MSG.Caption = ""
End Sub
Private Sub m_ydd_h_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
If Not m_ydd_h.Text = "" Then
Set rec = PUB_data.OpenRecordset("SELECT YDD_H FROM YD_YDDK Where Trim(YDD_H)='" & UCase(Trim(m_ydd_h.Text)) & "'", 4)
If Not rec.BOF Then
rec.MoveLast
t_f = True
dh = rec!YDD_H
Unload Me
Else
response = MsgBox("此预订单号不存在,是否重输?", 1, "")
If response = 1 Then
m_ydd_h.SelStart = 0
m_ydd_h.SelLength = Len(Trim(m_ydd_h.Text))
Else
t_f = False
Unload Me
End If
End If
Else
t_f = False
Unload Me
End If
End If
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyEscape Then
t_f = False
Unload Me
End If
End Sub
Public Property Get tf() As Boolean
tf = t_f
End Property
Public Property Let tf(t As Boolean)
t = tf
End Property
Public Property Get yd_h() As String
yd_h = dh
End Property
Public Property Let yd_h(ydd As String)
ydd = yd_h
End Property
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -