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

📄 main_rsgl_rsbd_lr.frm

📁 人事管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form main_rsgl_rsbd_lr 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "添加调动信息"
   ClientHeight    =   2190
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4575
   Icon            =   "main_rsgl_rsbd_lr.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   2190
   ScaleWidth      =   4575
   ShowInTaskbar   =   0   'False
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   -1815
      Top             =   1815
      Visible         =   0   'False
      Width           =   2595
      _ExtentX        =   4577
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_manmanage"
      OLEDBString     =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_manmanage"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "部门表"
      Caption         =   "Adodc1"
      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
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取消"
      Height          =   360
      Left            =   2430
      TabIndex        =   8
      Top             =   1680
      Width           =   1095
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确定"
      Height          =   360
      Left            =   1065
      TabIndex        =   7
      Top             =   1680
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Height          =   1485
      Left            =   75
      TabIndex        =   0
      Top             =   30
      Width           =   4440
      Begin VB.TextBox Text1 
         Height          =   330
         Index           =   1
         Left            =   930
         TabIndex        =   6
         Top             =   1035
         Width           =   3285
      End
      Begin MSDataListLib.DataCombo DataCombo1 
         Bindings        =   "main_rsgl_rsbd_lr.frx":000C
         Height          =   330
         Left            =   930
         TabIndex        =   5
         Top             =   210
         Width           =   3285
         _ExtentX        =   5794
         _ExtentY        =   582
         _Version        =   393216
         ListField       =   "部门名称"
         Text            =   ""
      End
      Begin VB.TextBox Text1 
         Height          =   330
         Index           =   0
         Left            =   930
         TabIndex        =   4
         Top             =   645
         Width           =   3285
      End
      Begin VB.Label Label21 
         Caption         =   "新部门:"
         Height          =   165
         Left            =   135
         TabIndex        =   3
         Top             =   240
         Width           =   735
      End
      Begin VB.Label Label23 
         Caption         =   "新职务:"
         Height          =   165
         Left            =   135
         TabIndex        =   2
         Top             =   675
         Width           =   735
      End
      Begin VB.Label Label24 
         Caption         =   "新职称:"
         Height          =   165
         Left            =   135
         TabIndex        =   1
         Top             =   1065
         Width           =   720
      End
   End
End
Attribute VB_Name = "main_rsgl_rsbd_lr"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Form_Activate()
  DataCombo1.SetFocus
End Sub
Private Sub cmdOK_Click()
  Cnn.Execute ("update 员工信息表 set 部门='" + DataCombo1.Text + "',职务='" + Text1(0) + _
               "',职称='" + Text1(1) + "'where 编号='" + main_rsgl_rsbd.Text1(0) + "'")
  With main_rsgl_rsbd
     Cnn.Execute ("insert into 人事调动表(职员编号,职员姓名,原部门,原职务,原职称,现部门,现职务,现职称,调动时间)values('" + _
                 .Text1(0) + "','" + .Text1(1) + "','" + .Text1(2) + "','" + .Text1(3) + "','" + .Text1(4) + "','" + DataCombo1.Text + _
                 "','" + Text1(0) + "','" + Text1(1) + "','" + Str(Date) + "')")
    .Adodc1.Refresh
  End With
  Unload Me
End Sub
Private Sub cmdCancel_Click()
  Unload Me
End Sub
Private Sub DataCombo1_KeyDown(KeyCode As Integer, Shift As Integer)
 If KeyCode = vbKeyReturn Then Text1(0).SetFocus
End Sub
Private Sub Text1_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)
  If Index = 0 And KeyCode = vbKeyReturn Then Text1(1).SetFocus
End Sub

⌨️ 快捷键说明

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