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

📄 frmappointment.frm

📁 星级酒店管理系统VB源代码
💻 FRM
📖 第 1 页 / 共 3 页
字号:
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column05 
            DataField       =   "会谈纪要"
            Caption         =   "会谈纪要"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column06 
            DataField       =   "开始时间"
            Caption         =   "开始时间"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column07 
            DataField       =   "结束时间"
            Caption         =   "结束时间"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column08 
            DataField       =   "参加人员"
            Caption         =   "参加人员"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column09 
            DataField       =   "重要性"
            Caption         =   "重要性"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column10 
            DataField       =   "雇员"
            Caption         =   "雇员"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         BeginProperty Column11 
            DataField       =   "状态"
            Caption         =   "状态"
            BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
               Type            =   0
               Format          =   ""
               HaveTrueFalseNull=   0
               FirstDayOfWeek  =   0
               FirstWeekOfYear =   0
               LCID            =   2052
               SubFormatType   =   0
            EndProperty
         EndProperty
         SplitCount      =   1
         BeginProperty Split0 
            BeginProperty Column00 
               ColumnWidth     =   1094.74
            EndProperty
            BeginProperty Column01 
               ColumnWidth     =   1094.74
            EndProperty
            BeginProperty Column02 
               ColumnWidth     =   2085.166
            EndProperty
            BeginProperty Column03 
               ColumnWidth     =   2085.166
            EndProperty
            BeginProperty Column04 
               ColumnWidth     =   2085.166
            EndProperty
            BeginProperty Column05 
               ColumnWidth     =   2085.166
            EndProperty
            BeginProperty Column06 
               ColumnWidth     =   2085.166
            EndProperty
            BeginProperty Column07 
               ColumnWidth     =   2085.166
            EndProperty
            BeginProperty Column08 
               ColumnWidth     =   2085.166
            EndProperty
            BeginProperty Column09 
               ColumnWidth     =   1094.74
            EndProperty
            BeginProperty Column10 
               ColumnWidth     =   2085.166
            EndProperty
            BeginProperty Column11 
               ColumnWidth     =   2085.166
            EndProperty
         EndProperty
      End
      Begin VB.Label Label1 
         BackColor       =   &H00808000&
         Caption         =   "操作步骤:先添加后保存"
         Height          =   3015
         Left            =   7020
         TabIndex        =   4
         Top             =   600
         Width           =   2355
      End
      Begin VB.Label lblLabels 
         Caption         =   "会谈纪要:"
         Height          =   255
         Index           =   5
         Left            =   -74940
         TabIndex        =   2
         Top             =   420
         Width           =   1815
      End
   End
   Begin MSAdodcLib.Adodc datPrimaryRS 
      Align           =   2  'Align Bottom
      Height          =   330
      Left            =   0
      Top             =   7035
      Visible         =   0   'False
      Width           =   9585
      _ExtentX        =   16907
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   1
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "PROVIDER=MSDASQL;dsn=DM;uid=;pwd=;"
      OLEDBString     =   "PROVIDER=MSDASQL;dsn=DM;uid=;pwd=;"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   $"frmAppointment.frx":034F
      Caption         =   " "
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
End
Attribute VB_Name = "frmAppointment"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub DataCombo1_Change()
    txtFields(9).Text = DataCombo1.BoundText
End Sub

Private Sub DataCombo2_Change()
    txtFields(2).Text = DataCombo2.BoundText
End Sub

Private Sub DTPicker1_Change()
    txtFields(1).Text = DTPicker1.Value
End Sub

Private Sub DTPicker2_Change()
    txtFields(3).Text = DTPicker2.Hour & ":" & DTPicker2.Minute
End Sub

Private Sub DTPicker3_Change()
    txtFields(7).Text = DTPicker3.Hour & ":" & DTPicker3.Minute
End Sub

Private Sub Form_Unload(Cancel As Integer)
  Screen.MousePointer = vbDefault
End Sub

Private Sub datPrimaryRS_Error(ByVal ErrorNumber As Long, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, fCancelDisplay As Boolean)
  '错误处理程序代码置于此处
  '想要忽略错误,注释掉下一行
  '想要捕获它们,在此添加代码以处理它们
  'MsgBox "Data error event hit err:" & Description
End Sub

Private Sub datPrimaryRS_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
  '为这个 recordset 显示当前记录位置
  datPrimaryRS.Caption = "Record: " & CStr(datPrimaryRS.Recordset.AbsolutePosition)
End Sub

Private Sub datPrimaryRS_WillChangeRecord(ByVal adReason As ADODB.EventReasonEnum, ByVal cRecords As Long, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
  '验证代码置于此处
  '下列动作发生时该事件被调用
  Dim bCancel As Boolean

  Select Case adReason
  Case adRsnAddNew
  Case adRsnClose
  Case adRsnDelete
  Case adRsnFirstChange
  Case adRsnMove
  Case adRsnRequery
  Case adRsnResynch
  Case adRsnUndoAddNew
  Case adRsnUndoDelete
  Case adRsnUndoUpdate
  Case adRsnUpdate
  End Select

  If bCancel Then adStatus = adStatusCancel
End Sub

Private Sub cmdAdd_Click()
  On Error GoTo AddErr
  datPrimaryRS.Recordset.AddNew

  txtFields(10).Text = GetSetting("wlf", "DM", "UserName", Default:="")
  Exit Sub
AddErr:
  MsgBox Err.Description
End Sub

Private Sub cmdDelete_Click()
  On Error GoTo DeleteErr
  With datPrimaryRS.Recordset
    .Delete
    .MoveNext
    If .EOF Then .MoveLast
  End With
  Exit Sub
DeleteErr:
  MsgBox Err.Description
End Sub


Private Sub cmdUpdate_Click()
  On Error GoTo UpdateErr

  datPrimaryRS.Recordset.MovePrevious
  datPrimaryRS.Recordset.MoveNext
  DataGrid1.Refresh
  Exit Sub
UpdateErr:
  MsgBox Err.Description
End Sub

Private Sub cmdClose_Click()
  Unload fMainForm.ActiveForm
  fMainForm.Picture2.Visible = True
End Sub

Private Sub OptionStatus_Click(Index As Integer)
    Label2.Caption = OptionStatus(Index).Caption
End Sub

Private Sub txtFields_LostFocus(Index As Integer)
    txtFields(Index).BackColor = vbWhite
    txtFields(Index).ForeColor = vbBlack
End Sub
Private Sub txtFields_GotFocus(Index As Integer)
    txtFields(Index).BackColor = vbBlue
    txtFields(Index).ForeColor = vbWhite

End Sub

Private Sub txtFields_Validate(Index As Integer, Cancel As Boolean)
    Dim temps As String
    
    Select Case Index
    Case 9
        If txtFields(Index).Text = "" Then
           MsgBox "该项目必须填写,请重新输入。", vbCritical, "We Link Zone."
           txtFields(Index).SetFocus
        Else
            temps = txtFields(Index).Text
            txtFields(Index).Text = temps
        End If
    Case 1, 3, 5, 6, 7
        If txtFields(Index).Text = "" Then
            MsgBox "该项目必须填写,请重新输入。", vbCritical, "We Link Zone."
            txtFields(Index).SetFocus
        End If
    Case Else
        Exit Sub
    End Select
End Sub

⌨️ 快捷键说明

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