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