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

企业管理

开发平台:

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 = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
  5. Object = "{0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#1.0#0"; "THREED32.OCX"
  6. Begin VB.Form F_RuZhiTongZhiShu 
  7.    BorderStyle     =   3  'Fixed Dialog
  8.    Caption         =   "入职通知书"
  9.    ClientHeight    =   7545
  10.    ClientLeft      =   1095
  11.    ClientTop       =   330
  12.    ClientWidth     =   10230
  13.    ControlBox      =   0   'False
  14.    KeyPreview      =   -1  'True
  15.    LinkTopic       =   "Form1"
  16.    LockControls    =   -1  'True
  17.    MaxButton       =   0   'False
  18.    MinButton       =   0   'False
  19.    Moveable        =   0   'False
  20.    ScaleHeight     =   7545
  21.    ScaleWidth      =   10230
  22.    StartUpPosition =   2  '屏幕中心
  23.    Begin VB.Frame Frame1 
  24.       Height          =   7455
  25.       Left            =   120
  26.       TabIndex        =   30
  27.       Top             =   0
  28.       Width           =   9975
  29.       Begin TabDlg.SSTab SSTab1 
  30.          Height          =   7095
  31.          Left            =   120
  32.          TabIndex        =   31
  33.          Top             =   240
  34.          Width           =   9615
  35.          _ExtentX        =   16960
  36.          _ExtentY        =   12515
  37.          _Version        =   393216
  38.          Tabs            =   2
  39.          TabHeight       =   520
  40.          TabCaption(0)   =   "编       辑"
  41.          TabPicture(0)   =   "F_RuZhiTongZhiShu.frx":0000
  42.          Tab(0).ControlEnabled=   -1  'True
  43.          Tab(0).Control(0)=   "Frame3"
  44.          Tab(0).Control(0).Enabled=   0   'False
  45.          Tab(0).Control(1)=   "Frame2"
  46.          Tab(0).Control(1).Enabled=   0   'False
  47.          Tab(0).Control(2)=   "Frame4"
  48.          Tab(0).Control(2).Enabled=   0   'False
  49.          Tab(0).Control(3)=   "Picture1"
  50.          Tab(0).Control(3).Enabled=   0   'False
  51.          Tab(0).ControlCount=   4
  52.          TabCaption(1)   =   "列       表"
  53.          TabPicture(1)   =   "F_RuZhiTongZhiShu.frx":001C
  54.          Tab(1).ControlEnabled=   0   'False
  55.          Tab(1).Control(0)=   "Frame5"
  56.          Tab(1).Control(0).Enabled=   0   'False
  57.          Tab(1).ControlCount=   1
  58.          Begin VB.PictureBox Picture1 
  59.             Appearance      =   0  'Flat
  60.             BorderStyle     =   0  'None
  61.             BeginProperty Font 
  62.                Name            =   "MS Sans Serif"
  63.                Size            =   8.25
  64.                Charset         =   0
  65.                Weight          =   400
  66.                Underline       =   0   'False
  67.                Italic          =   0   'False
  68.                Strikethrough   =   0   'False
  69.             EndProperty
  70.             ForeColor       =   &H80000008&
  71.             Height          =   420
  72.             Left            =   2280
  73.             ScaleHeight     =   420
  74.             ScaleWidth      =   6720
  75.             TabIndex        =   62
  76.             Top             =   6600
  77.             Width           =   6720
  78.             Begin Threed.SSCommand cmdClose 
  79.                Height          =   330
  80.                Left            =   5520
  81.                TabIndex        =   63
  82.                Top             =   0
  83.                Width           =   1095
  84.                _Version        =   65536
  85.                _ExtentX        =   1931
  86.                _ExtentY        =   573
  87.                _StockProps     =   78
  88.                Caption         =   "&Q.关闭"
  89.                Font3D          =   1
  90.             End
  91.             Begin Threed.SSCommand CmdAdd 
  92.                Height          =   330
  93.                Left            =   720
  94.                TabIndex        =   25
  95.                Top             =   0
  96.                Width           =   1095
  97.                _Version        =   65536
  98.                _ExtentX        =   1931
  99.                _ExtentY        =   573
  100.                _StockProps     =   78
  101.                Caption         =   "&A.增 加"
  102.                Font3D          =   1
  103.             End
  104.             Begin Threed.SSCommand cmdEdit 
  105.                Height          =   330
  106.                Left            =   1920
  107.                TabIndex        =   26
  108.                Top             =   0
  109.                Width           =   1095
  110.                _Version        =   65536
  111.                _ExtentX        =   1931
  112.                _ExtentY        =   573
  113.                _StockProps     =   78
  114.                Caption         =   "&E.编 辑"
  115.                Font3D          =   1
  116.             End
  117.             Begin Threed.SSCommand CmdDelete 
  118.                Height          =   330
  119.                Left            =   3120
  120.                TabIndex        =   27
  121.                Top             =   0
  122.                Width           =   1095
  123.                _Version        =   65536
  124.                _ExtentX        =   1931
  125.                _ExtentY        =   573
  126.                _StockProps     =   78
  127.                Caption         =   "&D.删 除"
  128.                Font3D          =   1
  129.             End
  130.             Begin Threed.SSCommand cmdUpdate 
  131.                Height          =   330
  132.                Left            =   4320
  133.                TabIndex        =   64
  134.                Top             =   0
  135.                Width           =   1095
  136.                _Version        =   65536
  137.                _ExtentX        =   1931
  138.                _ExtentY        =   573
  139.                _StockProps     =   78
  140.                Caption         =   "&Y.保存"
  141.                Font3D          =   1
  142.             End
  143.             Begin Threed.SSCommand cmdRefresh 
  144.                Height          =   330
  145.                Left            =   4320
  146.                TabIndex        =   28
  147.                Top             =   0
  148.                Width           =   1095
  149.                _Version        =   65536
  150.                _ExtentX        =   1931
  151.                _ExtentY        =   573
  152.                _StockProps     =   78
  153.                Caption         =   "&R.刷 新"
  154.                Font3D          =   1
  155.             End
  156.             Begin Threed.SSCommand cmdCancel 
  157.                Height          =   330
  158.                Left            =   5520
  159.                TabIndex        =   29
  160.                Top             =   0
  161.                Width           =   1095
  162.                _Version        =   65536
  163.                _ExtentX        =   1931
  164.                _ExtentY        =   573
  165.                _StockProps     =   78
  166.                Caption         =   "&C.取 消"
  167.                Font3D          =   1
  168.             End
  169.          End
  170.          Begin VB.Frame Frame5 
  171.             Height          =   6135
  172.             Left            =   -74760
  173.             TabIndex        =   56
  174.             Top             =   480
  175.             Width           =   9135
  176.             Begin MSDataGridLib.DataGrid DataGrid1 
  177.                Height          =   5775
  178.                Left            =   240
  179.                TabIndex        =   57
  180.                Top             =   240
  181.                Width           =   8655
  182.                _ExtentX        =   15266
  183.                _ExtentY        =   10186
  184.                _Version        =   393216
  185.                AllowUpdate     =   0   'False
  186.                HeadLines       =   1
  187.                RowHeight       =   14
  188.                BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  189.                   Name            =   "MS Sans Serif"
  190.                   Size            =   8.25
  191.                   Charset         =   0
  192.                   Weight          =   400
  193.                   Underline       =   0   'False
  194.                   Italic          =   0   'False
  195.                   Strikethrough   =   0   'False
  196.                EndProperty
  197.                BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  198.                   Name            =   "宋体"
  199.                   Size            =   9
  200.                   Charset         =   134
  201.                   Weight          =   400
  202.                   Underline       =   0   'False
  203.                   Italic          =   0   'False
  204.                   Strikethrough   =   0   'False
  205.                EndProperty
  206.                ColumnCount     =   2
  207.                BeginProperty Column00 
  208.                   DataField       =   ""
  209.                   Caption         =   ""
  210.                   BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
  211.                      Type            =   0
  212.                      Format          =   ""
  213.                      HaveTrueFalseNull=   0
  214.                      FirstDayOfWeek  =   0
  215.                      FirstWeekOfYear =   0
  216.                      LCID            =   2052
  217.                      SubFormatType   =   0
  218.                   EndProperty
  219.                EndProperty
  220.                BeginProperty Column01 
  221.                   DataField       =   ""
  222.                   Caption         =   ""
  223.                   BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
  224.                      Type            =   0
  225.                      Format          =   ""
  226.                      HaveTrueFalseNull=   0
  227.                      FirstDayOfWeek  =   0
  228.                      FirstWeekOfYear =   0
  229.                      LCID            =   2052
  230.                      SubFormatType   =   0
  231.                   EndProperty
  232.                EndProperty
  233.                SplitCount      =   1
  234.                BeginProperty Split0 
  235.                   BeginProperty Column00 
  236.                   EndProperty
  237.                   BeginProperty Column01 
  238.                   EndProperty
  239.                EndProperty
  240.             End
  241.          End
  242.          Begin VB.Frame Frame4 
  243.             Caption         =   "服务管理部"
  244.             Height          =   2775
  245.             Left            =   240
  246.             TabIndex        =   47
  247.             Top             =   2280
  248.             Width           =   9135
  249.             Begin VB.ComboBox Combo2 
  250.                Appearance      =   0  'Flat
  251.                DataField       =   "发餐卡"
  252.                Height          =   300
  253.                Left            =   7320
  254.                TabIndex        =   13
  255.                Top             =   360
  256.                Width           =   1455
  257.             End
  258.             Begin VB.ComboBox Combo1 
  259.                Appearance      =   0  'Flat
  260.                DataField       =   "发胸卡"
  261.                Height          =   300
  262.                Left            =   1440
  263.                TabIndex        =   11
  264.                Top             =   360
  265.                Width           =   1455
  266.             End
  267.             Begin VB.TextBox txtFields 
  268.                Appearance      =   0  'Flat
  269.                DataField       =   "发工装"
  270.                Height          =   525
  271.                Index           =   22
  272.                Left            =   1440
  273.                MultiLine       =   -1  'True
  274.                ScrollBars      =   2  'Vertical
  275.                TabIndex        =   19
  276.                Top             =   1680
  277.                Width           =   2895
  278.             End
  279.             Begin VB.TextBox txtFields 
  280.                Appearance      =   0  'Flat
  281.                DataField       =   "发餐卡经办人"
  282.                Height          =   285
  283.                Index           =   10
  284.                Left            =   1440
  285.                TabIndex        =   14
  286.                Top             =   720
  287.                Width           =   1455
  288.             End
  289.             Begin VB.TextBox txtFields 
  290.                Appearance      =   0  'Flat
  291.                DataField       =   "服务管理部经理签字"
  292.                Height          =   285
  293.                Index           =   18
  294.                Left            =   1440
  295.                TabIndex        =   21
  296.                Top             =   2280
  297.                Width           =   1455
  298.             End
  299.             Begin VB.TextBox txtFields 
  300.                Appearance      =   0  'Flat
  301.                DataField       =   "发其他物品登记"
  302.                Height          =   525
  303.                Index           =   17
  304.                Left            =   5880
  305.                MultiLine       =   -1  'True
  306.                ScrollBars      =   2  'Vertical
  307.                TabIndex        =   20
  308.                Top             =   1680
  309.                Width           =   2895
  310.             End
  311.             Begin VB.TextBox txtFields 
  312.                Appearance      =   0  'Flat
  313.                DataField       =   "发工具登记"
  314.                Height          =   525
  315.                Index           =   16
  316.                Left            =   5880
  317.                MultiLine       =   -1  'True
  318.                ScrollBars      =   2  'Vertical
  319.                TabIndex        =   18
  320.                Top             =   1080
  321.                Width           =   2895
  322.             End
  323.             Begin VB.TextBox txtFields 
  324.                Appearance      =   0  'Flat
  325.                DataField       =   "发劳保登记"
  326.                Height          =   525
  327.                Index           =   15
  328.                Left            =   1440
  329.                MultiLine       =   -1  'True
  330.                ScrollBars      =   2  'Vertical
  331.                TabIndex        =   17
  332.                Top             =   1080
  333.                Width           =   2895
  334.             End
  335.             Begin VB.TextBox txtFields 
  336.                Appearance      =   0  'Flat
  337.                DataField       =   "协议经办人"
  338.                Height          =   285
  339.                Index           =   14
  340.                Left            =   7320
  341.                TabIndex        =   16
  342.                Top             =   720
  343.                Width           =   1455
  344.             End
  345.             Begin VB.TextBox txtFields 
  346.                Appearance      =   0  'Flat
  347.                DataField       =   "签安全协议"
  348.                Height          =   285
  349.                Index           =   13
  350.                Left            =   4320
  351.                TabIndex        =   15
  352.                Top             =   720
  353.                Width           =   1455
  354.             End
  355.             Begin VB.TextBox txtFields 
  356.                Appearance      =   0  'Flat
  357.                DataField       =   "发胸卡经办人"
  358.                Height          =   285
  359.                Index           =   12
  360.                Left            =   4320
  361.                TabIndex        =   12
  362.                Top             =   360
  363.                Width           =   1455
  364.             End
  365.             Begin VB.Label lblLabels 
  366.                Caption         =   "发工装"
  367.                Height          =   255
  368.                Index           =   25
  369.                Left            =   120
  370.                TabIndex        =   61
  371.                Top             =   1680
  372.                Width           =   1095
  373.             End
  374.             Begin VB.Label lblLabels 
  375.                Caption         =   "发餐卡"
  376.                Height          =   255
  377.                Index           =   24
  378.                Left            =   6120
  379.                TabIndex        =   60
  380.                Top             =   360
  381.                Width           =   1695
  382.             End
  383.             Begin VB.Label lblLabels 
  384.                Caption         =   "发餐卡经办人"
  385.                Height          =   255
  386.                Index           =   23
  387.                Left            =   120
  388.                TabIndex        =   59
  389.                Top             =   720
  390.                Width           =   1215
  391.             End
  392.             Begin VB.Label lblLabels 
  393.                Caption         =   "服务管理部经理签字:"
  394.                Height          =   375
  395.                Index           =   18
  396.                Left            =   120
  397.                TabIndex        =   55
  398.                Top             =   2280
  399.                Width           =   1095
  400.             End
  401.             Begin VB.Label lblLabels 
  402.                Caption         =   "发其他物品登记"
  403.                Height          =   375
  404.                Index           =   17
  405.                Left            =   4680
  406.                TabIndex        =   54
  407.                Top             =   1680
  408.                Width           =   975
  409.             End
  410.             Begin VB.Label lblLabels 
  411.                Caption         =   "发工具登记"
  412.                Height          =   255
  413.                Index           =   16
  414.                Left            =   4680
  415.                TabIndex        =   53
  416.                Top             =   1200
  417.                Width           =   975
  418.             End
  419.             Begin VB.Label lblLabels 
  420.                Caption         =   "发劳保登记"
  421.                Height          =   255
  422.                Index           =   15
  423.                Left            =   120
  424.                TabIndex        =   52
  425.                Top             =   1080
  426.                Width           =   1095
  427.             End
  428.             Begin VB.Label lblLabels 
  429.                Caption         =   "协议经办人"
  430.                Height          =   255
  431.                Index           =   14
  432.                Left            =   6120
  433.                TabIndex        =   51
  434.                Top             =   720
  435.                Width           =   1095
  436.             End
  437.             Begin VB.Label lblLabels 
  438.                Caption         =   "签安全协议"
  439.                Height          =   255
  440.                Index           =   13
  441.                Left            =   3120
  442.                TabIndex        =   50
  443.                Top             =   720
  444.                Width           =   1815
  445.             End
  446.             Begin VB.Label lblLabels 
  447.                Caption         =   "发胸卡经办人"
  448.                Height          =   255
  449.                Index           =   12
  450.                Left            =   3120
  451.                TabIndex        =   49
  452.                Top             =   360
  453.                Width           =   1095
  454.             End
  455.             Begin VB.Label lblLabels 
  456.                Caption         =   "发胸卡"
  457.                Height          =   255
  458.                Index           =   11
  459.                Left            =   120
  460.                TabIndex        =   48
  461.                Top             =   360
  462.                Width           =   1695
  463.             End
  464.          End
  465.          Begin VB.Frame Frame2 
  466.             Caption         =   "人力资源部"
  467.             Height          =   1335
  468.             Left            =   240
  469.             TabIndex        =   43
  470.             Top             =   5160
  471.             Width           =   9135
  472.             Begin MSComCtl2.DTPicker DTPicker2 
  473.                DataField       =   "入职教育时间"
  474.                Height          =   300
  475.                Left            =   1440
  476.                TabIndex        =   22
  477.                Top             =   360
  478.                Width           =   1455
  479.                _ExtentX        =   2566
  480.                _ExtentY        =   529
  481.                _Version        =   393216
  482.                CheckBox        =   -1  'True
  483.                DateIsNull      =   -1  'True
  484.                Format          =   127729665
  485.                CurrentDate     =   36191
  486.             End
  487.             Begin VB.TextBox txtFields 
  488.                Appearance      =   0  'Flat
  489.                DataField       =   "补充说明"
  490.                Height          =   525
  491.                Index           =   21
  492.                Left            =   1440
  493.                MultiLine       =   -1  'True
  494.                ScrollBars      =   2  'Vertical
  495.                TabIndex        =   24
  496.                Top             =   720
  497.                Width           =   7335
  498.             End
  499.             Begin VB.TextBox txtFields 
  500.                Appearance      =   0  'Flat
  501.                DataField       =   "人事部经理签字"
  502.                Height          =   285
  503.                Index           =   20
  504.                Left            =   7320
  505.                TabIndex        =   23
  506.                Top             =   360
  507.                Width           =   1455
  508.             End
  509.             Begin VB.Label lblLabels 
  510.                Caption         =   "补充说明"
  511.                Height          =   255
  512.                Index           =   21
  513.                Left            =   120
  514.                TabIndex        =   46
  515.                Top             =   720
  516.                Width           =   1815
  517.             End
  518.             Begin VB.Label lblLabels 
  519.                Caption         =   "人事部经理签字"
  520.                Height          =   255
  521.                Index           =   20
  522.                Left            =   5160
  523.                TabIndex        =   45
  524.                Top             =   360
  525.                Width           =   1455
  526.             End
  527.             Begin VB.Label lblLabels 
  528.                Caption         =   "入职教育时间"
  529.                Height          =   255
  530.                Index           =   19
  531.                Left            =   120
  532.                TabIndex        =   44
  533.                Top             =   360
  534.                Width           =   1815
  535.             End
  536.          End
  537.          Begin VB.Frame Frame3 
  538.             Caption         =   "基本情况"
  539.             Height          =   1815
  540.             Left            =   240
  541.             TabIndex        =   32
  542.             Top             =   360
  543.             Width           =   9135
  544.             Begin VB.TextBox txtFields 
  545.                Appearance      =   0  'Flat
  546.                DataField       =   "员工号"
  547.                Height          =   285
  548.                Index           =   3
  549.                Left            =   1440
  550.                TabIndex        =   0
  551.                Top             =   360
  552.                Width           =   1455
  553.             End
  554.             Begin MSComCtl2.DTPicker DTPicker3 
  555.                DataField       =   "出生日期"
  556.                Height          =   300
  557.                Left            =   4200
  558.                TabIndex        =   4
  559.                Top             =   720
  560.                Width           =   1455
  561.                _ExtentX        =   2566
  562.                _ExtentY        =   529
  563.                _Version        =   393216
  564.                CheckBox        =   -1  'True
  565.                DateIsNull      =   -1  'True
  566.                Format          =   127729665
  567.                CurrentDate     =   36191
  568.             End
  569.             Begin MSComCtl2.DTPicker DTPicker1 
  570.                DataField       =   "入职时间"
  571.                Height          =   300
  572.                Left            =   4200
  573.                TabIndex        =   10
  574.                Top             =   1440
  575.                Width           =   1455
  576.                _ExtentX        =   2566
  577.                _ExtentY        =   529
  578.                _Version        =   393216
  579.                CheckBox        =   -1  'True
  580.                DateIsNull      =   -1  'True
  581.                Format          =   127729665
  582.                CurrentDate     =   36191
  583.             End
  584.             Begin VB.TextBox txtFields 
  585.                Appearance      =   0  'Flat
  586.                DataField       =   "鞋号"
  587.                Height          =   285
  588.                Index           =   9
  589.                Left            =   1440
  590.                TabIndex        =   9
  591.                Top             =   1448
  592.                Width           =   1455
  593.             End
  594.             Begin VB.TextBox txtFields 
  595.                Appearance      =   0  'Flat
  596.                DataField       =   "体重"
  597.                Height          =   285
  598.                Index           =   8
  599.                Left            =   7320
  600.                TabIndex        =   8
  601.                Top             =   1080
  602.                Width           =   1455
  603.             End
  604.             Begin VB.TextBox txtFields 
  605.                Appearance      =   0  'Flat
  606.                DataField       =   "身高"
  607.                Height          =   285
  608.                Index           =   7
  609.                Left            =   4200
  610.                TabIndex        =   7
  611.                Top             =   1080
  612.                Width           =   1455
  613.             End
  614.             Begin VB.TextBox txtFields 
  615.                Appearance      =   0  'Flat
  616.                DataField       =   "民族"
  617.                Height          =   285
  618.                Index           =   6
  619.                Left            =   1440
  620.                TabIndex        =   6
  621.                Top             =   1080
  622.                Width           =   1455
  623.             End
  624.             Begin VB.TextBox txtFields 
  625.                Appearance      =   0  'Flat
  626.                DataField       =   "岗位名称"
  627.                Height          =   285
  628.                Index           =   4
  629.                Left            =   7320
  630.                TabIndex        =   5
  631.                Top             =   720
  632.                Width           =   1455
  633.             End
  634.             Begin VB.TextBox txtFields 
  635.                Appearance      =   0  'Flat
  636.                DataField       =   "性别"
  637.                Height          =   285
  638.                Index           =   2
  639.                Left            =   1440
  640.                TabIndex        =   3
  641.                Top             =   720
  642.                Width           =   1455
  643.             End
  644.             Begin VB.TextBox txtFields 
  645.                Appearance      =   0  'Flat
  646.                DataField       =   "姓名"
  647.                Height          =   285
  648.                Index           =   1
  649.                Left            =   7320
  650.                TabIndex        =   2
  651.                Top             =   360
  652.                Width           =   1455
  653.             End
  654.             Begin VB.TextBox txtFields 
  655.                Appearance      =   0  'Flat
  656.                DataField       =   "部门"
  657.                Height          =   285
  658.                Index           =   0
  659.                Left            =   4200
  660.                TabIndex        =   1
  661.                Top             =   360
  662.                Width           =   1455
  663.             End
  664.             Begin VB.Label lblLabels 
  665.                Caption         =   "员 工 号"
  666.                Height          =   255
  667.                Index           =   22
  668.                Left            =   120
  669.                TabIndex        =   58
  670.                Top             =   375
  671.                Width           =   975
  672.             End
  673.             Begin VB.Label lblLabels 
  674.                Caption         =   "入职时间"
  675.                Height          =   255
  676.                Index           =   10
  677.                Left            =   3120
  678.                TabIndex        =   42
  679.                Top             =   1463
  680.                Width           =   855
  681.             End
  682.             Begin VB.Label lblLabels 
  683.                Caption         =   "鞋  号"
  684.                Height          =   255
  685.                Index           =   9
  686.                Left            =   120
  687.                TabIndex        =   41
  688.                Top             =   1463
  689.                Width           =   615
  690.             End
  691.             Begin VB.Label lblLabels 
  692.                Caption         =   "体  重"
  693.                Height          =   255
  694.                Index           =   8
  695.                Left            =   6120
  696.                TabIndex        =   40
  697.                Top             =   1095
  698.                Width           =   615
  699.             End
  700.             Begin VB.Label lblLabels 
  701.                Caption         =   "身  高"
  702.                Height          =   255
  703.                Index           =   7
  704.                Left            =   3120
  705.                TabIndex        =   39
  706.                Top             =   1095
  707.                Width           =   615
  708.             End
  709.             Begin VB.Label lblLabels 
  710.                Caption         =   "民  族"
  711.                Height          =   255
  712.                Index           =   6
  713.                Left            =   120
  714.                TabIndex        =   38
  715.                Top             =   1095
  716.                Width           =   615
  717.             End
  718.             Begin VB.Label lblLabels 
  719.                Caption         =   "岗位名称"
  720.                Height          =   255
  721.                Index           =   4
  722.                Left            =   6120
  723.                TabIndex        =   37
  724.                Top             =   735
  725.                Width           =   855
  726.             End
  727.             Begin VB.Label lblLabels 
  728.                Caption         =   "出生日期"
  729.                Height          =   255
  730.                Index           =   3
  731.                Left            =   3120
  732.                TabIndex        =   36
  733.                Top             =   735
  734.                Width           =   855
  735.             End
  736.             Begin VB.Label lblLabels 
  737.                Caption         =   "性  别"
  738.                Height          =   255
  739.                Index           =   2
  740.                Left            =   120
  741.                TabIndex        =   35
  742.                Top             =   735
  743.                Width           =   615
  744.             End
  745.             Begin VB.Label lblLabels 
  746.                Caption         =   "姓  名"
  747.                Height          =   255
  748.                Index           =   1
  749.                Left            =   6120
  750.                TabIndex        =   34
  751.                Top             =   375
  752.                Width           =   615
  753.             End
  754.             Begin VB.Label lblLabels 
  755.                Caption         =   "部  门"
  756.                Height          =   255
  757.                Index           =   0
  758.                Left            =   3120
  759.                TabIndex        =   33
  760.                Top             =   375
  761.                Width           =   615
  762.             End
  763.          End
  764.       End
  765.    End
  766. End
  767. Attribute VB_Name = "F_RuZhiTongZhiShu"
  768. Attribute VB_GlobalNameSpace = False
  769. Attribute VB_Creatable = False
  770. Attribute VB_PredeclaredId = True
  771. Attribute VB_Exposed = False
  772. Dim WithEvents adoPrimaryRS As Recordset
  773. Attribute adoPrimaryRS.VB_VarHelpID = -1
  774. Dim mvBookMark As Variant
  775. Dim mbEditFlag As Boolean
  776. Dim mbAddNewFlag As Boolean
  777. Private Sub Combo1_KeyPress(KeyAscii As Integer)
  778. If KeyAscii = vbKeyReturn Then
  779.     SendKeys "{TAB}"
  780. End If
  781. End Sub
  782. Private Sub Combo2_KeyPress(KeyAscii As Integer)
  783. If KeyAscii = vbKeyReturn Then
  784.     SendKeys "{TAB}"
  785. End If
  786. End Sub
  787. Private Sub DTPicker2_KeyPress(KeyAscii As Integer)
  788. If KeyAscii = vbKeyReturn Then
  789.     SendKeys "{TAB}"
  790. End If
  791. End Sub
  792. Private Sub DTPicker3_KeyPress(KeyAscii As Integer)
  793. If KeyAscii = vbKeyReturn Then
  794.     SendKeys "{TAB}"
  795. End If
  796. End Sub
  797. Private Sub Form_Load()
  798. On Error Resume Next
  799.     For Each TextBox In Me.Controls
  800.         TextBox.Font.Name = "宋体"
  801.         TextBox.Font.Size = 9
  802.     Next
  803.   
  804.   Set adoPrimaryRS = New Recordset
  805.   adoPrimaryRS.Open "select *  from 入职通知书", db, adOpenStatic, adLockOptimistic
  806. Set DataGrid1.DataSource = adoPrimaryRS
  807.   
  808.   SetButtons True
  809.   
  810.   Dim oText As TextBox
  811.   'Bind the text boxes to the data provider
  812.   For Each oText In Me.txtFields
  813.     Set oText.DataSource = adoPrimaryRS
  814.   Next
  815. Set DTPicker1.DataSource = adoPrimaryRS
  816. Set DTPicker2.DataSource = adoPrimaryRS
  817. Set DTPicker3.DataSource = adoPrimaryRS
  818. Set Combo1.DataSource = adoPrimaryRS
  819. Set Combo2.DataSource = adoPrimaryRS
  820. Combo1.AddItem "是"
  821. Combo1.AddItem "否"
  822. Combo2.AddItem "是"
  823. Combo2.AddItem "否"
  824. End Sub
  825. Private Sub Form_Unload(Cancel As Integer)
  826.   Screen.MousePointer = vbDefault
  827. End Sub
  828. Private Sub cmdAdd_Click()
  829.   On Error GoTo AddErr
  830.   With adoPrimaryRS
  831.     If Not (.BOF And .EOF) Then
  832.       mvBookMark = .Bookmark
  833.     End If
  834.     .AddNew
  835.     mbAddNewFlag = True
  836.     SetButtons False
  837.   End With
  838.   On Error GoTo 0
  839.   Exit Sub
  840. AddErr:
  841.   MsgBox "增加操作有错误", vbExclamation + vbOKOnly, pTitle
  842.   
  843. End Sub
  844. Private Sub cmdDelete_Click()
  845.   On Error GoTo DeleteErr
  846.   If MsgBox("是否确认删除入职通知书信息?", vbYesNo + vbQuestion, "系统提示") = vbNo Then Exit Sub
  847.   With adoPrimaryRS
  848.     .Delete
  849.     .MoveNext
  850.     If .EOF Then .MoveLast
  851.   End With
  852.   On Error GoTo 0
  853.   Exit Sub
  854. DeleteErr:
  855.   MsgBox "删除操作有错误", vbExclamation + vbOKOnly, pTitle
  856. End Sub
  857. Private Sub cmdRefresh_Click()
  858.   'This is only needed for multi user apps
  859.   On Error GoTo RefreshErr
  860.   adoPrimaryRS.Requery
  861.   On Error GoTo 0
  862.   Exit Sub
  863. RefreshErr:
  864.    MsgBox "刷新操作有错误", vbExclamation + vbOKOnly, pTitle
  865. End Sub
  866. Private Sub cmdEdit_Click()
  867.   On Error GoTo EditErr
  868.   mbEditFlag = True
  869.   SetButtons False
  870.   On Error GoTo 0
  871.   Exit Sub
  872. EditErr:
  873.    MsgBox "更改操作有错误", vbExclamation + vbOKOnly, pTitle
  874. End Sub
  875. Private Sub cmdCancel_Click()
  876.  ' On Error Resume Next
  877.  On Error GoTo CancelErr
  878.   mbEditFlag = False
  879.   mbAddNewFlag = False
  880.   adoPrimaryRS.CancelUpdate
  881.   If mvBookMark > 0 Then
  882.    adoPrimaryRS.Bookmark = mvBookMark
  883.   Else
  884.    adoPrimaryRS.MoveFirst
  885.   End If
  886.  SetButtons True
  887.   Exit Sub
  888. CancelErr:
  889.    
  890.    MsgBox "取消操作有错误", vbExclamation + vbOKOnly, pTitle
  891. End Sub
  892. Private Sub cmdUpdate_Click()
  893.   On Error GoTo UpdateErr
  894.   If MsgBox("是否确认此操作?", vbYesNo + vbQuestion, "系统提示") = vbNo Then Exit Sub
  895.   adoPrimaryRS.UpdateBatch adAffectAll
  896.   If mbAddNewFlag Then
  897.     adoPrimaryRS.MoveLast              'move to the new record
  898.   End If
  899.   mbEditFlag = False
  900.   mbAddNewFlag = False
  901.   SetButtons True
  902.   On Error GoTo 0
  903.   Exit Sub
  904. UpdateErr:
  905.    MsgBox "保存操作有错误", vbExclamation + vbOKOnly, pTitle
  906. End Sub
  907. Private Sub cmdClose_Click()
  908.   RSGL.Enabled = True
  909.   Unload Me
  910. End Sub
  911. Private Sub SetButtons(bVal As Boolean)
  912. Dim oTEX As TextBox
  913.   CmdAdd.Visible = bVal
  914.   cmdEdit.Visible = bVal
  915.   cmdUpdate.Visible = Not bVal
  916.   cmdCancel.Visible = Not bVal
  917.   CmdDelete.Visible = bVal
  918.   cmdClose.Visible = bVal
  919.   cmdRefresh.Visible = bVal
  920.   
  921.   If bVal Then
  922.    Set DataGrid1.DataSource = adoPrimaryRS
  923.   Else
  924.    Set DataGrid1.DataSource = Nothing
  925.   End If
  926.   
  927.   For Each oText In Me.txtFields
  928.      oText.Enabled = Not bVal
  929.   Next
  930.   
  931.   Combo1.Enabled = Not bVal
  932.   Combo2.Enabled = Not bVal
  933.  
  934. End Sub
  935. Private Sub txtFields_KeyPress(Index As Integer, KeyAscii As Integer)
  936. If KeyAscii = vbKeyReturn Then
  937.     SendKeys "{TAB}"
  938. End If
  939. End Sub
  940. Private Sub txtFields_LostFocus(Index As Integer)
  941. If Index = 3 Then
  942.  Dim Sql3 As String
  943.     
  944.     Sql3 = "select  distinct 部门 ,姓名 ,性别 ,出生日期 ,岗位,民族 ,身高 ,体重 ,进入公司时间   from 员工基本信息  where 员工号 = '" & txtFields(3).Text & "'"
  945.     Set rs3 = db.Execute(Sql3)
  946.    If Not rs3.EOF Then
  947.    
  948.    If Not IsNull(rs3("部门")) Then
  949.        txtFields(0).Text = Trim(rs3("部门"))
  950.    End If
  951.    If Not IsNull(rs3("姓名")) Then
  952.        txtFields(1).Text = Trim(rs3("姓名"))
  953.    End If
  954.    
  955.    If Not IsNull(rs3("性别")) Then
  956.        txtFields(2).Text = Trim(rs3("性别"))
  957.    End If
  958.    
  959.    If Not IsNull(rs3("出生日期")) Then
  960.        DTPicker3.Value = Trim(rs3("出生日期"))
  961.    End If
  962.    
  963.    If Not IsNull(rs3("岗位")) Then
  964.        txtFields(4).Text = Trim(rs3("岗位"))
  965.    End If
  966.    
  967.    If Not IsNull(rs3("民族")) Then
  968.        txtFields(6).Text = Trim(rs3("民族"))
  969.    End If
  970.    
  971.    If Not IsNull(rs3("身高")) Then
  972.        txtFields(7).Text = Trim(rs3("身高"))
  973.    End If
  974.    
  975.    If Not IsNull(rs3("体重")) Then
  976.        txtFields(8).Text = Trim(rs3("体重"))
  977.    End If
  978.  
  979.    'If Not IsNull(rs3("鞋号")) Then
  980.     '   txtFields(9).Text = Trim(rs3("鞋号"))
  981.    'End If
  982.    
  983.    If Not IsNull(rs3("进入公司时间")) Then
  984.        DTPicker1.Value = Trim(rs3("进入公司时间"))
  985.    End If
  986.    
  987.    End If
  988. End If
  989. If Not IsNumeric(txtFields(7).Text) And (txtFields(7).Text <> "") Then
  990.     MsgBox "请在“身高”中输入数字", vbExclamation + vbOKOnly, pTitle
  991.      txtFields(7).SetFocus
  992.      txtFields(7).SelLength = Len(txtFields(7))
  993.      txtFields(7).SelStart = 0
  994. End If
  995. If Not IsNumeric(txtFields(8).Text) And (txtFields(8).Text <> "") Then
  996.     MsgBox "请在“体重”中输入数字", vbExclamation + vbOKOnly, pTitle
  997.      txtFields(8).SetFocus
  998.      txtFields(8).SelLength = Len(txtFields(8))
  999.      txtFields(8).SelStart = 0
  1000. End If
  1001. If Not IsNumeric(txtFields(9).Text) And (txtFields(9).Text <> "") Then
  1002.     MsgBox "请在“鞋号”中输入数字", vbExclamation + vbOKOnly, pTitle
  1003.      txtFields(9).SetFocus
  1004.      txtFields(9).SelLength = Len(txtFields(9))
  1005.      txtFields(9).SelStart = 0
  1006. End If
  1007. End Sub