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

企业管理

开发平台:

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_InOutClassSum 
  5.    BackColor       =   &H80000000&
  6.    Caption         =   "收发类别汇总表"
  7.    ClientHeight    =   6945
  8.    ClientLeft      =   60
  9.    ClientTop       =   345
  10.    ClientWidth     =   11610
  11.    HelpContextID   =   130604
  12.    Icon            =   "统计分析_收发类别汇总表.frx":0000
  13.    KeyPreview      =   -1  'True
  14.    LinkTopic       =   "Form2"
  15.    MDIChild        =   -1  'True
  16.    ScaleHeight     =   6945
  17.    ScaleWidth      =   11610
  18.    WindowState     =   2  'Maximized
  19.    Begin VB.PictureBox Pic_Title 
  20.       BackColor       =   &H00FFFFFF&
  21.       Height          =   795
  22.       Left            =   0
  23.       Picture         =   "统计分析_收发类别汇总表.frx":1042
  24.       ScaleHeight     =   735
  25.       ScaleWidth      =   11715
  26.       TabIndex        =   0
  27.       Top             =   570
  28.       Width           =   11775
  29.       Begin VB.Label Lab_Title 
  30.          AutoSize        =   -1  'True
  31.          BackColor       =   &H80000018&
  32.          BackStyle       =   0  'Transparent
  33.          Caption         =   "收发类别汇总表"
  34.          BeginProperty Font 
  35.             Name            =   "宋体"
  36.             Size            =   12
  37.             Charset         =   134
  38.             Weight          =   700
  39.             Underline       =   0   'False
  40.             Italic          =   0   'False
  41.             Strikethrough   =   0   'False
  42.          EndProperty
  43.          ForeColor       =   &H00000000&
  44.          Height          =   240
  45.          Index           =   0
  46.          Left            =   480
  47.          TabIndex        =   1
  48.          Top             =   210
  49.          Width           =   1785
  50.       End
  51.    End
  52.    Begin VB.Timer Timer1 
  53.       Enabled         =   0   'False
  54.       Interval        =   1
  55.       Left            =   7620
  56.       Top             =   90
  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           =   11610
  369.       _ExtentX        =   20479
  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_InOutClassSum"
  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/24
  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. '以下为固定使用变量
  616. Dim Dyymctbl As New DY_Dyymsz            '打印页面窗体变量
  617. Dim GridCode As String                   '显示网格网格代码
  618. Dim GridInf() As Variant                 '整个网格设置信息
  619. Dim Tsxx As String                       '系统提示信息
  620. Dim Qslz As Long                         '网格隐藏(非操作显示)列数
  621. Dim Sjhgd As Double                      '网格数据行高度
  622. Dim Sfxshjwg As Boolean                  '是否显示合计网格
  623. Dim GridBoolean() As Boolean             '网格列信息(布尔型)
  624. Dim GridStr()  As String                 '网格列信息(字符型)
  625. Dim GridInt() As Integer                 '网格列信息(整型)
  626. Dim Szzls As Integer                     '数组总列数(网格列数-1)
  627. Private Sub Form_Resize()                '根据窗体大小来调整网格,标题栏大小(Fixed)
  628.     On Error Resume Next
  629.     With CxbbGrid
  630.         .Width = Me.Width - 160
  631.         .Height = Me.Height - .Top - 400
  632.     End With
  633.     With Pic_Title
  634.         .Width = Me.Width - 160
  635.     End With
  636.     
  637.     GsToolbar.Left = Me.Width - GsToolbar.Width - 140
  638. End Sub
  639. Private Sub Form_Load()                                                   '窗体装入
  640.   
  641.     '调入打印页面设置窗体
  642.     ReportTitle = "收发类别汇总表"
  643.     XtReportCode = "Chhs_InOutClassSum"
  644.     Load Dyymctbl
  645.       
  646.     '调整标题栏及网格、格式工具条位置(Fixed)
  647.     Pic_Title.Left = 40
  648.     Pic_Title.Top = SzToolbar.Top + SzToolbar.Height - 10
  649.     CxbbGrid.Left = Pic_Title.Left
  650.     CxbbGrid.Top = Pic_Title.Top + Pic_Title.Height + 20
  651.      
  652.     '调 入 网 格(Fixed)
  653.     GridCode = "Chhs_InOutClassSum"
  654.     Call BzWgcsh(CxbbGrid, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
  655.       
  656.     Qslz = GridInf(1)
  657.     Sjhgd = GridInf(2)
  658.     Sfxshjwg = GridInf(7)
  659.     Szzls = CxbbGrid.Cols - 1
  660.     
  661. End Sub
  662. Private Sub Form_Unload(Cancel As Integer)                                  '窗体卸载
  663.     '卸载条件窗体
  664.     Tjfx_InOutClassSumCond.UnloadCheck.Value = 1
  665.     Unload Tjfx_InOutClassSumCond
  666.     
  667.     '卸载打印页面设置窗体
  668.     Unload Dyymctbl
  669. End Sub
  670. Private Sub CxbbGrid_BeforeMoveColumn(ByVal Col As Long, Position As Long)           '网格列发生移动时自动交换网格索引信息
  671.     Call FnBln_RefreshArray(Col, Position, GridStr(), GridInf())
  672. End Sub
  673. Private Sub GsToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)                '网格格式调整(Fixed)
  674.   
  675.     Select Case Button.Key
  676.         Case "bcgs"                                          '保存表格格式
  677.             Call Bcwggs(CxbbGrid, GridCode, GridStr())
  678.         Case "hfmrgs"                                        '恢复默认格式
  679.             Call Hfmrgs(CxbbGrid, GridCode, GridStr())
  680.         Case "szxsxm"                                        '设置显示项目
  681.             Call Szxsxm(CxbbGrid, GridCode)
  682.             With CxbbGrid
  683.                 If GridCode = "Chhs_InOutClassSum" Then
  684.                     For Jsqte = Sydz("005", GridStr(), .Cols - 1) + 1 To .Cols - 3 Step 3
  685.                         .ColHidden(Jsqte) = .ColHidden(Sydz("003", GridStr(), Szzls))
  686.                         .ColHidden(Jsqte + 1) = .ColHidden(Sydz("004", GridStr(), Szzls))
  687.                         .ColHidden(Jsqte + 2) = .ColHidden(Sydz("005", GridStr(), Szzls))
  688.                     Next Jsqte
  689.                 End If
  690.             End With
  691.     End Select
  692. End Sub
  693. Private Sub Sub_GridHead()            '网格表头调整(汇总条件索引)
  694. Dim Rectemp As Recordset
  695. Dim RecTempFz As New ADODB.Recordset
  696. Dim Coljsq As Integer
  697. Dim InOutFlag As Boolean
  698.     '更新双表头
  699.     Set Rectemp = Cw_DataEnvi.DataConnect.Execute("select inoutclassname ,inoutflag from gy_inoutclass order by inoutflag desc, inoutclasscode")
  700.     If Not Rectemp.EOF Then
  701.         
  702.         With CxbbGrid
  703.             Coljsq = Szzls + 1
  704.             .Cols = Coljsq + Rectemp.RecordCount * 3 + 3
  705.             
  706.             Do While Not Rectemp.EOF
  707.                 
  708.                 '无出库分类
  709.                 If Not Rectemp.Fields("inoutflag") And InOutFlag = True Then
  710.                     .TextMatrix(0, Coljsq) = "无出库类别"
  711.                     .TextMatrix(0, Coljsq + 1) = "无出库类别"
  712.                     .TextMatrix(0, Coljsq + 2) = "无出库类别"
  713.                     .TextMatrix(1, Coljsq) = "数量"
  714.                     .TextMatrix(1, Coljsq + 1) = "单价"
  715.                     .TextMatrix(1, Coljsq + 2) = "金额"
  716.                     .ColAlignment(Coljsq) = 6
  717.                     .ColAlignment(Coljsq + 1) = 6
  718.                     .ColAlignment(Coljsq + 2) = 6
  719.                     .FixedAlignment(Coljsq) = flexAlignCenterCenter
  720.                     .FixedAlignment(Coljsq + 1) = flexAlignCenterCenter
  721.                     .FixedAlignment(Coljsq + 2) = flexAlignCenterCenter
  722.                     .ColFormat(Coljsq) = .ColFormat(Sydz("003", GridStr(), .Cols - 1))
  723.                     .ColFormat(Coljsq + 1) = .ColFormat(Sydz("004", GridStr(), .Cols - 1))
  724.                     .ColFormat(Coljsq + 2) = .ColFormat(Sydz("005", GridStr(), .Cols - 1))
  725.                     .ColWidth(Coljsq) = .ColWidth(Sydz("003", GridStr(), .Cols - 1))
  726.                     .ColWidth(Coljsq + 1) = .ColWidth(Sydz("004", GridStr(), .Cols - 1))
  727.                     .ColWidth(Coljsq + 2) = .ColWidth(Sydz("005", GridStr(), .Cols - 1))
  728.                     .ColHidden(Coljsq) = .ColHidden(Sydz("003", GridStr(), .Cols - 1))
  729.                     .ColHidden(Coljsq + 1) = .ColHidden(Sydz("004", GridStr(), .Cols - 1))
  730.                     .ColHidden(Coljsq + 2) = .ColHidden(Sydz("005", GridStr(), .Cols - 1))
  731.                     Coljsq = Coljsq + 3
  732.                 End If
  733.                 
  734.                 For Jsqte = 0 To 2
  735.                     .TextMatrix(0, Coljsq + Jsqte) = Trim(Rectemp.Fields("inoutclassname") & "")
  736.                     .ColAlignment(Coljsq + Jsqte) = 6
  737.                     .FixedAlignment(Coljsq + Jsqte) = flexAlignCenterCenter
  738.                     If Jsqte = 0 Then
  739.                         .TextMatrix(1, Coljsq + Jsqte) = "数量"
  740.                         .ColFormat(Coljsq + Jsqte) = .ColFormat(Sydz("003", GridStr(), .Cols - 1))
  741.                         .ColWidth(Coljsq + Jsqte) = .ColWidth(Sydz("003", GridStr(), .Cols - 1))
  742.                         .ColHidden(Coljsq + Jsqte) = .ColHidden(Sydz("003", GridStr(), .Cols - 1))
  743.                     ElseIf Jsqte = 1 Then
  744.                         .TextMatrix(1, Coljsq + Jsqte) = "单价"
  745.                         .ColFormat(Coljsq + Jsqte) = .ColFormat(Sydz("004", GridStr(), .Cols - 1))
  746.                         .ColWidth(Coljsq + Jsqte) = .ColWidth(Sydz("004", GridStr(), .Cols - 1))
  747.                         .ColHidden(Coljsq + Jsqte) = .ColHidden(Sydz("004", GridStr(), .Cols - 1))
  748.                     Else
  749.                         .TextMatrix(1, Coljsq + Jsqte) = "金额"
  750.                         .ColFormat(Coljsq + Jsqte) = .ColFormat(Sydz("005", GridStr(), .Cols - 1))
  751.                         .ColWidth(Coljsq + Jsqte) = .ColWidth(Sydz("005", GridStr(), .Cols - 1))
  752.                         .ColHidden(Coljsq + Jsqte) = .ColHidden(Sydz("005", GridStr(), .Cols - 1))
  753.                     End If
  754.                 Next Jsqte
  755.                 
  756.                 InOutFlag = Rectemp.Fields("inoutflag")
  757.                 Rectemp.MoveNext
  758.                 Coljsq = Coljsq + 3
  759.             Loop
  760.         End With
  761.     End If
  762.         
  763. End Sub
  764. Private Sub SzToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
  765.     
  766.     Select Case Button.Key
  767.         Case "ymsz"                                          '页面设置
  768.             Dyymctbl.Show 1
  769.         Case "yl"                                            '预 览
  770.             Call bbyl(True)
  771.         Case "dy"                                            '打 印
  772.             Call bbyl(False)
  773.         Case "cx"                                            '查 询
  774.             Tjfx_InOutClassSumCond.Show 1
  775.         Case "sx"                                            '刷 新
  776.         Case "bz"                                            '帮 助
  777.             Call F1bz
  778.         Case "fh"                                            '退 出
  779.            Unload Me
  780.     End Select
  781. End Sub
  782. Private Sub Timer1_Timer()                                 '在窗体激活后调入查询程序
  783.     
  784.     Timer1.Enabled = False
  785.     Xt_Wait.Show
  786.     Xt_Wait.Refresh
  787.    
  788.     '加快显示速度
  789.     CxbbGrid.Redraw = False
  790.     '生成查询结果
  791.     Call Sub_GridHead
  792.     Call Sub_Query
  793.    
  794.     CxbbGrid.Redraw = True
  795.     
  796.     Xt_Wait.Hide
  797. End Sub
  798. Private Sub Sub_Query()                              '生成查询结果(Define)
  799.     
  800.     '过程参数:Int_QueryType 0-"点确定按钮"查询  1-"刷新"查询
  801.     Dim Rec_Query As Recordset                  '查询结果动态集
  802.     Dim Coljsq As Long                          '网格列计数器
  803.     Dim Jsqte As Long                        '临时动态计数器
  804.     Dim Str As String
  805.     Dim SqlStr As String
  806.     Dim Sqlstrfz As String
  807.     
  808.     
  809.     '以下为自定义部分[
  810.     
  811.     With Tjfx_InOutClassSumCond
  812.         '生成查询条件
  813.         Str_QueryCondi = " where " & .WhCode & " and  kjyear= " & Xtyear
  814.         For Jsqte = 0 To 3
  815.             Select Case Jsqte
  816.                 Case 0  '月份
  817.                     Str_QueryCondi = Str_QueryCondi & " And a.period= '" & .Com_Mon.ItemData(.Com_Mon.ListIndex) & "'"
  818.                 Case 1  '存货分类(Like)
  819.                     If Trim(.LrText(0).Text) <> "" Then
  820.                         Str_QueryCondi = Str_QueryCondi & " And a.invsortcode like '" & Trim(.LrText(0).Tag) & "%'"
  821.                     End If
  822.                 Case 2  '查询存货范围(起始)
  823.                     If Trim(.LrText(1).Text) <> "" Then
  824.                         Str_QueryCondi = Str_QueryCondi & " And a.mnumber>='" & Trim(.LrText(1).Text) & "'"
  825.                     End If
  826.                 Case 3  '查询存货范围(终止)
  827.                     If Trim(.LrText(2).Text) <> "" Then
  828.                         Str_QueryCondi = Str_QueryCondi & " And a.mnumber<= '" & Trim(.LrText(2).Text) & "'"
  829.                     End If
  830.             End Select
  831.         Next Jsqte
  832.     End With
  833.     
  834.     CxbbGrid.Rows = CxbbGrid.FixedRows
  835.     
  836.     SqlStr = "SELECT Mnumber, Mname,InOutClassName,Sum(InQuan) as InQuan,Sum(InMoney) as InMoney, " & _
  837.             " Sum(OutQuan) as OutQuan,Sum(OutMoney) as OutMoney,InOutFlag From Chhs_v_List a " & Str_QueryCondi & _
  838.             " and a.startflag=0 " & _
  839.             " Group by a.Mnumber, a.Mname,a.InOutClassName, a.InOutFlag " & _
  840.             " ORDER BY a.Mnumber "
  841.     
  842.     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(SqlStr)
  843.     With Rec_Query
  844.         
  845.         Do While Not .EOF
  846.             '[>>自定义填充内容
  847.             
  848.             Str = Trim(.Fields(0) & "")
  849.             Jsqte = CxbbGrid.FindRow(Str, , 0)
  850.             If Jsqte <= 0 Then
  851.                 CxbbGrid.AddItem ""
  852.                 Jsqte = CxbbGrid.Rows - 1
  853.             End If
  854.             CxbbGrid.TextMatrix(Jsqte, 0) = Str
  855.             CxbbGrid.TextMatrix(Jsqte, Sydz("001", GridStr(), Szzls)) = Trim(.Fields(0) & "")
  856.             CxbbGrid.TextMatrix(Jsqte, Sydz("002", GridStr(), Szzls)) = Trim(.Fields(1) & "")
  857.             Str = Trim(.Fields("InOutClassName") & "")
  858.             If Str = "" And .Fields("InOutFlag") Then
  859.                 Str = "无入库类别"
  860.                 Coljsq = Sydz("003", GridStr(), Szzls)
  861.             Else
  862.                 If Str = "" Then
  863.                     Str = "无出库类别"
  864.                 End If
  865.                 For Coljsq = Sydz("003", GridStr(), Szzls) To CxbbGrid.Cols - 2 Step 3
  866.                     If Trim(CxbbGrid.TextMatrix(0, Coljsq)) = Str Then
  867.                         Exit For
  868.                     End If
  869.                 Next Coljsq
  870.                 If Coljsq >= CxbbGrid.Cols - 1 Then Exit Sub
  871.             End If
  872.             If .Fields("InQuan") <> 0 Then
  873.                 CxbbGrid.TextMatrix(Jsqte, Coljsq) = Val(CxbbGrid.TextMatrix(Jsqte, Coljsq)) + .Fields("InQuan")
  874.             End If
  875.             If .Fields("InMoney") <> 0 Then
  876.                 CxbbGrid.TextMatrix(Jsqte, Coljsq + 2) = Val(CxbbGrid.TextMatrix(Jsqte, Coljsq + 2)) + .Fields("InMoney")
  877.             End If
  878.             If .Fields("OutQuan") <> 0 Then
  879.                 CxbbGrid.TextMatrix(Jsqte, Coljsq) = Val(CxbbGrid.TextMatrix(Jsqte, Coljsq)) + .Fields("OutQuan")
  880.             End If
  881.             If .Fields("OutMoney") <> 0 Then
  882.                 CxbbGrid.TextMatrix(Jsqte, Coljsq + 2) = Val(CxbbGrid.TextMatrix(Jsqte, Coljsq + 2)) + .Fields("OutMoney")
  883.             End If
  884.             If Val(CxbbGrid.TextMatrix(Jsqte, Coljsq)) <> 0 Then
  885.                 CxbbGrid.TextMatrix(Jsqte, Coljsq + 1) = Val(CxbbGrid.TextMatrix(Jsqte, Coljsq + 2)) / Val(CxbbGrid.TextMatrix(Jsqte, Coljsq))
  886.                 If Val(CxbbGrid.TextMatrix(Jsqte, Coljsq + 1)) = 0 Then
  887.                     CxbbGrid.TextMatrix(Jsqte, Coljsq + 1) = ""
  888.                 End If
  889.             End If
  890.            
  891.             '<<]
  892.             '设置数据行高度(Fixed)
  893.             CxbbGrid.RowHeight(Jsqte) = Sjhgd
  894.             
  895.              .MoveNext
  896.         Loop
  897.     End With
  898.     
  899.     '输入合计
  900.     With CxbbGrid
  901.         If .Rows = .FixedRows Then Exit Sub
  902.         '纵向合计
  903.         .SubtotalPosition = flexSTBelow
  904.         For Jsqte = Qslz To .Cols - 1
  905.              If Trim(.TextMatrix(.FixedRows - 1, Jsqte)) = "数量" Or Trim(.TextMatrix(.FixedRows - 1, Jsqte)) = "金额" Then
  906.                   .Subtotal flexSTSum, -1, Jsqte, , &HF7F3EC, , , , , True
  907.                   If Val(.TextMatrix(.Rows - 1, Jsqte)) = 0 Then
  908.                       .TextMatrix(.Rows - 1, Jsqte) = ""
  909.                   End If
  910.              End If
  911.         Next
  912.         Jsqte = .Rows - 1
  913.         .RowHeight(Jsqte) = Sjhgd
  914.         .TextMatrix(Jsqte, Sydz("001", GridStr(), Szzls)) = ""
  915.         .TextMatrix(Jsqte, Sydz("002", GridStr(), Szzls)) = "合计 "
  916.     End With
  917.     
  918.     ']以上为用户自定义部分
  919.     
  920.     Set Rec_Query = Nothing
  921. End Sub
  922. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  923.     
  924.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  925.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  926.     Bbxbtgs = 1                                          '报 表 小 标 题 行 数
  927.     Bbbwhgs = 0                                          '报 表 表 尾 行 数
  928.     ReDim Bbxbt(1 To Bbxbtgs)
  929.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  930.     If Bbbwhgs <> 0 Then
  931.         ReDim Bbbwh(1 To Bbbwhgs)
  932.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  933.     End If
  934.     Bbzbt = Lab_Title(0)
  935.     Bbxbt(1) = ""
  936.     bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  937.     Call Scyxsjb(CxbbGrid)                               '生成报表数据
  938.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  939.     If Not bbylte Then
  940.         Unload DY_Tybbyldy
  941.     End If
  942. End Sub