F_LaoDongHeTongYuBao.frm
上传用户:xiao_xia32
上传日期:2022-07-21
资源大小:1174k
文件大小:25k
源码类别:

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
  3. Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
  4. Object = "{0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#1.0#0"; "THREED32.OCX"
  5. Begin VB.Form F_LaoDongHeTongYuBao 
  6.    BorderStyle     =   3  'Fixed Dialog
  7.    Caption         =   "劳动合同预报"
  8.    ClientHeight    =   7815
  9.    ClientLeft      =   45
  10.    ClientTop       =   330
  11.    ClientWidth     =   10080
  12.    ControlBox      =   0   'False
  13.    LinkTopic       =   "Form1"
  14.    LockControls    =   -1  'True
  15.    MaxButton       =   0   'False
  16.    MinButton       =   0   'False
  17.    Moveable        =   0   'False
  18.    ScaleHeight     =   7815
  19.    ScaleWidth      =   10080
  20.    ShowInTaskbar   =   0   'False
  21.    StartUpPosition =   2  '屏幕中心
  22.    Begin VB.Frame Frame1 
  23.       Caption         =   "选择查询条件"
  24.       Height          =   1455
  25.       Left            =   120
  26.       TabIndex        =   43
  27.       Top             =   120
  28.       Width           =   9735
  29.       Begin VB.CheckBox Check2 
  30.          Caption         =   "Check2"
  31.          Height          =   255
  32.          Left            =   360
  33.          TabIndex        =   44
  34.          Top             =   360
  35.          Width           =   255
  36.       End
  37.       Begin MSComCtl2.DTPicker DTPicker2 
  38.          Height          =   300
  39.          Left            =   4680
  40.          TabIndex        =   45
  41.          Top             =   840
  42.          Visible         =   0   'False
  43.          Width           =   1455
  44.          _ExtentX        =   2566
  45.          _ExtentY        =   529
  46.          _Version        =   393216
  47.          CheckBox        =   -1  'True
  48.          DateIsNull      =   -1  'True
  49.          Format          =   27066369
  50.          CurrentDate     =   36251
  51.       End
  52.       Begin MSComCtl2.DTPicker DTPicker1 
  53.          Height          =   300
  54.          Left            =   1560
  55.          TabIndex        =   46
  56.          Top             =   840
  57.          Visible         =   0   'False
  58.          Width           =   1575
  59.          _ExtentX        =   2778
  60.          _ExtentY        =   529
  61.          _Version        =   393216
  62.          CheckBox        =   -1  'True
  63.          DateIsNull      =   -1  'True
  64.          Format          =   27066369
  65.          CurrentDate     =   36251
  66.       End
  67.       Begin Threed.SSCommand Command1 
  68.          Height          =   375
  69.          Left            =   6600
  70.          TabIndex        =   52
  71.          Top             =   840
  72.          Width           =   1095
  73.          _Version        =   65536
  74.          _ExtentX        =   1931
  75.          _ExtentY        =   661
  76.          _StockProps     =   78
  77.          Caption         =   "&S.查 询"
  78.          Font3D          =   1
  79.       End
  80.       Begin Threed.SSCommand Command2 
  81.          Height          =   375
  82.          Left            =   8280
  83.          TabIndex        =   53
  84.          Top             =   840
  85.          Width           =   1095
  86.          _Version        =   65536
  87.          _ExtentX        =   1931
  88.          _ExtentY        =   661
  89.          _StockProps     =   78
  90.          Caption         =   "&Q.关 闭"
  91.          Font3D          =   1
  92.       End
  93.       Begin VB.Label Label5 
  94.          Caption         =   "结束时间"
  95.          Height          =   255
  96.          Left            =   3480
  97.          TabIndex        =   49
  98.          Top             =   870
  99.          Visible         =   0   'False
  100.          Width           =   735
  101.       End
  102.       Begin VB.Label Label4 
  103.          Caption         =   "开始时间"
  104.          Height          =   375
  105.          Left            =   360
  106.          TabIndex        =   48
  107.          Top             =   803
  108.          Visible         =   0   'False
  109.          Width           =   735
  110.       End
  111.       Begin VB.Label Label2 
  112.          Caption         =   "到期时间"
  113.          Height          =   255
  114.          Left            =   720
  115.          TabIndex        =   47
  116.          Top             =   405
  117.          Width           =   975
  118.       End
  119.    End
  120.    Begin VB.Frame Frame3 
  121.       Height          =   5895
  122.       Left            =   120
  123.       TabIndex        =   0
  124.       Top             =   1680
  125.       Width           =   9735
  126.       Begin VB.ComboBox Combo3 
  127.          Appearance      =   0  'Flat
  128.          DataField       =   "是否已停止"
  129.          Height          =   300
  130.          Left            =   1680
  131.          TabIndex        =   14
  132.          Top             =   4680
  133.          Width           =   1695
  134.       End
  135.       Begin VB.TextBox txtFields 
  136.          Appearance      =   0  'Flat
  137.          DataField       =   "签定期限"
  138.          Height          =   285
  139.          Index           =   2
  140.          Left            =   1680
  141.          TabIndex        =   13
  142.          Top             =   2768
  143.          Width           =   1695
  144.       End
  145.       Begin VB.ComboBox Combo4 
  146.          Appearance      =   0  'Flat
  147.          DataField       =   "停止方式"
  148.          Height          =   300
  149.          Left            =   4800
  150.          TabIndex        =   12
  151.          Top             =   4680
  152.          Width           =   1695
  153.       End
  154.       Begin VB.TextBox txtFields 
  155.          Appearance      =   0  'Flat
  156.          DataField       =   "劳动合同编号"
  157.          Height          =   285
  158.          Index           =   0
  159.          Left            =   1680
  160.          TabIndex        =   11
  161.          Top             =   360
  162.          Width           =   1695
  163.       End
  164.       Begin VB.TextBox txtFields 
  165.          Appearance      =   0  'Flat
  166.          DataField       =   "姓名"
  167.          Height          =   285
  168.          Index           =   1
  169.          Left            =   4920
  170.          TabIndex        =   10
  171.          Top             =   360
  172.          Width           =   1575
  173.       End
  174.       Begin VB.TextBox txtFields 
  175.          Appearance      =   0  'Flat
  176.          DataField       =   "文化程度"
  177.          Height          =   285
  178.          Index           =   3
  179.          Left            =   7920
  180.          TabIndex        =   9
  181.          Top             =   360
  182.          Width           =   1695
  183.       End
  184.       Begin VB.TextBox txtFields 
  185.          Appearance      =   0  'Flat
  186.          DataField       =   "性别"
  187.          Height          =   285
  188.          Index           =   4
  189.          Left            =   1680
  190.          TabIndex        =   8
  191.          Top             =   840
  192.          Width           =   1695
  193.       End
  194.       Begin VB.TextBox txtFields 
  195.          Appearance      =   0  'Flat
  196.          DataField       =   "身份证号"
  197.          Height          =   285
  198.          Index           =   6
  199.          Left            =   7920
  200.          TabIndex        =   7
  201.          Top             =   1320
  202.          Width           =   1695
  203.       End
  204.       Begin VB.TextBox txtFields 
  205.          Appearance      =   0  'Flat
  206.          DataField       =   "家庭通讯地址"
  207.          Height          =   285
  208.          Index           =   7
  209.          Left            =   1680
  210.          TabIndex        =   6
  211.          Top             =   1320
  212.          Width           =   4815
  213.       End
  214.       Begin VB.TextBox txtFields 
  215.          Appearance      =   0  'Flat
  216.          DataField       =   "邮编"
  217.          Height          =   285
  218.          Index           =   8
  219.          Left            =   7920
  220.          TabIndex        =   5
  221.          Top             =   840
  222.          Width           =   1695
  223.       End
  224.       Begin VB.TextBox txtFields 
  225.          Appearance      =   0  'Flat
  226.          DataField       =   "所在街道办事处"
  227.          Height          =   285
  228.          Index           =   9
  229.          Left            =   1680
  230.          TabIndex        =   4
  231.          Top             =   1800
  232.          Width           =   4815
  233.       End
  234.       Begin VB.TextBox txtFields 
  235.          Appearance      =   0  'Flat
  236.          DataField       =   "部门"
  237.          Height          =   285
  238.          Index           =   14
  239.          Left            =   1680
  240.          TabIndex        =   3
  241.          Top             =   2288
  242.          Width           =   1695
  243.       End
  244.       Begin VB.TextBox txtFields 
  245.          Appearance      =   0  'Flat
  246.          DataField       =   "岗位"
  247.          Height          =   285
  248.          Index           =   15
  249.          Left            =   4800
  250.          TabIndex        =   2
  251.          Top             =   2288
  252.          Width           =   1695
  253.       End
  254.       Begin VB.TextBox txtFields 
  255.          Appearance      =   0  'Flat
  256.          DataField       =   "当事人约定的其他内容"
  257.          Height          =   765
  258.          Index           =   16
  259.          Left            =   1680
  260.          TabIndex        =   1
  261.          Top             =   3720
  262.          Width           =   4815
  263.       End
  264.       Begin MSComCtl2.DTPicker DTPicker3 
  265.          DataField       =   "出生日期"
  266.          BeginProperty DataFormat 
  267.             Type            =   1
  268.             Format          =   "yyyy""年""M""月""d""日"""
  269.             HaveTrueFalseNull=   0
  270.             FirstDayOfWeek  =   0
  271.             FirstWeekOfYear =   0
  272.             LCID            =   2052
  273.             SubFormatType   =   3
  274.          EndProperty
  275.          Height          =   300
  276.          Left            =   4920
  277.          TabIndex        =   15
  278.          Top             =   832
  279.          Width           =   1575
  280.          _ExtentX        =   2778
  281.          _ExtentY        =   529
  282.          _Version        =   393216
  283.          CheckBox        =   -1  'True
  284.          DateIsNull      =   -1  'True
  285.          Format          =   27066369
  286.          CurrentDate     =   36189
  287.       End
  288.       Begin MSComCtl2.DTPicker DTPicker4 
  289.          DataField       =   "签定时间"
  290.          Height          =   300
  291.          Left            =   7920
  292.          TabIndex        =   16
  293.          Top             =   2280
  294.          Width           =   1695
  295.          _ExtentX        =   2990
  296.          _ExtentY        =   529
  297.          _Version        =   393216
  298.          CheckBox        =   -1  'True
  299.          DateIsNull      =   -1  'True
  300.          Format          =   27066369
  301.          CurrentDate     =   36186
  302.       End
  303.       Begin MSComCtl2.DTPicker DTPicker5 
  304.          DataField       =   "结束时间"
  305.          Height          =   300
  306.          Left            =   7920
  307.          TabIndex        =   17
  308.          Top             =   2760
  309.          Width           =   1695
  310.          _ExtentX        =   2990
  311.          _ExtentY        =   529
  312.          _Version        =   393216
  313.          CheckBox        =   -1  'True
  314.          DateIsNull      =   -1  'True
  315.          Format          =   27066369
  316.          CurrentDate     =   36186
  317.       End
  318.       Begin MSComCtl2.DTPicker DTPicker6 
  319.          DataField       =   "开始时间"
  320.          Height          =   300
  321.          Left            =   4800
  322.          TabIndex        =   18
  323.          Top             =   2760
  324.          Width           =   1695
  325.          _ExtentX        =   2990
  326.          _ExtentY        =   529
  327.          _Version        =   393216
  328.          CheckBox        =   -1  'True
  329.          DateIsNull      =   -1  'True
  330.          Format          =   27066369
  331.          CurrentDate     =   36186
  332.       End
  333.       Begin MSComCtl2.DTPicker DTPicker7 
  334.          DataField       =   "试用开始时间"
  335.          Height          =   300
  336.          Left            =   1680
  337.          TabIndex        =   19
  338.          Top             =   3240
  339.          Width           =   1695
  340.          _ExtentX        =   2990
  341.          _ExtentY        =   529
  342.          _Version        =   393216
  343.          CheckBox        =   -1  'True
  344.          DateIsNull      =   -1  'True
  345.          Format          =   27066369
  346.          CurrentDate     =   36186
  347.       End
  348.       Begin MSComCtl2.DTPicker DTPicker8 
  349.          DataField       =   "试用结束时间"
  350.          Height          =   300
  351.          Left            =   4800
  352.          TabIndex        =   20
  353.          Top             =   3240
  354.          Width           =   1695
  355.          _ExtentX        =   2990
  356.          _ExtentY        =   529
  357.          _Version        =   393216
  358.          CheckBox        =   -1  'True
  359.          DateIsNull      =   -1  'True
  360.          Format          =   27066369
  361.          CurrentDate     =   36186
  362.       End
  363.       Begin MSComCtl2.DTPicker DTPicker9 
  364.          DataField       =   "停止时间"
  365.          Height          =   300
  366.          Left            =   7920
  367.          TabIndex        =   21
  368.          Top             =   4680
  369.          Width           =   1695
  370.          _ExtentX        =   2990
  371.          _ExtentY        =   529
  372.          _Version        =   393216
  373.          CheckBox        =   -1  'True
  374.          Format          =   27066369
  375.          CurrentDate     =   36186
  376.       End
  377.       Begin Threed.SSCommand CmdXianShi_Exit 
  378.          Height          =   375
  379.          Left            =   8280
  380.          TabIndex        =   55
  381.          Top             =   5280
  382.          Width           =   1095
  383.          _Version        =   65536
  384.          _ExtentX        =   1931
  385.          _ExtentY        =   661
  386.          _StockProps     =   78
  387.          Caption         =   "&E.关 闭"
  388.          Font3D          =   1
  389.       End
  390.       Begin VB.Label lblLabels 
  391.          Caption         =   "是否已停止"
  392.          Height          =   255
  393.          Index           =   20
  394.          Left            =   360
  395.          TabIndex        =   42
  396.          Top             =   4710
  397.          Width           =   1215
  398.       End
  399.       Begin VB.Label lblLabels 
  400.          Caption         =   "签定期限"
  401.          DataField       =   $"F_LaoDongHeTongYuBao.frx":0000
  402.          Height          =   255
  403.          Index           =   19
  404.          Left            =   360
  405.          TabIndex        =   41
  406.          Top             =   2783
  407.          Width           =   1215
  408.       End
  409.       Begin VB.Label lblLabels 
  410.          Caption         =   "劳动合同编号"
  411.          Height          =   255
  412.          Index           =   0
  413.          Left            =   360
  414.          TabIndex        =   40
  415.          Top             =   360
  416.          Width           =   1215
  417.       End
  418.       Begin VB.Label lblLabels 
  419.          Caption         =   "姓  名"
  420.          Height          =   255
  421.          Index           =   1
  422.          Left            =   3600
  423.          TabIndex        =   39
  424.          Top             =   375
  425.          Width           =   1095
  426.       End
  427.       Begin VB.Label lblLabels 
  428.          Caption         =   "签定时间"
  429.          Height          =   255
  430.          Index           =   2
  431.          Left            =   6720
  432.          TabIndex        =   38
  433.          Top             =   2303
  434.          Width           =   855
  435.       End
  436.       Begin VB.Label lblLabels 
  437.          Caption         =   "文化程度"
  438.          Height          =   255
  439.          Index           =   3
  440.          Left            =   6720
  441.          TabIndex        =   37
  442.          Top             =   375
  443.          Width           =   735
  444.       End
  445.       Begin VB.Label lblLabels 
  446.          Caption         =   "性  别"
  447.          Height          =   255
  448.          Index           =   4
  449.          Left            =   360
  450.          TabIndex        =   36
  451.          Top             =   855
  452.          Width           =   735
  453.       End
  454.       Begin VB.Label lblLabels 
  455.          Caption         =   "出生日期:"
  456.          Height          =   255
  457.          Index           =   5
  458.          Left            =   3600
  459.          TabIndex        =   35
  460.          Top             =   855
  461.          Width           =   855
  462.       End
  463.       Begin VB.Label lblLabels 
  464.          Caption         =   "身份证号"
  465.          Height          =   255
  466.          Index           =   6
  467.          Left            =   6720
  468.          TabIndex        =   34
  469.          Top             =   1320
  470.          Width           =   855
  471.       End
  472.       Begin VB.Label lblLabels 
  473.          Caption         =   "家庭通讯地址"
  474.          Height          =   255
  475.          Index           =   7
  476.          Left            =   360
  477.          TabIndex        =   33
  478.          Top             =   1335
  479.          Width           =   1215
  480.       End
  481.       Begin VB.Label lblLabels 
  482.          Caption         =   "邮  编"
  483.          Height          =   255
  484.          Index           =   8
  485.          Left            =   6720
  486.          TabIndex        =   32
  487.          Top             =   855
  488.          Width           =   615
  489.       End
  490.       Begin VB.Label lblLabels 
  491.          Caption         =   "所在街道办事处"
  492.          Height          =   255
  493.          Index           =   9
  494.          Left            =   360
  495.          TabIndex        =   31
  496.          Top             =   1815
  497.          Width           =   1335
  498.       End
  499.       Begin VB.Label lblLabels 
  500.          Caption         =   "开始时间"
  501.          DataField       =   $"F_LaoDongHeTongYuBao.frx":00C8
  502.          Height          =   255
  503.          Index           =   10
  504.          Left            =   3480
  505.          TabIndex        =   30
  506.          Top             =   2783
  507.          Width           =   1215
  508.       End
  509.       Begin VB.Label lblLabels 
  510.          Caption         =   "结束时间"
  511.          Height          =   255
  512.          Index           =   11
  513.          Left            =   6720
  514.          TabIndex        =   29
  515.          Top             =   2783
  516.          Width           =   975
  517.       End
  518.       Begin VB.Label lblLabels 
  519.          Caption         =   "试用开始时间"
  520.          Height          =   255
  521.          Index           =   12
  522.          Left            =   360
  523.          TabIndex        =   28
  524.          Top             =   3270
  525.          Width           =   1215
  526.       End
  527.       Begin VB.Label lblLabels 
  528.          Caption         =   "试用结束时间"
  529.          Height          =   255
  530.          Index           =   13
  531.          Left            =   3480
  532.          TabIndex        =   27
  533.          Top             =   3270
  534.          Width           =   1095
  535.       End
  536.       Begin VB.Label lblLabels 
  537.          Caption         =   "部  门"
  538.          Height          =   255
  539.          Index           =   14
  540.          Left            =   360
  541.          TabIndex        =   26
  542.          Top             =   2303
  543.          Width           =   735
  544.       End
  545.       Begin VB.Label lblLabels 
  546.          Caption         =   "岗  位"
  547.          Height          =   255
  548.          Index           =   15
  549.          Left            =   3480
  550.          TabIndex        =   25
  551.          Top             =   2303
  552.          Width           =   615
  553.       End
  554.       Begin VB.Label lblLabels 
  555.          Caption         =   "当事人约定的其他内容"
  556.          Height          =   495
  557.          Index           =   16
  558.          Left            =   360
  559.          TabIndex        =   24
  560.          Top             =   3720
  561.          Width           =   1095
  562.       End
  563.       Begin VB.Label lblLabels 
  564.          Caption         =   "停止方式"
  565.          Height          =   255
  566.          Index           =   17
  567.          Left            =   3720
  568.          TabIndex        =   23
  569.          Top             =   4710
  570.          Width           =   1215
  571.       End
  572.       Begin VB.Label lblLabels 
  573.          Caption         =   "停止时间"
  574.          Height          =   255
  575.          Index           =   18
  576.          Left            =   6720
  577.          TabIndex        =   22
  578.          Top             =   4710
  579.          Width           =   1095
  580.       End
  581.    End
  582.    Begin VB.Frame Frame2 
  583.       Caption         =   "查询结果"
  584.       Height          =   5895
  585.       Left            =   120
  586.       TabIndex        =   50
  587.       Top             =   1680
  588.       Width           =   9735
  589.       Begin MSDataGridLib.DataGrid DataGrid1 
  590.          Height          =   4935
  591.          Left            =   240
  592.          TabIndex        =   51
  593.          Top             =   240
  594.          Width           =   9255
  595.          _ExtentX        =   16325
  596.          _ExtentY        =   8705
  597.          _Version        =   393216
  598.          HeadLines       =   1
  599.          RowHeight       =   14
  600.          BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  601.             Name            =   "MS Sans Serif"
  602.             Size            =   8.25
  603.             Charset         =   0
  604.             Weight          =   400
  605.             Underline       =   0   'False
  606.             Italic          =   0   'False
  607.             Strikethrough   =   0   'False
  608.          EndProperty
  609.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  610.             Name            =   "宋体"
  611.             Size            =   9
  612.             Charset         =   134
  613.             Weight          =   400
  614.             Underline       =   0   'False
  615.             Italic          =   0   'False
  616.             Strikethrough   =   0   'False
  617.          EndProperty
  618.          ColumnCount     =   2
  619.          BeginProperty Column00 
  620.             DataField       =   ""
  621.             Caption         =   ""
  622.             BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
  623.                Type            =   0
  624.                Format          =   ""
  625.                HaveTrueFalseNull=   0
  626.                FirstDayOfWeek  =   0
  627.                FirstWeekOfYear =   0
  628.                LCID            =   2052
  629.                SubFormatType   =   0
  630.             EndProperty
  631.          EndProperty
  632.          BeginProperty Column01 
  633.             DataField       =   ""
  634.             Caption         =   ""
  635.             BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
  636.                Type            =   0
  637.                Format          =   ""
  638.                HaveTrueFalseNull=   0
  639.                FirstDayOfWeek  =   0
  640.                FirstWeekOfYear =   0
  641.                LCID            =   2052
  642.                SubFormatType   =   0
  643.             EndProperty
  644.          EndProperty
  645.          SplitCount      =   1
  646.          BeginProperty Split0 
  647.             BeginProperty Column00 
  648.             EndProperty
  649.             BeginProperty Column01 
  650.             EndProperty
  651.          EndProperty
  652.       End
  653.       Begin Threed.SSCommand Command3 
  654.          Height          =   375
  655.          Left            =   8400
  656.          TabIndex        =   54
  657.          Top             =   5400
  658.          Width           =   1095
  659.          _Version        =   65536
  660.          _ExtentX        =   1931
  661.          _ExtentY        =   661
  662.          _StockProps     =   78
  663.          Caption         =   "&X.显 示"
  664.          Font3D          =   1
  665.       End
  666.    End
  667. End
  668. Attribute VB_Name = "F_LaoDongHeTongYuBao"
  669. Attribute VB_GlobalNameSpace = False
  670. Attribute VB_Creatable = False
  671. Attribute VB_PredeclaredId = True
  672. Attribute VB_Exposed = False
  673. Dim WithEvents rs As Recordset
  674. Attribute rs.VB_VarHelpID = -1
  675. Dim WithEvents adoPrimaryRS As Recordset
  676. Attribute adoPrimaryRS.VB_VarHelpID = -1
  677. Dim WithEvents adoXianshiRS As Recordset
  678. Attribute adoXianshiRS.VB_VarHelpID = -1
  679. Dim Row_ID As String  '为找到ID 的查询SQL 语句
  680. Private Sub Check2_Click()
  681. If Check2.Value = 1 Then
  682.     Label4.Visible = True
  683.     Label5.Visible = True
  684.     DTPicker1.Visible = True
  685.     DTPicker2.Visible = True
  686.     
  687.     Frame2.Visible = True
  688.     Frame3.Visible = False
  689. End If
  690. End Sub
  691. Private Sub CmdXianShi_Exit_Click()
  692. Frame2.Visible = True
  693. Frame3.Visible = False
  694. End Sub
  695. Private Sub Command1_Click()
  696. Dim DataGrid_sql  As String  '数据表格中的数据源
  697. Dim oText As TextBox
  698.     If Check2.Value = 1 Then
  699.         
  700.         DataGrid_sql = "select * from 劳动合同  where 是否已停止 = '否 ' and 停止时间  between ' " & DTPicker1 & " ' and ' " & DTPicker2 & " '"
  701.        
  702.     End If
  703.     
  704.     If Check2.Value = 1 Then
  705.     Set adoPrimaryRS = New Recordset
  706.     adoPrimaryRS.Open DataGrid_sql, db, adOpenStatic, adLockOptimistic
  707.     Set DataGrid1.DataSource = adoPrimaryRS
  708.     
  709.           
  710.     Frame3.Visible = False
  711.     Frame2.Visible = True
  712.     
  713.     End If
  714. End Sub
  715. Private Sub Command2_Click()
  716. RSGL.Enabled = True
  717. Unload Me
  718. End Sub
  719. Private Sub Command3_Click()
  720. Dim XianShi_sql    As String '单条数据显示的数据源
  721.   
  722.   
  723.   If Row_ID = "" Then
  724.     MsgBox "请您选择其中一条信息!"
  725.     Exit Sub
  726.   Else
  727.     XianShi_sql = "select * from 劳动合同  where ID = " & Row_ID
  728.     
  729.     Set adoXianshiRS = New Recordset
  730.     adoXianshiRS.Open XianShi_sql, db, adOpenStatic, adLockOptimistic
  731.          
  732.    
  733.     For Each oText In Me.txtFields
  734.           Set oText.DataSource = adoXianshiRS
  735.     Next
  736.     
  737.     Set DTPicker3.DataSource = adoXianshiRS
  738.     Set DTPicker4.DataSource = adoXianshiRS
  739.     Set DTPicker5.DataSource = adoXianshiRS
  740.     Set DTPicker6.DataSource = adoXianshiRS
  741.     Set DTPicker7.DataSource = adoXianshiRS
  742.     Set DTPicker8.DataSource = adoXianshiRS
  743.     Set DTPicker9.DataSource = adoXianshiRS
  744.     
  745.     Set Combo3.DataSource = adoXianshiRS
  746.     Set Combo4.DataSource = adoXianshiRS
  747.    
  748.   
  749. End If
  750.   
  751.   Frame2.Visible = False
  752.   Frame3.Visible = True
  753.        
  754. End Sub
  755. Private Sub DataGrid1_Click()
  756.   If Not adoPrimaryRS.BOF And Not adoPrimaryRS.EOF Then
  757.       If Not IsNull(adoPrimaryRS.Fields("ID")) Then
  758.           Row_ID = adoPrimaryRS.Fields("ID")
  759.       Else
  760.           MsgBox "请您选择其中一条信息!"
  761.       End If
  762.    Else
  763.     Exit Sub
  764.   End If
  765.   
  766. End Sub
  767. Private Sub Form_Load()
  768. On Error Resume Next
  769.     For Each TextBox In Me.Controls
  770.         TextBox.Font.Name = "宋体"
  771.         TextBox.Font.Size = 9
  772.     Next
  773. Frame2.Visible = False
  774. Frame3.Visible = False
  775. For Each oText In Me.txtFields
  776.    oText.Locked = True
  777. Next
  778.  DTPicker3.Enabled = True
  779.  DTPicker4.Enabled = True
  780.  DTPicker5.Enabled = True
  781.  DTPicker6.Enabled = True
  782.  DTPicker7.Enabled = True
  783.  DTPicker8.Enabled = True
  784.  DTPicker9.Enabled = True
  785.  Combo3.Enabled = True
  786.  Combo4.Enabled = True
  787.  Frame2.Visible = False
  788.  Frame3.Visible = False
  789.            
  790. End Sub