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

📄 tbgl.frm

📁 员工考勤工资员工考勤工员工考勤工资资员工考勤工资员工考勤工资员工考勤工资
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form10 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "调班管理"
   ClientHeight    =   3285
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   5175
   LinkTopic       =   "Form10"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   3285
   ScaleWidth      =   5175
   ShowInTaskbar   =   0   'False
   Begin VB.Frame Frame3 
      Height          =   760
      Left            =   120
      TabIndex        =   21
      Top             =   2400
      Width           =   4935
      Begin VB.CommandButton Command2 
         Cancel          =   -1  'True
         Caption         =   "不批准"
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   450
         Left            =   3750
         TabIndex        =   2
         Top             =   195
         Width           =   1000
      End
      Begin VB.CommandButton Command1 
         Caption         =   "批  准"
         Default         =   -1  'True
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   450
         Left            =   2560
         TabIndex        =   1
         Top             =   195
         Width           =   1000
      End
      Begin VB.TextBox Text9 
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   1080
         TabIndex        =   0
         Top             =   240
         Width           =   1310
      End
      Begin VB.Label Label10 
         Caption         =   "批准人:"
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   250
         Left            =   120
         TabIndex        =   22
         Top             =   295
         Width           =   1050
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "调班后"
      ForeColor       =   &H000000FF&
      Height          =   2175
      Left            =   2640
      TabIndex        =   4
      Top             =   120
      Width           =   2415
      Begin VB.TextBox Text8 
         Enabled         =   0   'False
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   840
         TabIndex        =   20
         Top             =   1680
         Width           =   1455
      End
      Begin VB.TextBox Text7 
         Enabled         =   0   'False
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   840
         TabIndex        =   19
         Top             =   1200
         Width           =   1455
      End
      Begin VB.TextBox Text6 
         Enabled         =   0   'False
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   840
         TabIndex        =   18
         Top             =   720
         Width           =   1455
      End
      Begin VB.TextBox Text5 
         Enabled         =   0   'False
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   840
         TabIndex        =   17
         Top             =   240
         Width           =   1455
      End
      Begin VB.Label Label8 
         Caption         =   "班次:"
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   120
         TabIndex        =   12
         Top             =   1733
         Width           =   795
      End
      Begin VB.Label Label7 
         Caption         =   "日期:"
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   250
         Left            =   120
         TabIndex        =   11
         Top             =   1255
         Width           =   800
      End
      Begin VB.Label Label6 
         Caption         =   "姓名:"
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   250
         Left            =   120
         TabIndex        =   10
         Top             =   775
         Width           =   800
      End
      Begin VB.Label Label5 
         Caption         =   "工号:"
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   120
         TabIndex        =   9
         Top             =   293
         Width           =   795
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "调班前"
      ForeColor       =   &H000000FF&
      Height          =   2175
      Left            =   120
      TabIndex        =   3
      Top             =   120
      Width           =   2415
      Begin VB.TextBox Text4 
         Enabled         =   0   'False
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   840
         TabIndex        =   16
         Top             =   1680
         Width           =   1455
      End
      Begin VB.TextBox Text3 
         Enabled         =   0   'False
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   840
         TabIndex        =   15
         Top             =   1200
         Width           =   1455
      End
      Begin VB.TextBox Text2 
         Enabled         =   0   'False
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   840
         TabIndex        =   14
         Top             =   720
         Width           =   1455
      End
      Begin VB.TextBox Text1 
         Enabled         =   0   'False
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   840
         TabIndex        =   13
         Top             =   240
         Width           =   1455
      End
      Begin VB.Label Label4 
         Caption         =   "班次:"
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   120
         TabIndex        =   8
         Top             =   1740
         Width           =   795
      End
      Begin VB.Label Label3 
         Caption         =   "日期:"
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   120
         TabIndex        =   7
         Top             =   1260
         Width           =   795
      End
      Begin VB.Label Label2 
         Caption         =   "姓名:"
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   120
         TabIndex        =   6
         Top             =   780
         Width           =   795
      End
      Begin VB.Label Label1 
         Caption         =   "工号:"
         BeginProperty Font 
            Name            =   "楷体_GB2312"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   120
         TabIndex        =   5
         Top             =   300
         Width           =   795
      End
   End
End
Attribute VB_Name = "Form10"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
   
   Text9.Text = Trim(Text9.Text)
   If Text9.Text = "" Then MsgBox "请输入你的工号!", 48, 消息框: Exit Sub
   
   
   my = "update tiaobanbiao set 是否批准=" & -1 & ",批准工号= '" & Val(Text9.Text) & "'  where 工号=" & Text1.Text & ""
  
   con.BeginTrans
   
   con.Execute my
   

   r = MsgBox("确定要批准吗?", vbYesNo + vbQuestion)
   If r = vbYes Then
      con.CommitTrans
   Else
     
       con.RollbackTrans
   
    End If
    
    
    '????????????????????
    '排班表中也要有改动!
    '????????????????????

End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
rst.Open "select * from tiaobanbiao where 是否批准=" & 0 & "", con
Text1.Text = rst!工号
Text5.Text = rst!工号
Text3.Text = rst!调班前日期
Text7.Text = rst!调班后日期
Text4.Text = rst!调班前班次
Text8.Text = rst!调班后班次
rst.Close

rst.Open "select * from koulingbiao where 工号=" & Val(Text1.Text) & "", con

Text2.Text = rst!姓名
Text6.Text = rst!姓名
rst.Close

Form10.Top = MDIForm1.Height / 5
Form10.Left = MDIForm1.Width / 4



End Sub


⌨️ 快捷键说明

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