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

📄 frmzyxx.frm

📁 送水管理系统 运用VISUAL BASIC言自制系统
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "Msadodc.OCX"
Begin VB.Form FRMZYXX 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "职员信息"
   ClientHeight    =   6570
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   8295
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "FRMZYXX.frx":0000
   ScaleHeight     =   6570
   ScaleWidth      =   8295
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Tag             =   "ru"
   Begin MSDataGridLib.DataGrid msglist 
      Bindings        =   "FRMZYXX.frx":5F8BB
      Height          =   1935
      Left            =   240
      TabIndex        =   21
      Top             =   4560
      Width           =   7815
      _ExtentX        =   13785
      _ExtentY        =   3413
      _Version        =   393216
      BackColor       =   16744576
      HeadLines       =   1
      RowHeight       =   15
      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 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.Toolbar Toolbar1 
      Align           =   1  'Align Top
      Height          =   615
      Left            =   0
      TabIndex        =   20
      Top             =   0
      Width           =   8295
      _ExtentX        =   14631
      _ExtentY        =   1085
      ButtonWidth     =   1773
      ButtonHeight    =   926
      Appearance      =   1
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   4
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   " 添  加 "
            Key             =   "tj"
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "删  除"
            Key             =   "SC"
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "保  存"
            Key             =   "bc"
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "  取  消  "
            Key             =   "qx"
         EndProperty
      EndProperty
      Begin MSAdodcLib.Adodc Adodc1 
         Height          =   375
         Left            =   8640
         Top             =   240
         Visible         =   0   'False
         Width           =   1215
         _ExtentX        =   2143
         _ExtentY        =   661
         ConnectMode     =   0
         CursorLocation  =   3
         IsolationLevel  =   -1
         ConnectionTimeout=   15
         CommandTimeout  =   30
         CursorType      =   3
         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.1;Password=515515;Persist Security Info=True;User ID=sa;Data Source=login"
         OLEDBString     =   "Provider=MSDASQL.1;Password=515515;Persist Security Info=True;User ID=sa;Data Source=login"
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   "select * from workers"
         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
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H00FF8080&
      Caption         =   "个人基本信息"
      Height          =   2055
      Left            =   240
      TabIndex        =   3
      Top             =   840
      Width           =   7815
      Begin VB.TextBox txtItem 
         DataField       =   "年龄"
         DataSource      =   "Adodc1"
         Height          =   270
         Index           =   5
         Left            =   1320
         MaxLength       =   20
         TabIndex        =   19
         Top             =   1080
         Width           =   2175
      End
      Begin VB.TextBox txtItem 
         DataField       =   "基本工资"
         DataSource      =   "Adodc1"
         Height          =   270
         Index           =   4
         Left            =   5280
         MaxLength       =   10
         TabIndex        =   15
         Top             =   1080
         Width           =   2175
      End
      Begin VB.TextBox txtItem 
         DataField       =   "联系电话"
         DataSource      =   "Adodc1"
         Height          =   270
         Index           =   7
         Left            =   5280
         MaxLength       =   10
         TabIndex        =   14
         Top             =   720
         Width           =   2175
      End
      Begin VB.TextBox txtItem 
         DataField       =   "工作日期"
         DataSource      =   "Adodc1"
         Height          =   270
         Index           =   3
         Left            =   5280
         MaxLength       =   10
         TabIndex        =   13
         Top             =   360
         Width           =   1935
      End
      Begin VB.ComboBox cboItem 
         DataField       =   "性别"
         DataSource      =   "Adodc1"
         Height          =   300
         ItemData        =   "FRMZYXX.frx":5F8D0
         Left            =   1320
         List            =   "FRMZYXX.frx":5F8D2
         TabIndex        =   7
         Text            =   "cboItem"
         Top             =   1440
         Width           =   2175
      End
      Begin VB.TextBox txtItem 
         DataField       =   "所属部门"
         DataSource      =   "Adodc1"
         Height          =   270
         Index           =   2
         Left            =   5280
         MaxLength       =   20
         TabIndex        =   6
         Top             =   1440
         Width           =   2175
      End
      Begin VB.TextBox txtItem 
         DataField       =   "姓名"
         DataSource      =   "Adodc1"
         Height          =   270
         Index           =   1
         Left            =   1320
         MaxLength       =   10
         TabIndex        =   5
         Top             =   720
         Width           =   2175
      End
      Begin VB.TextBox txtItem 
         DataField       =   "编号"
         DataSource      =   "Adodc1"
         Height          =   270
         Index           =   0
         Left            =   1320
         MaxLength       =   8
         TabIndex        =   4
         Top             =   360
         Width           =   2175
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "年    龄:"
         Height          =   255
         Index           =   6
         Left            =   240
         TabIndex        =   18
         Top             =   1080
         Width           =   975
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "联系电话:"
         Height          =   255
         Index           =   5
         Left            =   3960
         TabIndex        =   17
         Top             =   720
         Width           =   975
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "基本工资:"
         Height          =   255
         Index           =   4
         Left            =   3840
         TabIndex        =   16
         Top             =   1080
         Width           =   975
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "参加工作时间:"
         Height          =   255
         Index           =   3
         Left            =   3840
         TabIndex        =   12
         Top             =   360
         Width           =   1335
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "部    门:"
         Height          =   255
         Index           =   16
         Left            =   3840
         TabIndex        =   11
         Top             =   1440
         Width           =   975
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "性    别:"
         Height          =   255
         Index           =   2
         Left            =   240
         TabIndex        =   10
         Top             =   1440
         Width           =   975
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "姓    名:"
         Height          =   255
         Index           =   1
         Left            =   240
         TabIndex        =   9
         Top             =   720
         Width           =   975
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "编    号:"
         Height          =   255
         Index           =   0
         Left            =   240
         TabIndex        =   8
         Top             =   360
         Width           =   975
      End
   End
   Begin VB.Frame Frame4 
      BackColor       =   &H00FF8080&
      Caption         =   "其它信息"
      Height          =   1455
      Left            =   240
      TabIndex        =   1
      Top             =   3000
      Width           =   7815
      Begin VB.TextBox txtItem 
         DataField       =   "备注"
         DataSource      =   "Adodc1"
         Height          =   975
         Index           =   18
         Left            =   1200
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   0
         Top             =   360
         Width           =   6375
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "备    注:"
         Height          =   255
         Index           =   19
         Left            =   240
         TabIndex        =   2
         Top             =   360
         Width           =   975
      End
   End
End
Attribute VB_Name = "FRMZYXX"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
cboItem.AddItem "男"
cboItem.AddItem "女"

End Sub

Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Index
Case 1
    On Error Resume Next
    Adodc1.Recordset.AddNew
    Adodc1.Recordset("编号") = ""
    Adodc1.Recordset("姓名") = ""
    Adodc1.Recordset("所属部门") = ""
    Adodc1.Recordset("联系电话") = ""
    Adodc1.Recordset("基本工资") = ""
    Adodc1.Recordset("备注") = ""
    Adodc1.Recordset("性别") = ""
    Adodc1.Recordset("年龄") = ""
    Adodc1.Recordset("工作日期") = Format(Date, "yy-mm-dd")
    Adodc1.Recordset.MoveLast
Case 2
If Not (Adodc1.Recordset.EOF Or Adodc1.Recordset.BOF) Then
Adodc1.Recordset.Delete
Adodc1.Recordset.MoveNext
End If
Case 3
msglist.Refresh
Case 4

Unload Me

End Select
End Sub

⌨️ 快捷键说明

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