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

📄 gongzuopingjiaxinxi.frm

📁 宾馆在正常的运营中需要对客房资源、顾客信息、结算信息进行管理
💻 FRM
字号:
VERSION 5.00
Begin VB.Form gongzuopingjiaxinxi 
   Caption         =   "工作评价信息"
   ClientHeight    =   6285
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   10140
   Icon            =   "gongzuopingjiaxinxi.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   6285
   ScaleWidth      =   10140
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   495
      Left            =   6840
      TabIndex        =   22
      Top             =   5640
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      Caption         =   "添加/保存"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   1800
      TabIndex        =   21
      Top             =   5640
      Width           =   1455
   End
   Begin VB.Frame Frame3 
      Caption         =   "其他信息"
      Height          =   4455
      Left            =   5040
      TabIndex        =   9
      Top             =   1080
      Width           =   5055
      Begin VB.TextBox Text6 
         Height          =   1200
         Left            =   1320
         TabIndex        =   19
         Top             =   3000
         Width           =   3495
      End
      Begin VB.TextBox Text5 
         Height          =   1200
         Left            =   1320
         TabIndex        =   17
         Top             =   1680
         Width           =   3495
      End
      Begin VB.TextBox Text4 
         Height          =   1200
         Left            =   1320
         TabIndex        =   15
         Top             =   360
         Width           =   3495
      End
      Begin VB.Label Label9 
         Caption         =   "其他2:"
         Height          =   255
         Left            =   360
         TabIndex        =   18
         Top             =   3000
         Width           =   615
      End
      Begin VB.Label Label8 
         Caption         =   "其他1:"
         Height          =   255
         Left            =   360
         TabIndex        =   16
         Top             =   1680
         Width           =   615
      End
      Begin VB.Label Label7 
         Caption         =   "备注:"
         Height          =   255
         Left            =   360
         TabIndex        =   14
         Top             =   360
         Width           =   495
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "工作评价"
      Height          =   4455
      Left            =   0
      TabIndex        =   6
      Top             =   1080
      Width           =   4935
      Begin VB.TextBox Text3 
         Height          =   1200
         Left            =   1200
         TabIndex        =   13
         Top             =   3000
         Width           =   3375
      End
      Begin VB.TextBox Text2 
         Height          =   1200
         Left            =   1200
         TabIndex        =   11
         Top             =   1680
         Width           =   3375
      End
      Begin VB.TextBox Text1 
         Height          =   1200
         Left            =   1200
         TabIndex        =   8
         Top             =   360
         Width           =   3375
      End
      Begin VB.Label Label6 
         Caption         =   "业务水平:"
         Height          =   255
         Left            =   240
         TabIndex        =   12
         Top             =   3000
         Width           =   855
      End
      Begin VB.Label Label5 
         Caption         =   "工作态度:"
         Height          =   255
         Left            =   240
         TabIndex        =   10
         Top             =   1680
         Width           =   855
      End
      Begin VB.Label Label4 
         Caption         =   "工作业绩:"
         Height          =   255
         Left            =   240
         TabIndex        =   7
         Top             =   360
         Width           =   855
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "员工信息"
      Height          =   975
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   10095
      Begin VB.TextBox Text7 
         Height          =   300
         Left            =   5280
         TabIndex        =   23
         Top             =   360
         Width           =   2295
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Index           =   1
         Left            =   3240
         TabIndex        =   4
         Top             =   360
         Width           =   975
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Index           =   0
         Left            =   840
         TabIndex        =   2
         Top             =   360
         Width           =   1095
      End
      Begin VB.Label Label3 
         Caption         =   "时间:"
         Height          =   255
         Left            =   4680
         TabIndex        =   5
         Top             =   360
         Width           =   855
      End
      Begin VB.Label Label2 
         Caption         =   "姓名:"
         Height          =   375
         Left            =   2040
         TabIndex        =   3
         Top             =   360
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "部门:"
         Height          =   255
         Left            =   240
         TabIndex        =   1
         Top             =   360
         Width           =   495
      End
   End
   Begin VB.Label Label10 
      Height          =   615
      Left            =   0
      TabIndex        =   20
      Top             =   5640
      Width           =   10095
   End
End
Attribute VB_Name = "gongzuopingjiaxinxi"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Combo1_Click(Index As Integer)
Set db = OpenDatabase(App.Path & "\员工基本信息")
Set rs = db.OpenRecordset("员工基本信息")
Set rs = db.OpenRecordset("select 姓名 from 员工基本信息 where 部门 ='" & Trim(Combo1(0)) & "'")
Dim i As String
Dim t As Integer
If Index = 0 Then
Combo1(1).Clear
If Not rs.EOF Then
With Combo1(1)
  Do While Not rs.EOF
     .AddItem Trim(rs!姓名)
     rs.MoveNext
     Loop
     ListIndex = 0
     End With
     Command1.Enabled = True
     Else
     MsgBox "please !", vbOKOnly + vbExclamation, "jinggao"
     Command1.Enabled = False
     Exit Sub
     End If
     ElseIf Index = 1 Then
     rs.MoveFirst
     rs.Move Combo1(1).ListIndex
     End If
End Sub

Private Sub Command1_Click()       'OK
Dim db As Database
Dim rs As Recordset
Dim intcount As Integer
Dim a As String
 
    If Text7.Text = "" Then
           MsgBox "时间不能为空!"
           Text7.SetFocus
            Exit Sub
    End If
If Text7.Text <> "" Then
        If Not IsDate(Text7) Then
            MsgBox "时间应输入日期(yyyy-mm-dd)!", vbOKOnly + vbExclamation, "警告"
            Text7.SetFocus
            Exit Sub
        Else
            Text7 = Format(Text7, "yyyy-mm-dd")
        End If
End If

Set db = OpenDatabase(App.Path & "\工作评价信息")
Set rs = db.OpenRecordset("工作评价信息")
a = "delete * from 工作评价信息 where 姓名='" & Trim(Combo1(1)) & "' and  部门='" & Trim(Combo1(0)) & "'"
db.Execute a
Set rs = db.OpenRecordset("select * from 工作评价信息")
rs.AddNew
rs.Fields(0) = Combo1(1)
rs.Fields(1) = Combo1(0)
rs.Fields(2) = Text7
rs.Fields(3) = Text1
rs.Fields(4) = Text2
rs.Fields(5) = Text3
rs.Fields(6) = Text4
rs.Fields(7) = Text5
rs.Fields(8) = Text6
rs.Update
rs.Close
MsgBox "添加成功!"
Combo1(0) = ""
Combo1(1) = ""
Text1 = ""
Text2 = ""
Text3 = ""
Text4 = ""
Text5 = ""
Text6 = ""
Text7 = ""
End Sub

Private Sub Command2_Click()
gongzuopingjiaxinxi.Hide
jiudianneibuziliaocaidan.Show
End Sub

Private Sub Form_Load()
Set db = OpenDatabase(App.Path & "\员工基本信息")
Set rs = db.OpenRecordset("员工基本信息")
Set rs = db.OpenRecordset("select distinct 部门 from 员工基本信息")
 If Not rs.EOF Then
            
                Do While Not rs.EOF
                    Combo1(0).AddItem Trim(rs!部门)
                    rs.MoveNext
                Loop
                Combo1(0).ListIndex = 0
            
        Else
            MsgBox "请先进行员工档案登记!", vbOKOnly + vbExclamation, "警告"
            Command1.Enabled = False
            Exit Sub
        End If

End Sub

⌨️ 快捷键说明

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