上传用户:zhpu1995
上传日期:2013-09-06
资源大小:61151k
文件大小:50k
源码类别:

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{65A39231-6133-11D1-BAA2-444553540000}#1.0#0"; "vslight6.OCX"
  3. Object = "{D76D7128-4A96-11D3-BD95-D296DC2DD072}#1.0#0"; "VSOCX7.OCX"
  4. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  5. Begin VB.Form Qr_RsChgFrm 
  6.    Caption         =   "人事变动"
  7.    ClientHeight    =   8595
  8.    ClientLeft      =   315
  9.    ClientTop       =   390
  10.    ClientWidth     =   11820
  11.    HelpContextID   =   5001
  12.    Icon            =   "查询_人事变动列表.frx":0000
  13.    KeyPreview      =   -1  'True
  14.    LinkTopic       =   "Form1"
  15.    MDIChild        =   -1  'True
  16.    ScaleHeight     =   8595
  17.    ScaleWidth      =   11820
  18.    WindowState     =   2  'Maximized
  19.    Begin MSComctlLib.Toolbar GsToolbar 
  20.       Height          =   540
  21.       Left            =   9330
  22.       TabIndex        =   3
  23.       Top             =   30
  24.       Width           =   2475
  25.       _ExtentX        =   4366
  26.       _ExtentY        =   953
  27.       ButtonWidth     =   1455
  28.       ButtonHeight    =   953
  29.       Appearance      =   1
  30.       Style           =   1
  31.       ImageList       =   "ImageList2"
  32.       _Version        =   393216
  33.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  34.          NumButtons      =   3
  35.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  36.             Caption         =   "保存格式"
  37.             Key             =   "bcgs"
  38.             ImageKey        =   "bcgs"
  39.          EndProperty
  40.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  41.             Caption         =   "默认列宽"
  42.             Key             =   "hfmrgs"
  43.             ImageKey        =   "mrlk"
  44.          EndProperty
  45.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  46.             Caption         =   "显示项目"
  47.             Key             =   "szxsxm"
  48.             ImageKey        =   "xsxm"
  49.          EndProperty
  50.       EndProperty
  51.    End
  52.    Begin VB.PictureBox Pic_Title 
  53.       BackColor       =   &H00FFFFFF&
  54.       Height          =   825
  55.       Left            =   0
  56.       Picture         =   "查询_人事变动列表.frx":1042
  57.       ScaleHeight     =   765
  58.       ScaleWidth      =   11715
  59.       TabIndex        =   1
  60.       Top             =   570
  61.       Width           =   11775
  62.       Begin VB.Label Lab_Title 
  63.          AutoSize        =   -1  'True
  64.          BackColor       =   &H80000018&
  65.          BackStyle       =   0  'Transparent
  66.          Caption         =   "人事变动"
  67.          BeginProperty Font 
  68.             Name            =   "宋体"
  69.             Size            =   12
  70.             Charset         =   134
  71.             Weight          =   700
  72.             Underline       =   0   'False
  73.             Italic          =   0   'False
  74.             Strikethrough   =   0   'False
  75.          EndProperty
  76.          ForeColor       =   &H00000000&
  77.          Height          =   240
  78.          Index           =   4
  79.          Left            =   510
  80.          TabIndex        =   2
  81.          Top             =   210
  82.          Width           =   1020
  83.       End
  84.    End
  85.    Begin VB.Timer Timer1 
  86.       Enabled         =   0   'False
  87.       Interval        =   1
  88.       Left            =   7620
  89.       Top             =   90
  90.    End
  91.    Begin VSFlex8Ctl.VSFlexGrid CxbbGrid 
  92.       Height          =   7095
  93.       Left            =   0
  94.       TabIndex        =   0
  95.       Top             =   1440
  96.       Width           =   11775
  97.       _ExtentX        =   20770
  98.       _ExtentY        =   12515
  99.       Appearance      =   1
  100.       BorderStyle     =   1
  101.       Enabled         =   -1  'True
  102.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  103.          Name            =   "宋体"
  104.          Size            =   9
  105.          Charset         =   134
  106.          Weight          =   400
  107.          Underline       =   0   'False
  108.          Italic          =   0   'False
  109.          Strikethrough   =   0   'False
  110.       EndProperty
  111.       MousePointer    =   0
  112.       BackColor       =   16777215
  113.       ForeColor       =   -2147483640
  114.       BackColorFixed  =   -2147483633
  115.       ForeColorFixed  =   -2147483630
  116.       BackColorSel    =   -2147483635
  117.       ForeColorSel    =   -2147483634
  118.       BackColorBkg    =   -2147483636
  119.       BackColorAlternate=   16777215
  120.       GridColor       =   -2147483633
  121.       GridColorFixed  =   -2147483632
  122.       TreeColor       =   -2147483632
  123.       FloodColor      =   192
  124.       SheetBorder     =   -2147483642
  125.       FocusRect       =   1
  126.       HighLight       =   1
  127.       AllowSelection  =   -1  'True
  128.       AllowBigSelection=   -1  'True
  129.       AllowUserResizing=   0
  130.       SelectionMode   =   0
  131.       GridLines       =   1
  132.       GridLinesFixed  =   2
  133.       GridLineWidth   =   1
  134.       Rows            =   50
  135.       Cols            =   10
  136.       FixedRows       =   1
  137.       FixedCols       =   1
  138.       RowHeightMin    =   0
  139.       RowHeightMax    =   0
  140.       ColWidthMin     =   0
  141.       ColWidthMax     =   0
  142.       ExtendLastCol   =   0   'False
  143.       FormatString    =   ""
  144.       ScrollTrack     =   0   'False
  145.       ScrollBars      =   3
  146.       ScrollTips      =   0   'False
  147.       MergeCells      =   0
  148.       MergeCompare    =   0
  149.       AutoResize      =   -1  'True
  150.       AutoSizeMode    =   0
  151.       AutoSearch      =   0
  152.       MultiTotals     =   -1  'True
  153.       SubtotalPosition=   1
  154.       OutlineBar      =   0
  155.       OutlineCol      =   0
  156.       Ellipsis        =   0
  157.       ExplorerBar     =   0
  158.       PicturesOver    =   0   'False
  159.       FillStyle       =   0
  160.       RightToLeft     =   0   'False
  161.       PictureType     =   0
  162.       TabBehavior     =   0
  163.       OwnerDraw       =   0
  164.       Editable        =   0   'False
  165.       ShowComboButton =   -1  'True
  166.       WordWrap        =   0   'False
  167.       TextStyle       =   0
  168.       TextStyleFixed  =   0
  169.       OleDragMode     =   0
  170.       OleDropMode     =   0
  171.       DataMode        =   0
  172.       VirtualData     =   -1  'True
  173.       Begin MSComctlLib.ImageList ImageList2 
  174.          Left            =   0
  175.          Top             =   0
  176.          _ExtentX        =   1005
  177.          _ExtentY        =   1005
  178.          BackColor       =   -2147483643
  179.          ImageWidth      =   16
  180.          ImageHeight     =   16
  181.          MaskColor       =   12632256
  182.          _Version        =   393216
  183.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  184.             NumListImages   =   40
  185.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  186.                Picture         =   "查询_人事变动列表.frx":1DF82
  187.                Key             =   "sz"
  188.             EndProperty
  189.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  190.                Picture         =   "查询_人事变动列表.frx":1E31C
  191.                Key             =   "dy"
  192.             EndProperty
  193.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  194.                Picture         =   "查询_人事变动列表.frx":1E6B6
  195.                Key             =   "yl"
  196.             EndProperty
  197.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  198.                Picture         =   "查询_人事变动列表.frx":1EA50
  199.                Key             =   "xg"
  200.             EndProperty
  201.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  202.                Picture         =   "查询_人事变动列表.frx":1EDEA
  203.                Key             =   "zh"
  204.             EndProperty
  205.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  206.                Picture         =   "查询_人事变动列表.frx":1F184
  207.                Key             =   "sh"
  208.             EndProperty
  209.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  210.                Picture         =   "查询_人事变动列表.frx":1F51E
  211.                Key             =   "bc"
  212.             EndProperty
  213.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  214.                Picture         =   "查询_人事变动列表.frx":1F8B8
  215.                Key             =   "fq"
  216.             EndProperty
  217.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  218.                Picture         =   "查询_人事变动列表.frx":1FC52
  219.                Key             =   "bz"
  220.             EndProperty
  221.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  222.                Picture         =   "查询_人事变动列表.frx":1FFEC
  223.                Key             =   "tc"
  224.             EndProperty
  225.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  226.                Picture         =   "查询_人事变动列表.frx":20386
  227.                Key             =   "bcgs"
  228.             EndProperty
  229.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  230.                Picture         =   "查询_人事变动列表.frx":20720
  231.                Key             =   "mrlk"
  232.             EndProperty
  233.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  234.                Picture         =   "查询_人事变动列表.frx":20ABA
  235.                Key             =   "xsxm"
  236.             EndProperty
  237.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  238.                Picture         =   "查询_人事变动列表.frx":20E54
  239.                Key             =   "first"
  240.             EndProperty
  241.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  242.                Picture         =   "查询_人事变动列表.frx":211EE
  243.                Key             =   "prev"
  244.             EndProperty
  245.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  246.                Picture         =   "查询_人事变动列表.frx":21588
  247.                Key             =   "next"
  248.             EndProperty
  249.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  250.                Picture         =   "查询_人事变动列表.frx":21922
  251.                Key             =   "last"
  252.             EndProperty
  253.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  254.                Picture         =   "查询_人事变动列表.frx":21CBC
  255.                Key             =   "xx"
  256.             EndProperty
  257.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  258.                Picture         =   "查询_人事变动列表.frx":22056
  259.                Key             =   "define"
  260.             EndProperty
  261.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  262.                Picture         =   "查询_人事变动列表.frx":223F0
  263.                Key             =   "exec"
  264.             EndProperty
  265.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  266.                Picture         =   "查询_人事变动列表.frx":2278A
  267.                Key             =   "xz"
  268.             EndProperty
  269.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  270.                Picture         =   "查询_人事变动列表.frx":22B24
  271.                Key             =   "sc"
  272.             EndProperty
  273.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  274.                Picture         =   "查询_人事变动列表.frx":22EBE
  275.                Key             =   "sx"
  276.             EndProperty
  277.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  278.                Picture         =   "查询_人事变动列表.frx":23258
  279.                Key             =   "cx"
  280.             EndProperty
  281.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  282.                Picture         =   "查询_人事变动列表.frx":235F2
  283.                Key             =   "zd"
  284.             EndProperty
  285.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  286.                Picture         =   "查询_人事变动列表.frx":2398C
  287.                Key             =   "dz"
  288.             EndProperty
  289.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  290.                Picture         =   "查询_人事变动列表.frx":23D26
  291.                Key             =   "ph"
  292.             EndProperty
  293.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  294.                Picture         =   "查询_人事变动列表.frx":240C0
  295.                Key             =   "fz"
  296.             EndProperty
  297.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  298.                Picture         =   "查询_人事变动列表.frx":2445A
  299.                Key             =   "dw"
  300.             EndProperty
  301.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  302.                Picture         =   "查询_人事变动列表.frx":247F4
  303.                Key             =   "hf"
  304.             EndProperty
  305.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  306.                Picture         =   "查询_人事变动列表.frx":24B8E
  307.                Key             =   "pz"
  308.             EndProperty
  309.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  310.                Picture         =   "查询_人事变动列表.frx":24F28
  311.                Key             =   "check"
  312.             EndProperty
  313.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  314.                Picture         =   "查询_人事变动列表.frx":252C2
  315.                Key             =   "qs"
  316.             EndProperty
  317.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  318.                Picture         =   "查询_人事变动列表.frx":2565C
  319.                Key             =   "fullcheck"
  320.             EndProperty
  321.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  322.                Picture         =   "查询_人事变动列表.frx":259F6
  323.                Key             =   "qq"
  324.             EndProperty
  325.             BeginProperty ListImage36 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  326.                Picture         =   "查询_人事变动列表.frx":25D90
  327.                Key             =   "bcw"
  328.             EndProperty
  329.             BeginProperty ListImage37 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  330.                Picture         =   "查询_人事变动列表.frx":2612A
  331.                Key             =   "ye"
  332.             EndProperty
  333.             BeginProperty ListImage38 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  334.                Picture         =   "查询_人事变动列表.frx":264C4
  335.                Key             =   ""
  336.             EndProperty
  337.             BeginProperty ListImage39 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  338.                Picture         =   "查询_人事变动列表.frx":2685E
  339.                Key             =   "frist"
  340.             EndProperty
  341.             BeginProperty ListImage40 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  342.                Picture         =   "查询_人事变动列表.frx":26BF8
  343.                Key             =   "dj"
  344.             EndProperty
  345.          EndProperty
  346.       End
  347.    End
  348.    Begin MSComctlLib.Toolbar SzToolbar 
  349.       Align           =   1  'Align Top
  350.       Height          =   570
  351.       Left            =   0
  352.       TabIndex        =   4
  353.       Top             =   0
  354.       Width           =   11820
  355.       _ExtentX        =   20849
  356.       _ExtentY        =   1005
  357.       ButtonWidth     =   820
  358.       ButtonHeight    =   953
  359.       AllowCustomize  =   0   'False
  360.       Appearance      =   1
  361.       Style           =   1
  362.       ImageList       =   "ImageList1"
  363.       _Version        =   393216
  364.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  365.          NumButtons      =   12
  366.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  367.             Caption         =   "设置"
  368.             Key             =   "ymsz"
  369.             ImageKey        =   "sz"
  370.          EndProperty
  371.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  372.             Caption         =   "打印"
  373.             Key             =   "dy"
  374.             ImageKey        =   "dy"
  375.          EndProperty
  376.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  377.             Caption         =   "预览"
  378.             Key             =   "yl"
  379.             ImageKey        =   "yl"
  380.          EndProperty
  381.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  382.             Style           =   3
  383.          EndProperty
  384.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  385.             Caption         =   "查询"
  386.             Key             =   "cx"
  387.             ImageKey        =   "cx"
  388.          EndProperty
  389.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  390.             Caption         =   "编辑"
  391.             Key             =   "edit"
  392.             ImageIndex      =   4
  393.          EndProperty
  394.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  395.             Style           =   3
  396.          EndProperty
  397.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  398.             Caption         =   "新增"
  399.             Key             =   "xz"
  400.             ImageKey        =   "xz"
  401.          EndProperty
  402.          BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  403.             Caption         =   "删除"
  404.             Key             =   "sc"
  405.             ImageKey        =   "sc"
  406.          EndProperty
  407.          BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  408.             Style           =   3
  409.          EndProperty
  410.          BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  411.             Caption         =   "帮助"
  412.             Key             =   "bz"
  413.             ImageKey        =   "bz"
  414.          EndProperty
  415.          BeginProperty Button12 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  416.             Caption         =   "退出"
  417.             Key             =   "fh"
  418.             ImageKey        =   "tc"
  419.          EndProperty
  420.       EndProperty
  421.       BorderStyle     =   1
  422.       Begin MSComctlLib.ImageList ImageList1 
  423.          Left            =   6990
  424.          Top             =   30
  425.          _ExtentX        =   1005
  426.          _ExtentY        =   1005
  427.          BackColor       =   -2147483643
  428.          ImageWidth      =   16
  429.          ImageHeight     =   16
  430.          MaskColor       =   12632256
  431.          _Version        =   393216
  432.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  433.             NumListImages   =   32
  434.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  435.                Picture         =   "查询_人事变动列表.frx":26F92
  436.                Key             =   "sz"
  437.             EndProperty
  438.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  439.                Picture         =   "查询_人事变动列表.frx":2732C
  440.                Key             =   "dy"
  441.             EndProperty
  442.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  443.                Picture         =   "查询_人事变动列表.frx":276C6
  444.                Key             =   "yl"
  445.             EndProperty
  446.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  447.                Picture         =   "查询_人事变动列表.frx":27A60
  448.                Key             =   "edit"
  449.             EndProperty
  450.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  451.                Picture         =   "查询_人事变动列表.frx":27DFA
  452.                Key             =   "zh"
  453.             EndProperty
  454.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  455.                Picture         =   "查询_人事变动列表.frx":28194
  456.                Key             =   "sh"
  457.             EndProperty
  458.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  459.                Picture         =   "查询_人事变动列表.frx":2852E
  460.                Key             =   "bc"
  461.             EndProperty
  462.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  463.                Picture         =   "查询_人事变动列表.frx":288C8
  464.                Key             =   "fq"
  465.             EndProperty
  466.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  467.                Picture         =   "查询_人事变动列表.frx":28C62
  468.                Key             =   "bz"
  469.             EndProperty
  470.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  471.                Picture         =   "查询_人事变动列表.frx":28FFC
  472.                Key             =   "tc"
  473.             EndProperty
  474.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  475.                Picture         =   "查询_人事变动列表.frx":29396
  476.                Key             =   "bcgs"
  477.             EndProperty
  478.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  479.                Picture         =   "查询_人事变动列表.frx":29730
  480.                Key             =   "mrlk"
  481.             EndProperty
  482.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  483.                Picture         =   "查询_人事变动列表.frx":29ACA
  484.                Key             =   "xsxm"
  485.             EndProperty
  486.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  487.                Picture         =   "查询_人事变动列表.frx":29E64
  488.                Key             =   "first"
  489.             EndProperty
  490.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  491.                Picture         =   "查询_人事变动列表.frx":2A1FE
  492.                Key             =   "prev"
  493.             EndProperty
  494.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  495.                Picture         =   "查询_人事变动列表.frx":2A598
  496.                Key             =   "next"
  497.             EndProperty
  498.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  499.                Picture         =   "查询_人事变动列表.frx":2A932
  500.                Key             =   "last"
  501.             EndProperty
  502.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  503.                Picture         =   "查询_人事变动列表.frx":2ACCC
  504.                Key             =   "xx"
  505.             EndProperty
  506.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  507.                Picture         =   "查询_人事变动列表.frx":2B066
  508.                Key             =   "define"
  509.             EndProperty
  510.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  511.                Picture         =   "查询_人事变动列表.frx":2B400
  512.                Key             =   "exec"
  513.             EndProperty
  514.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  515.                Picture         =   "查询_人事变动列表.frx":2B79A
  516.                Key             =   "xz"
  517.             EndProperty
  518.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  519.                Picture         =   "查询_人事变动列表.frx":2BB34
  520.                Key             =   "sc"
  521.             EndProperty
  522.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  523.                Picture         =   "查询_人事变动列表.frx":2BECE
  524.                Key             =   "sx"
  525.             EndProperty
  526.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  527.                Picture         =   "查询_人事变动列表.frx":2C268
  528.                Key             =   "cx"
  529.             EndProperty
  530.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  531.                Picture         =   "查询_人事变动列表.frx":2C602
  532.                Key             =   "zd"
  533.             EndProperty
  534.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  535.                Picture         =   "查询_人事变动列表.frx":2C99C
  536.                Key             =   "dz"
  537.             EndProperty
  538.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  539.                Picture         =   "查询_人事变动列表.frx":2CD36
  540.                Key             =   "ph"
  541.             EndProperty
  542.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  543.                Picture         =   "查询_人事变动列表.frx":2D0D0
  544.                Key             =   "fz"
  545.             EndProperty
  546.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  547.                Picture         =   "查询_人事变动列表.frx":2D46A
  548.                Key             =   "dw"
  549.             EndProperty
  550.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  551.                Picture         =   "查询_人事变动列表.frx":2D804
  552.                Key             =   "hf"
  553.             EndProperty
  554.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  555.                Picture         =   "查询_人事变动列表.frx":2DB9E
  556.                Key             =   "pz"
  557.             EndProperty
  558.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  559.                Picture         =   "查询_人事变动列表.frx":2DF38
  560.                Key             =   "check"
  561.             EndProperty
  562.          EndProperty
  563.       End
  564.    End
  565. End
  566. Attribute VB_Name = "Qr_RsChgFrm"
  567. Attribute VB_GlobalNameSpace = False
  568. Attribute VB_Creatable = False
  569. Attribute VB_PredeclaredId = True
  570. Attribute VB_Exposed = False
  571. '**************************************************************************
  572. '*    模 块 名 称 :人事变动列表
  573. '*    功 能 描 述 :人事变动
  574. '*    程序员姓名  :郑兴
  575. '*    最后修改人  :郑兴
  576. '*    最后修改时间:2002/01/04
  577. '*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
  578. '**************************************************************************
  579. Dim ReportTitle As String                '报表主标题
  580. Dim Str_QueryCondi As String             '用户录入查询条件
  581. Dim Rec_BillID As New ADODB.Recordset    '用户查询单据ID动态集
  582. Dim str_Grid() As String
  583. '以下为固定使用变量
  584. Dim Dyymctbl As New DY_Dyymsz            '打印页面窗体变量
  585. Dim GridCode As String                   '显示网格网格代码
  586. Dim GridInf() As Variant                 '整个网格设置信息
  587. Dim Tsxx As String                       '系统提示信息
  588. Dim Qslz As Long                         '网格隐藏(非操作显示)列数
  589. Dim Sjhgd As Double                      '网格数据行高度
  590. Dim Sfxshjwg As Boolean                  '是否显示合计网格
  591. Dim GridBoolean() As Boolean             '网格列信息(布尔型)
  592. Dim GridStr()  As String                 '网格列信息(字符型)
  593. Dim GridInt() As Integer                 '网格列信息(整型)
  594. Dim Szzls As Integer                     '数组总列数(网格列数-1)
  595. Private Sub Form_Resize()                '根据窗体大小来调整网格,标题栏大小(Fixed)
  596.     
  597.     On Error Resume Next
  598.     
  599.     With CxbbGrid
  600.         .Width = Me.Width - 160
  601.         .Height = Me.Height - .Top - 400
  602.     End With
  603.     
  604.     With Pic_Title
  605.         .Width = Me.Width - 160
  606.     End With
  607.     
  608.     GsToolbar.Left = Me.Width - GsToolbar.Width - 140
  609.     
  610. End Sub
  611. Private Sub Form_Load()                                                   '窗体装入
  612.     
  613.     '调入打印页面设置窗体
  614.     ReportTitle = "人事变动"
  615.     XtReportCode = "Rs_RsChgCndFrm"
  616.     Load Dyymctbl
  617.     
  618.     '调整标题栏及网格、格式工具条位置(Fixed)
  619.     Pic_Title.Left = 40
  620.     Pic_Title.Top = SzToolbar.Top + SzToolbar.Height - 10
  621.     CxbbGrid.Left = Pic_Title.Left
  622.     CxbbGrid.Top = Pic_Title.Top + Pic_Title.Height + 20
  623.     
  624.     '调 入 网 格(Fixed)
  625.     GridCode = "Rs_RsChgCndFrm"
  626.     Call BzWgcsh(CxbbGrid, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
  627.     
  628.     Qslz = GridInf(1)
  629.     Sjhgd = GridInf(2)
  630.     Sfxshjwg = GridInf(7)
  631.     Szzls = CxbbGrid.Cols - 1
  632. End Sub
  633. Private Sub Form_Unload(Cancel As Integer)                                  '窗体卸载
  634.     
  635.     '卸载条件窗体
  636.     Qr_RsChgCndFrm.UnloadCheck.Value = 1
  637.     Unload Qr_RsChgCndFrm
  638.     
  639.     '卸载打印页面设置窗体
  640.     Unload Dyymctbl
  641.     Security_Log "Rs_Qr_RsChange", Xtczybm, 2, False  '用户退出时写上机日志
  642. End Sub
  643. Private Sub CxbbGrid_BeforeMoveColumn(ByVal Col As Long, Position As Long)           '网格列发生移动时自动交换网格索引信息
  644.     Call FnBln_RefreshArray(Col, Position, GridStr(), GridInf())
  645. End Sub
  646. Private Sub GsToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)       '网格格式调整(Fixed)
  647.     
  648.     Select Case Button.Key
  649.     Case "bcgs"                                          '保存表格格式
  650.         Call Bcwggs(CxbbGrid, GridCode, GridStr())
  651.     Case "hfmrgs"                                        '恢复默认格式
  652.         Call Hfmrgs(CxbbGrid, GridCode, GridStr())
  653.     Case "szxsxm"                                        '设置显示项目
  654.         Call Szxsxm(CxbbGrid, GridCode)
  655.     End Select
  656.     
  657. End Sub
  658. Private Sub SzToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
  659.     
  660.     Select Case Button.Key
  661.     Case "ymsz"                                          '页面设置
  662.         Dyymctbl.Show 1
  663.     Case "yl"                                            '预 览
  664.         Call bbyl(True)
  665.     Case "dy"                                            '打 印
  666.         Call bbyl(False)
  667.     Case "cx"                                            '查 询
  668.         Qr_RsChgCndFrm.Show 1
  669.     Case "edit"                                          '编 辑
  670.         Call CxbbGrid_DblClick
  671.     Case "xz"                                            '新 增
  672.         Call Sub_AddBill
  673.     Case "sc"                                            '删 除
  674.         Call Sub_DeleteBill
  675.     Case "bz"                                            '帮 助
  676.         Call F1bz
  677.     Case "fh"                                            '退 出
  678.         Unload Me
  679.     End Select
  680.     
  681. End Sub
  682. Private Sub Timer1_Timer()                                 '在窗体激活后调入查询程序
  683.     
  684.     Timer1.Enabled = False
  685.     Xt_Wait.Show
  686.     Xt_Wait.Refresh
  687.     
  688.     '加快显示速度
  689.     CxbbGrid.Redraw = False
  690.     
  691.     '生成查询结果
  692.     Call Sub_Query(0)
  693.     
  694.     CxbbGrid.Redraw = True
  695.     
  696.     Xt_Wait.Hide
  697.     
  698. End Sub
  699. Private Sub Sub_Query(Int_QueryType As Integer)                                     '生成查询结果(Define)
  700.     
  701.     '过程参数:Int_QueryType 0-"点确定按钮"查询  1-"刷新"查询
  702.     Dim Rec_Query As New ADODB.Recordset        '查询结果动态集
  703.     Dim Coljsq As Long                          '网格列计数器
  704.     Dim jsqte As Integer                        '临时动态计数器
  705.     Dim str_TempSql As String
  706.     Dim rs_Temp As New ADODB.Recordset
  707.     
  708.     
  709.     '以下为自定义部分[
  710.     
  711.     If Int_QueryType = 0 Then   '0-"点确定按钮"查询
  712.         With Qr_RsChgCndFrm
  713.             
  714.             If Trim(.LrText(3).Tag) = "1002" Then
  715.              '调出生成查询条件
  716.                 Str_QueryCondi = " where Rs_BasicInfo.YNStop='1' "
  717.             
  718.             Else
  719.             '其它生成查询条件
  720.                 Str_QueryCondi = " where Rs_BasicInfo.YNStop='0' "
  721.                 
  722.             End If
  723.                 
  724.             For jsqte = 1 To 4
  725.                 Select Case jsqte
  726.                 Case 1  '查询日期范围(起始)
  727.                     If Trim(.LrText(0).Text) <> "" Then
  728.                         Str_QueryCondi = Str_QueryCondi & " And a.ChangeTime>=' " & Trim(.LrText(0).Text) & "'"
  729.                     End If
  730.                 Case 2  '查询日期范围(终止)
  731.                     If Trim(.LrText(1).Text) <> "" Then
  732.                         Str_QueryCondi = Str_QueryCondi & " And a.ChangeTime<= ' " & Trim(.LrText(1).Text) & "'"
  733.                     End If
  734.                 Case 3  '职工号(Like)
  735.                     If Trim(.LrText(2).Text) <> "" Then
  736.                         Str_QueryCondi = Str_QueryCondi & " And Rs_BasicInfo.EmpNo like '" & Trim(.LrText(2).Text) & "%'"
  737.                     End If
  738.                 Case 4  '变动类型
  739.                     If Trim(.LrText(3).Text) <> "" Then
  740.                         Str_QueryCondi = Str_QueryCondi & " and a.ChangeType = '" & Trim(.LrText(3).Tag) & "'"
  741.                     End If
  742.                 End Select
  743.             Next jsqte
  744.         
  745.         End With
  746.     Else
  747.         '1-"刷新"查询
  748.         
  749.     End If
  750.     
  751.     Sqlstr = "SELECT a.*,Rs_BasicInfo.EmpNo,Rs_BasicInfo.EmpName" & _
  752.     " FROM Rs_BasicInfo INNER JOIN " & _
  753.     " Rs_Change a ON Rs_BasicInfo.EmpID = a.EmpID " & _
  754.     Str_QueryCondi & " Order By a.EmpID,a.SNo"
  755.     
  756.     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  757.     
  758.     '用来记录变动表中原**等字段的编码,在删除记录时用来还原人事基本表中的信息。
  759.     
  760.     ReDim str_Grid(Rec_Query.RecordCount + 1, 19)
  761.     
  762.     With Rec_Query
  763.         CxbbGrid.Rows = CxbbGrid.FixedRows
  764.         jsqte = CxbbGrid.FixedRows
  765.         Do While Not .EOF
  766.             CxbbGrid.AddItem ""
  767.             
  768.             '[>>自定义填充内容
  769.             CxbbGrid.TextMatrix(jsqte, Sydz("001", GridStr(), Szzls)) = Trim(.Fields("EmpID") & "")                                  'ID号
  770.             CxbbGrid.TextMatrix(jsqte, Sydz("002", GridStr(), Szzls)) = Trim(.Fields("SNo"))                                         '顺序号
  771.             CxbbGrid.TextMatrix(jsqte, Sydz("003", GridStr(), Szzls)) = Trim(.Fields("EmpNo"))                                       '职工号
  772.             CxbbGrid.TextMatrix(jsqte, Sydz("004", GridStr(), Szzls)) = Trim(.Fields("EmpName") & "")                                '姓名
  773.             '变动类型
  774.             str_TempSql = "select * from Rs_CorSub where SortId='1'and  ListId ='" & Trim(.Fields("ChangeType")) & "'"
  775.             Set rs_Temp = Cw_DataEnvi.DataConnect.Execute(str_TempSql)
  776.             If Not rs_Temp.EOF() Then
  777.                CxbbGrid.TextMatrix(jsqte, Sydz("005", GridStr(), Szzls)) = Trim(rs_Temp.Fields("ListName") & "")                      '变动类型
  778.             End If
  779.             CxbbGrid.TextMatrix(jsqte, Sydz("006", GridStr(), Szzls)) = Format(.Fields("ChangeTime"), "yyyy-mm-dd") & ""              '日期
  780.             CxbbGrid.TextMatrix(jsqte, Sydz("007", GridStr(), Szzls)) = Format(.Fields("InductionTime"), "yyyy-mm-dd") & ""
  781.             '原部门
  782.             str_TempSql = "select * from Gy_Department where DeptCode='" & Trim(.Fields("OldDeptCode")) & "'"
  783.             Set rs_Temp = Cw_DataEnvi.DataConnect.Execute(str_TempSql)
  784.             If Not rs_Temp.EOF() Then
  785.                CxbbGrid.TextMatrix(jsqte, Sydz("008", GridStr(), Szzls)) = Trim(rs_Temp.Fields("DeptName") & "")                        '原部门名称
  786.                str_Grid(jsqte, Sydz("008", GridStr(), Szzls)) = Trim(rs_Temp.Fields("DeptCode") & "")
  787.             End If
  788.             '现部门
  789.             str_TempSql = "select * from Gy_Department where DeptCode='" & Trim(.Fields("DeptCode")) & "'"
  790.             Set rs_Temp = Cw_DataEnvi.DataConnect.Execute(str_TempSql)
  791.             If Not rs_Temp.EOF() Then
  792.                CxbbGrid.TextMatrix(jsqte, Sydz("009", GridStr(), Szzls)) = Trim(rs_Temp.Fields("DeptName") & "")                        '现部门名称
  793.             End If
  794.             '原职务
  795.             str_TempSql = "select Rs_CorSub.* from Rs_Items INNER JOIN Rs_CorSub ON Rs_Items.Correlation = Rs_CorSub.SortId where Rs_Items.FieldName='Business' and Rs_CorSub.ListId='" & Trim(.Fields("OldBusiness")) & "'"
  796.             Set rs_Temp = Cw_DataEnvi.DataConnect.Execute(str_TempSql)
  797.             If Not rs_Temp.EOF() Then
  798.                CxbbGrid.TextMatrix(jsqte, Sydz("010", GridStr(), Szzls)) = Trim(rs_Temp.Fields("ListName") & "")                         '原职务
  799.                str_Grid(jsqte, Sydz("010", GridStr(), Szzls)) = Trim(rs_Temp.Fields("ListId") & "")
  800.             End If
  801.              '现职务
  802.             str_TempSql = "select Rs_CorSub.* from Rs_Items INNER JOIN Rs_CorSub ON Rs_Items.Correlation = Rs_CorSub.SortId where Rs_Items.FieldName='Business' and Rs_CorSub.ListId='" & Trim(.Fields("Business")) & "'"
  803.             Set rs_Temp = Cw_DataEnvi.DataConnect.Execute(str_TempSql)
  804.             If Not rs_Temp.EOF() Then
  805.                CxbbGrid.TextMatrix(jsqte, Sydz("011", GridStr(), Szzls)) = Trim(rs_Temp.Fields("ListName") & "")                          '现职务
  806.             End If
  807.             '原岗位
  808.             str_TempSql = "select Rs_CorSub.* from Rs_Items INNER JOIN Rs_CorSub ON Rs_Items.Correlation = Rs_CorSub.SortId where Rs_Items.FieldName='Position' and Rs_CorSub.ListId='" & Trim(.Fields("OldPosition")) & "'"
  809.             Set rs_Temp = Cw_DataEnvi.DataConnect.Execute(str_TempSql)
  810.             If Not rs_Temp.EOF() Then
  811.                CxbbGrid.TextMatrix(jsqte, Sydz("012", GridStr(), Szzls)) = Trim(rs_Temp.Fields("ListName") & "")                           '原岗位
  812.                str_Grid(jsqte, Sydz("012", GridStr(), Szzls)) = Trim(rs_Temp.Fields("ListId") & "")
  813.             End If
  814.             '现岗位
  815.             str_TempSql = "select Rs_CorSub.* from Rs_Items INNER JOIN Rs_CorSub ON Rs_Items.Correlation = Rs_CorSub.SortId where Rs_Items.FieldName='Position' and Rs_CorSub.ListId='" & Trim(.Fields("Position")) & "'"
  816.             Set rs_Temp = Cw_DataEnvi.DataConnect.Execute(str_TempSql)
  817.             If Not rs_Temp.EOF() Then
  818.                CxbbGrid.TextMatrix(jsqte, Sydz("013", GridStr(), Szzls)) = Trim(rs_Temp.Fields("ListName") & "")                            '现岗位
  819.             End If
  820.             '原工种
  821.             str_TempSql = "select Rs_CorSub.* from Rs_Items INNER JOIN Rs_CorSub ON Rs_Items.Correlation = Rs_CorSub.SortId where Rs_Items.FieldName='WorkType' and Rs_CorSub.ListId='" & Trim(.Fields("OldWorkType")) & "'"
  822.             Set rs_Temp = Cw_DataEnvi.DataConnect.Execute(str_TempSql)
  823.             If Not rs_Temp.EOF() Then
  824.                CxbbGrid.TextMatrix(jsqte, Sydz("014", GridStr(), Szzls)) = Trim(rs_Temp.Fields("ListName") & "")
  825.                str_Grid(jsqte, Sydz("014", GridStr(), Szzls)) = Trim(rs_Temp.Fields("ListId") & "")
  826.             End If
  827.             '现工种
  828.             str_TempSql = "select Rs_CorSub.* from Rs_Items INNER JOIN Rs_CorSub ON Rs_Items.Correlation = Rs_CorSub.SortId where Rs_Items.FieldName='WorkType' and Rs_CorSub.ListId='" & Trim(.Fields("WorkType")) & "'"
  829.             Set rs_Temp = Cw_DataEnvi.DataConnect.Execute(str_TempSql)
  830.             If Not rs_Temp.EOF() Then
  831.                CxbbGrid.TextMatrix(jsqte, Sydz("015", GridStr(), Szzls)) = Trim(rs_Temp.Fields("ListName") & "")
  832.             End If
  833.              '原职工类别
  834.             str_TempSql = "select Rs_CorSub.* from Rs_Items INNER JOIN Rs_CorSub ON Rs_Items.Correlation = Rs_CorSub.SortId where Rs_Items.FieldName='EmpSort' and Rs_CorSub.ListId='" & Trim(.Fields("OldEmpSort")) & "'"
  835.             Set rs_Temp = Cw_DataEnvi.DataConnect.Execute(str_TempSql)
  836.             If Not rs_Temp.EOF() Then
  837.                CxbbGrid.TextMatrix(jsqte, Sydz("016", GridStr(), Szzls)) = Trim(rs_Temp.Fields("ListName") & "")
  838.                str_Grid(jsqte, Sydz("016", GridStr(), Szzls)) = Trim(rs_Temp.Fields("ListId") & "")
  839.             End If
  840.             '现职工类别
  841.             str_TempSql = "select Rs_CorSub.* from Rs_Items INNER JOIN Rs_CorSub ON Rs_Items.Correlation = Rs_CorSub.SortId where Rs_Items.FieldName='EmpSort' and Rs_CorSub.ListId='" & Trim(.Fields("EmpSort")) & "'"
  842.             Set rs_Temp = Cw_DataEnvi.DataConnect.Execute(str_TempSql)
  843.             If Not rs_Temp.EOF() Then
  844.                CxbbGrid.TextMatrix(jsqte, Sydz("017", GridStr(), Szzls)) = Trim(rs_Temp.Fields("ListName") & "")
  845.             End If
  846.              '原用工性质
  847.             str_TempSql = "select Rs_CorSub.* from Rs_Items INNER JOIN Rs_CorSub ON Rs_Items.Correlation = Rs_CorSub.SortId where Rs_Items.FieldName='HireProp' and Rs_CorSub.ListId='" & Trim(.Fields("OldHireProp")) & "'"
  848.             Set rs_Temp = Cw_DataEnvi.DataConnect.Execute(str_TempSql)
  849.             If Not rs_Temp.EOF() Then
  850.                CxbbGrid.TextMatrix(jsqte, Sydz("018", GridStr(), Szzls)) = Trim(rs_Temp.Fields("ListName") & "")
  851.                str_Grid(jsqte, Sydz("018", GridStr(), Szzls)) = Trim(rs_Temp.Fields("ListId") & "")
  852.             End If
  853.             '现用工性质
  854.             str_TempSql = "select Rs_CorSub.* from Rs_Items INNER JOIN Rs_CorSub ON Rs_Items.Correlation = Rs_CorSub.SortId where Rs_Items.FieldName='HireProp' and Rs_CorSub.ListId='" & Trim(.Fields("HireProp")) & "'"
  855.             Set rs_Temp = Cw_DataEnvi.DataConnect.Execute(str_TempSql)
  856.             If Not rs_Temp.EOF() Then
  857.                CxbbGrid.TextMatrix(jsqte, Sydz("019", GridStr(), Szzls)) = Trim(rs_Temp.Fields("ListName") & "")
  858.             End If
  859.             '<<]
  860.             
  861.             '设置数据行高度(Fixed)
  862.             CxbbGrid.RowHeight(jsqte) = Sjhgd
  863.             '动态集指针加1,同时将计数器加1(Fixed)
  864.             .MoveNext
  865.             jsqte = jsqte + 1
  866.         Loop
  867.     End With
  868.     
  869.     ']以上为用户自定义部分
  870.     
  871. End Sub
  872. Private Sub CxbbGrid_DblClick()                                              '用户双击网格调入相应单据
  873.     Dim RecTemp As New ADODB.Recordset               '临时使用动态集
  874.     Dim str_id As String
  875.     Dim int_zgh As Integer
  876.     
  877.     
  878.     '非数据行退出
  879.     If CxbbGrid.Row < CxbbGrid.FixedRows Or CxbbGrid.TextMatrix(CxbbGrid.Row, Sydz("001", GridStr(), Szzls)) = "" Then
  880.         Exit Sub
  881.     End If
  882.      
  883.      '取最后一条
  884.     str_id = CxbbGrid.TextMatrix(CxbbGrid.Row, Sydz("001", GridStr(), Szzls))
  885.     For int_zgh = CxbbGrid.Row To CxbbGrid.Rows - 1
  886.        If CxbbGrid.TextMatrix(int_zgh, Sydz("001", GridStr(), Szzls)) <> "" Then
  887.            If CxbbGrid.TextMatrix(int_zgh, Sydz("001", GridStr(), Szzls)) <> str_id Then
  888.                Exit For
  889.            End If
  890.        End If
  891.     Next
  892.     CxbbGrid.Row = int_zgh - 1
  893.     
  894.     '查询最后一条
  895.     Sqlstr = "SELECT * From Rs_Change Where EmpID=" & Val(CxbbGrid.TextMatrix(CxbbGrid.Row, Sydz("001", GridStr(), Szzls)))
  896.     Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  897.     With RecTemp
  898.         If .EOF Then
  899.             Tsxx = "此记录已被其他用户删除!"
  900.             Call Xtxxts(Tsxx, 0, 1)
  901.             Exit Sub
  902.         Else
  903.             '判断所查询的是否是真正的最后一条
  904.             .MoveLast
  905.             If .Fields("SNo") <> CxbbGrid.TextMatrix(CxbbGrid.Row, Sydz("002", GridStr(), Szzls)) Then
  906.                 Tsxx = "此职工的变动记录不是最后一条,不能操作!"
  907.                 Call Xtxxts(Tsxx, 0, 1)
  908.                 Exit Sub
  909.             End If
  910.             
  911.             '判断是否是停用的记录
  912.             If .Fields("ChangeType") = "1002" Then
  913.                 Tsxx = "此职工已经停用,不能操作!"
  914.                 Call Xtxxts(Tsxx, 0, 1)
  915.                 Exit Sub
  916.             End If
  917.             
  918.             
  919.             '调入单据处理窗体
  920.             With Ed_EmpChgFrm
  921.                 
  922.                 '填充查询单据标识
  923.                 XT_BillID = CxbbGrid.TextMatrix(CxbbGrid.Row, Sydz("003", GridStr(), Szzls))
  924.                 str_mark = CxbbGrid.TextMatrix(CxbbGrid.Row, Sydz("002", GridStr(), Szzls))
  925.                 Xtcdcsfz = Str_QueryCondi
  926.                 
  927.                 '设置单据处理为列表查询(修改)状态
  928.                 Xtcdcs = "2"
  929.                 .Show 1
  930.             End With
  931.             
  932.             If Xtfhcs = "1" Then
  933.                 Tsxx = "人员变动记录发生变化,是否刷新?"
  934.                 Yhanswer = Xtxxts(Tsxx, 2, 2)
  935.                 If Yhanswer = 1 Then
  936.                     Xt_Wait.Show
  937.                     Xt_Wait.Refresh
  938.                     
  939.                     '加快显示速度
  940.                     CxbbGrid.Redraw = False
  941.                     '生成查询结果
  942.                     Call Sub_Query(1)
  943.                     
  944.                     CxbbGrid.Redraw = True
  945.                     
  946.                     Xt_Wait.Hide
  947.                 End If
  948.             End If
  949.         End If
  950.     End With
  951.     
  952. End Sub
  953. Private Sub Sub_AddBill()                                              '新增单据
  954.     
  955.     With Ed_EmpChgFrm
  956.         
  957.         '设置单据处理为填制单据状态
  958.         Xtcdcs = "1"
  959.         
  960.         .Show 1
  961.     End With
  962.     
  963.     If Xtfhcs = "1" Then
  964.         Tsxx = "人事变动发生变化,是否刷新人事变动列表?"
  965.         Yhanswer = Xtxxts(Tsxx, 2, 2)
  966.         
  967.         If Yhanswer = 1 Then
  968.             Xt_Wait.Show
  969.             Xt_Wait.Refresh
  970.             
  971.             '加快显示速度
  972.             CxbbGrid.Redraw = False
  973.             
  974.             '生成查询结果
  975.             Call Sub_Query(1)
  976.             
  977.             CxbbGrid.Redraw = True
  978.             Xt_Wait.Hide
  979.         End If
  980.     End If
  981.     
  982. End Sub
  983. Private Sub Sub_DeleteBill()                                            '删除选中当前单据
  984.     
  985.     Dim YAnswer As Integer
  986.     Dim Lng_BillID As Long           '单据标识
  987.     Dim str_id As String
  988.     Dim int_zgh As Integer
  989.     Dim RecTemp As New ADODB.Recordset                    '临时使用动态集
  990.     Dim Rec_Grid As New ADODB.Recordset                    '临时使用动态集
  991.     
  992.     '非数据行退出
  993.     If CxbbGrid.Row < CxbbGrid.FixedRows Or Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0)) = 0 Then
  994.         Exit Sub
  995.     End If
  996.     
  997.      '取最后一条
  998.     str_id = CxbbGrid.TextMatrix(CxbbGrid.Row, Sydz("001", GridStr(), Szzls))
  999.     For int_zgh = CxbbGrid.Row To CxbbGrid.Rows - 1
  1000.        If CxbbGrid.TextMatrix(int_zgh, Sydz("001", GridStr(), Szzls)) <> "" Then
  1001.            If CxbbGrid.TextMatrix(int_zgh, Sydz("001", GridStr(), Szzls)) <> str_id Then
  1002.                Exit For
  1003.            End If
  1004.        End If
  1005.     Next
  1006.     CxbbGrid.Row = int_zgh - 1
  1007.     
  1008.     '判断所查询的是否是真正最后一条
  1009.     Sqlstr = "SELECT * From Rs_Change Where EmpID=" & Val(CxbbGrid.TextMatrix(CxbbGrid.Row, Sydz("001", GridStr(), Szzls)))
  1010.     Set Rec_Grid = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  1011.     With Rec_Grid
  1012.         If .EOF Then
  1013.             Tsxx = "此记录已被其他用户删除!"
  1014.             Call Xtxxts(Tsxx, 0, 3)
  1015.             Exit Sub
  1016.         Else
  1017.             .MoveLast
  1018.             If .Fields("SNo") <> CxbbGrid.TextMatrix(CxbbGrid.Row, Sydz("002", GridStr(), Szzls)) Then
  1019.                 Tsxx = "此职工的变动记录不是最后一条,不能删除!"
  1020.                 Call Xtxxts(Tsxx, 0, 1)
  1021.                 Exit Sub
  1022.             End If
  1023.         
  1024.             '判断是否是停用的记录
  1025.             If .Fields("ChangeType") = "1002" Then
  1026.                 Tsxx = "此职工已经调出,不能操作!"
  1027.                 Call Xtxxts(Tsxx, 0, 1)
  1028.                 Exit Sub
  1029.             End If
  1030.         End If
  1031.      End With
  1032.     
  1033.     Tsxx = "请确认是否删除此职工的最后变动记录?"
  1034.     Yhanswer = Xtxxts(Tsxx, 2, 2)
  1035.     
  1036.     If Yhanswer = 1 Then
  1037.         
  1038.         '1.判断当前单据是否允许删除
  1039.         If Not Fun_AllowDelete Then
  1040.             Exit Sub
  1041.         End If
  1042.         
  1043.         '2.删除单据所有内容
  1044.         Lng_BillID = CxbbGrid.TextMatrix(CxbbGrid.Row, Sydz("001", GridStr(), Szzls))
  1045.         
  1046.         '还原Rs_BasicInfo(人事基本信息的内容)
  1047.         
  1048.         If RecTemp.State = 1 Then RecTemp.Close
  1049.         RecTemp.Open "Select Rs_BasicInfo.* From Rs_BasicInfo WHERE Rs_BasicInfo.EmpID='" & Lng_BillID & "' and Rs_BasicInfo.YNStop='0'", Cw_DataEnvi.DataConnect, adOpenDynamic, adLockOptimistic
  1050.         If RecTemp.RecordCount = 0 Then Exit Sub
  1051.         With RecTemp
  1052.             If str_Grid(CxbbGrid.Row, Sydz("008", GridStr(), Szzls)) <> "" Then
  1053.               .Fields("DeptCode") = str_Grid(CxbbGrid.Row, Sydz("008", GridStr(), Szzls))                                  '部门代码
  1054.             Else
  1055.               .Fields("DeptCode") = ""
  1056.             End If
  1057.             If str_Grid(CxbbGrid.Row, Sydz("010", GridStr(), Szzls)) <> "" Then
  1058.               .Fields("Business") = str_Grid(CxbbGrid.Row, Sydz("010", GridStr(), Szzls))                                   '职务
  1059.             Else
  1060.               .Fields("Business") = ""
  1061.             End If
  1062.             If str_Grid(CxbbGrid.Row, Sydz("012", GridStr(), Szzls)) <> "" Then
  1063.               .Fields("Position") = str_Grid(CxbbGrid.Row, Sydz("012", GridStr(), Szzls))                                   '岗位
  1064.             Else
  1065.               .Fields("Position") = ""
  1066.             End If
  1067.             If str_Grid(CxbbGrid.Row, Sydz("014", GridStr(), Szzls)) <> "" Then
  1068.               .Fields("WorkType") = str_Grid(CxbbGrid.Row, Sydz("014", GridStr(), Szzls))                                    '工种
  1069.             Else
  1070.               .Fields("WorkType") = ""
  1071.             End If
  1072.             If str_Grid(CxbbGrid.Row, Sydz("018", GridStr(), Szzls)) <> "" Then
  1073.               .Fields("HireProp") = str_Grid(CxbbGrid.Row, Sydz("018", GridStr(), Szzls))                                    '用工性质
  1074.             Else
  1075.               .Fields("HireProp") = ""
  1076.             End If
  1077.             If str_Grid(CxbbGrid.Row, Sydz("016", GridStr(), Szzls)) <> "" Then
  1078.               .Fields("EmpSort") = str_Grid(CxbbGrid.Row, Sydz("016", GridStr(), Szzls))                                     '类别
  1079.             Else
  1080.               .Fields("EmpSort") = ""
  1081.             End If
  1082.             .Update
  1083.         End With
  1084.         On Error GoTo Swcwcl
  1085.         
  1086.         Cw_DataEnvi.DataConnect.BeginTrans
  1087.         Cw_DataEnvi.DataConnect.Execute ("Delete Rs_Change Where EmpID='" & Lng_BillID & "' and SNo='" & CxbbGrid.TextMatrix(CxbbGrid.Row, Sydz("002", GridStr(), Szzls)) & "'")
  1088.         Cw_DataEnvi.DataConnect.CommitTrans
  1089.         
  1090.         '删除网格中单据数据
  1091.         CxbbGrid.RemoveItem (CxbbGrid.Row)
  1092.     Else
  1093.         Exit Sub
  1094.     End If
  1095.     
  1096.     Exit Sub
  1097. Swcwcl:
  1098.     Cw_DataEnvi.DataConnect.RollbackTrans
  1099.     Tsxx = "删除过程中出现未知错误,程序自动恢复删除前状态!"
  1100.     Call Xtxxts(Tsxx, 0, 1)
  1101.     Exit Sub
  1102.     
  1103. End Sub
  1104. Private Function Fun_AllowDelete() As Boolean                                        '判断当前单据是否允许删除
  1105.     
  1106.     Dim RecTemp As New ADODB.Recordset     '临时使用动态集
  1107.     Dim Sqlstr As String                   '查询字符串
  1108.     Dim Lng_BillID As Long                 '单据ID
  1109.     
  1110.     Lng_BillID = Val(CxbbGrid.TextMatrix(CxbbGrid.Row, Sydz("001", GridStr(), Szzls)))
  1111.     Sqlstr = "Select * From Rs_Change Where EmpID=" & Lng_BillID
  1112.     Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  1113.     With RecTemp
  1114.         If Not .EOF Then
  1115.         
  1116.         
  1117.         End If
  1118.     End With
  1119.     Fun_AllowDelete = True
  1120.     
  1121. End Function
  1122. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  1123.     
  1124.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  1125.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  1126.     Bbxbtgs = 1                                          '报 表 小 标 题 行 数
  1127.     Bbbwhgs = 0                                          '报 表 表 尾 行 数
  1128.     
  1129.     ReDim Bbxbt(1 To Bbxbtgs)
  1130.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  1131.     If Bbbwhgs <> 0 Then
  1132.         ReDim Bbbwh(1 To Bbbwhgs)
  1133.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  1134.     End If
  1135.     
  1136.     Bbzbt = ReportTitle
  1137.     Bbxbt(1) = ""
  1138.     bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  1139.     Call Scyxsjb(CxbbGrid)                               '生成报表数据
  1140.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  1141.     If Not bbylte Then
  1142.         Unload DY_Tybbyldy
  1143.     End If
  1144.     
  1145. End Sub