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

📄 main_gzsz_gzgs_gs.frm

📁 HRMS是一个人力资源管理系统,非常好用,功能非常强大,希望大家的支持
💻 FRM
字号:
VERSION 5.00
Begin VB.Form main_gzsz_gzgs_gs 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "公式编辑"
   ClientHeight    =   5325
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5745
   Icon            =   "main_gzsz_gzgs_gs.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5325
   ScaleWidth      =   5745
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton cmdExit 
      Caption         =   "退出"
      Height          =   390
      Left            =   4275
      TabIndex        =   24
      Top             =   4800
      Width           =   1305
   End
   Begin VB.CommandButton cmdDel 
      Caption         =   "清空"
      Height          =   390
      Left            =   2910
      TabIndex        =   23
      Top             =   4800
      Width           =   1305
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "撤消操作"
      Height          =   390
      Left            =   1530
      TabIndex        =   22
      Top             =   4800
      Width           =   1305
   End
   Begin VB.CommandButton cmdSave 
      Caption         =   "保存"
      Height          =   390
      Left            =   150
      TabIndex        =   21
      Top             =   4800
      Width           =   1305
   End
   Begin VB.Frame Frame1 
      Height          =   60
      Left            =   -315
      TabIndex        =   20
      Top             =   4620
      Width           =   6135
   End
   Begin VB.CommandButton Command1 
      Caption         =   "/"
      Height          =   540
      Index           =   16
      Left            =   5055
      TabIndex        =   19
      Top             =   3990
      Width           =   660
   End
   Begin VB.CommandButton Command1 
      Caption         =   "."
      Height          =   540
      Index           =   15
      Left            =   4380
      TabIndex        =   18
      Top             =   3990
      Width           =   660
   End
   Begin VB.CommandButton Command1 
      Caption         =   "0"
      Height          =   540
      Index           =   14
      Left            =   3030
      TabIndex        =   17
      Top             =   3990
      Width           =   1320
   End
   Begin VB.CommandButton Command1 
      Caption         =   "*"
      Height          =   540
      Index           =   13
      Left            =   5055
      TabIndex        =   16
      Top             =   3435
      Width           =   660
   End
   Begin VB.CommandButton Command1 
      Caption         =   "3"
      Height          =   540
      Index           =   12
      Left            =   4380
      TabIndex        =   15
      Top             =   3435
      Width           =   660
   End
   Begin VB.CommandButton Command1 
      Caption         =   "2"
      Height          =   540
      Index           =   11
      Left            =   3705
      TabIndex        =   14
      Top             =   3435
      Width           =   660
   End
   Begin VB.CommandButton Command1 
      Caption         =   "1"
      Height          =   540
      Index           =   10
      Left            =   3030
      TabIndex        =   13
      Top             =   3435
      Width           =   660
   End
   Begin VB.CommandButton Command1 
      Caption         =   "-"
      Height          =   540
      Index           =   9
      Left            =   5055
      TabIndex        =   12
      Top             =   2880
      Width           =   660
   End
   Begin VB.CommandButton Command1 
      Caption         =   "6"
      Height          =   540
      Index           =   8
      Left            =   4380
      TabIndex        =   11
      Top             =   2880
      Width           =   660
   End
   Begin VB.CommandButton Command1 
      Caption         =   "5"
      Height          =   540
      Index           =   7
      Left            =   3705
      TabIndex        =   10
      Top             =   2880
      Width           =   660
   End
   Begin VB.CommandButton Command1 
      Caption         =   "4"
      Height          =   540
      Index           =   6
      Left            =   3030
      TabIndex        =   9
      Top             =   2880
      Width           =   660
   End
   Begin VB.CommandButton Command1 
      Caption         =   "+"
      Height          =   540
      Index           =   5
      Left            =   5055
      TabIndex        =   8
      Top             =   2325
      Width           =   660
   End
   Begin VB.CommandButton Command1 
      Caption         =   "9"
      Height          =   540
      Index           =   4
      Left            =   4380
      TabIndex        =   7
      Top             =   2325
      Width           =   660
   End
   Begin VB.CommandButton Command1 
      Caption         =   "8"
      Height          =   540
      Index           =   3
      Left            =   3705
      TabIndex        =   6
      Top             =   2325
      Width           =   660
   End
   Begin VB.CommandButton Command1 
      Caption         =   "7"
      Height          =   540
      Index           =   2
      Left            =   3030
      TabIndex        =   5
      Top             =   2325
      Width           =   660
   End
   Begin VB.CommandButton Command1 
      Caption         =   ")"
      Height          =   540
      Index           =   1
      Left            =   4380
      TabIndex        =   4
      Top             =   1770
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "("
      Height          =   540
      Index           =   0
      Left            =   3030
      TabIndex        =   3
      Top             =   1770
      Width           =   1335
   End
   Begin VB.ListBox List1 
      Height          =   2400
      Left            =   30
      TabIndex        =   2
      Top             =   2130
      Width           =   2970
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H00E6D7D4&
      Height          =   1380
      Left            =   0
      TabIndex        =   0
      Top             =   345
      Width           =   5745
   End
   Begin VB.Label lblGZXM 
      Height          =   180
      Left            =   1410
      TabIndex        =   26
      Top             =   75
      Width           =   825
   End
   Begin VB.Label Label2 
      Caption         =   "可用于编辑的工资项目:"
      Height          =   180
      Left            =   60
      TabIndex        =   25
      Top             =   1860
      Width           =   2490
   End
   Begin VB.Label Label1 
      Caption         =   "当前编辑项目:"
      Height          =   210
      Left            =   105
      TabIndex        =   1
      Top             =   75
      Width           =   1290
   End
End
Attribute VB_Name = "main_gzsz_gzgs_gs"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rs1 As New ADODB.Recordset

Private Sub cmdDel_Click()
  Text1 = ""
End Sub

Private Sub cmdExit_Click()
  Unload Me
End Sub
Private Sub cmdSave_Click()
  Cnn.Execute ("update 工资公式表 set 计算公式='" + Text1 + "'where 项目名称='" + lblGZXM + "'")
  main_gzsz_gzgs.Adodc1.Refresh
  Unload Me
End Sub

Private Sub Command1_Click(Index As Integer)
  Text1 = Text1 & Command1(Index).Caption
End Sub

Private Sub Form_Load()
  rs1.Open "select 项目名称 from 工资公式表 group by 项目名称", Cnn, adOpenKeyset, adLockOptimistic
  If rs1.RecordCount > 0 Then
  rs1.MoveFirst
  Do While rs1.EOF = False
    List1.AddItem rs1.Fields("项目名称")
    rs1.MoveNext
  Loop
  End If
  rs1.Close
  Text1 = main_gzsz_gzgs.DataGrid1.Columns(3)
End Sub
Private Sub List1_DblClick()
  Text1 = Text1 & List1.text & " "
End Sub

⌨️ 快捷键说明

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