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

📄 frm1zgnsr.frm

📁 一款代码完整
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{0ECD9B60-23AA-11D0-B351-00A0C9055D8E}#6.0#0"; "MSHFLXGD.OCX"
Begin VB.Form frm1DWFFTJ 
   Caption         =   "分类汇总"
   ClientHeight    =   7545
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   10365
   LinkTopic       =   "Form1"
   ScaleHeight     =   7545
   ScaleWidth      =   10365
   StartUpPosition =   3  '窗口缺省
   WindowState     =   2  'Maximized
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   3840
      Top             =   840
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   24
      ImageHeight     =   24
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   2
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frm1ZGNSR.frx":0000
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frm1ZGNSR.frx":06FA
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.Toolbar Toolbar1 
      Align           =   1  'Align Top
      Height          =   480
      Left            =   0
      TabIndex        =   1
      Top             =   0
      Width           =   10365
      _ExtentX        =   18283
      _ExtentY        =   847
      ButtonWidth     =   2514
      ButtonHeight    =   794
      Appearance      =   1
      Style           =   1
      TextAlignment   =   1
      ImageList       =   "ImageList1"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   4
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "按职工统计"
            ImageIndex      =   1
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "按单位统计"
            ImageIndex      =   2
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
      EndProperty
      Begin VB.PictureBox Picture1 
         BorderStyle     =   0  'None
         Height          =   375
         Left            =   3120
         ScaleHeight     =   375
         ScaleWidth      =   2565
         TabIndex        =   2
         Top             =   30
         Width           =   2565
         Begin VB.TextBox Text1 
            BeginProperty Font 
               Name            =   "Arial"
               Size            =   9
               Charset         =   0
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   330
            Left            =   660
            MaxLength       =   4
            TabIndex        =   3
            Top             =   30
            Width           =   1365
         End
         Begin VB.Label Label1 
            Caption         =   "年度"
            Height          =   270
            Left            =   195
            TabIndex        =   4
            Top             =   105
            Width           =   405
         End
      End
   End
   Begin MSHierarchicalFlexGridLib.MSHFlexGrid mshZJ 
      Height          =   6975
      Left            =   15
      TabIndex        =   0
      Top             =   480
      Width           =   10335
      _ExtentX        =   18230
      _ExtentY        =   12303
      _Version        =   393216
      ForeColor       =   8404992
      FixedCols       =   0
      BackColorBkg    =   -2147483628
      GridColor       =   8404992
      FocusRect       =   0
      SelectionMode   =   1
      AllowUserResizing=   1
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Tahoma"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _NumberOfBands  =   1
      _Band(0).Cols   =   2
   End
End
Attribute VB_Name = "frm1DWFFTJ"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居收藏整理
'发布日期:2007/12/17
'描    述:企事业单位人事管理系统 Ver 2007
'网    站:http://www.Mndsoft.com/  (VB6源码博客)
'网    站:http://www.VbDnet.com/   (VB.NET源码博客,主要基于.NET2005)
'e-mail  :Mndsoft@163.com
'e-mail  :Mndsoft@126.com
'OICQ    :88382850
'          如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************

Private Sub Form_Initialize()
Call InitCommonControls 'XP效果
End Sub


Private Sub Form_Load()
Me.Icon = MDIfrm.Icon

Me.Text1.Text = Format(Date, "yyyy")

Me.mshZJ.ColWidth(0) = 2000

End Sub

Private Sub Form_Resize()
If Me.ScaleHeight > 7545 Or Me.ScaleWidth > 10365 Then
Me.mshZJ.Width = Me.ScaleWidth
Me.mshZJ.Height = Me.ScaleHeight - Me.mshZJ.Top
End If
End Sub



Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Index
    Case Is = 2
        SQL = "TRANSFORM Sum((岗位工资+补贴+加班工资+效益工资+其它应发)-(养老金+失业金+医保金+公积金+房水电+其它应扣+代扣税)) AS 实发工资总计 SELECT 单位,姓名 From 工资发放表 where 月度 like '" & Me.Text1.Text & "%' GROUP BY 单位,姓名 PIVOT 月度"
    Case Is = 3
        SQL = "TRANSFORM Sum((岗位工资+补贴+加班工资+效益工资+其它应发)-(养老金+失业金+医保金+公积金+房水电+其它应扣+代扣税)) AS 实发工资总计 SELECT 单位 From 工资发放表 where 月度 like '" & Me.Text1.Text & "%' GROUP BY 单位 PIVOT 月度"
End Select
        Call OpenConn
        rs.Open SQL, cn, 1, 1
        Set Me.mshZJ.DataSource = rs
        Call CloseConn
End Sub

⌨️ 快捷键说明

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