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

📄 frmbminfo.frm

📁 企业工资管理系统
💻 FRM
📖 第 1 页 / 共 2 页
字号:
            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
         SplitCount      =   1
         BeginProperty Split0 
            BeginProperty Column00 
               ColumnWidth     =   780.095
            EndProperty
            BeginProperty Column01 
               ColumnWidth     =   794.835
            EndProperty
            BeginProperty Column02 
               ColumnWidth     =   675.213
            EndProperty
            BeginProperty Column03 
               ColumnWidth     =   585.071
            EndProperty
            BeginProperty Column04 
               ColumnWidth     =   1110.047
            EndProperty
            BeginProperty Column05 
               ColumnWidth     =   975.118
            EndProperty
            BeginProperty Column06 
               ColumnWidth     =   1170.142
            EndProperty
            BeginProperty Column07 
               ColumnWidth     =   705.26
            EndProperty
            BeginProperty Column08 
               ColumnWidth     =   1184.882
            EndProperty
            BeginProperty Column09 
               ColumnWidth     =   1214.929
            EndProperty
            BeginProperty Column10 
               ColumnWidth     =   1275.024
            EndProperty
         EndProperty
      End
      Begin VB.TextBox Text2 
         DataField       =   "部门名称"
         DataSource      =   "Adodc1"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   4080
         TabIndex        =   6
         Text            =   "Text2"
         Top             =   360
         Width           =   1215
      End
      Begin VB.TextBox Text1 
         DataField       =   "部门编号"
         DataSource      =   "Adodc1"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   1440
         TabIndex        =   5
         Text            =   "Text1"
         Top             =   360
         Width           =   1095
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "部门名称:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   2880
         TabIndex        =   4
         Top             =   360
         Width           =   1215
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "部门编号:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   240
         TabIndex        =   3
         Top             =   360
         Width           =   1215
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "部门列表"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   3255
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   4215
      Begin MSDataGridLib.DataGrid DataGrid1 
         Bindings        =   "frmBMInfo.frx":0015
         Height          =   2655
         Left            =   240
         TabIndex        =   1
         Top             =   360
         Width           =   3855
         _ExtentX        =   6800
         _ExtentY        =   4683
         _Version        =   393216
         BackColor       =   16777215
         HeadLines       =   1
         RowHeight       =   15
         RowDividerStyle =   1
         FormatLocked    =   -1  'True
         BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ColumnCount     =   2
         BeginProperty Column00 
            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 Column01 
            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     =   1665.071
            EndProperty
            BeginProperty Column01 
               ColumnWidth     =   1769.953
            EndProperty
         EndProperty
      End
   End
End
Attribute VB_Name = "frmBMInfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command1_Click()
Adodc1.Recordset.AddNew

Text1.Text = ""
Text2.Text = ""
Command3.Enabled = True
Command4.Enabled = True
Command1.Enabled = False
Command2.Enabled = False
Command5.Enabled = True

Text1.SetFocus


End Sub

Private Sub Command2_Click()
If MsgBox("确定删除当前资料吗?", vbInformation + vbYesNo, "删除资料?") = vbYes Then
Adodc1.Recordset.Delete
Adodc1.Recordset.MoveFirst
End If
End Sub

Private Sub Command3_Click()
If Text1.Text = "" Then
   MsgBox "请输入部门编号!", vbOKOnly + vbExclamation, "提示"
   Text1.SetFocus
Else
   If Text2.Text = "" Then
      MsgBox "请输入部门名称!", vbOKOnly + vbExclamation, "提示"
      Text2.SetFocus
   Else
      If MsgBox("确定保存当前资料吗?", vbInformation + vbYesNo, "保存资料?") = vbYes Then
         'Adodc1.Recordset(0) = Text1.Text
         'Adodc1.Recordset(1) = Text2.Text
         Adodc1.Recordset.Update
         Adodc1.Recordset.MovePrevious
         
         Command3.Enabled = False
         Command4.Enabled = False
         Command1.Enabled = True
         Command2.Enabled = True
         Command5.Enabled = True
      Else
         Text1.Text = ""
         Text2.Text = ""
         
      End If
   End If
End If

End Sub

Private Sub Command4_Click()
Adodc1.Recordset.CancelBatch adAffectAllChapters
Adodc1.Recordset.MoveFirst
Command3.Enabled = False
Command4.Enabled = True
Command1.Enabled = True
Command2.Enabled = True
Command5.Enabled = True


End Sub

Private Sub Command5_Click()
Me.Hide
Unload Me

End Sub

Private Sub Command6_Click()
Adodc1.Recordset.MoveFirst
Command6.Enabled = False
Command9.Enabled = False

Adodc2.RecordSource = " select * from 职工信息表 where 所属部门编号='" & Text1.Text & "'"
Adodc2.Refresh
End Sub

Private Sub Command7_Click()
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF = True Then
   Adodc1.Recordset.MovePrevious
   MsgBox "已到达最后一条记录!", vbOKOnly + vbExclamation, "警告"
   Exit Sub
End If
Command6.Enabled = True
Command9.Enabled = True

Adodc2.RecordSource = " select * from 职工信息表 where 所属部门编号='" & Text1.Text & "'"
Adodc2.Refresh
End Sub

Private Sub Command8_Click()
Adodc1.Recordset.MoveLast
Command8.Enabled = False
Command7.Enabled = False

Adodc2.RecordSource = " select * from 职工信息表 where 所属部门编号='" & Text1.Text & "'"
Adodc2.Refresh
End Sub

Private Sub Command9_Click()
  Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF = True Then
   Adodc1.Recordset.MoveNext
   MsgBox "已到达第一条记录!", vbOKOnly + vbExclamation, "警告"
End If
   Command8.Enabled = True
   Command7.Enabled = True
   
Adodc2.RecordSource = " select * from 职工信息表 where 所属部门编号='" & Text1.Text & "'"
Adodc2.Refresh
End Sub

Private Sub Form_Load()
Adodc2.RecordSource = " select * from 职工信息表 where 所属部门编号='" & Text1.Text & "'"
Adodc2.Refresh
Command1.Enabled = True
Command2.Enabled = True
Command3.Enabled = False
Command4.Enabled = False
Command5.Enabled = True
End Sub

'Private Sub Form_Unload(Cancel As Integer)
 'Screen.MousePointer = vbDefault
'End Sub
Private Sub Text1_Change()
Adodc2.RecordSource = " select * from 职工信息表 where 所属部门编号='" & Text1.Text & "'"
Adodc2.Refresh
End Sub

⌨️ 快捷键说明

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