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

📄 frmcosetting.frm

📁 vb编出的关于传销工资结算系统
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
Begin VB.Form frmCoSetting 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "公司代号设置"
   ClientHeight    =   4860
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   7830
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4860
   ScaleWidth      =   7830
   StartUpPosition =   2  '屏幕中心
   Begin ComctlLib.Toolbar Toolbar1 
      Align           =   1  'Align Top
      Height          =   855
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   7830
      _ExtentX        =   13811
      _ExtentY        =   1508
      ButtonWidth     =   1455
      ButtonHeight    =   1349
      Appearance      =   1
      ImageList       =   "ImageList1"
      _Version        =   327682
      BeginProperty Buttons {0713E452-850A-101B-AFC0-4210102A8DA7} 
         NumButtons      =   8
         BeginProperty Button1 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   "新增(&A)"
            Key             =   "AddNew"
            Object.ToolTipText     =   "新增"
            Object.Tag             =   ""
            ImageIndex      =   1
         EndProperty
         BeginProperty Button2 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   "修改(&M)"
            Key             =   "Modify"
            Object.ToolTipText     =   "修改"
            Object.Tag             =   ""
            ImageIndex      =   2
         EndProperty
         BeginProperty Button3 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   "删除(&D)"
            Key             =   "Delete"
            Object.ToolTipText     =   "删除"
            Object.Tag             =   ""
            ImageIndex      =   3
         EndProperty
         BeginProperty Button4 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   "保存(&S)"
            Key             =   "Save"
            Object.ToolTipText     =   "保存"
            Object.Tag             =   ""
            ImageIndex      =   4
         EndProperty
         BeginProperty Button5 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Key             =   ""
            Object.Tag             =   ""
            Style           =   3
         EndProperty
         BeginProperty Button6 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Key             =   ""
            Object.Tag             =   ""
            Style           =   3
         EndProperty
         BeginProperty Button7 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Key             =   ""
            Object.Tag             =   ""
            Style           =   3
         EndProperty
         BeginProperty Button8 {0713F354-850A-101B-AFC0-4210102A8DA7} 
            Caption         =   "退出(&C)"
            Key             =   "Close"
            Object.ToolTipText     =   "退出"
            Object.Tag             =   ""
            ImageIndex      =   5
         EndProperty
      EndProperty
   End
   Begin VB.Frame Frame1 
      Height          =   690
      Left            =   300
      TabIndex        =   7
      Top             =   975
      Width           =   7215
      Begin VB.TextBox txt公司名称 
         BackColor       =   &H00C0FFFF&
         DataField       =   "公司名称"
         DataSource      =   "Adodc1"
         ForeColor       =   &H00FF0000&
         Height          =   315
         Left            =   3600
         Locked          =   -1  'True
         TabIndex        =   11
         Top             =   225
         Width           =   3390
      End
      Begin VB.TextBox txt公司代号 
         BackColor       =   &H00C0FFFF&
         DataField       =   "公司代号"
         DataSource      =   "Adodc1"
         ForeColor       =   &H00FF0000&
         Height          =   315
         Left            =   975
         Locked          =   -1  'True
         MaxLength       =   2
         TabIndex        =   8
         Top             =   225
         Width           =   1665
      End
      Begin VB.Label Label2 
         Caption         =   "公司名称"
         Height          =   165
         Left            =   2775
         TabIndex        =   10
         Top             =   300
         Width           =   765
      End
      Begin VB.Label Label1 
         Caption         =   "公司代号"
         Height          =   240
         Left            =   150
         TabIndex        =   9
         Top             =   300
         Width           =   765
      End
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   5040
      Top             =   4460
      Width           =   2475
      _ExtentX        =   4366
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   12648447
      ForeColor       =   16711680
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=C:\SYSTEM\DATABASE\SYSTEM.MDB"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=C:\SYSTEM\DATABASE\SYSTEM.MDB"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from 公司代号"
      Caption         =   "   记录检索"
      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 MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "frmCoSetting.frx":0000
      Height          =   2640
      Left            =   300
      TabIndex        =   6
      Top             =   1800
      Width           =   7215
      _ExtentX        =   12726
      _ExtentY        =   4657
      _Version        =   393216
      AllowUpdate     =   0   'False
      BackColor       =   12648447
      Enabled         =   0   'False
      ForeColor       =   16711680
      HeadLines       =   1
      RowHeight       =   15
      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     =   1995.024
         EndProperty
         BeginProperty Column01 
            ColumnWidth     =   4889.764
         EndProperty
      EndProperty
   End
   Begin VB.CommandButton cmdModify 
      Caption         =   "修改"
      Height          =   390
      Left            =   7425
      TabIndex        =   5
      Top             =   1350
      Visible         =   0   'False
      Width           =   840
   End
   Begin VB.CommandButton cmdDelete 
      Caption         =   "删除"
      Height          =   390
      Left            =   7425
      TabIndex        =   4
      Top             =   1800
      Visible         =   0   'False
      Width           =   840
   End
   Begin VB.CommandButton cmdSave 
      Caption         =   "保存"
      Height          =   390
      Left            =   7425
      TabIndex        =   3
      Top             =   2250
      Visible         =   0   'False
      Width           =   840
   End
   Begin VB.CommandButton cmdClose 
      Caption         =   "退出"
      Height          =   390
      Left            =   7425
      TabIndex        =   2
      Top             =   2700
      Visible         =   0   'False
      Width           =   840
   End
   Begin VB.CommandButton cmdAddNew 
      Caption         =   "新增"
      Height          =   390
      Left            =   7425
      TabIndex        =   1
      Top             =   975
      Visible         =   0   'False
      Width           =   840
   End
   Begin ComctlLib.ImageList ImageList1 
      Left            =   -150
      Top             =   675
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   327682
      BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7} 
         NumListImages   =   5
         BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "frmCoSetting.frx":0015
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "frmCoSetting.frx":032F
            Key             =   ""
         EndProperty
         BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "frmCoSetting.frx":0649
            Key             =   ""
         EndProperty
         BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "frmCoSetting.frx":0963
            Key             =   ""
         EndProperty
         BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
            Picture         =   "frmCoSetting.frx":0C7D
            Key             =   ""
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "frmCoSetting"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdAddNew_Click()
On Error GoTo ErrorHandle
  DataGrid1.AllowAddNew = True
  DataGrid1.AllowDelete = False
  DataGrid1.AllowUpdate = True
  
  txt公司代号.Locked = False
  txt公司名称.Locked = False
  
  Adodc1.Recordset.AddNew
ErrorHandle:
  Exit Sub
End Sub

Private Sub cmdClose_Click()
  Unload Me
End Sub

Private Sub cmdDelete_Click()
On Error GoTo ErrorHandle
  DataGrid1.AllowAddNew = False
  DataGrid1.AllowDelete = True
  DataGrid1.AllowUpdate = False
  Adodc1.Recordset.Delete
  DataGrid1.AllowAddNew = False
  DataGrid1.AllowDelete = False
  DataGrid1.AllowUpdate = False
  
  txt公司代号.Locked = True
  txt公司名称.Locked = True
ErrorHandle:
  Exit Sub
End Sub

Private Sub cmdModify_Click()
On Error GoTo ErrorHandle
  DataGrid1.AllowAddNew = False
  DataGrid1.AllowDelete = False
  DataGrid1.AllowUpdate = True
  
  txt公司代号.Locked = False
  txt公司名称.Locked = False
ErrorHandle:
  Exit Sub
End Sub

Private Sub cmdSave_Click()
On Error GoTo ErrorHandle
  Adodc1.Recordset.Update
  DataGrid1.AllowAddNew = False
  DataGrid1.AllowDelete = False
  DataGrid1.AllowUpdate = False
  
  txt公司代号.Locked = True
  txt公司名称.Locked = True
ErrorHandle:
  Exit Sub
End Sub

Private Sub Toolbar1_ButtonClick(ByVal Button As ComctlLib.Button)
  Select Case Button.Key
  Case "AddNew"
    cmdAddNew_Click
  Case "Modify"
    cmdModify_Click
  Case "Delete"
    cmdDelete_Click
  Case "Save"
    cmdSave_Click
  Case "Close"
    cmdClose_Click
  End Select
End Sub

Private Sub txt公司代号_Change()
  txt公司代号.Text = UCase(txt公司代号.Text)
  txt公司代号.SelStart = Len(txt公司代号.Text)
End Sub

⌨️ 快捷键说明

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