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

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{BEEECC20-4D5F-4F8B-BFDC-5D9B6FBDE09D}#1.0#0"; "vsflex8.ocx"
  3. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  4. Begin VB.Form Tjfx_Sfchz 
  5.    BackColor       =   &H80000000&
  6.    Caption         =   "收发存汇总表"
  7.    ClientHeight    =   6825
  8.    ClientLeft      =   60
  9.    ClientTop       =   345
  10.    ClientWidth     =   11580
  11.    HelpContextID   =   130603
  12.    Icon            =   "统计分析_收发存汇总表.frx":0000
  13.    KeyPreview      =   -1  'True
  14.    LinkTopic       =   "Form2"
  15.    MDIChild        =   -1  'True
  16.    ScaleHeight     =   6825
  17.    ScaleWidth      =   11580
  18.    WindowState     =   2  'Maximized
  19.    Begin VB.Timer Timer1 
  20.       Enabled         =   0   'False
  21.       Interval        =   1
  22.       Left            =   7620
  23.       Top             =   90
  24.    End
  25.    Begin VB.PictureBox Pic_Title 
  26.       BackColor       =   &H00FFFFFF&
  27.       Height          =   795
  28.       Left            =   0
  29.       Picture         =   "统计分析_收发存汇总表.frx":1042
  30.       ScaleHeight     =   735
  31.       ScaleWidth      =   11715
  32.       TabIndex        =   0
  33.       Top             =   570
  34.       Width           =   11775
  35.       Begin VB.Label Lab_Title 
  36.          AutoSize        =   -1  'True
  37.          BackColor       =   &H80000018&
  38.          BackStyle       =   0  'Transparent
  39.          Caption         =   "收发存汇总表"
  40.          BeginProperty Font 
  41.             Name            =   "宋体"
  42.             Size            =   12
  43.             Charset         =   134
  44.             Weight          =   700
  45.             Underline       =   0   'False
  46.             Italic          =   0   'False
  47.             Strikethrough   =   0   'False
  48.          EndProperty
  49.          ForeColor       =   &H00000000&
  50.          Height          =   240
  51.          Index           =   0
  52.          Left            =   480
  53.          TabIndex        =   1
  54.          Top             =   210
  55.          Width           =   1530
  56.       End
  57.    End
  58.    Begin MSComctlLib.Toolbar GsToolbar 
  59.       Height          =   525
  60.       Left            =   9330
  61.       TabIndex        =   2
  62.       Top             =   30
  63.       Width           =   2475
  64.       _ExtentX        =   4366
  65.       _ExtentY        =   926
  66.       ButtonWidth     =   1455
  67.       ButtonHeight    =   926
  68.       Appearance      =   1
  69.       Style           =   1
  70.       ImageList       =   "ImageList2"
  71.       _Version        =   393216
  72.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  73.          NumButtons      =   3
  74.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  75.             Caption         =   "保存格式"
  76.             Key             =   "bcgs"
  77.             ImageKey        =   "bcgs"
  78.          EndProperty
  79.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  80.             Caption         =   "默认列宽"
  81.             Key             =   "hfmrgs"
  82.             ImageKey        =   "mrlk"
  83.          EndProperty
  84.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  85.             Caption         =   "显示项目"
  86.             Key             =   "szxsxm"
  87.             ImageKey        =   "xsxm"
  88.          EndProperty
  89.       EndProperty
  90.    End
  91.    Begin VSFlex8Ctl.VSFlexGrid CxbbGrid 
  92.       Height          =   7545
  93.       Left            =   60
  94.       TabIndex        =   3
  95.       Top             =   1440
  96.       Width           =   11775
  97.       _cx             =   5080
  98.       _cy             =   5080
  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  =   13826538
  115.       ForeColorFixed  =   -2147483630
  116.       BackColorSel    =   -2147483635
  117.       ForeColorSel    =   -2147483634
  118.       BackColorBkg    =   -2147483636
  119.       BackColorAlternate=   16777215
  120.       GridColor       =   -2147483633
  121.       GridColorFixed  =   -2147483632
  122.       TreeColor       =   255
  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.       AutoSearchDelay =   2
  153.       MultiTotals     =   -1  'True
  154.       SubtotalPosition=   1
  155.       OutlineBar      =   0
  156.       OutlineCol      =   0
  157.       Ellipsis        =   0
  158.       ExplorerBar     =   0
  159.       PicturesOver    =   0   'False
  160.       FillStyle       =   0
  161.       RightToLeft     =   0   'False
  162.       PictureType     =   0
  163.       TabBehavior     =   0
  164.       OwnerDraw       =   0
  165.       Editable        =   0
  166.       ShowComboButton =   1
  167.       WordWrap        =   0   'False
  168.       TextStyle       =   0
  169.       TextStyleFixed  =   0
  170.       OleDragMode     =   0
  171.       OleDropMode     =   0
  172.       DataMode        =   0
  173.       VirtualData     =   -1  'True
  174.       DataMember      =   ""
  175.       ComboSearch     =   3
  176.       AutoSizeMouse   =   -1  'True
  177.       FrozenRows      =   0
  178.       FrozenCols      =   0
  179.       AllowUserFreezing=   0
  180.       BackColorFrozen =   0
  181.       ForeColorFrozen =   0
  182.       WallPaperAlignment=   9
  183.       AccessibleName  =   ""
  184.       AccessibleDescription=   ""
  185.       AccessibleValue =   ""
  186.       AccessibleRole  =   24
  187.       Begin MSComctlLib.ImageList ImageList2 
  188.          Left            =   0
  189.          Top             =   0
  190.          _ExtentX        =   1005
  191.          _ExtentY        =   1005
  192.          BackColor       =   -2147483643
  193.          ImageWidth      =   16
  194.          ImageHeight     =   16
  195.          MaskColor       =   12632256
  196.          _Version        =   393216
  197.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  198.             NumListImages   =   40
  199.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  200.                Picture         =   "统计分析_收发存汇总表.frx":35106
  201.                Key             =   "sz"
  202.             EndProperty
  203.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  204.                Picture         =   "统计分析_收发存汇总表.frx":354A0
  205.                Key             =   "dy"
  206.             EndProperty
  207.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  208.                Picture         =   "统计分析_收发存汇总表.frx":3583A
  209.                Key             =   "yl"
  210.             EndProperty
  211.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  212.                Picture         =   "统计分析_收发存汇总表.frx":35BD4
  213.                Key             =   "xg"
  214.             EndProperty
  215.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  216.                Picture         =   "统计分析_收发存汇总表.frx":35F6E
  217.                Key             =   "zh"
  218.             EndProperty
  219.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  220.                Picture         =   "统计分析_收发存汇总表.frx":36308
  221.                Key             =   "sh"
  222.             EndProperty
  223.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  224.                Picture         =   "统计分析_收发存汇总表.frx":366A2
  225.                Key             =   "bc"
  226.             EndProperty
  227.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  228.                Picture         =   "统计分析_收发存汇总表.frx":36A3C
  229.                Key             =   "fq"
  230.             EndProperty
  231.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  232.                Picture         =   "统计分析_收发存汇总表.frx":36DD6
  233.                Key             =   "bz"
  234.             EndProperty
  235.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  236.                Picture         =   "统计分析_收发存汇总表.frx":37170
  237.                Key             =   "tc"
  238.             EndProperty
  239.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  240.                Picture         =   "统计分析_收发存汇总表.frx":3750A
  241.                Key             =   "bcgs"
  242.             EndProperty
  243.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  244.                Picture         =   "统计分析_收发存汇总表.frx":378A4
  245.                Key             =   "mrlk"
  246.             EndProperty
  247.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  248.                Picture         =   "统计分析_收发存汇总表.frx":37C3E
  249.                Key             =   "xsxm"
  250.             EndProperty
  251.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  252.                Picture         =   "统计分析_收发存汇总表.frx":37FD8
  253.                Key             =   "first"
  254.             EndProperty
  255.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  256.                Picture         =   "统计分析_收发存汇总表.frx":38372
  257.                Key             =   "prev"
  258.             EndProperty
  259.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  260.                Picture         =   "统计分析_收发存汇总表.frx":3870C
  261.                Key             =   "next"
  262.             EndProperty
  263.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  264.                Picture         =   "统计分析_收发存汇总表.frx":38AA6
  265.                Key             =   "last"
  266.             EndProperty
  267.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  268.                Picture         =   "统计分析_收发存汇总表.frx":38E40
  269.                Key             =   "xx"
  270.             EndProperty
  271.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  272.                Picture         =   "统计分析_收发存汇总表.frx":391DA
  273.                Key             =   "define"
  274.             EndProperty
  275.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  276.                Picture         =   "统计分析_收发存汇总表.frx":39574
  277.                Key             =   "exec"
  278.             EndProperty
  279.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  280.                Picture         =   "统计分析_收发存汇总表.frx":3990E
  281.                Key             =   "xz"
  282.             EndProperty
  283.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  284.                Picture         =   "统计分析_收发存汇总表.frx":39CA8
  285.                Key             =   "sc"
  286.             EndProperty
  287.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  288.                Picture         =   "统计分析_收发存汇总表.frx":3A042
  289.                Key             =   "sx"
  290.             EndProperty
  291.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  292.                Picture         =   "统计分析_收发存汇总表.frx":3A3DC
  293.                Key             =   "cx"
  294.             EndProperty
  295.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  296.                Picture         =   "统计分析_收发存汇总表.frx":3A776
  297.                Key             =   "zd"
  298.             EndProperty
  299.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  300.                Picture         =   "统计分析_收发存汇总表.frx":3AB10
  301.                Key             =   "dz"
  302.             EndProperty
  303.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  304.                Picture         =   "统计分析_收发存汇总表.frx":3AEAA
  305.                Key             =   "ph"
  306.             EndProperty
  307.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  308.                Picture         =   "统计分析_收发存汇总表.frx":3B244
  309.                Key             =   "fz"
  310.             EndProperty
  311.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  312.                Picture         =   "统计分析_收发存汇总表.frx":3B5DE
  313.                Key             =   "dw"
  314.             EndProperty
  315.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  316.                Picture         =   "统计分析_收发存汇总表.frx":3B978
  317.                Key             =   "hf"
  318.             EndProperty
  319.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  320.                Picture         =   "统计分析_收发存汇总表.frx":3BD12
  321.                Key             =   "pz"
  322.             EndProperty
  323.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  324.                Picture         =   "统计分析_收发存汇总表.frx":3C0AC
  325.                Key             =   "check"
  326.             EndProperty
  327.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  328.                Picture         =   "统计分析_收发存汇总表.frx":3C446
  329.                Key             =   "qs"
  330.             EndProperty
  331.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  332.                Picture         =   "统计分析_收发存汇总表.frx":3C7E0
  333.                Key             =   "fullcheck"
  334.             EndProperty
  335.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  336.                Picture         =   "统计分析_收发存汇总表.frx":3CB7A
  337.                Key             =   "qq"
  338.             EndProperty
  339.             BeginProperty ListImage36 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  340.                Picture         =   "统计分析_收发存汇总表.frx":3CF14
  341.                Key             =   "bcw"
  342.             EndProperty
  343.             BeginProperty ListImage37 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  344.                Picture         =   "统计分析_收发存汇总表.frx":3D2AE
  345.                Key             =   "ye"
  346.             EndProperty
  347.             BeginProperty ListImage38 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  348.                Picture         =   "统计分析_收发存汇总表.frx":3D648
  349.                Key             =   ""
  350.             EndProperty
  351.             BeginProperty ListImage39 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  352.                Picture         =   "统计分析_收发存汇总表.frx":3D9E2
  353.                Key             =   "frist"
  354.             EndProperty
  355.             BeginProperty ListImage40 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  356.                Picture         =   "统计分析_收发存汇总表.frx":3DD7C
  357.                Key             =   "dj"
  358.             EndProperty
  359.          EndProperty
  360.       End
  361.    End
  362.    Begin MSComctlLib.Toolbar SzToolbar 
  363.       Align           =   1  'Align Top
  364.       Height          =   555
  365.       Left            =   0
  366.       TabIndex        =   4
  367.       Top             =   0
  368.       Width           =   11580
  369.       _ExtentX        =   20426
  370.       _ExtentY        =   979
  371.       ButtonWidth     =   820
  372.       ButtonHeight    =   926
  373.       AllowCustomize  =   0   'False
  374.       Appearance      =   1
  375.       Style           =   1
  376.       ImageList       =   "ImageList1"
  377.       _Version        =   393216
  378.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  379.          NumButtons      =   8
  380.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  381.             Caption         =   "设置"
  382.             Key             =   "ymsz"
  383.             ImageKey        =   "sz"
  384.          EndProperty
  385.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  386.             Caption         =   "打印"
  387.             Key             =   "dy"
  388.             ImageKey        =   "dy"
  389.          EndProperty
  390.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  391.             Caption         =   "预览"
  392.             Key             =   "yl"
  393.             ImageKey        =   "yl"
  394.          EndProperty
  395.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  396.             Style           =   3
  397.          EndProperty
  398.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  399.             Caption         =   "查询"
  400.             Key             =   "cx"
  401.             ImageKey        =   "cx"
  402.          EndProperty
  403.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  404.             Style           =   3
  405.          EndProperty
  406.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  407.             Caption         =   "帮助"
  408.             Key             =   "bz"
  409.             ImageKey        =   "bz"
  410.          EndProperty
  411.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  412.             Caption         =   "退出"
  413.             Key             =   "fh"
  414.             ImageKey        =   "tc"
  415.          EndProperty
  416.       EndProperty
  417.       BorderStyle     =   1
  418.       Begin MSComctlLib.ImageList ImageList1 
  419.          Left            =   6000
  420.          Top             =   0
  421.          _ExtentX        =   1005
  422.          _ExtentY        =   1005
  423.          BackColor       =   -2147483643
  424.          ImageWidth      =   16
  425.          ImageHeight     =   16
  426.          MaskColor       =   12632256
  427.          _Version        =   393216
  428.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  429.             NumListImages   =   41
  430.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  431.                Picture         =   "统计分析_收发存汇总表.frx":3E116
  432.                Key             =   "sz"
  433.             EndProperty
  434.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  435.                Picture         =   "统计分析_收发存汇总表.frx":3E4B0
  436.                Key             =   "dy"
  437.             EndProperty
  438.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  439.                Picture         =   "统计分析_收发存汇总表.frx":3E84A
  440.                Key             =   "yl"
  441.             EndProperty
  442.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  443.                Picture         =   "统计分析_收发存汇总表.frx":3EBE4
  444.                Key             =   "xg"
  445.             EndProperty
  446.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  447.                Picture         =   "统计分析_收发存汇总表.frx":3EF7E
  448.                Key             =   "zh"
  449.             EndProperty
  450.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  451.                Picture         =   "统计分析_收发存汇总表.frx":3F318
  452.                Key             =   "sh"
  453.             EndProperty
  454.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  455.                Picture         =   "统计分析_收发存汇总表.frx":3F6B2
  456.                Key             =   "bc"
  457.             EndProperty
  458.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  459.                Picture         =   "统计分析_收发存汇总表.frx":3FA4C
  460.                Key             =   "fq"
  461.             EndProperty
  462.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  463.                Picture         =   "统计分析_收发存汇总表.frx":3FDE6
  464.                Key             =   "bz"
  465.             EndProperty
  466.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  467.                Picture         =   "统计分析_收发存汇总表.frx":40180
  468.                Key             =   "tc"
  469.             EndProperty
  470.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  471.                Picture         =   "统计分析_收发存汇总表.frx":4051A
  472.                Key             =   "bcgs"
  473.             EndProperty
  474.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  475.                Picture         =   "统计分析_收发存汇总表.frx":408B4
  476.                Key             =   "mrlk"
  477.             EndProperty
  478.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  479.                Picture         =   "统计分析_收发存汇总表.frx":40C4E
  480.                Key             =   "xsxm"
  481.             EndProperty
  482.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  483.                Picture         =   "统计分析_收发存汇总表.frx":40FE8
  484.                Key             =   "first"
  485.             EndProperty
  486.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  487.                Picture         =   "统计分析_收发存汇总表.frx":41382
  488.                Key             =   "prev"
  489.             EndProperty
  490.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  491.                Picture         =   "统计分析_收发存汇总表.frx":4171C
  492.                Key             =   "next"
  493.             EndProperty
  494.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  495.                Picture         =   "统计分析_收发存汇总表.frx":41AB6
  496.                Key             =   "last"
  497.             EndProperty
  498.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  499.                Picture         =   "统计分析_收发存汇总表.frx":41E50
  500.                Key             =   "xx"
  501.             EndProperty
  502.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  503.                Picture         =   "统计分析_收发存汇总表.frx":421EA
  504.                Key             =   "define"
  505.             EndProperty
  506.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  507.                Picture         =   "统计分析_收发存汇总表.frx":42584
  508.                Key             =   "exec"
  509.             EndProperty
  510.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  511.                Picture         =   "统计分析_收发存汇总表.frx":4291E
  512.                Key             =   "xz"
  513.             EndProperty
  514.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  515.                Picture         =   "统计分析_收发存汇总表.frx":42CB8
  516.                Key             =   "sc"
  517.             EndProperty
  518.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  519.                Picture         =   "统计分析_收发存汇总表.frx":43052
  520.                Key             =   "sx"
  521.             EndProperty
  522.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  523.                Picture         =   "统计分析_收发存汇总表.frx":433EC
  524.                Key             =   "cx"
  525.             EndProperty
  526.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  527.                Picture         =   "统计分析_收发存汇总表.frx":43786
  528.                Key             =   "zd"
  529.             EndProperty
  530.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  531.                Picture         =   "统计分析_收发存汇总表.frx":43B20
  532.                Key             =   "dz"
  533.             EndProperty
  534.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  535.                Picture         =   "统计分析_收发存汇总表.frx":43EBA
  536.                Key             =   "ph"
  537.             EndProperty
  538.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  539.                Picture         =   "统计分析_收发存汇总表.frx":44254
  540.                Key             =   "fz"
  541.             EndProperty
  542.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  543.                Picture         =   "统计分析_收发存汇总表.frx":445EE
  544.                Key             =   "dw"
  545.             EndProperty
  546.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  547.                Picture         =   "统计分析_收发存汇总表.frx":44988
  548.                Key             =   "hf"
  549.             EndProperty
  550.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  551.                Picture         =   "统计分析_收发存汇总表.frx":44D22
  552.                Key             =   "pz"
  553.             EndProperty
  554.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  555.                Picture         =   "统计分析_收发存汇总表.frx":450BC
  556.                Key             =   "check"
  557.             EndProperty
  558.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  559.                Picture         =   "统计分析_收发存汇总表.frx":45456
  560.                Key             =   "mx"
  561.             EndProperty
  562.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  563.                Picture         =   "统计分析_收发存汇总表.frx":457F0
  564.                Key             =   "jz"
  565.             EndProperty
  566.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  567.                Picture         =   "统计分析_收发存汇总表.frx":45B8A
  568.                Key             =   "hz"
  569.             EndProperty
  570.             BeginProperty ListImage36 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  571.                Picture         =   "统计分析_收发存汇总表.frx":45F24
  572.                Key             =   "dj"
  573.             EndProperty
  574.             BeginProperty ListImage37 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  575.                Picture         =   "统计分析_收发存汇总表.frx":462BE
  576.                Key             =   "cy"
  577.             EndProperty
  578.             BeginProperty ListImage38 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  579.                Picture         =   "统计分析_收发存汇总表.frx":46658
  580.                Key             =   "zhh"
  581.             EndProperty
  582.             BeginProperty ListImage39 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  583.                Picture         =   "统计分析_收发存汇总表.frx":469F2
  584.                Key             =   "a"
  585.             EndProperty
  586.             BeginProperty ListImage40 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  587.                Picture         =   "统计分析_收发存汇总表.frx":46D8C
  588.                Key             =   "b"
  589.             EndProperty
  590.             BeginProperty ListImage41 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  591.                Picture         =   "统计分析_收发存汇总表.frx":47126
  592.                Key             =   "c"
  593.             EndProperty
  594.          EndProperty
  595.       End
  596.    End
  597. End
  598. Attribute VB_Name = "Tjfx_Sfchz"
  599. Attribute VB_GlobalNameSpace = False
  600. Attribute VB_Creatable = False
  601. Attribute VB_PredeclaredId = True
  602. Attribute VB_Exposed = False
  603. '**************************************************************************
  604. '*    模 块 名 称 :收发存汇总表
  605. '*    功 能 描 述 :
  606. '*    程序员姓名  :白凤英
  607. '*    最后修改人  :白凤英
  608. '*    最后修改时间:2001/12/21
  609. '*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
  610. '**************************************************************************
  611. Dim ReportTitle As String                '报表主标题
  612. Dim Str_QueryCondi As String             '用户录入查询条件
  613. Dim Rec_BillID As New ADODB.Recordset    '用户查询单据ID动态集
  614. Dim FlCond As String                     '分类条件
  615. Dim SumColJsq As Integer                 '合计列数
  616. '以下为固定使用变量
  617. Dim Dyymctbl As New DY_Dyymsz            '打印页面窗体变量
  618. Dim GridCode As String                   '显示网格网格代码
  619. Dim GridInf() As Variant                 '整个网格设置信息
  620. Dim Tsxx As String                       '系统提示信息
  621. Dim Qslz As Long                         '网格隐藏(非操作显示)列数
  622. Dim Sjhgd As Double                      '网格数据行高度
  623. Dim Sfxshjwg As Boolean                  '是否显示合计网格
  624. Dim GridBoolean() As Boolean             '网格列信息(布尔型)
  625. Dim GridStr()  As String                 '网格列信息(字符型)
  626. Dim GridInt() As Integer                 '网格列信息(整型)
  627. Dim Szzls As Integer                     '数组总列数(网格列数-1)
  628. Private Sub Form_Resize()                '根据窗体大小来调整网格,标题栏大小(Fixed)
  629.     On Error Resume Next
  630.     With CxbbGrid
  631.         .Width = Me.Width - 160
  632.         .Height = Me.Height - .Top - 400
  633.     End With
  634.     With Pic_Title
  635.         .Width = Me.Width - 160
  636.     End With
  637.     
  638.     GsToolbar.Left = Me.Width - GsToolbar.Width - 140
  639. End Sub
  640. Private Sub Form_Load()                                                   '窗体装入
  641.   
  642.     '调入打印页面设置窗体
  643.     ReportTitle = "收发存汇总表"
  644.     XtReportCode = "Chhs_Sfchz"
  645.     Load Dyymctbl
  646.       
  647.     '调整标题栏及网格、格式工具条位置(Fixed)
  648.     Pic_Title.Left = 40
  649.     Pic_Title.Top = SzToolbar.Top + SzToolbar.Height - 10
  650.     CxbbGrid.Left = Pic_Title.Left
  651.     CxbbGrid.Top = Pic_Title.Top + Pic_Title.Height + 20
  652.      
  653.     '调 入 网 格(Fixed)
  654.     GridCode = "Chhs_Sfchz"
  655.     Call BzWgcsh(CxbbGrid, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
  656.       
  657.     Qslz = GridInf(1)
  658.     Sjhgd = GridInf(2)
  659.     Sfxshjwg = GridInf(7)
  660.     Szzls = CxbbGrid.Cols - 1
  661.     
  662. End Sub
  663. Private Sub Form_Unload(Cancel As Integer)                                  '窗体卸载
  664.     '卸载条件窗体
  665.     Tjfx_SfchzCond.UnloadCheck.Value = 1
  666.     Unload Tjfx_SfchzCond
  667.     
  668.     '卸载打印页面设置窗体
  669.     Unload Dyymctbl
  670. End Sub
  671. Private Sub CxbbGrid_BeforeMoveColumn(ByVal Col As Long, Position As Long)           '网格列发生移动时自动交换网格索引信息
  672.     Call FnBln_RefreshArray(Col, Position, GridStr(), GridInf())
  673. End Sub
  674. Private Sub GsToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)                '网格格式调整(Fixed)
  675.   
  676.     Select Case Button.Key
  677.         Case "bcgs"                                          '保存表格格式
  678.             Call Bcwggs(CxbbGrid, GridCode, GridStr())
  679.         Case "hfmrgs"                                        '恢复默认格式
  680.             Call Hfmrgs(CxbbGrid, GridCode, GridStr())
  681.         Case "szxsxm"                                        '设置显示项目
  682.             Call Szxsxm(CxbbGrid, GridCode)
  683.     End Select
  684. End Sub
  685. Private Sub SzToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
  686.     
  687.     Select Case Button.Key
  688.         Case "ymsz"                                          '页面设置
  689.             Dyymctbl.Show 1
  690.         Case "yl"                                            '预 览
  691.             Call bbyl(True)
  692.         Case "dy"                                            '打 印
  693.             Call bbyl(False)
  694.         Case "cx"                                            '查 询
  695.             Tjfx_SfchzCond.Show 1
  696.         Case "bz"                                            '帮 助
  697.             Call F1bz
  698.         Case "fh"                                            '退 出
  699.            Unload Me
  700.     End Select
  701. End Sub
  702. Private Sub Timer1_Timer()                                 '在窗体激活后调入查询程序
  703.     
  704.     Timer1.Enabled = False
  705.     Xt_Wait.Show
  706.     Xt_Wait.Refresh
  707.    
  708.     '加快显示速度
  709.     CxbbGrid.Redraw = False
  710.     '生成查询结果
  711.     Call Sub_Query
  712.    
  713.     CxbbGrid.Redraw = True
  714.     
  715.     Xt_Wait.Hide
  716. End Sub
  717. Private Sub Sub_Query()                              '生成查询结果(Define)
  718.     
  719.     '过程参数:Int_QueryType 0-"点确定按钮"查询  1-"刷新"查询
  720.     Dim Rec_Query As Recordset                  '查询结果动态集
  721.     Dim Coljsq As Long                          '网格列计数器
  722.     Dim Jsqte As Integer                        '临时动态计数器
  723.     Dim Str As String
  724.     Dim SqlStr As String
  725.     Dim SortLevel As Integer
  726.     
  727.     
  728.     '以下为自定义部分[
  729.  
  730.     With Tjfx_SfchzCond
  731.      
  732.         '生成查询条件
  733.         Str_QueryCondi = " where " & .WhCode & " and  kjyear= " & Xtyear
  734.         For Jsqte = 0 To 4
  735.             Select Case Jsqte
  736.                 Case 0  '月份
  737.                     Str_QueryCondi = Str_QueryCondi & " And a.period= '" & .Com_Mon.ItemData(.Com_Mon.ListIndex) & "'"
  738.                 Case 1  '存货分类(Like)
  739.                     If Trim(.LrText(0).Text) <> "" Then
  740.                         Str_QueryCondi = Str_QueryCondi & " And a.invsortcode like '" & Trim(.LrText(0).Tag) & "%'"
  741.                     End If
  742.                 Case 2  '查询存货范围(起始)
  743.                     If Trim(.LrText(1).Text) <> "" Then
  744.                         Str_QueryCondi = Str_QueryCondi & " And a.mnumber>='" & Trim(.LrText(1).Text) & "'"
  745.                     End If
  746.                 Case 3  '查询存货范围(终止)
  747.                     If Trim(.LrText(2).Text) <> "" Then
  748.                         Str_QueryCondi = Str_QueryCondi & " And a.mnumber<= '" & Trim(.LrText(2).Text) & "'"
  749.                     End If
  750.                 Case 4  '存货分类级次
  751.                     If Trim(.Com_SortLevel.Text) <> "" Then
  752.                         SortLevel = .Com_SortLevel.Tag
  753.                     End If
  754.             End Select
  755.         Next Jsqte
  756.     End With
  757.     
  758.     CxbbGrid.Rows = CxbbGrid.FixedRows
  759.     SqlStr = "SELECT MNumber, MName, InvSortcode, SUM(StartQuan) AS SumStartQuan, " & _
  760.         "SUM(StartMoney) AS SumStartMoney, SUM(InQuan) AS SumInQuan, SUM(InMoney) " & _
  761.         "AS SumInMoney, SUM(OutQuan) AS SumOutQuan, SUM(OutMoney) AS SumOutMoney, " & _
  762.         "SUM(EndQuan) AS SumEndQuan, SUM(EndMoney) AS SumEndMoney " & _
  763.         "From Chhs_v_Mate a " & Str_QueryCondi & _
  764.         "GROUP BY a.MNumber, a.MName, InvSortcode  ORDER BY a.MNumber"
  765.     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(SqlStr)
  766.     With Rec_Query
  767.         
  768.         Do While Not .EOF
  769.             '[>>自定义填充内容
  770.             CxbbGrid.AddItem ""
  771.             Jsqte = CxbbGrid.Rows - 1
  772.             Call Sub_InvSorCode(Jsqte, Trim(.Fields("invsortcode")))
  773.             CxbbGrid.TextMatrix(Jsqte, Sydz("001", GridStr(), Szzls)) = Trim(.Fields("MNumber") & "")
  774.             CxbbGrid.TextMatrix(Jsqte, Sydz("002", GridStr(), Szzls)) = Trim(.Fields("MName") & "")
  775.             
  776.             If .Fields("SumStartQuan") <> 0 Then
  777.                 CxbbGrid.TextMatrix(Jsqte, Sydz("003", GridStr(), Szzls)) = .Fields("SumStartQuan") + 0
  778.             End If
  779.             If .Fields("SumStartMoney") <> 0 Then
  780.                 CxbbGrid.TextMatrix(Jsqte, Sydz("005", GridStr(), Szzls)) = .Fields("SumStartMoney") + 0
  781.             End If
  782.             If .Fields("SumStartQuan") <> 0 Then
  783.                 CxbbGrid.TextMatrix(Jsqte, Sydz("004", GridStr(), Szzls)) = .Fields("SumStartMoney") / .Fields("SumStartQuan")
  784.             End If
  785.             
  786.             If .Fields("SumInQuan") <> 0 Then
  787.                 CxbbGrid.TextMatrix(Jsqte, Sydz("006", GridStr(), Szzls)) = .Fields("SumInQuan") + 0
  788.             End If
  789.             If .Fields("SumInMoney") <> 0 Then
  790.                 CxbbGrid.TextMatrix(Jsqte, Sydz("008", GridStr(), Szzls)) = .Fields("SumInMoney") + 0
  791.             End If
  792.             If .Fields("SumInQuan") <> 0 Then
  793.                 CxbbGrid.TextMatrix(Jsqte, Sydz("007", GridStr(), Szzls)) = .Fields("SumInMoney") / .Fields("SumInQuan")
  794.             End If
  795.             
  796.             If .Fields("SumOutQuan") <> 0 Then
  797.                 CxbbGrid.TextMatrix(Jsqte, Sydz("009", GridStr(), Szzls)) = .Fields("SumOutQuan") + 0
  798.             End If
  799.             If .Fields("SumOutMoney") <> 0 Then
  800.                 CxbbGrid.TextMatrix(Jsqte, Sydz("011", GridStr(), Szzls)) = .Fields("SumOutMoney") + 0
  801.             End If
  802.             If .Fields("SumOutQuan") <> 0 Then
  803.                 CxbbGrid.TextMatrix(Jsqte, Sydz("010", GridStr(), Szzls)) = .Fields("SumOutMoney") / .Fields("SumOutQuan")
  804.             End If
  805.             
  806.             If .Fields("SumStartQuan") + .Fields("SumInQuan") - .Fields("SumOutQuan") <> 0 Then
  807.                 CxbbGrid.TextMatrix(Jsqte, Sydz("012", GridStr(), Szzls)) = .Fields("SumStartQuan") + .Fields("SumInQuan") - .Fields("SumOutQuan")
  808.             End If
  809.             If .Fields("SumStartMoney") + .Fields("SumInMoney") - .Fields("SumOutMoney") <> 0 Then
  810.                 CxbbGrid.TextMatrix(Jsqte, Sydz("014", GridStr(), Szzls)) = .Fields("SumStartMoney") + .Fields("SumInMoney") - .Fields("SumOutMoney")
  811.             End If
  812.             If Val(CxbbGrid.TextMatrix(Jsqte, Sydz("012", GridStr(), Szzls))) <> 0 Then
  813.                 CxbbGrid.TextMatrix(Jsqte, Sydz("013", GridStr(), Szzls)) = Val(CxbbGrid.TextMatrix(Jsqte, Sydz("014", GridStr(), Szzls))) / Val(CxbbGrid.TextMatrix(Jsqte, Sydz("012", GridStr(), Szzls)))
  814.             End If
  815.            
  816.             '<<]
  817.             '设置数据行高度(Fixed)
  818.             CxbbGrid.RowHeight(Jsqte) = Sjhgd
  819.             
  820.             .MoveNext
  821.         Loop
  822.     End With
  823.     
  824.     '输入合计
  825.     With CxbbGrid
  826.         If .Rows = .FixedRows Then Exit Sub
  827.         If Tjfx_SfchzCond.Che_Sum.Value = 0 Then
  828.     
  829.             .SubtotalPosition = flexSTBelow
  830.             .ColHidden(SumColJsq) = True
  831.             For Jsqte = Qslz To .Cols - 1
  832.                  If GridBoolean(Jsqte, 4) Then
  833.                       .Subtotal flexSTSum, -1, Jsqte, , &HF7F3EC, , , , , True
  834.                       If Val(.TextMatrix(.Rows - 1, Jsqte)) = 0 Then
  835.                           .TextMatrix(.Rows - 1, Jsqte) = ""
  836.                       End If
  837.                  End If
  838.             Next
  839.             Jsqte = .Rows - 1
  840.             .RowHeight(Jsqte) = Sjhgd
  841.             .TextMatrix(Jsqte, Sydz("001", GridStr(), Szzls)) = ""
  842.             .TextMatrix(Jsqte, Sydz("002", GridStr(), Szzls)) = "合计 "
  843.         Else
  844.             
  845.             '按存货分类汇总
  846.             .SubtotalPosition = flexSTAbove
  847.             .Subtotal flexSTClear
  848.             
  849.             '排序
  850.             .Select .FixedRows, 0, .FixedRows, SumColJsq
  851.             For Jsqte = 0 To SumColJsq
  852.               .ColSort(Jsqte) = flexSortStringAscending
  853.             Next Jsqte
  854.             .Sort = flexSortUseColSort
  855.             
  856.              .BackColorFixed = &H8000000F
  857.             .FixedCols = SumColJsq + 1
  858.             .OutlineBar = 1
  859.             .OutlineCol = SumColJsq
  860.             .ColHidden(SumColJsq) = False
  861.             .Outline -1
  862.            
  863.            '选择级次
  864.             If SortLevel = 1 Then
  865.                
  866.                 For Coljsq = 0 To SumColJsq
  867.                     For Jsqte = Qslz + 2 To .Cols - 1
  868.                         If GridBoolean(Jsqte, 4) Then
  869.                             .Subtotal flexSTSum, Coljsq, Jsqte, , &HF7F3EC
  870.                         End If
  871.                     Next Jsqte
  872.                 Next Coljsq
  873.                 .TextMatrix(.FixedRows, Qslz + 1) = "总计"
  874.                 .TextMatrix(.FixedRows, Qslz) = ""
  875.                 .RowHeight(.FixedRows) = Sjhgd
  876.             Else
  877.                 Coljsq = SortLevel - 1
  878.                 For Jsqte = Qslz To .Cols - 1
  879.                     If GridBoolean(Jsqte, 4) Then
  880.                         .Subtotal flexSTSum, Coljsq, Jsqte, , &HF7F3EC
  881.                     End If
  882.                 Next Jsqte
  883.             End If
  884.             
  885.             
  886.             '调整合计列
  887.             For Jsqte = .FixedRows To .Rows - 1
  888.                 If .IsSubtotal(Jsqte) And Trim(.TextMatrix(Jsqte, Qslz + 1)) <> "总计" Then
  889.                     .TextMatrix(Jsqte, Qslz) = Trim(Mid(.TextMatrix(Jsqte, SumColJsq + 1), 6, 100))
  890.                     
  891.                     '填写存货分类
  892.                     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute("select * from kf_invsort where invsortcode='" & Trim(.TextMatrix(Jsqte, Qslz)) & "'")
  893.                     If Not Rec_Query.EOF Then
  894.                         .TextMatrix(Jsqte, Qslz + 1) = Trim(Rec_Query.Fields("invsortname") & "")
  895.                     End If
  896.                     '删除相同分类
  897.                     If Trim(.TextMatrix(Jsqte, Qslz)) = Trim(.TextMatrix(Jsqte - 1, Qslz)) Then
  898.                         .RowHidden(Jsqte) = True
  899.                         .RowHeight(Jsqte) = 0
  900.                     Else
  901.                         .RowHeight(Jsqte) = Sjhgd
  902.                     End If
  903.                 End If
  904.                 For Coljsq = Qslz + 2 To .Cols - 1
  905.                     If .IsSubtotal(Jsqte) And Trim(.TextMatrix(.FixedRows - 1, Coljsq)) = "单价" Then
  906.                         If Val(.TextMatrix(Jsqte, Coljsq - 1)) <> 0 Then
  907.                             .TextMatrix(Jsqte, Coljsq) = Val(Format(.TextMatrix(Jsqte, Coljsq + 1), "###." + String(Xtslxsws, "#"))) / Val(Format(.TextMatrix(Jsqte, Coljsq - 1), "###." + String(Xtjexsws, "#")))
  908.                         End If
  909.                     End If
  910.                     If Val(.TextMatrix(Jsqte, Coljsq)) = 0 Then
  911.                        .TextMatrix(Jsqte, Coljsq) = ""
  912.                     End If
  913.                 Next Coljsq
  914.             Next Jsqte
  915.             
  916.         End If
  917.     End With
  918.     
  919.     ']以上为用户自定义部分
  920.     
  921.     Set Rec_Query = Nothing
  922. End Sub
  923. Private Sub Sub_InvSorCode(GridRow As Integer, InvSortCode As String)       '存货格级分类
  924.                              '( 网格当前行          存货分类编码)
  925.     Dim Rectemp As Recordset
  926.     Dim LevelLen() As Long          '各级长度
  927.     Dim CodeScheme As String        '编码方案
  928.     Dim jsq As Long
  929.     
  930.     SumColJsq = 0
  931.     Set Rectemp = Cw_DataEnvi.DataConnect.Execute("SELECT Max(CodeLevel) as MaxLevel FROM Kf_InvSort ")
  932.     If Not Rectemp.EOF Then
  933.         SumColJsq = Rectemp.Fields("MaxLevel")
  934.     End If
  935.     Set Rectemp = Cw_DataEnvi.DataConnect.Execute("SELECT * FROM Gy_CodeScheme WHERE ItemCode = 'KF_KfwlflSet'")
  936.     If Not Rectemp.EOF Then
  937.         ReDim LevelLen(Rectemp.Fields("maxlevel"))
  938.         CodeScheme = Trim(Rectemp.Fields("CodeScheme"))
  939.         LevelLen(0) = 0
  940.         
  941.         With CxbbGrid
  942.             For jsq = 1 To SumColJsq
  943.                 LevelLen(jsq) = LevelLen(jsq - 1) + Val(Mid(CodeScheme, 1, 1))
  944.                 .TextMatrix(GridRow, jsq) = Mid(InvSortCode, 1, LevelLen(jsq))
  945.             Next jsq
  946.         End With
  947.     End If
  948. End Sub
  949. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  950.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  951.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  952.     Dim ColHidden() As Boolean
  953.     Bbxbtgs = 1                                          '报 表 小 标 题 行 数
  954.     Bbbwhgs = 0                                          '报 表 表 尾 行 数
  955.     ReDim Bbxbt(1 To Bbxbtgs)
  956.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  957.     If Bbbwhgs <> 0 Then
  958.         ReDim Bbbwh(1 To Bbbwhgs)
  959.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  960.     End If
  961.     Bbzbt = Lab_Title(0)
  962.     Bbxbt(1) = ""
  963.     bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  964.     
  965.     ReDim ColHidden(Qslz)
  966.     For Jsqte = 0 To Qslz - 1
  967.         ColHidden(Jsqte) = CxbbGrid.ColHidden(Jsqte)
  968.         CxbbGrid.ColHidden(Jsqte) = True
  969.     Next Jsqte
  970.     
  971.     Call Scyxsjb(CxbbGrid)                               '生成报表数据
  972.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  973.     If Not bbylte Then
  974.         Unload DY_Tybbyldy
  975.     End If
  976.     
  977.     For Jsqte = 0 To Qslz - 1
  978.         CxbbGrid.ColHidden(Jsqte) = ColHidden(Jsqte)
  979.     Next Jsqte
  980. End Sub