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

📄 yx_hyyd.frm

📁 一个简单的酒店管理系统 用VB.net+SQL2000实现
💻 FRM
📖 第 1 页 / 共 5 页
字号:
         Top             =   6840
         Width           =   1575
      End
      Begin VB.CommandButton Cmd2 
         Caption         =   "租用明细(F7)"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   555
         Index           =   4
         Left            =   7680
         Picture         =   "yx_hyyd.frx":0DB2
         TabIndex        =   5
         Top             =   6840
         Width           =   1575
      End
      Begin VB.Timer Timer1 
         Interval        =   1000
         Left            =   240
         Top             =   2400
      End
      Begin MSFlexGridLib.MSFlexGrid FLEX1 
         Height          =   4695
         Left            =   120
         TabIndex        =   0
         Top             =   960
         Width           =   6405
         _ExtentX        =   11298
         _ExtentY        =   8281
         _Version        =   327680
         Rows            =   3
         Cols            =   10
         FixedCols       =   0
         BackColor       =   -2147483624
         FocusRect       =   0
         SelectionMode   =   1
         AllowUserResizing=   3
      End
      Begin VB.Label nam 
         AutoSize        =   -1  'True
         Caption         =   "Label14"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   8880
         TabIndex        =   49
         Top             =   240
         Width           =   855
      End
      Begin VB.Label rec_no 
         AutoSize        =   -1  'True
         Caption         =   "Label14"
         Height          =   180
         Left            =   4680
         TabIndex        =   48
         Top             =   360
         Width           =   630
      End
      Begin VB.Label tab_nam 
         AutoSize        =   -1  'True
         Caption         =   "Label14"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   240
         TabIndex        =   47
         Top             =   240
         Width           =   855
      End
   End
   Begin VB.Frame JZ 
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   600
      Left            =   0
      TabIndex        =   23
      Top             =   8160
      Width           =   9870
      Begin VB.Label JZ_DQSJ2 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   7980
         TabIndex        =   29
         Top             =   240
         Width           =   105
      End
      Begin VB.Label JZ_NAME 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "操作员:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   360
         TabIndex        =   28
         Top             =   240
         Width           =   735
      End
      Begin VB.Label JZ_USER 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   1320
         TabIndex        =   27
         Top             =   240
         Width           =   105
      End
      Begin VB.Label JZ_JRSJ1 
         AutoSize        =   -1  'True
         Caption         =   "进入时间:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   3240
         TabIndex        =   26
         Top             =   240
         Width           =   945
      End
      Begin VB.Label JZ_JRSJ2 
         AutoSize        =   -1  'True
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   4320
         TabIndex        =   25
         Top             =   240
         Width           =   105
      End
      Begin VB.Label JZ_DQSJ1 
         AutoSize        =   -1  'True
         Caption         =   "当前时间:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   6930
         TabIndex        =   24
         Top             =   225
         Width           =   945
      End
   End
   Begin VB.CommandButton Command2 
      Caption         =   "退 出"
      Height          =   555
      Index           =   1
      Left            =   9120
      TabIndex        =   22
      Top             =   6240
      Width           =   1575
   End
   Begin VB.CommandButton Cmd3 
      Caption         =   "退出(ESC)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   555
      Left            =   10080
      TabIndex        =   21
      Top             =   8160
      Width           =   1575
   End
   Begin VB.Label frm_msg 
      BackColor       =   &H8000000A&
      ForeColor       =   &H00FF0000&
      Height          =   495
      Left            =   5520
      TabIndex        =   31
      Top             =   120
      Width           =   6375
   End
   Begin VB.Label Label1 
      BackColor       =   &H00C0C0C0&
      BeginProperty Font 
         Name            =   "黑体"
         Size            =   18
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   0
      TabIndex        =   32
      Top             =   0
      Width           =   11775
   End
End
Attribute VB_Name = "yx_hyyd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim key_index As Integer
Dim t_bt As String
Dim t_fields As Variant
Dim pub_no As Integer
Dim pass As String
Dim t_lock_no As Integer
Dim response As String
Dim response1 As String
Dim t_rec3 As Recordset   'ADDNEW,EDIT,DELETE
Dim t_rec4 As Recordset   'LOCK_NO
Dim t_rec As Recordset    'MSFLEXGRID
Dim t_rec1 As Recordset   '
Dim rec As Recordset
Dim LS_REC1 As Recordset
Dim t_rq As String
Dim T_TJ As String      '筛选条件
Dim hyd_h As String     '传值会议订单号


Private Sub Form_Load()
    Dim sys_uid As String, sys_pwd As String
    JZ_USER = SYS_USER + Space(1) + SYS_NAME
    JZ_JRSJ2 = Time()
    KeyPreview = True
    
    CENTER Me
    Call atfirst
    Set t_rec = YX_data.OpenRecordset("select HY_DDH,ZB_DW,QSRQ,JZRQ,RS,ZJHJ,DF_FT,YDD_H, DF_JS,LXR,LXDH,JBR,LOCK_NO from HY_YDDK", 4)
    If Not t_rec.BOF Then
            t_rec.MoveLast
    End If
    tab_nam.Caption = "会议预订单一览表"
    t_fields = Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
    t_bt = "^ 会议订单号 |^  主办单位名称  |^开会日期 |^ 闭会日期 |^与会人数|^ 租金合计 |^是否订房 |^预订单号 |^ 订房间数 |^ 联系人|  联系电话| ^ 经办人"
    Call pub_memo.Flex_full(FLEX1, t_bt, t_rec, t_fields, 11, Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0))
    rec_no.Caption = "当前记录数:" + CStr(FLEX1.Rows - 1)
End Sub

'确认返回
Private Sub CMD1_Click(Index As Integer)
    Dim error As Integer
    error = 0
    Dim I As Integer
    Select Case Index
    Case 0
        Select Case pass
        Case "0"
            '生成预订单号
            Set rec = YX_data.OpenRecordset("SELECT RQ,HY_NO,LOCK_NO FROM NO WHERE CSTR(RQ)='" & Date & "'", 2, 0, 2)
            If Not rec.BOF Then
                rec.MoveLast
                '加锁
                Do
                    Select Case Pub_lock("YX", "NO", rec)  '判断加锁结果
                        Case "1" '锁定
                            Exit Do
                        Case "2"  '
                            Call Pub_UNlock("NO", rec)
                            Exit Sub
                    End Select
                Loop
                rec.Edit
                    rec!HY_NO = rec!HY_NO + 1
                rec.Update
            End If
'         ^&^&^&^&^&^&^&^&  增加...
            Set t_rec = YX_data.OpenRecordset("select HY_DDH,ZB_DW,QSRQ,JZRQ,RS,ZJHJ,DF_FT,LXR, DF_JS,JBR,LXDH,YDD_H,LOCK_NO from HY_YDDK", 2, 0, 2)
            If Not t_rec.BOF Then
                t_rec.MoveLast
            End If
            t_rec.AddNew
                t_rec!HY_DDH = "HY" & CStr(Format(Date, "yyyymmdd")) & Right("0" & CStr(rec!HY_NO), 2)
                    Dim t_dh As String
                    t_dh = t_rec!HY_DDH
                    If Trim(m_zb_dw.Text) = "" Then

⌨️ 快捷键说明

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