main_gzgl_jlgl.frm
上传用户:wd52qq
上传日期:2022-07-24
资源大小:5366k
文件大小:13k
源码类别:

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  3. Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
  4. Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
  5. Begin VB.Form main_gzgl_jlgl 
  6.    BorderStyle     =   3  'Fixed Dialog
  7.    Caption         =   "Form1"
  8.    ClientHeight    =   5355
  9.    ClientLeft      =   45
  10.    ClientTop       =   330
  11.    ClientWidth     =   9390
  12.    Icon            =   "main_gzgl_jlgl.frx":0000
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   5355
  17.    ScaleWidth      =   9390
  18.    ShowInTaskbar   =   0   'False
  19.    StartUpPosition =   2  '屏幕中心
  20.    Begin MSAdodcLib.Adodc Adodc1 
  21.       Height          =   330
  22.       Left            =   60
  23.       Top             =   2040
  24.       Visible         =   0   'False
  25.       Width           =   2040
  26.       _ExtentX        =   3598
  27.       _ExtentY        =   582
  28.       ConnectMode     =   0
  29.       CursorLocation  =   3
  30.       IsolationLevel  =   -1
  31.       ConnectionTimeout=   15
  32.       CommandTimeout  =   30
  33.       CursorType      =   3
  34.       LockType        =   3
  35.       CommandType     =   2
  36.       CursorOptions   =   0
  37.       CacheSize       =   50
  38.       MaxRecords      =   0
  39.       BOFAction       =   0
  40.       EOFAction       =   0
  41.       ConnectStringType=   1
  42.       Appearance      =   1
  43.       BackColor       =   -2147483643
  44.       ForeColor       =   -2147483640
  45.       Orientation     =   0
  46.       Enabled         =   -1
  47.       Connect         =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_manpowerinfo"
  48.       OLEDBString     =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_manpowerinfo"
  49.       OLEDBFile       =   ""
  50.       DataSourceName  =   ""
  51.       OtherAttributes =   ""
  52.       UserName        =   ""
  53.       Password        =   ""
  54.       RecordSource    =   "员工奖励表"
  55.       Caption         =   "Adodc1"
  56.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  57.          Name            =   "宋体"
  58.          Size            =   9
  59.          Charset         =   134
  60.          Weight          =   400
  61.          Underline       =   0   'False
  62.          Italic          =   0   'False
  63.          Strikethrough   =   0   'False
  64.       EndProperty
  65.       _Version        =   393216
  66.    End
  67.    Begin MSDataGridLib.DataGrid DataGrid1 
  68.       Bindings        =   "main_gzgl_jlgl.frx":000C
  69.       Height          =   4500
  70.       Left            =   15
  71.       TabIndex        =   0
  72.       Top             =   825
  73.       Width           =   9330
  74.       _ExtentX        =   16457
  75.       _ExtentY        =   7938
  76.       _Version        =   393216
  77.       AllowUpdate     =   0   'False
  78.       HeadLines       =   1
  79.       RowHeight       =   15
  80.       FormatLocked    =   -1  'True
  81.       BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  82.          Name            =   "宋体"
  83.          Size            =   9
  84.          Charset         =   134
  85.          Weight          =   400
  86.          Underline       =   0   'False
  87.          Italic          =   0   'False
  88.          Strikethrough   =   0   'False
  89.       EndProperty
  90.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  91.          Name            =   "宋体"
  92.          Size            =   9
  93.          Charset         =   134
  94.          Weight          =   400
  95.          Underline       =   0   'False
  96.          Italic          =   0   'False
  97.          Strikethrough   =   0   'False
  98.       EndProperty
  99.       ColumnCount     =   7
  100.       BeginProperty Column00 
  101.          DataField       =   "所属工资月份"
  102.          Caption         =   "所属工资月份"
  103.          BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
  104.             Type            =   0
  105.             Format          =   ""
  106.             HaveTrueFalseNull=   0
  107.             FirstDayOfWeek  =   0
  108.             FirstWeekOfYear =   0
  109.             LCID            =   2052
  110.             SubFormatType   =   0
  111.          EndProperty
  112.       EndProperty
  113.       BeginProperty Column01 
  114.          DataField       =   "员工编号"
  115.          Caption         =   "员工编号"
  116.          BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
  117.             Type            =   0
  118.             Format          =   ""
  119.             HaveTrueFalseNull=   0
  120.             FirstDayOfWeek  =   0
  121.             FirstWeekOfYear =   0
  122.             LCID            =   2052
  123.             SubFormatType   =   0
  124.          EndProperty
  125.       EndProperty
  126.       BeginProperty Column02 
  127.          DataField       =   "员工姓名"
  128.          Caption         =   "员工姓名"
  129.          BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
  130.             Type            =   0
  131.             Format          =   ""
  132.             HaveTrueFalseNull=   0
  133.             FirstDayOfWeek  =   0
  134.             FirstWeekOfYear =   0
  135.             LCID            =   2052
  136.             SubFormatType   =   0
  137.          EndProperty
  138.       EndProperty
  139.       BeginProperty Column03 
  140.          DataField       =   "奖励项目"
  141.          Caption         =   "奖励项目"
  142.          BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
  143.             Type            =   0
  144.             Format          =   ""
  145.             HaveTrueFalseNull=   0
  146.             FirstDayOfWeek  =   0
  147.             FirstWeekOfYear =   0
  148.             LCID            =   2052
  149.             SubFormatType   =   0
  150.          EndProperty
  151.       EndProperty
  152.       BeginProperty Column04 
  153.          DataField       =   "奖励金额"
  154.          Caption         =   "奖励金额"
  155.          BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
  156.             Type            =   0
  157.             Format          =   ""
  158.             HaveTrueFalseNull=   0
  159.             FirstDayOfWeek  =   0
  160.             FirstWeekOfYear =   0
  161.             LCID            =   2052
  162.             SubFormatType   =   0
  163.          EndProperty
  164.       EndProperty
  165.       BeginProperty Column05 
  166.          DataField       =   "备注"
  167.          Caption         =   "备注"
  168.          BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
  169.             Type            =   0
  170.             Format          =   ""
  171.             HaveTrueFalseNull=   0
  172.             FirstDayOfWeek  =   0
  173.             FirstWeekOfYear =   0
  174.             LCID            =   2052
  175.             SubFormatType   =   0
  176.          EndProperty
  177.       EndProperty
  178.       BeginProperty Column06 
  179.          DataField       =   "日期"
  180.          Caption         =   "日期"
  181.          BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
  182.             Type            =   0
  183.             Format          =   ""
  184.             HaveTrueFalseNull=   0
  185.             FirstDayOfWeek  =   0
  186.             FirstWeekOfYear =   0
  187.             LCID            =   2052
  188.             SubFormatType   =   0
  189.          EndProperty
  190.       EndProperty
  191.       SplitCount      =   1
  192.       BeginProperty Split0 
  193.          MarqueeStyle    =   4
  194.          BeginProperty Column00 
  195.             ColumnWidth     =   1124.787
  196.          EndProperty
  197.          BeginProperty Column01 
  198.             ColumnWidth     =   915.024
  199.          EndProperty
  200.          BeginProperty Column02 
  201.             ColumnWidth     =   810.142
  202.          EndProperty
  203.          BeginProperty Column03 
  204.          EndProperty
  205.          BeginProperty Column04 
  206.             ColumnWidth     =   900.284
  207.          EndProperty
  208.          BeginProperty Column05 
  209.             ColumnWidth     =   2085.166
  210.          EndProperty
  211.          BeginProperty Column06 
  212.             ColumnWidth     =   1200.189
  213.          EndProperty
  214.       EndProperty
  215.    End
  216.    Begin MSComctlLib.ImageList ImageList1 
  217.       Left            =   1905
  218.       Top             =   2025
  219.       _ExtentX        =   1005
  220.       _ExtentY        =   1005
  221.       BackColor       =   -2147483643
  222.       ImageWidth      =   32
  223.       ImageHeight     =   32
  224.       MaskColor       =   12632256
  225.       _Version        =   393216
  226.       BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  227.          NumListImages   =   6
  228.          BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  229.             Picture         =   "main_gzgl_jlgl.frx":0021
  230.             Key             =   ""
  231.          EndProperty
  232.          BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  233.             Picture         =   "main_gzgl_jlgl.frx":08FB
  234.             Key             =   ""
  235.          EndProperty
  236.          BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  237.             Picture         =   "main_gzgl_jlgl.frx":11D5
  238.             Key             =   ""
  239.          EndProperty
  240.          BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  241.             Picture         =   "main_gzgl_jlgl.frx":1AAF
  242.             Key             =   ""
  243.          EndProperty
  244.          BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  245.             Picture         =   "main_gzgl_jlgl.frx":2229
  246.             Key             =   ""
  247.          EndProperty
  248.          BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  249.             Picture         =   "main_gzgl_jlgl.frx":2F03
  250.             Key             =   ""
  251.          EndProperty
  252.       EndProperty
  253.    End
  254.    Begin MSComctlLib.Toolbar Toolbar1 
  255.       Align           =   1  'Align Top
  256.       Height          =   795
  257.       Left            =   0
  258.       TabIndex        =   1
  259.       Top             =   0
  260.       Width           =   9390
  261.       _ExtentX        =   16563
  262.       _ExtentY        =   1402
  263.       ButtonWidth     =   1138
  264.       ButtonHeight    =   1349
  265.       Appearance      =   1
  266.       Style           =   1
  267.       ImageList       =   "ImageList1"
  268.       _Version        =   393216
  269.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  270.          NumButtons      =   8
  271.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  272.             Caption         =   " 增加 "
  273.             Key             =   "add"
  274.             ImageIndex      =   1
  275.          EndProperty
  276.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  277.             Caption         =   "修改"
  278.             Key             =   "modify"
  279.             ImageIndex      =   2
  280.          EndProperty
  281.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  282.             Caption         =   "删除"
  283.             Key             =   "delete"
  284.             ImageIndex      =   3
  285.          EndProperty
  286.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  287.             Style           =   3
  288.          EndProperty
  289.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  290.             Caption         =   "查找"
  291.             Key             =   "find"
  292.             ImageIndex      =   4
  293.          EndProperty
  294.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  295.             Caption         =   "全部"
  296.             Key             =   "all"
  297.             ImageIndex      =   5
  298.          EndProperty
  299.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  300.             Style           =   3
  301.          EndProperty
  302.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  303.             Caption         =   "关闭"
  304.             Key             =   "close"
  305.             ImageIndex      =   6
  306.          EndProperty
  307.       EndProperty
  308.       BorderStyle     =   1
  309.    End
  310. End
  311. Attribute VB_Name = "main_gzgl_jlgl"
  312. Attribute VB_GlobalNameSpace = False
  313. Attribute VB_Creatable = False
  314. Attribute VB_PredeclaredId = True
  315. Attribute VB_Exposed = False
  316. Dim rs1 As New ADODB.Recordset
  317. Private Sub Form_Activate()
  318.   If sql1 <> "" Then
  319.      Adodc1.RecordSource = sql1
  320.      Adodc1.Refresh
  321.      If Adodc1.Recordset.RecordCount > 0 Then
  322.      Else
  323.         MsgBox "没有找到符合条件的记录!", , "提示窗口"
  324.      End If
  325.   End If
  326. End Sub
  327. Private Sub Form_Load()
  328.   Me.Caption = text
  329. End Sub
  330. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
  331.   sql1 = ""
  332. End Sub
  333. Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
  334.   Select Case Button.Key
  335.      Case "add"
  336.        blnAddJL = True
  337.        main_yyxx.Tag = 6
  338.        Load main_yyxx
  339.        main_yyxx.Show 1
  340.      Case "modify"
  341.        If Adodc1.Recordset.RecordCount > 0 Then
  342.          blnAddJL = False
  343.          Load main_gzgl_jlgl_lr
  344.          main_gzgl_jlgl_lr.Show 1
  345.        Else
  346.          MsgBox "系统没有要修改的数据!", , "提示窗口"
  347.        End If
  348.      Case "delete"
  349.        If Adodc1.Recordset.RecordCount > 0 Then
  350.          Adodc1.Recordset.Delete
  351.          Adodc1.Refresh
  352.        Else
  353.          MsgBox "系统没有要删除的数据!", , "提示窗口"
  354.        End If
  355.      Case "find"
  356.        tb1 = "员工奖励表"
  357.        Load main_fzfind
  358.        main_fzfind.Show 1
  359.      Case "all"
  360.        Adodc1.RecordSource = "员工奖励表"
  361.        Adodc1.Refresh
  362.      Case "close"
  363.        Unload Me
  364.   End Select
  365. End Sub