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

📄 frm_mainback.frm

📁 OA办公自动化系统1.rar OA办公自动化系统1.r
💻 FRM
📖 第 1 页 / 共 3 页
字号:
               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 
               MarqueeStyle    =   4
               BeginProperty Column00 
               EndProperty
               BeginProperty Column01 
               EndProperty
            EndProperty
         End
         Begin VB.CommandButton cmdVoteAdd 
            Caption         =   "添加"
            Height          =   330
            Left            =   4905
            TabIndex        =   16
            Top             =   210
            Width           =   960
         End
         Begin VB.Label Label18 
            AutoSize        =   -1  'True
            Caption         =   "活动名称:"
            Height          =   180
            Left            =   150
            TabIndex        =   20
            Top             =   300
            Width           =   900
         End
         Begin VB.Label Label19 
            AutoSize        =   -1  'True
            Caption         =   "活动描述:"
            Height          =   180
            Left            =   150
            TabIndex        =   19
            Top             =   600
            Width           =   900
         End
      End
      Begin MSAdodcLib.Adodc adoUser 
         Height          =   330
         Left            =   -72570
         Top             =   720
         Visible         =   0   'False
         Width           =   2010
         _ExtentX        =   3545
         _ExtentY        =   582
         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         =   ""
         OLEDBString     =   ""
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   ""
         Caption         =   "adoUser"
         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.Frame Frame1 
         Caption         =   "系统操作员设置"
         Height          =   4215
         Left            =   -74700
         TabIndex        =   1
         Top             =   1020
         Width           =   8370
         Begin MSDataGridLib.DataGrid DataGrid1 
            Height          =   2745
            Left            =   90
            TabIndex        =   21
            Top             =   1380
            Width           =   8175
            _ExtentX        =   14420
            _ExtentY        =   4842
            _Version        =   393216
            AllowUpdate     =   0   'False
            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 
               MarqueeStyle    =   4
               BeginProperty Column00 
               EndProperty
               BeginProperty Column01 
               EndProperty
            EndProperty
         End
         Begin VB.CommandButton cmdUserDel 
            Caption         =   "删除"
            Height          =   345
            Left            =   7305
            TabIndex        =   8
            Top             =   825
            Width           =   930
         End
         Begin VB.CommandButton cmdUserUpdate 
            Caption         =   "修改"
            Height          =   345
            Left            =   6390
            TabIndex        =   11
            Top             =   825
            Width           =   930
         End
         Begin VB.CheckBox Check1 
            Caption         =   "前台管理"
            Height          =   210
            Left            =   4320
            TabIndex        =   9
            Top             =   375
            Value           =   1  'Checked
            Width           =   1050
         End
         Begin VB.CommandButton cmdUser 
            Caption         =   "添加"
            Height          =   345
            Left            =   5475
            TabIndex        =   7
            Top             =   825
            Width           =   930
         End
         Begin VB.ComboBox Combo1 
            Height          =   300
            Left            =   1020
            Style           =   2  'Dropdown List
            TabIndex        =   6
            Top             =   360
            Width           =   2970
         End
         Begin VB.TextBox Text4 
            Height          =   300
            IMEMode         =   3  'DISABLE
            Left            =   1020
            TabIndex        =   5
            Top             =   990
            Width           =   2970
         End
         Begin VB.TextBox Text3 
            Height          =   300
            IMEMode         =   3  'DISABLE
            Left            =   1020
            TabIndex        =   4
            Top             =   675
            Width           =   2970
         End
         Begin VB.Label Label17 
            AutoSize        =   -1  'True
            Caption         =   "确认密码:"
            Height          =   180
            Left            =   165
            TabIndex        =   10
            Top             =   1050
            Width           =   900
         End
         Begin VB.Label Label16 
            AutoSize        =   -1  'True
            Caption         =   "用户密码:"
            Height          =   180
            Left            =   165
            TabIndex        =   3
            Top             =   720
            Width           =   900
         End
         Begin VB.Label Label15 
            AutoSize        =   -1  'True
            Caption         =   "用户名称:"
            Height          =   180
            Left            =   165
            TabIndex        =   2
            Top             =   390
            Width           =   900
         End
      End
   End
End
Attribute VB_Name = "frm_mainBack"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdClear_Click()
  adoVote.RecordSource = "select * from tbOA_vote"
  adoVote.Refresh
  If adoVote.Recordset.RecordCount > 0 Then
     For i = 0 To adoVote.Recordset.RecordCount - 1
         adoVote.Recordset.Fields(3).Value = 0
         adoVote.Recordset.MoveNext
     Next i
  End If
  Dim con As ADODB.Connection
  Dim rs As ADODB.Recordset
  Set con = New ADODB.Connection
  con.ConnectionString = PublicStr
  con.Open
  Set rs = New ADODB.Recordset
  Set rs = con.Execute("DELETE FROM tbOA_voteRecord")
  con.Close
  MsgBox "数据清除成功!", vbInformation
End Sub

Private Sub cmdDeptAdd_Click()
  Text1.Text = ""
  Text2.Text = ""
  Text2.Enabled = True
  Text1.Enabled = True
  Me.cmdDeptSave.Enabled = True
  Text1.SetFocus
  Me.cmdDeptAdd.Tag = "添加"
  Me.cmdDeptAdd.Enabled = False
  Me.cmdDeptCancel.Enabled = True
End Sub

Private Sub cmdDeptCancel_Click()
  Me.cmdDeptCancel.Enabled = False
  Me.cmdDeptSave.Enabled = False
  Text1.Enabled = False
  Text2.Enabled = False
  Me.cmdDeptAdd.Enabled = True
  Me.cmdDeptUpdate.Enabled = True

⌨️ 快捷键说明

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