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

企业管理

开发平台:

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 Khgl_Analyze 
  6.    Caption         =   "考核结果分析"
  7.    ClientHeight    =   8595
  8.    ClientLeft      =   315
  9.    ClientTop       =   390
  10.    ClientWidth     =   11820
  11.    HelpContextID   =   2314001
  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            =   10110
  22.       TabIndex        =   3
  23.       Top             =   30
  24.       Width           =   1695
  25.       _ExtentX        =   2990
  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      =   2
  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.       EndProperty
  46.    End
  47.    Begin VB.PictureBox Pic_Title 
  48.       BackColor       =   &H00FFFFFF&
  49.       Height          =   825
  50.       Left            =   0
  51.       Picture         =   "考核结果分析.frx":1042
  52.       ScaleHeight     =   765
  53.       ScaleWidth      =   11715
  54.       TabIndex        =   1
  55.       Top             =   570
  56.       Width           =   11775
  57.       Begin VB.Label Lab_Title 
  58.          BackColor       =   &H80000018&
  59.          BackStyle       =   0  'Transparent
  60.          Caption         =   "考核类别:"
  61.          ForeColor       =   &H00000000&
  62.          Height          =   240
  63.          Index           =   0
  64.          Left            =   300
  65.          TabIndex        =   2
  66.          Top             =   240
  67.          Width           =   4065
  68.       End
  69.    End
  70.    Begin VB.Timer Timer1 
  71.       Enabled         =   0   'False
  72.       Interval        =   1
  73.       Left            =   7620
  74.       Top             =   90
  75.    End
  76.    Begin VSFlex8Ctl.VSFlexGrid CxbbGrid 
  77.       Height          =   7545
  78.       Left            =   30
  79.       TabIndex        =   0
  80.       Top             =   1470
  81.       Width           =   11775
  82.       _ExtentX        =   20770
  83.       _ExtentY        =   13309
  84.       Appearance      =   1
  85.       BorderStyle     =   1
  86.       Enabled         =   -1  'True
  87.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  88.          Name            =   "宋体"
  89.          Size            =   9
  90.          Charset         =   134
  91.          Weight          =   400
  92.          Underline       =   0   'False
  93.          Italic          =   0   'False
  94.          Strikethrough   =   0   'False
  95.       EndProperty
  96.       MousePointer    =   0
  97.       BackColor       =   16777215
  98.       ForeColor       =   -2147483640
  99.       BackColorFixed  =   13826538
  100.       ForeColorFixed  =   -2147483630
  101.       BackColorSel    =   -2147483635
  102.       ForeColorSel    =   -2147483634
  103.       BackColorBkg    =   -2147483636
  104.       BackColorAlternate=   16777215
  105.       GridColor       =   -2147483633
  106.       GridColorFixed  =   -2147483632
  107.       TreeColor       =   -2147483632
  108.       FloodColor      =   192
  109.       SheetBorder     =   -2147483642
  110.       FocusRect       =   1
  111.       HighLight       =   1
  112.       AllowSelection  =   -1  'True
  113.       AllowBigSelection=   -1  'True
  114.       AllowUserResizing=   0
  115.       SelectionMode   =   0
  116.       GridLines       =   1
  117.       GridLinesFixed  =   2
  118.       GridLineWidth   =   1
  119.       Rows            =   50
  120.       Cols            =   10
  121.       FixedRows       =   1
  122.       FixedCols       =   1
  123.       RowHeightMin    =   0
  124.       RowHeightMax    =   0
  125.       ColWidthMin     =   0
  126.       ColWidthMax     =   0
  127.       ExtendLastCol   =   0   'False
  128.       FormatString    =   ""
  129.       ScrollTrack     =   0   'False
  130.       ScrollBars      =   3
  131.       ScrollTips      =   0   'False
  132.       MergeCells      =   0
  133.       MergeCompare    =   0
  134.       AutoResize      =   -1  'True
  135.       AutoSizeMode    =   0
  136.       AutoSearch      =   0
  137.       MultiTotals     =   -1  'True
  138.       SubtotalPosition=   1
  139.       OutlineBar      =   0
  140.       OutlineCol      =   0
  141.       Ellipsis        =   0
  142.       ExplorerBar     =   0
  143.       PicturesOver    =   0   'False
  144.       FillStyle       =   0
  145.       RightToLeft     =   0   'False
  146.       PictureType     =   0
  147.       TabBehavior     =   0
  148.       OwnerDraw       =   0
  149.       Editable        =   0   'False
  150.       ShowComboButton =   -1  'True
  151.       WordWrap        =   0   'False
  152.       TextStyle       =   0
  153.       TextStyleFixed  =   0
  154.       OleDragMode     =   0
  155.       OleDropMode     =   0
  156.       DataMode        =   0
  157.       VirtualData     =   -1  'True
  158.       Begin MSComctlLib.ImageList ImageList2 
  159.          Left            =   0
  160.          Top             =   0
  161.          _ExtentX        =   1005
  162.          _ExtentY        =   1005
  163.          BackColor       =   -2147483643
  164.          ImageWidth      =   16
  165.          ImageHeight     =   16
  166.          MaskColor       =   12632256
  167.          _Version        =   393216
  168.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  169.             NumListImages   =   40
  170.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  171.                Picture         =   "考核结果分析.frx":1FAC4
  172.                Key             =   "sz"
  173.             EndProperty
  174.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  175.                Picture         =   "考核结果分析.frx":1FE5E
  176.                Key             =   "dy"
  177.             EndProperty
  178.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  179.                Picture         =   "考核结果分析.frx":201F8
  180.                Key             =   "yl"
  181.             EndProperty
  182.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  183.                Picture         =   "考核结果分析.frx":20592
  184.                Key             =   "xg"
  185.             EndProperty
  186.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  187.                Picture         =   "考核结果分析.frx":2092C
  188.                Key             =   "zh"
  189.             EndProperty
  190.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  191.                Picture         =   "考核结果分析.frx":20CC6
  192.                Key             =   "sh"
  193.             EndProperty
  194.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  195.                Picture         =   "考核结果分析.frx":21060
  196.                Key             =   "bc"
  197.             EndProperty
  198.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  199.                Picture         =   "考核结果分析.frx":213FA
  200.                Key             =   "fq"
  201.             EndProperty
  202.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  203.                Picture         =   "考核结果分析.frx":21794
  204.                Key             =   "bz"
  205.             EndProperty
  206.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  207.                Picture         =   "考核结果分析.frx":21B2E
  208.                Key             =   "tc"
  209.             EndProperty
  210.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  211.                Picture         =   "考核结果分析.frx":21EC8
  212.                Key             =   "bcgs"
  213.             EndProperty
  214.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  215.                Picture         =   "考核结果分析.frx":22262
  216.                Key             =   "mrlk"
  217.             EndProperty
  218.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  219.                Picture         =   "考核结果分析.frx":225FC
  220.                Key             =   "xsxm"
  221.             EndProperty
  222.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  223.                Picture         =   "考核结果分析.frx":22996
  224.                Key             =   "first"
  225.             EndProperty
  226.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  227.                Picture         =   "考核结果分析.frx":22D30
  228.                Key             =   "prev"
  229.             EndProperty
  230.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  231.                Picture         =   "考核结果分析.frx":230CA
  232.                Key             =   "next"
  233.             EndProperty
  234.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  235.                Picture         =   "考核结果分析.frx":23464
  236.                Key             =   "last"
  237.             EndProperty
  238.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  239.                Picture         =   "考核结果分析.frx":237FE
  240.                Key             =   "xx"
  241.             EndProperty
  242.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  243.                Picture         =   "考核结果分析.frx":23B98
  244.                Key             =   "define"
  245.             EndProperty
  246.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  247.                Picture         =   "考核结果分析.frx":23F32
  248.                Key             =   "exec"
  249.             EndProperty
  250.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  251.                Picture         =   "考核结果分析.frx":242CC
  252.                Key             =   "xz"
  253.             EndProperty
  254.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  255.                Picture         =   "考核结果分析.frx":24666
  256.                Key             =   "sc"
  257.             EndProperty
  258.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  259.                Picture         =   "考核结果分析.frx":24A00
  260.                Key             =   "sx"
  261.             EndProperty
  262.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  263.                Picture         =   "考核结果分析.frx":24D9A
  264.                Key             =   "cx"
  265.             EndProperty
  266.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  267.                Picture         =   "考核结果分析.frx":25134
  268.                Key             =   "zd"
  269.             EndProperty
  270.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  271.                Picture         =   "考核结果分析.frx":254CE
  272.                Key             =   "dz"
  273.             EndProperty
  274.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  275.                Picture         =   "考核结果分析.frx":25868
  276.                Key             =   "ph"
  277.             EndProperty
  278.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  279.                Picture         =   "考核结果分析.frx":25C02
  280.                Key             =   "fz"
  281.             EndProperty
  282.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  283.                Picture         =   "考核结果分析.frx":25F9C
  284.                Key             =   "dw"
  285.             EndProperty
  286.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  287.                Picture         =   "考核结果分析.frx":26336
  288.                Key             =   "hf"
  289.             EndProperty
  290.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  291.                Picture         =   "考核结果分析.frx":266D0
  292.                Key             =   "pz"
  293.             EndProperty
  294.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  295.                Picture         =   "考核结果分析.frx":26A6A
  296.                Key             =   "check"
  297.             EndProperty
  298.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  299.                Picture         =   "考核结果分析.frx":26E04
  300.                Key             =   "qs"
  301.             EndProperty
  302.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  303.                Picture         =   "考核结果分析.frx":2719E
  304.                Key             =   "fullcheck"
  305.             EndProperty
  306.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  307.                Picture         =   "考核结果分析.frx":27538
  308.                Key             =   "qq"
  309.             EndProperty
  310.             BeginProperty ListImage36 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  311.                Picture         =   "考核结果分析.frx":278D2
  312.                Key             =   "bcw"
  313.             EndProperty
  314.             BeginProperty ListImage37 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  315.                Picture         =   "考核结果分析.frx":27C6C
  316.                Key             =   "ye"
  317.             EndProperty
  318.             BeginProperty ListImage38 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  319.                Picture         =   "考核结果分析.frx":28006
  320.                Key             =   ""
  321.             EndProperty
  322.             BeginProperty ListImage39 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  323.                Picture         =   "考核结果分析.frx":283A0
  324.                Key             =   "frist"
  325.             EndProperty
  326.             BeginProperty ListImage40 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  327.                Picture         =   "考核结果分析.frx":2873A
  328.                Key             =   "dj"
  329.             EndProperty
  330.          EndProperty
  331.       End
  332.       Begin VSFlex8Ctl.VSFlexGrid CxbbGrid_dc 
  333.          Height          =   1245
  334.          Left            =   5220
  335.          TabIndex        =   5
  336.          Top             =   1680
  337.          Visible         =   0   'False
  338.          Width           =   1875
  339.          _ExtentX        =   3307
  340.          _ExtentY        =   2196
  341.          Appearance      =   1
  342.          BorderStyle     =   1
  343.          Enabled         =   -1  'True
  344.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  345.             Name            =   "宋体"
  346.             Size            =   9
  347.             Charset         =   134
  348.             Weight          =   400
  349.             Underline       =   0   'False
  350.             Italic          =   0   'False
  351.             Strikethrough   =   0   'False
  352.          EndProperty
  353.          MousePointer    =   0
  354.          BackColor       =   -2147483643
  355.          ForeColor       =   -2147483640
  356.          BackColorFixed  =   -2147483633
  357.          ForeColorFixed  =   -2147483630
  358.          BackColorSel    =   -2147483635
  359.          ForeColorSel    =   -2147483634
  360.          BackColorBkg    =   -2147483636
  361.          BackColorAlternate=   -2147483643
  362.          GridColor       =   -2147483633
  363.          GridColorFixed  =   -2147483632
  364.          TreeColor       =   -2147483632
  365.          FloodColor      =   192
  366.          SheetBorder     =   -2147483642
  367.          FocusRect       =   1
  368.          HighLight       =   1
  369.          AllowSelection  =   -1  'True
  370.          AllowBigSelection=   -1  'True
  371.          AllowUserResizing=   0
  372.          SelectionMode   =   0
  373.          GridLines       =   1
  374.          GridLinesFixed  =   2
  375.          GridLineWidth   =   1
  376.          Rows            =   0
  377.          Cols            =   0
  378.          FixedRows       =   0
  379.          FixedCols       =   0
  380.          RowHeightMin    =   0
  381.          RowHeightMax    =   0
  382.          ColWidthMin     =   0
  383.          ColWidthMax     =   0
  384.          ExtendLastCol   =   0   'False
  385.          FormatString    =   ""
  386.          ScrollTrack     =   0   'False
  387.          ScrollBars      =   3
  388.          ScrollTips      =   0   'False
  389.          MergeCells      =   0
  390.          MergeCompare    =   0
  391.          AutoResize      =   -1  'True
  392.          AutoSizeMode    =   0
  393.          AutoSearch      =   0
  394.          MultiTotals     =   -1  'True
  395.          SubtotalPosition=   1
  396.          OutlineBar      =   0
  397.          OutlineCol      =   0
  398.          Ellipsis        =   0
  399.          ExplorerBar     =   0
  400.          PicturesOver    =   0   'False
  401.          FillStyle       =   0
  402.          RightToLeft     =   0   'False
  403.          PictureType     =   0
  404.          TabBehavior     =   0
  405.          OwnerDraw       =   0
  406.          Editable        =   0   'False
  407.          ShowComboButton =   -1  'True
  408.          WordWrap        =   0   'False
  409.          TextStyle       =   0
  410.          TextStyleFixed  =   0
  411.          OleDragMode     =   0
  412.          OleDropMode     =   0
  413.          DataMode        =   0
  414.          VirtualData     =   -1  'True
  415.       End
  416.       Begin VSFlex8Ctl.VSFlexGrid CxbbGrid_xg 
  417.          Height          =   1095
  418.          Left            =   2940
  419.          TabIndex        =   6
  420.          Top             =   1650
  421.          Visible         =   0   'False
  422.          Width           =   1905
  423.          _ExtentX        =   3360
  424.          _ExtentY        =   1931
  425.          Appearance      =   1
  426.          BorderStyle     =   1
  427.          Enabled         =   -1  'True
  428.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  429.             Name            =   "宋体"
  430.             Size            =   9
  431.             Charset         =   134
  432.             Weight          =   400
  433.             Underline       =   0   'False
  434.             Italic          =   0   'False
  435.             Strikethrough   =   0   'False
  436.          EndProperty
  437.          MousePointer    =   0
  438.          BackColor       =   -2147483643
  439.          ForeColor       =   -2147483640
  440.          BackColorFixed  =   -2147483633
  441.          ForeColorFixed  =   -2147483630
  442.          BackColorSel    =   -2147483635
  443.          ForeColorSel    =   -2147483634
  444.          BackColorBkg    =   -2147483636
  445.          BackColorAlternate=   -2147483643
  446.          GridColor       =   -2147483633
  447.          GridColorFixed  =   -2147483632
  448.          TreeColor       =   -2147483632
  449.          FloodColor      =   192
  450.          SheetBorder     =   -2147483642
  451.          FocusRect       =   1
  452.          HighLight       =   1
  453.          AllowSelection  =   -1  'True
  454.          AllowBigSelection=   -1  'True
  455.          AllowUserResizing=   0
  456.          SelectionMode   =   0
  457.          GridLines       =   1
  458.          GridLinesFixed  =   2
  459.          GridLineWidth   =   1
  460.          Rows            =   0
  461.          Cols            =   0
  462.          FixedRows       =   0
  463.          FixedCols       =   0
  464.          RowHeightMin    =   0
  465.          RowHeightMax    =   0
  466.          ColWidthMin     =   0
  467.          ColWidthMax     =   0
  468.          ExtendLastCol   =   0   'False
  469.          FormatString    =   ""
  470.          ScrollTrack     =   0   'False
  471.          ScrollBars      =   3
  472.          ScrollTips      =   0   'False
  473.          MergeCells      =   0
  474.          MergeCompare    =   0
  475.          AutoResize      =   -1  'True
  476.          AutoSizeMode    =   0
  477.          AutoSearch      =   0
  478.          MultiTotals     =   -1  'True
  479.          SubtotalPosition=   1
  480.          OutlineBar      =   0
  481.          OutlineCol      =   0
  482.          Ellipsis        =   0
  483.          ExplorerBar     =   0
  484.          PicturesOver    =   0   'False
  485.          FillStyle       =   0
  486.          RightToLeft     =   0   'False
  487.          PictureType     =   0
  488.          TabBehavior     =   0
  489.          OwnerDraw       =   0
  490.          Editable        =   0   'False
  491.          ShowComboButton =   -1  'True
  492.          WordWrap        =   0   'False
  493.          TextStyle       =   0
  494.          TextStyleFixed  =   0
  495.          OleDragMode     =   0
  496.          OleDropMode     =   0
  497.          DataMode        =   0
  498.          VirtualData     =   -1  'True
  499.       End
  500.    End
  501.    Begin MSComctlLib.Toolbar SzToolbar 
  502.       Align           =   1  'Align Top
  503.       Height          =   570
  504.       Left            =   0
  505.       TabIndex        =   4
  506.       Top             =   0
  507.       Width           =   11820
  508.       _ExtentX        =   20849
  509.       _ExtentY        =   1005
  510.       ButtonWidth     =   820
  511.       ButtonHeight    =   953
  512.       AllowCustomize  =   0   'False
  513.       Appearance      =   1
  514.       Style           =   1
  515.       ImageList       =   "ImageList1"
  516.       _Version        =   393216
  517.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  518.          NumButtons      =   12
  519.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  520.             Caption         =   "设置"
  521.             Key             =   "ymsz"
  522.             ImageKey        =   "sz"
  523.          EndProperty
  524.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  525.             Caption         =   "打印"
  526.             Key             =   "dy"
  527.             ImageKey        =   "dy"
  528.          EndProperty
  529.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  530.             Caption         =   "预览"
  531.             Key             =   "yl"
  532.             ImageKey        =   "yl"
  533.          EndProperty
  534.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  535.             Style           =   3
  536.          EndProperty
  537.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  538.             Caption         =   "查询"
  539.             Key             =   "cx"
  540.             ImageKey        =   "cx"
  541.          EndProperty
  542.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  543.             Style           =   3
  544.          EndProperty
  545.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  546.             Caption         =   "总体"
  547.             Key             =   "Tzt"
  548.             ImageKey        =   "Tzt"
  549.          EndProperty
  550.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  551.             Caption         =   "相关"
  552.             Key             =   "Txg"
  553.             ImageKey        =   "Txg"
  554.          EndProperty
  555.          BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  556.             Caption         =   "档次"
  557.             Key             =   "Tdc"
  558.             ImageKey        =   "Tdc"
  559.          EndProperty
  560.          BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  561.             Style           =   3
  562.          EndProperty
  563.          BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  564.             Caption         =   "帮助"
  565.             Key             =   "bz"
  566.             ImageKey        =   "bz"
  567.          EndProperty
  568.          BeginProperty Button12 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  569.             Caption         =   "退出"
  570.             Key             =   "fh"
  571.             ImageKey        =   "tc"
  572.          EndProperty
  573.       EndProperty
  574.       BorderStyle     =   1
  575.       Begin MSComctlLib.ImageList ImageList1 
  576.          Left            =   6990
  577.          Top             =   30
  578.          _ExtentX        =   1005
  579.          _ExtentY        =   1005
  580.          BackColor       =   -2147483643
  581.          ImageWidth      =   16
  582.          ImageHeight     =   16
  583.          MaskColor       =   12632256
  584.          _Version        =   393216
  585.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  586.             NumListImages   =   35
  587.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  588.                Picture         =   "考核结果分析.frx":28AD4
  589.                Key             =   "sz"
  590.             EndProperty
  591.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  592.                Picture         =   "考核结果分析.frx":28E6E
  593.                Key             =   "dy"
  594.             EndProperty
  595.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  596.                Picture         =   "考核结果分析.frx":29208
  597.                Key             =   "yl"
  598.             EndProperty
  599.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  600.                Picture         =   "考核结果分析.frx":295A2
  601.                Key             =   "xg"
  602.             EndProperty
  603.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  604.                Picture         =   "考核结果分析.frx":2993C
  605.                Key             =   "zh"
  606.             EndProperty
  607.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  608.                Picture         =   "考核结果分析.frx":29CD6
  609.                Key             =   "sh"
  610.             EndProperty
  611.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  612.                Picture         =   "考核结果分析.frx":2A070
  613.                Key             =   "bc"
  614.             EndProperty
  615.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  616.                Picture         =   "考核结果分析.frx":2A40A
  617.                Key             =   "fq"
  618.             EndProperty
  619.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  620.                Picture         =   "考核结果分析.frx":2A7A4
  621.                Key             =   "bz"
  622.             EndProperty
  623.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  624.                Picture         =   "考核结果分析.frx":2AB3E
  625.                Key             =   "tc"
  626.             EndProperty
  627.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  628.                Picture         =   "考核结果分析.frx":2AED8
  629.                Key             =   "bcgs"
  630.             EndProperty
  631.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  632.                Picture         =   "考核结果分析.frx":2B272
  633.                Key             =   "mrlk"
  634.             EndProperty
  635.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  636.                Picture         =   "考核结果分析.frx":2B60C
  637.                Key             =   "xsxm"
  638.             EndProperty
  639.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  640.                Picture         =   "考核结果分析.frx":2B9A6
  641.                Key             =   "first"
  642.             EndProperty
  643.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  644.                Picture         =   "考核结果分析.frx":2BD40
  645.                Key             =   "prev"
  646.             EndProperty
  647.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  648.                Picture         =   "考核结果分析.frx":2C0DA
  649.                Key             =   "next"
  650.             EndProperty
  651.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  652.                Picture         =   "考核结果分析.frx":2C474
  653.                Key             =   "last"
  654.             EndProperty
  655.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  656.                Picture         =   "考核结果分析.frx":2C80E
  657.                Key             =   "xx"
  658.             EndProperty
  659.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  660.                Picture         =   "考核结果分析.frx":2CBA8
  661.                Key             =   "define"
  662.             EndProperty
  663.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  664.                Picture         =   "考核结果分析.frx":2CF42
  665.                Key             =   "exec"
  666.             EndProperty
  667.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  668.                Picture         =   "考核结果分析.frx":2D2DC
  669.                Key             =   "xz"
  670.             EndProperty
  671.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  672.                Picture         =   "考核结果分析.frx":2D676
  673.                Key             =   "sc"
  674.             EndProperty
  675.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  676.                Picture         =   "考核结果分析.frx":2DA10
  677.                Key             =   "sx"
  678.             EndProperty
  679.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  680.                Picture         =   "考核结果分析.frx":2DDAA
  681.                Key             =   "cx"
  682.             EndProperty
  683.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  684.                Picture         =   "考核结果分析.frx":2E144
  685.                Key             =   "zd"
  686.             EndProperty
  687.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  688.                Picture         =   "考核结果分析.frx":2E4DE
  689.                Key             =   "dz"
  690.             EndProperty
  691.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  692.                Picture         =   "考核结果分析.frx":2E878
  693.                Key             =   "ph"
  694.             EndProperty
  695.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  696.                Picture         =   "考核结果分析.frx":2EC12
  697.                Key             =   "fz"
  698.             EndProperty
  699.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  700.                Picture         =   "考核结果分析.frx":2EFAC
  701.                Key             =   "dw"
  702.             EndProperty
  703.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  704.                Picture         =   "考核结果分析.frx":2F346
  705.                Key             =   "hf"
  706.             EndProperty
  707.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  708.                Picture         =   "考核结果分析.frx":2F6E0
  709.                Key             =   "pz"
  710.             EndProperty
  711.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  712.                Picture         =   "考核结果分析.frx":2FA7A
  713.                Key             =   "check"
  714.             EndProperty
  715.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  716.                Picture         =   "考核结果分析.frx":2FE14
  717.                Key             =   "Txg"
  718.             EndProperty
  719.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  720.                Picture         =   "考核结果分析.frx":301AE
  721.                Key             =   "Tzt"
  722.             EndProperty
  723.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  724.                Picture         =   "考核结果分析.frx":30548
  725.                Key             =   "Tdc"
  726.             EndProperty
  727.          EndProperty
  728.       End
  729.    End
  730. End
  731. Attribute VB_Name = "Khgl_Analyze"
  732. Attribute VB_GlobalNameSpace = False
  733. Attribute VB_Creatable = False
  734. Attribute VB_PredeclaredId = True
  735. Attribute VB_Exposed = False
  736. '**************************************************************************
  737. '*    模 块 名 称 :考核结果分析
  738. '*    功 能 描 述 :
  739. '*    程序员姓名  :张洪军
  740. '*    最后修改人  :张洪军
  741. '*    最后修改时间:2001/12/25
  742. '*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
  743. '**************************************************************************
  744. Dim int_Check(5) As Integer             '最小值、最大值、平均值、合计值是否选中
  745. Dim ReportTitle As String                '报表主标题
  746. Dim str_TitleCode As String              '考核类别编码
  747. Dim str_titleRoot As String              '考核类别根结点编码
  748. Dim Str_QueryCondi As String             '用户录入查询条件
  749. Dim Rec_BillID As New ADODB.Recordset    '用户查询单据ID动态集
  750. Dim str_format As String                 '显示格式
  751. '以下为固定使用变量
  752. Dim Dyymctbl As New DY_Dyymsz            '打印页面窗体变量
  753. Dim GridCode As String                   '显示网格网格代码
  754. Dim GridInf() As Variant                 '整个网格设置信息
  755. Dim Tsxx As String                       '系统提示信息
  756. Dim Qslz As Long                         '网格隐藏(非操作显示)列数
  757. Dim Sjhgd As Double                      '网格数据行高度
  758. Dim Sfxshjwg As Boolean                  '是否显示合计网格
  759. Dim GridBoolean() As Boolean             '网格列信息(布尔型)
  760. Dim GridStr()  As String                 '网格列信息(字符型)
  761. Dim GridInt() As Integer                 '网格列信息(整型)
  762. Dim Szzls As Integer                     '数组总列数(网格列数-1)
  763. Private Sub Form_Resize()                '根据窗体大小来调整网格,标题栏大小(Fixed)
  764.     
  765.     On Error Resume Next
  766.     
  767.     With CxbbGrid
  768.         .Width = Me.Width - 160
  769.         .Height = Me.Height - .Top - 400
  770.     End With
  771.     
  772.     With Pic_Title
  773.         .Width = Me.Width - 160
  774.     End With
  775.     
  776.     GsToolbar.Left = Me.Width - GsToolbar.Width - 140
  777.     
  778. End Sub
  779. Private Sub Form_Load()                                                   '窗体装入
  780.     
  781.     str_format = "########"
  782.     
  783.     '调入打印页面设置窗体
  784.     ReportTitle = "考核结果分析"
  785.     XtReportCode = "Khgl_Analyze"
  786.     Load Dyymctbl
  787.     
  788.     '调整标题栏及网格、格式工具条位置(Fixed)
  789.     Pic_Title.Left = 40
  790.     Pic_Title.Top = SzToolbar.Top + SzToolbar.Height - 10
  791.     CxbbGrid.Left = Pic_Title.Left
  792.     CxbbGrid.Top = Pic_Title.Top + Pic_Title.Height + 20
  793.     
  794.     '调 入 网 格(Fixed)
  795.     GridCode = "Khgl_Analyze"
  796.     Call BzWgcsh(CxbbGrid, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
  797.     
  798.     Qslz = GridInf(1)
  799.     Sjhgd = GridInf(2)
  800.     Sfxshjwg = GridInf(7)
  801.     Szzls = CxbbGrid.Cols - 1
  802.     
  803. End Sub
  804. Private Sub Form_Unload(Cancel As Integer)                                  '窗体卸载
  805.     
  806.     '卸载条件窗体
  807.     Khgl_AnalyzeQuery.UnloadCheck.Value = 1
  808.     Unload Khgl_AnalyzeQuery
  809.     
  810.     '卸载打印页面设置窗体
  811.     Unload Dyymctbl
  812.     
  813. End Sub
  814. Private Sub CxbbGrid_BeforeMoveColumn(ByVal Col As Long, Position As Long)           '网格列发生移动时自动交换网格索引信息
  815.     Call FnBln_RefreshArray(Col, Position, GridStr(), GridInf())
  816. End Sub
  817. Private Sub GsToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)       '网格格式调整(Fixed)
  818.     
  819.     Select Case Button.Key
  820.     Case "bcgs"                                          '保存表格格式
  821.         Call Bcwggs(CxbbGrid, GridCode, GridStr())
  822.     Case "hfmrgs"                                        '恢复默认格式
  823.         Call Hfmrgs(CxbbGrid, GridCode, GridStr())
  824.     'Case "szxsxm"                                        '设置显示项目
  825.         'Call Szxsxm(CxbbGrid, GridCode)
  826.     End Select
  827.     
  828. End Sub
  829. Private Sub SzToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
  830.     
  831.     Select Case Button.Key
  832.     Case "ymsz"                                          '页面设置
  833.         Dyymctbl.Show 1
  834.     Case "yl"                                            '预 览
  835.         Call bbyl(True)
  836.     Case "dy"                                            '打 印
  837.         Call bbyl(False)
  838.     Case "cx"                                            '查 询
  839.         Khgl_AnalyzeQuery.Show 1
  840.         
  841.     Case "Tzt"                                           '总体图形
  842.         Call Txfxbb(CxbbGrid, "Khgl_Analyze")
  843.     Case "Txg"                                           '相关图形
  844.         '相关图形分析数据准备
  845.         Call Txg
  846.     
  847.     Case "Tdc"                                           '档次图形
  848.         '档次图形分析数据准备
  849.         Call Tdc
  850.     Case "bz"                                            '帮 助
  851.         Call F1bz
  852.     Case "fh"                                            '退 出
  853.         Unload Me
  854.     End Select
  855.     
  856. End Sub
  857. Private Sub Timer1_Timer()                                 '在窗体激活后调入查询程序
  858.     
  859.     Timer1.Enabled = False
  860.     Xt_Wait.Show
  861.     Xt_Wait.Refresh
  862.     
  863.     '加快显示速度
  864.     CxbbGrid.Redraw = False
  865.     
  866.     '生成查询结果
  867.     Call Sub_Query
  868.     
  869.     CxbbGrid.Redraw = True
  870.     
  871.     Xt_Wait.Hide
  872.     
  873. End Sub
  874. Private Sub Sub_Query()                                     '生成查询结果(Define)
  875.         
  876.     Dim Rec_Query As New ADODB.Recordset        '查询结果动态集
  877.     Dim Coljsq As Long                          '网格列计数器
  878.     Dim Jsqte As Long                           '临时动态计数器
  879.     
  880.     
  881.     Dim RecRY_Query As New ADODB.Recordset      '人员查询结果动态集
  882.     Dim Sqlstr As String                        '查询字符串
  883.     Dim int_row As Integer                      '临时动态计数器,实际网格行
  884.    
  885.     Dim CheckFactor() As New CCheckFactor        '考核指标、考核要素、指标权重、要素权重、考核得分
  886.     Dim dbl_total()   As Double                  '考核类别根结点编码
  887.     
  888.     '以下为自定义部分[
  889.     CxbbGrid.MergeCells = flexMergeFixedOnly             '合并单元形式
  890.     
  891.     With Khgl_AnalyzeQuery
  892.         
  893.         '生成查询条件
  894.         Str_QueryCondi = " "
  895.         
  896.         For Jsqte = 1 To 5
  897.             Select Case Jsqte
  898.             Case 1  '考核类别
  899.                 str_TitleCode = GetComboKey(.Imgcbo_Title, 0)
  900.                 Lab_Title(0).Caption = "考核类别:" + GetComboKey(.Imgcbo_Title, 1)
  901.                 Call ShowFormat
  902.                 Str_QueryCondi = Str_QueryCondi & " And Kh_Object.TitleCode =  '" & str_TitleCode & "'"
  903.             Case 2  '部门
  904.                 If Trim(.LrText(0).Text) <> "" Then
  905.                     Str_QueryCondi = Str_QueryCondi & " And Rs_BasicInfo.DeptCode  like  '" & Trim(.LrText(0).Tag) & "%'"
  906.                 End If
  907.             Case 3  '被考核对象
  908.                 If Trim(.LrText(1).Text) <> "" Then
  909.                     Str_QueryCondi = Str_QueryCondi & " And Kh_Object.EmpID =  " & Val(Trim(.LrText(1).Tag))
  910.                 End If
  911.             End Select
  912.         Next Jsqte
  913.     End With
  914.     '填 充 网 格 标 题
  915.     CxbbGrid.Cols = Sydz("001", GridStr(), Szzls) + 3
  916.     CxbbGrid.TextMatrix(0, Sydz("001", GridStr(), Szzls)) = "ID号"
  917.     CxbbGrid.TextMatrix(0, Sydz("002", GridStr(), Szzls)) = "工号"
  918.     CxbbGrid.TextMatrix(0, Sydz("003", GridStr(), Szzls)) = "姓名"
  919.     
  920.     CxbbGrid.TextMatrix(1, Sydz("001", GridStr(), Szzls)) = "ID号"
  921.     CxbbGrid.TextMatrix(1, Sydz("002", GridStr(), Szzls)) = "工号"
  922.     CxbbGrid.TextMatrix(1, Sydz("003", GridStr(), Szzls)) = "姓名"
  923.     
  924.     
  925.     '取考核类别编码方案
  926.     Sqlstr = "select * from Gy_CodeScheme where ItemCode='" & Trim("Khgl_Title") & "'"
  927.     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  928.     
  929.     '取考核类别编码的根结点编码
  930.     str_titleRoot = Mid(str_TitleCode, 1, Mid(Rec_Query.Fields("CodeScheme"), 1, 1))
  931.     Rec_Query.Close
  932.     ReDim CheckFactor(2)
  933.     '本张单据查询字符串,填充考核要素编码、考核指标、考核要素名称
  934.     Sqlstr = " SELECT FactorCode,FactorName,CheckName " & _
  935.              " FROM Kh_v_ValMark where TitleCode='" & str_titleRoot & "'" & _
  936.              " Order By ValMarkID"
  937.     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  938.     
  939.     With CxbbGrid
  940.         .Cols = .FixedCols + Rec_Query.RecordCount
  941.         ReDim dbl_total(4, .FixedCols + Rec_Query.RecordCount)
  942.         For Jsqte = .FixedCols To .Cols - 1
  943.              ReDim Preserve CheckFactor(UBound(CheckFactor) + 1)
  944.              CheckFactor(Jsqte).FactorCode = Trim("" & Rec_Query!FactorCode)
  945.              CheckFactor(Jsqte).FactorValues = 0
  946.              dbl_total(1, Jsqte) = 999999.9999 '最小值
  947.              dbl_total(2, Jsqte) = 0 '最小值
  948.              dbl_total(3, Jsqte) = 0 '合计值
  949.              dbl_total(4, Jsqte) = 0 '人数
  950.                         
  951.             .TextMatrix(0, Jsqte) = Trim("" & Rec_Query!CheckName)
  952.             .TextMatrix(1, Jsqte) = Trim("" & Rec_Query!FactorName)
  953.             .ColWidth(Jsqte) = 1000
  954.             .ColAlignment(Jsqte) = flexAlignRightCenter
  955.             Rec_Query.MoveNext
  956.         Next Jsqte
  957.     End With
  958.     
  959.     CxbbGrid.Cols = CxbbGrid.Cols + 3
  960.     
  961.     For Jsqte = 0 To 1
  962.         CxbbGrid.TextMatrix(Jsqte, CxbbGrid.Cols - 3) = "有效票数"
  963.         CxbbGrid.TextMatrix(Jsqte, CxbbGrid.Cols - 2) = "合    计"
  964.         CxbbGrid.TextMatrix(Jsqte, CxbbGrid.Cols - 1) = "考核结果"
  965.         CxbbGrid.MergeCol(CxbbGrid.Cols - 3) = True
  966.         CxbbGrid.MergeCol(CxbbGrid.Cols - 2) = True
  967.         CxbbGrid.MergeCol(CxbbGrid.Cols - 1) = True
  968.     Next Jsqte
  969.     
  970.     
  971.     
  972.     For Jsqte = 0 To CxbbGrid.Cols - 1
  973.         CxbbGrid.FixedAlignment(Jsqte) = 4                      '列标题居中
  974.     Next Jsqte
  975.     '查询人员信息
  976.     Sqlstr = " SELECT  Kh_Object.EmpID        , Rs_BasicInfo.EmpNo     ,  Rs_BasicInfo.EmpName    ," & _
  977.              "         Kh_Object.ObjectTotal  , Kh_Object.ObjectBallot ,  Kh_Object.ObjectResult   " & _
  978.              " From Kh_Object left outer join Rs_BasicInfo" & _
  979.              " on   Kh_Object.EmpID         = Rs_BasicInfo.EmpID " & " where 1=1 " & Str_QueryCondi & _
  980.              " order by Kh_Object.EmpID"
  981.              
  982.     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  983.     With Rec_Query
  984.         CxbbGrid.Rows = CxbbGrid.FixedRows + .RecordCount
  985.         For int_row = CxbbGrid.FixedRows To CxbbGrid.Rows - 1
  986.                 CxbbGrid.TextMatrix(int_row, Sydz("001", GridStr(), Szzls)) = Trim("" & !EmpID)       '人员ID号
  987.                 CxbbGrid.TextMatrix(int_row, Sydz("002", GridStr(), Szzls)) = Trim("" & !EmpNo)       '工号
  988.                 CxbbGrid.TextMatrix(int_row, Sydz("003", GridStr(), Szzls)) = Trim("" & !EmpName)     '姓名
  989.                 CxbbGrid.RowHeight(int_row) = Sjhgd
  990.                     
  991.             For Jsqte = CxbbGrid.FixedCols To CxbbGrid.Cols - 1 - 3
  992.                 '读取考核要素分值
  993.                 Sqlstr = " SELECT ObjectTotal From Kh_BaseTotal " & _
  994.                          " Where TitleCode='" & str_TitleCode & "'" & _
  995.                          " and FactorCode='" & CheckFactor(Jsqte).FactorCode & "'" & _
  996.                          " and Empid= " & .Fields("EmpID") & _
  997.                          " and TotalType=1"
  998.                          
  999.                 Set RecRY_Query = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  1000.                 If Not RecRY_Query.EOF Then
  1001.                     '填充考核要素分值
  1002.                     If RecRY_Query.Fields("ObjectTotal") > 0 Then
  1003.                         CxbbGrid.TextMatrix(int_row, Jsqte) = Format(RecRY_Query.Fields("ObjectTotal"), str_format)
  1004.                         If RecRY_Query.Fields("ObjectTotal") < dbl_total(1, Jsqte) Then dbl_total(1, Jsqte) = RecRY_Query.Fields("ObjectTotal")  '最小值
  1005.                         If RecRY_Query.Fields("ObjectTotal") > dbl_total(2, Jsqte) Then dbl_total(2, Jsqte) = RecRY_Query.Fields("ObjectTotal")  '最小值
  1006.                         dbl_total(3, Jsqte) = dbl_total(3, Jsqte) + RecRY_Query.Fields("ObjectTotal")                                            '合计值
  1007.                         dbl_total(4, Jsqte) = dbl_total(4, Jsqte) + 1                                                                            '人数
  1008.                         
  1009.                     End If
  1010.                 End If
  1011.             Next Jsqte
  1012.             If (.Fields("ObjectBallot")) > 0 Then
  1013.                 CxbbGrid.TextMatrix(int_row, CxbbGrid.Cols - 1 - 2) = .Fields("ObjectBallot")                                                    '有效票数
  1014.             End If
  1015.             If (.Fields("ObjectTotal")) > 0 Then
  1016.                 CxbbGrid.TextMatrix(int_row, CxbbGrid.Cols - 1 - 1) = Format(.Fields("ObjectTotal"), str_format)                                 '合计
  1017.             End If
  1018.             If Len(Trim((.Fields("ObjectResult") & ""))) > 0 Then
  1019.                 CxbbGrid.TextMatrix(int_row, CxbbGrid.Cols - 1 - 0) = .Fields("ObjectResult")                                                   '考核结果
  1020.             Else
  1021.                 CxbbGrid.TextMatrix(int_row, CxbbGrid.Cols - 1 - 0) = "未知"                                                   '考核结果
  1022.             End If
  1023.             .MoveNext
  1024.         Next int_row
  1025.     End With
  1026.     
  1027.     With CxbbGrid
  1028.         '最小值
  1029.         If Khgl_AnalyzeQuery.Opt_Check(1).Value = 1 Then
  1030.             int_Check(1) = 1
  1031.             .Rows = .Rows + 1
  1032.             .TextMatrix(.Rows - 1, Sydz("002", GridStr(), Szzls)) = "统  计"
  1033.             .TextMatrix(.Rows - 1, Sydz("003", GridStr(), Szzls)) = "最小值"
  1034.             For Jsqte = .FixedCols To .Cols - 1 - 3
  1035.                 .Cell(flexcpBackColor, .Rows - 1, Jsqte) = &HF7F3EC
  1036.                 If dbl_total(1, Jsqte) > 0 And dbl_total(1, Jsqte) < 999999.99 Then
  1037.                     .TextMatrix(.Rows - 1, Jsqte) = Format(dbl_total(1, Jsqte), str_format)
  1038.                 End If
  1039.             Next Jsqte
  1040.         Else
  1041.             int_Check(1) = 0
  1042.         End If
  1043.         '最大值
  1044.         If Khgl_AnalyzeQuery.Opt_Check(2).Value = 1 Then
  1045.             int_Check(2) = 1
  1046.             .Rows = .Rows + 1
  1047.             .TextMatrix(.Rows - 1, Sydz("002", GridStr(), Szzls)) = "统  计"
  1048.             .TextMatrix(.Rows - 1, Sydz("003", GridStr(), Szzls)) = "最大值"
  1049.             For Jsqte = .FixedCols To .Cols - 1 - 3
  1050.                 .Cell(flexcpBackColor, .Rows - 1, Jsqte) = &HF7F3EC
  1051.                 If dbl_total(2, Jsqte) > 0 Then
  1052.                     .TextMatrix(.Rows - 1, Jsqte) = Format(dbl_total(2, Jsqte), str_format)
  1053.                 End If
  1054.             Next Jsqte
  1055.         Else
  1056.             int_Check(2) = 0
  1057.         End If
  1058.         '平均值
  1059.         If Khgl_AnalyzeQuery.Opt_Check(3).Value = 1 Then
  1060.             int_Check(3) = 1
  1061.             .Rows = .Rows + 1
  1062.             .TextMatrix(.Rows - 1, Sydz("002", GridStr(), Szzls)) = "统  计"
  1063.             .TextMatrix(.Rows - 1, Sydz("003", GridStr(), Szzls)) = "平均值"
  1064.             For Jsqte = .FixedCols To .Cols - 1 - 3
  1065.                 .Cell(flexcpBackColor, .Rows - 1, Jsqte) = &HF7F3EC
  1066.                 If dbl_total(3, Jsqte) > 0 And dbl_total(4, Jsqte) > 0 Then
  1067.                     .TextMatrix(.Rows - 1, Jsqte) = Format(dbl_total(3, Jsqte) / dbl_total(4, Jsqte), str_format)
  1068.                 End If
  1069.             Next Jsqte
  1070.         Else
  1071.             int_Check(3) = 0
  1072.         End If
  1073.         '合计值
  1074.         If Khgl_AnalyzeQuery.Opt_Check(4).Value = 1 Then
  1075.             int_Check(4) = 1
  1076.             .Rows = .Rows + 1
  1077.             .TextMatrix(.Rows - 1, Sydz("002", GridStr(), Szzls)) = "统  计"
  1078.             .TextMatrix(.Rows - 1, Sydz("003", GridStr(), Szzls)) = "合计值"
  1079.             For Jsqte = .FixedCols To .Cols - 1 - 3
  1080.                 .Cell(flexcpBackColor, .Rows - 1, Jsqte) = &HF7F3EC
  1081.                 If dbl_total(3, Jsqte) > 0 Then
  1082.                     .TextMatrix(.Rows - 1, Jsqte) = Format(dbl_total(3, Jsqte), str_format)
  1083.                 End If
  1084.             Next Jsqte
  1085.         Else
  1086.             int_Check(4) = 0
  1087.         End If
  1088.         .ColAlignment(Sydz("002", GridStr(), Szzls)) = flexAlignLeftCenter
  1089.     End With
  1090.     ']以上为用户自定义部分
  1091.     
  1092. End Sub
  1093. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  1094.     
  1095.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  1096.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  1097.     Bbxbtgs = 2                                          '报 表 小 标 题 行 数
  1098.     Bbbwhgs = 0                                          '报 表 表 尾 行 数
  1099.     
  1100.     ReDim Bbxbt(1 To Bbxbtgs)
  1101.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  1102.     If Bbbwhgs <> 0 Then
  1103.         ReDim Bbbwh(1 To Bbbwhgs)
  1104.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  1105.     End If
  1106.     
  1107.     Bbzbt = ReportTitle
  1108.     Bbxbt(1) = ""
  1109.     Bbxbt(2) = Lab_Title(0).Caption
  1110.     bbxbtzzxs(2) = 0
  1111.     
  1112.     bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  1113.     Call Scyxsjb(CxbbGrid)                               '生成报表数据
  1114.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  1115.     If Not bbylte Then
  1116.         Unload DY_Tybbyldy
  1117.     End If
  1118.     
  1119. End Sub
  1120. Private Sub ShowFormat()
  1121.     '设置考核数据显示格式
  1122.     Dim rec_format As New Recordset
  1123.     Dim str_sql As String
  1124.     str_sql = "select TitleDigit from Kh_Title where TitleCode='" & str_TitleCode & "'"
  1125.     Set rec_format = Cw_DataEnvi.DataConnect.Execute(str_sql)
  1126.     If Not rec_format.EOF Then
  1127.         str_format = "########" + "." + String(rec_format.Fields("TitleDigit"), "0")
  1128.     End If
  1129.     rec_format.Close
  1130. End Sub
  1131. Private Sub Tdc()  '档次图形分析数据准备
  1132.     Dim Ssql As String
  1133.     Dim ADORESULT As New Recordset
  1134.     Dim Jsqte As Integer      '临时计数器
  1135.     Dim int_row As Integer    '实际行
  1136.     Dim int_Count As Integer  '人数
  1137.     '判断总记录行是否与固定行数相同
  1138.     If CxbbGrid.Rows = CxbbGrid.FixedRows Then
  1139.         Exit Sub
  1140.     End If
  1141.     
  1142.     Ssql = " SELECT KH_OBJECT.ObjectResult, RCOUNT = COUNT(1) " & _
  1143.             " FROM KH_OBJECT  " & _
  1144.             " INNER JOIN Rs_BasicInfo ON  KH_OBJECT.EmpID = Rs_BasicInfo.EmpID  " & _
  1145.             " where not KH_OBJECT.ObjectTotal is null and  KH_OBJECT.TitleCode='" & Trim(str_TitleCode) & "' " & Str_QueryCondi & _
  1146.             " GROUP BY KH_OBJECT.ObjectResult"
  1147.             
  1148.     Set ADORESULT = Cw_DataEnvi.DataConnect.Execute(Ssql)
  1149.   
  1150.     If ADORESULT.EOF Then Exit Sub
  1151.   
  1152.     ADORESULT.MoveFirst
  1153.     CxbbGrid_dc.Rows = ADORESULT.RecordCount + 1
  1154.     CxbbGrid_dc.Cols = 2
  1155.     CxbbGrid_dc.FixedCols = 0
  1156.     CxbbGrid_dc.FixedRows = 1
  1157.     CxbbGrid_dc.TextMatrix(0, 0) = "等级"
  1158.     CxbbGrid_dc.TextMatrix(0, 1) = "人数"
  1159.     int_row = 1
  1160.     int_Count = 0
  1161.     Do
  1162.         CxbbGrid_dc.TextMatrix(int_row, 0) = Trim("" & ADORESULT!ObjectResult)
  1163.         CxbbGrid_dc.TextMatrix(int_row, 1) = Trim("" & ADORESULT!RCOUNT)
  1164.         int_row = int_row + 1
  1165.         int_Count = int_Count + Val(ADORESULT!RCOUNT)
  1166.         ADORESULT.MoveNext
  1167.     Loop Until ADORESULT.EOF
  1168.     
  1169.     If CxbbGrid_dc.TextMatrix(1, 0) = "" Then
  1170.         CxbbGrid_dc.TextMatrix(1, 0) = "其它"
  1171.         CxbbGrid_dc.TextMatrix(1, 1) = CxbbGrid.Rows - CxbbGrid.FixedRows - int_Count
  1172.     End If
  1173.   
  1174.     Call Txfxbb(CxbbGrid_dc, "Khgl_Analyze_dc")
  1175. End Sub
  1176. Private Sub Txg()       '相关图形分析数据准备
  1177.     Dim Ssql As String
  1178.     Dim ADORESULT As New Recordset
  1179.     Dim Jsqte As Integer            '临时计数器
  1180.     Dim int_row As Integer          '实际行
  1181.     Dim int_Count As Integer        '人数
  1182.     Dim str_check() As String       '考核指标
  1183.     
  1184.     '判断总记录行是否与固定行数相同
  1185.     If CxbbGrid.Rows = CxbbGrid.FixedRows Then
  1186.         Exit Sub
  1187.     End If
  1188.     
  1189.     
  1190.     CxbbGrid_xg.Rows = 2
  1191.     CxbbGrid_xg.Cols = 1
  1192.     CxbbGrid_xg.FixedRows = 2
  1193.     CxbbGrid_xg.FixedCols = 1
  1194.     
  1195.     
  1196.     '填充列,考核指标
  1197.     Ssql = " select Kh_Target.CheckCode,Kh_Check.CheckName " & _
  1198.          " from Kh_Target,Kh_Check " & _
  1199.          " where Kh_Target.CheckCode=Kh_Check.CheckCode " & _
  1200.          " and  Kh_Check.CheckType=2 " & _
  1201.          " and Kh_Target.TitleCode= '" & str_titleRoot & "'" & _
  1202.          " order by Kh_Target.CheckCode"
  1203.            
  1204.     Set ADORESULT = Cw_DataEnvi.DataConnect.Execute(Ssql)
  1205.     
  1206.     If ADORESULT.EOF Then Exit Sub
  1207.     ADORESULT.MoveFirst
  1208.     CxbbGrid_xg.Cols = ADORESULT.RecordCount + 1
  1209.     
  1210.     ReDim str_check(ADORESULT.RecordCount + 1)
  1211.     Jsqte = 1
  1212.     Do While Not ADORESULT.EOF()
  1213.         CxbbGrid_xg.TextMatrix(0, Jsqte) = Trim("" & ADORESULT!CheckName)
  1214.         str_check(Jsqte) = Trim("" & ADORESULT!CheckCode)
  1215.         Jsqte = Jsqte + 1
  1216.         ADORESULT.MoveNext
  1217.     Loop
  1218.     
  1219.     '设置网格的行数,默认为选中了最值4行,如果选择则行数-1
  1220.     CxbbGrid_xg.Rows = CxbbGrid.Rows - 1 'CxbbGrid_xg固定行数为1,CxbbGrid固定行数为2
  1221.      
  1222.     If int_Check(1) = 1 Then
  1223.         CxbbGrid_xg.Rows = CxbbGrid_xg.Rows - 1
  1224.     End If
  1225.     If int_Check(2) = 1 Then
  1226.         CxbbGrid_xg.Rows = CxbbGrid_xg.Rows - 1
  1227.     End If
  1228.     If int_Check(3) = 1 Then
  1229.         CxbbGrid_xg.Rows = CxbbGrid_xg.Rows - 1
  1230.     End If
  1231.     If int_Check(4) = 1 Then
  1232.         CxbbGrid_xg.Rows = CxbbGrid_xg.Rows - 1
  1233.     End If
  1234.     '填充行,被考核对象、考核指标分值
  1235.     For int_row = 1 To CxbbGrid_xg.Rows - 1
  1236.         '填充被考核对象
  1237.         CxbbGrid_xg.TextMatrix(int_row, 0) = CxbbGrid.TextMatrix(int_row + 1, 2)
  1238.         
  1239.         For Jsqte = 1 To CxbbGrid_xg.Cols - 1
  1240.             'Kh_BaseTotal表中(TotalType = 1)的记录值=同类测评者考核平均分*测评者权重
  1241.             '读取考核指标分值=(同类测评者考核平均分*测评者权重)*考核要素权重
  1242.             Ssql = " SELECT CheckValues=sum(Kh_BaseTotal.ObjectTotal*Kh_BaseTotal.FactorWeigh) " & _
  1243.                    " From Kh_BaseTotal,Kh_Factor " & Chr(10) & _
  1244.                    " Where Kh_BaseTotal.FactorCode = Kh_Factor.FactorCode" & Chr(10) & _
  1245.                    "   and Kh_BaseTotal.TitleCode  = '" & str_TitleCode & "'" & Chr(10) & _
  1246.                    "   and Kh_BaseTotal.Empid      = " & Val(CxbbGrid.TextMatrix(int_row + 1, Sydz("001", GridStr(), Szzls))) & Chr(10) & _
  1247.                    "   and Kh_BaseTotal.TotalType  = 1" & Chr(10) & _
  1248.                    "   and Kh_Factor.CheckCode     = '" & str_check(Jsqte) & "'" & Chr(10) & _
  1249.                    " group by Kh_BaseTotal.TitleCode,Kh_BaseTotal.empid,Kh_Factor.CheckCode" & Chr(10) & _
  1250.                    " order by Kh_BaseTotal.TitleCode,Kh_BaseTotal.empid,Kh_Factor.CheckCode"
  1251.             '填充考核指标分值
  1252.             Set ADORESULT = Cw_DataEnvi.DataConnect.Execute(Ssql)
  1253.             If Not ADORESULT.EOF Then
  1254.                 CxbbGrid_xg.TextMatrix(int_row, Jsqte) = ADORESULT.Fields("CheckValues")
  1255.             Else
  1256.                 CxbbGrid_xg.TextMatrix(int_row, Jsqte) = 0
  1257.             End If
  1258.         Next Jsqte
  1259.     Next int_row
  1260.       
  1261.   
  1262.     Call Txfxbb(CxbbGrid_xg, "Khgl_Analyze_xg")
  1263.     'Khgl_Analyze_Choice.str_TitleCode = str_TitleCode
  1264.     'Khgl_Analyze_Choice.str_titleRoot = str_titleRoot
  1265.     'Khgl_Analyze_Choice.Show 1
  1266. End Sub