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

企业管理

开发平台:

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_rsgl_bxgl 
  6.    BorderStyle     =   3  'Fixed Dialog
  7.    Caption         =   "Form1"
  8.    ClientHeight    =   4875
  9.    ClientLeft      =   45
  10.    ClientTop       =   330
  11.    ClientWidth     =   9330
  12.    Icon            =   "main_rsgl_bxgl.frx":0000
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   4875
  17.    ScaleWidth      =   9330
  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_rsgl_bxgl.frx":000C
  69.       Height          =   4020
  70.       Left            =   15
  71.       TabIndex        =   0
  72.       Top             =   825
  73.       Width           =   9285
  74.       _ExtentX        =   16378
  75.       _ExtentY        =   7091
  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     =   5
  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.       SplitCount      =   1
  166.       BeginProperty Split0 
  167.          MarqueeStyle    =   4
  168.          BeginProperty Column00 
  169.             ColumnWidth     =   915.024
  170.          EndProperty
  171.          BeginProperty Column01 
  172.             ColumnWidth     =   1365.165
  173.          EndProperty
  174.          BeginProperty Column02 
  175.             ColumnWidth     =   2085.166
  176.          EndProperty
  177.          BeginProperty Column03 
  178.             ColumnWidth     =   2085.166
  179.          EndProperty
  180.          BeginProperty Column04 
  181.             ColumnWidth     =   2085.166
  182.          EndProperty
  183.       EndProperty
  184.    End
  185.    Begin MSComctlLib.ImageList ImageList1 
  186.       Left            =   0
  187.       Top             =   2550
  188.       _ExtentX        =   1005
  189.       _ExtentY        =   1005
  190.       BackColor       =   -2147483643
  191.       ImageWidth      =   32
  192.       ImageHeight     =   32
  193.       MaskColor       =   12632256
  194.       _Version        =   393216
  195.       BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  196.          NumListImages   =   8
  197.          BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  198.             Picture         =   "main_rsgl_bxgl.frx":0021
  199.             Key             =   ""
  200.          EndProperty
  201.          BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  202.             Picture         =   "main_rsgl_bxgl.frx":08FB
  203.             Key             =   ""
  204.          EndProperty
  205.          BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  206.             Picture         =   "main_rsgl_bxgl.frx":11D5
  207.             Key             =   ""
  208.          EndProperty
  209.          BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  210.             Picture         =   "main_rsgl_bxgl.frx":1AAF
  211.             Key             =   ""
  212.          EndProperty
  213.          BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  214.             Picture         =   "main_rsgl_bxgl.frx":2789
  215.             Key             =   ""
  216.          EndProperty
  217.          BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  218.             Picture         =   "main_rsgl_bxgl.frx":3063
  219.             Key             =   ""
  220.          EndProperty
  221.          BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  222.             Picture         =   "main_rsgl_bxgl.frx":37DD
  223.             Key             =   ""
  224.          EndProperty
  225.          BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  226.             Picture         =   "main_rsgl_bxgl.frx":44B7
  227.             Key             =   ""
  228.          EndProperty
  229.       EndProperty
  230.    End
  231.    Begin MSComctlLib.Toolbar Toolbar1 
  232.       Align           =   1  'Align Top
  233.       Height          =   795
  234.       Left            =   0
  235.       TabIndex        =   1
  236.       Top             =   0
  237.       Width           =   9330
  238.       _ExtentX        =   16457
  239.       _ExtentY        =   1402
  240.       ButtonWidth     =   1138
  241.       ButtonHeight    =   1349
  242.       Appearance      =   1
  243.       Style           =   1
  244.       ImageList       =   "ImageList1"
  245.       _Version        =   393216
  246.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  247.          NumButtons      =   8
  248.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  249.             Caption         =   " 增加 "
  250.             Key             =   "add"
  251.             ImageIndex      =   1
  252.          EndProperty
  253.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  254.             Caption         =   "修改"
  255.             Key             =   "modify"
  256.             ImageIndex      =   2
  257.          EndProperty
  258.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  259.             Caption         =   "删除"
  260.             Key             =   "delete"
  261.             ImageIndex      =   3
  262.          EndProperty
  263.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  264.             Style           =   3
  265.          EndProperty
  266.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  267.             Caption         =   "查找"
  268.             Key             =   "find"
  269.             ImageIndex      =   6
  270.          EndProperty
  271.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  272.             Caption         =   "全部"
  273.             Key             =   "all"
  274.             ImageIndex      =   7
  275.          EndProperty
  276.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  277.             Style           =   3
  278.          EndProperty
  279.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  280.             Caption         =   "关闭"
  281.             Key             =   "close"
  282.             ImageIndex      =   8
  283.          EndProperty
  284.       EndProperty
  285.       BorderStyle     =   1
  286.    End
  287. End
  288. Attribute VB_Name = "main_rsgl_bxgl"
  289. Attribute VB_GlobalNameSpace = False
  290. Attribute VB_Creatable = False
  291. Attribute VB_PredeclaredId = True
  292. Attribute VB_Exposed = False
  293. Dim rs1 As New ADODB.Recordset
  294. Private Sub DataGrid1_DblClick()
  295.  If Adodc1.Recordset.RecordCount > 0 Then
  296.    blnAddBX = False
  297.    Load main_rsgl_bxgl_lr
  298.    main_rsgl_bxgl_lr.Show 1
  299.  Else
  300.    MsgBox "系统没有要修改的数据!", , "提示窗口"
  301.  End If
  302. End Sub
  303. Private Sub Form_Activate()
  304.   If sql1 <> "" Then
  305.      Adodc1.RecordSource = sql1
  306.      Adodc1.Refresh
  307.      If Adodc1.Recordset.RecordCount > 0 Then
  308.      Else
  309.         MsgBox "没有找到符合条件的记录!", , "提示窗口"
  310.      End If
  311.   End If
  312. End Sub
  313. Private Sub Form_Load()
  314.   Me.Caption = text
  315. End Sub
  316. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
  317.   sql1 = ""
  318. End Sub
  319. Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
  320.   Select Case Button.Key
  321.      Case "add"
  322.        blnAddBX = True
  323.        main_yyxx.Tag = 5
  324.        Load main_yyxx
  325.        main_yyxx.Show 1
  326.      Case "modify"
  327.        DataGrid1_DblClick
  328.      Case "delete"
  329.        If Adodc1.Recordset.RecordCount > 0 Then
  330.          Adodc1.Recordset.Delete
  331.          Adodc1.Refresh
  332.        Else
  333.          MsgBox "系统没有要删除的数据!", , "提示窗口"
  334.        End If
  335.      Case "find"
  336.        tb1 = "保险表"
  337.        Load main_fzfind
  338.        main_fzfind.Show 1
  339.      Case "all"
  340.        Adodc1.RecordSource = "保险表 order by 员工编号"
  341.        Adodc1.Refresh
  342.      Case "close"
  343.        Unload Me
  344.   End Select
  345. End Sub