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

企业管理

开发平台:

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 KF_FrmCollate 
  5.    Caption         =   "帐簿分析_库存对帐表"
  6.    ClientHeight    =   8595
  7.    ClientLeft      =   315
  8.    ClientTop       =   390
  9.    ClientWidth     =   8880
  10.    HelpContextID   =   5001
  11.    Icon            =   "帐簿分析_库存对帐表结果.frx":0000
  12.    KeyPreview      =   -1  'True
  13.    LinkTopic       =   "Form1"
  14.    MDIChild        =   -1  'True
  15.    ScaleHeight     =   8595
  16.    ScaleWidth      =   8880
  17.    WindowState     =   2  'Maximized
  18.    Begin MSComctlLib.Toolbar GsToolbar 
  19.       Height          =   540
  20.       Left            =   9330
  21.       TabIndex        =   3
  22.       Top             =   30
  23.       Width           =   2475
  24.       _ExtentX        =   4366
  25.       _ExtentY        =   953
  26.       ButtonWidth     =   1455
  27.       ButtonHeight    =   953
  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.       BackColor       =   &H00FFFFFF&
  53.       Height          =   825
  54.       Left            =   0
  55.       Picture         =   "帐簿分析_库存对帐表结果.frx":1042
  56.       ScaleHeight     =   765
  57.       ScaleWidth      =   11715
  58.       TabIndex        =   1
  59.       Top             =   570
  60.       Width           =   11775
  61.       Begin VB.Label Label2 
  62.          AutoSize        =   -1  'True
  63.          BackStyle       =   0  'Transparent
  64.          Caption         =   "会计期间:"
  65.          Height          =   180
  66.          Left            =   6840
  67.          TabIndex        =   6
  68.          Top             =   270
  69.          Width           =   810
  70.       End
  71.       Begin VB.Label Label1 
  72.          AutoSize        =   -1  'True
  73.          BackStyle       =   0  'Transparent
  74.          Caption         =   "仓库:"
  75.          Height          =   180
  76.          Left            =   4080
  77.          TabIndex        =   5
  78.          Top             =   270
  79.          Width           =   450
  80.       End
  81.       Begin VB.Label Lab_Title 
  82.          BackColor       =   &H80000018&
  83.          BackStyle       =   0  'Transparent
  84.          Caption         =   "库存对帐表"
  85.          BeginProperty Font 
  86.             Name            =   "宋体"
  87.             Size            =   12
  88.             Charset         =   134
  89.             Weight          =   700
  90.             Underline       =   0   'False
  91.             Italic          =   0   'False
  92.             Strikethrough   =   0   'False
  93.          EndProperty
  94.          ForeColor       =   &H00000000&
  95.          Height          =   300
  96.          Index           =   4
  97.          Left            =   480
  98.          TabIndex        =   2
  99.          Top             =   210
  100.          Width           =   2715
  101.       End
  102.    End
  103.    Begin VB.Timer Timer1 
  104.       Enabled         =   0   'False
  105.       Interval        =   1
  106.       Left            =   7620
  107.       Top             =   90
  108.    End
  109.    Begin VSFlex8Ctl.VSFlexGrid CxbbGrid 
  110.       Height          =   7995
  111.       Left            =   0
  112.       TabIndex        =   0
  113.       Top             =   1440
  114.       Width           =   11775
  115.       _cx             =   5080
  116.       _cy             =   5080
  117.       Appearance      =   1
  118.       BorderStyle     =   1
  119.       Enabled         =   -1  'True
  120.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  121.          Name            =   "宋体"
  122.          Size            =   9
  123.          Charset         =   134
  124.          Weight          =   400
  125.          Underline       =   0   'False
  126.          Italic          =   0   'False
  127.          Strikethrough   =   0   'False
  128.       EndProperty
  129.       MousePointer    =   0
  130.       BackColor       =   16777215
  131.       ForeColor       =   -2147483640
  132.       BackColorFixed  =   13826538
  133.       ForeColorFixed  =   -2147483630
  134.       BackColorSel    =   -2147483635
  135.       ForeColorSel    =   -2147483634
  136.       BackColorBkg    =   -2147483636
  137.       BackColorAlternate=   16777215
  138.       GridColor       =   -2147483633
  139.       GridColorFixed  =   -2147483632
  140.       TreeColor       =   -2147483632
  141.       FloodColor      =   192
  142.       SheetBorder     =   -2147483642
  143.       FocusRect       =   1
  144.       HighLight       =   1
  145.       AllowSelection  =   -1  'True
  146.       AllowBigSelection=   -1  'True
  147.       AllowUserResizing=   0
  148.       SelectionMode   =   0
  149.       GridLines       =   1
  150.       GridLinesFixed  =   2
  151.       GridLineWidth   =   1
  152.       Rows            =   50
  153.       Cols            =   10
  154.       FixedRows       =   1
  155.       FixedCols       =   1
  156.       RowHeightMin    =   0
  157.       RowHeightMax    =   0
  158.       ColWidthMin     =   0
  159.       ColWidthMax     =   0
  160.       ExtendLastCol   =   0   'False
  161.       FormatString    =   ""
  162.       ScrollTrack     =   0   'False
  163.       ScrollBars      =   3
  164.       ScrollTips      =   0   'False
  165.       MergeCells      =   0
  166.       MergeCompare    =   0
  167.       AutoResize      =   -1  'True
  168.       AutoSizeMode    =   0
  169.       AutoSearch      =   0
  170.       AutoSearchDelay =   2
  171.       MultiTotals     =   -1  'True
  172.       SubtotalPosition=   0
  173.       OutlineBar      =   0
  174.       OutlineCol      =   0
  175.       Ellipsis        =   0
  176.       ExplorerBar     =   0
  177.       PicturesOver    =   0   'False
  178.       FillStyle       =   0
  179.       RightToLeft     =   0   'False
  180.       PictureType     =   0
  181.       TabBehavior     =   0
  182.       OwnerDraw       =   0
  183.       Editable        =   0
  184.       ShowComboButton =   1
  185.       WordWrap        =   0   'False
  186.       TextStyle       =   0
  187.       TextStyleFixed  =   0
  188.       OleDragMode     =   0
  189.       OleDropMode     =   0
  190.       DataMode        =   0
  191.       VirtualData     =   -1  'True
  192.       DataMember      =   ""
  193.       ComboSearch     =   3
  194.       AutoSizeMouse   =   -1  'True
  195.       FrozenRows      =   0
  196.       FrozenCols      =   0
  197.       AllowUserFreezing=   0
  198.       BackColorFrozen =   0
  199.       ForeColorFrozen =   0
  200.       WallPaperAlignment=   9
  201.       AccessibleName  =   ""
  202.       AccessibleDescription=   ""
  203.       AccessibleValue =   ""
  204.       AccessibleRole  =   24
  205.       Begin MSComctlLib.ImageList ImageList2 
  206.          Left            =   0
  207.          Top             =   0
  208.          _ExtentX        =   1005
  209.          _ExtentY        =   1005
  210.          BackColor       =   -2147483643
  211.          ImageWidth      =   16
  212.          ImageHeight     =   16
  213.          MaskColor       =   12632256
  214.          _Version        =   393216
  215.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  216.             NumListImages   =   40
  217.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  218.                Picture         =   "帐簿分析_库存对帐表结果.frx":1FAC4
  219.                Key             =   "sz"
  220.             EndProperty
  221.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  222.                Picture         =   "帐簿分析_库存对帐表结果.frx":1FE5E
  223.                Key             =   "dy"
  224.             EndProperty
  225.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  226.                Picture         =   "帐簿分析_库存对帐表结果.frx":201F8
  227.                Key             =   "yl"
  228.             EndProperty
  229.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  230.                Picture         =   "帐簿分析_库存对帐表结果.frx":20592
  231.                Key             =   "xg"
  232.             EndProperty
  233.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  234.                Picture         =   "帐簿分析_库存对帐表结果.frx":2092C
  235.                Key             =   "zh"
  236.             EndProperty
  237.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  238.                Picture         =   "帐簿分析_库存对帐表结果.frx":20CC6
  239.                Key             =   "sh"
  240.             EndProperty
  241.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  242.                Picture         =   "帐簿分析_库存对帐表结果.frx":21060
  243.                Key             =   "bc"
  244.             EndProperty
  245.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  246.                Picture         =   "帐簿分析_库存对帐表结果.frx":213FA
  247.                Key             =   "fq"
  248.             EndProperty
  249.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  250.                Picture         =   "帐簿分析_库存对帐表结果.frx":21794
  251.                Key             =   "bz"
  252.             EndProperty
  253.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  254.                Picture         =   "帐簿分析_库存对帐表结果.frx":21B2E
  255.                Key             =   "tc"
  256.             EndProperty
  257.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  258.                Picture         =   "帐簿分析_库存对帐表结果.frx":21EC8
  259.                Key             =   "bcgs"
  260.             EndProperty
  261.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  262.                Picture         =   "帐簿分析_库存对帐表结果.frx":22262
  263.                Key             =   "mrlk"
  264.             EndProperty
  265.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  266.                Picture         =   "帐簿分析_库存对帐表结果.frx":225FC
  267.                Key             =   "xsxm"
  268.             EndProperty
  269.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  270.                Picture         =   "帐簿分析_库存对帐表结果.frx":22996
  271.                Key             =   "first"
  272.             EndProperty
  273.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  274.                Picture         =   "帐簿分析_库存对帐表结果.frx":22D30
  275.                Key             =   "prev"
  276.             EndProperty
  277.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  278.                Picture         =   "帐簿分析_库存对帐表结果.frx":230CA
  279.                Key             =   "next"
  280.             EndProperty
  281.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  282.                Picture         =   "帐簿分析_库存对帐表结果.frx":23464
  283.                Key             =   "last"
  284.             EndProperty
  285.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  286.                Picture         =   "帐簿分析_库存对帐表结果.frx":237FE
  287.                Key             =   "xx"
  288.             EndProperty
  289.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  290.                Picture         =   "帐簿分析_库存对帐表结果.frx":23B98
  291.                Key             =   "define"
  292.             EndProperty
  293.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  294.                Picture         =   "帐簿分析_库存对帐表结果.frx":23F32
  295.                Key             =   "exec"
  296.             EndProperty
  297.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  298.                Picture         =   "帐簿分析_库存对帐表结果.frx":242CC
  299.                Key             =   "xz"
  300.             EndProperty
  301.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  302.                Picture         =   "帐簿分析_库存对帐表结果.frx":24666
  303.                Key             =   "sc"
  304.             EndProperty
  305.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  306.                Picture         =   "帐簿分析_库存对帐表结果.frx":24A00
  307.                Key             =   "sx"
  308.             EndProperty
  309.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  310.                Picture         =   "帐簿分析_库存对帐表结果.frx":24D9A
  311.                Key             =   "cx"
  312.             EndProperty
  313.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  314.                Picture         =   "帐簿分析_库存对帐表结果.frx":25134
  315.                Key             =   "zd"
  316.             EndProperty
  317.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  318.                Picture         =   "帐簿分析_库存对帐表结果.frx":254CE
  319.                Key             =   "dz"
  320.             EndProperty
  321.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  322.                Picture         =   "帐簿分析_库存对帐表结果.frx":25868
  323.                Key             =   "ph"
  324.             EndProperty
  325.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  326.                Picture         =   "帐簿分析_库存对帐表结果.frx":25C02
  327.                Key             =   "fz"
  328.             EndProperty
  329.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  330.                Picture         =   "帐簿分析_库存对帐表结果.frx":25F9C
  331.                Key             =   "dw"
  332.             EndProperty
  333.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  334.                Picture         =   "帐簿分析_库存对帐表结果.frx":26336
  335.                Key             =   "hf"
  336.             EndProperty
  337.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  338.                Picture         =   "帐簿分析_库存对帐表结果.frx":266D0
  339.                Key             =   "pz"
  340.             EndProperty
  341.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  342.                Picture         =   "帐簿分析_库存对帐表结果.frx":26A6A
  343.                Key             =   "check"
  344.             EndProperty
  345.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  346.                Picture         =   "帐簿分析_库存对帐表结果.frx":26E04
  347.                Key             =   "qs"
  348.             EndProperty
  349.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  350.                Picture         =   "帐簿分析_库存对帐表结果.frx":2719E
  351.                Key             =   "fullcheck"
  352.             EndProperty
  353.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  354.                Picture         =   "帐簿分析_库存对帐表结果.frx":27538
  355.                Key             =   "qq"
  356.             EndProperty
  357.             BeginProperty ListImage36 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  358.                Picture         =   "帐簿分析_库存对帐表结果.frx":278D2
  359.                Key             =   "bcw"
  360.             EndProperty
  361.             BeginProperty ListImage37 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  362.                Picture         =   "帐簿分析_库存对帐表结果.frx":27C6C
  363.                Key             =   "ye"
  364.             EndProperty
  365.             BeginProperty ListImage38 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  366.                Picture         =   "帐簿分析_库存对帐表结果.frx":28006
  367.                Key             =   ""
  368.             EndProperty
  369.             BeginProperty ListImage39 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  370.                Picture         =   "帐簿分析_库存对帐表结果.frx":283A0
  371.                Key             =   "frist"
  372.             EndProperty
  373.             BeginProperty ListImage40 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  374.                Picture         =   "帐簿分析_库存对帐表结果.frx":2873A
  375.                Key             =   "dj"
  376.             EndProperty
  377.          EndProperty
  378.       End
  379.    End
  380.    Begin MSComctlLib.Toolbar SzToolbar 
  381.       Align           =   1  'Align Top
  382.       Height          =   555
  383.       Left            =   0
  384.       TabIndex        =   4
  385.       Top             =   0
  386.       Width           =   8880
  387.       _ExtentX        =   15663
  388.       _ExtentY        =   979
  389.       ButtonWidth     =   820
  390.       ButtonHeight    =   926
  391.       AllowCustomize  =   0   'False
  392.       Appearance      =   1
  393.       Style           =   1
  394.       ImageList       =   "ImageList1"
  395.       _Version        =   393216
  396.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  397.          NumButtons      =   13
  398.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  399.             Caption         =   "设置"
  400.             Key             =   "ymsz"
  401.             ImageKey        =   "sz"
  402.          EndProperty
  403.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  404.             Caption         =   "打印"
  405.             Key             =   "dy"
  406.             ImageKey        =   "dy"
  407.          EndProperty
  408.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  409.             Caption         =   "预览"
  410.             Key             =   "yl"
  411.             ImageKey        =   "yl"
  412.          EndProperty
  413.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  414.             Style           =   3
  415.          EndProperty
  416.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  417.             Caption         =   "查询"
  418.             Key             =   "cx"
  419.             ImageKey        =   "cx"
  420.          EndProperty
  421.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  422.             Style           =   3
  423.          EndProperty
  424.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  425.             Caption         =   "首张"
  426.             Key             =   "first"
  427.             ImageKey        =   "first"
  428.          EndProperty
  429.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  430.             Caption         =   "上张"
  431.             Key             =   "prev"
  432.             ImageKey        =   "prev"
  433.          EndProperty
  434.          BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  435.             Caption         =   "下张"
  436.             Key             =   "next"
  437.             ImageKey        =   "next"
  438.          EndProperty
  439.          BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  440.             Caption         =   "末张"
  441.             Key             =   "last"
  442.             ImageKey        =   "last"
  443.          EndProperty
  444.          BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  445.             Style           =   3
  446.          EndProperty
  447.          BeginProperty Button12 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  448.             Caption         =   "帮助"
  449.             Key             =   "bz"
  450.             ImageKey        =   "bz"
  451.          EndProperty
  452.          BeginProperty Button13 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  453.             Caption         =   "退出"
  454.             Key             =   "fh"
  455.             ImageKey        =   "tc"
  456.          EndProperty
  457.       EndProperty
  458.       BorderStyle     =   1
  459.       Begin MSComctlLib.ImageList ImageList1 
  460.          Left            =   6990
  461.          Top             =   30
  462.          _ExtentX        =   1005
  463.          _ExtentY        =   1005
  464.          BackColor       =   -2147483643
  465.          ImageWidth      =   16
  466.          ImageHeight     =   16
  467.          MaskColor       =   12632256
  468.          _Version        =   393216
  469.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  470.             NumListImages   =   32
  471.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  472.                Picture         =   "帐簿分析_库存对帐表结果.frx":28AD4
  473.                Key             =   "sz"
  474.             EndProperty
  475.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  476.                Picture         =   "帐簿分析_库存对帐表结果.frx":28E6E
  477.                Key             =   "dy"
  478.             EndProperty
  479.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  480.                Picture         =   "帐簿分析_库存对帐表结果.frx":29208
  481.                Key             =   "yl"
  482.             EndProperty
  483.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  484.                Picture         =   "帐簿分析_库存对帐表结果.frx":295A2
  485.                Key             =   "xg"
  486.             EndProperty
  487.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  488.                Picture         =   "帐簿分析_库存对帐表结果.frx":2993C
  489.                Key             =   "zh"
  490.             EndProperty
  491.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  492.                Picture         =   "帐簿分析_库存对帐表结果.frx":29CD6
  493.                Key             =   "sh"
  494.             EndProperty
  495.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  496.                Picture         =   "帐簿分析_库存对帐表结果.frx":2A070
  497.                Key             =   "bc"
  498.             EndProperty
  499.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  500.                Picture         =   "帐簿分析_库存对帐表结果.frx":2A40A
  501.                Key             =   "fq"
  502.             EndProperty
  503.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  504.                Picture         =   "帐簿分析_库存对帐表结果.frx":2A7A4
  505.                Key             =   "bz"
  506.             EndProperty
  507.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  508.                Picture         =   "帐簿分析_库存对帐表结果.frx":2AB3E
  509.                Key             =   "tc"
  510.             EndProperty
  511.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  512.                Picture         =   "帐簿分析_库存对帐表结果.frx":2AED8
  513.                Key             =   "bcgs"
  514.             EndProperty
  515.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  516.                Picture         =   "帐簿分析_库存对帐表结果.frx":2B272
  517.                Key             =   "mrlk"
  518.             EndProperty
  519.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  520.                Picture         =   "帐簿分析_库存对帐表结果.frx":2B60C
  521.                Key             =   "xsxm"
  522.             EndProperty
  523.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  524.                Picture         =   "帐簿分析_库存对帐表结果.frx":2B9A6
  525.                Key             =   "first"
  526.             EndProperty
  527.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  528.                Picture         =   "帐簿分析_库存对帐表结果.frx":2BD40
  529.                Key             =   "prev"
  530.             EndProperty
  531.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  532.                Picture         =   "帐簿分析_库存对帐表结果.frx":2C0DA
  533.                Key             =   "next"
  534.             EndProperty
  535.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  536.                Picture         =   "帐簿分析_库存对帐表结果.frx":2C474
  537.                Key             =   "last"
  538.             EndProperty
  539.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  540.                Picture         =   "帐簿分析_库存对帐表结果.frx":2C80E
  541.                Key             =   "xx"
  542.             EndProperty
  543.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  544.                Picture         =   "帐簿分析_库存对帐表结果.frx":2CBA8
  545.                Key             =   "define"
  546.             EndProperty
  547.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  548.                Picture         =   "帐簿分析_库存对帐表结果.frx":2CF42
  549.                Key             =   "exec"
  550.             EndProperty
  551.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  552.                Picture         =   "帐簿分析_库存对帐表结果.frx":2D2DC
  553.                Key             =   "xz"
  554.             EndProperty
  555.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  556.                Picture         =   "帐簿分析_库存对帐表结果.frx":2D676
  557.                Key             =   "sc"
  558.             EndProperty
  559.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  560.                Picture         =   "帐簿分析_库存对帐表结果.frx":2DA10
  561.                Key             =   "sx"
  562.             EndProperty
  563.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  564.                Picture         =   "帐簿分析_库存对帐表结果.frx":2DDAA
  565.                Key             =   "cx"
  566.             EndProperty
  567.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  568.                Picture         =   "帐簿分析_库存对帐表结果.frx":2E144
  569.                Key             =   "zd"
  570.             EndProperty
  571.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  572.                Picture         =   "帐簿分析_库存对帐表结果.frx":2E4DE
  573.                Key             =   "dz"
  574.             EndProperty
  575.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  576.                Picture         =   "帐簿分析_库存对帐表结果.frx":2E878
  577.                Key             =   "ph"
  578.             EndProperty
  579.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  580.                Picture         =   "帐簿分析_库存对帐表结果.frx":2EC12
  581.                Key             =   "fz"
  582.             EndProperty
  583.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  584.                Picture         =   "帐簿分析_库存对帐表结果.frx":2EFAC
  585.                Key             =   "dw"
  586.             EndProperty
  587.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  588.                Picture         =   "帐簿分析_库存对帐表结果.frx":2F346
  589.                Key             =   "hf"
  590.             EndProperty
  591.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  592.                Picture         =   "帐簿分析_库存对帐表结果.frx":2F6E0
  593.                Key             =   "pz"
  594.             EndProperty
  595.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  596.                Picture         =   "帐簿分析_库存对帐表结果.frx":2FA7A
  597.                Key             =   "check"
  598.             EndProperty
  599.          EndProperty
  600.       End
  601.    End
  602. End
  603. Attribute VB_Name = "KF_FrmCollate"
  604. Attribute VB_GlobalNameSpace = False
  605. Attribute VB_Creatable = False
  606. Attribute VB_PredeclaredId = True
  607. Attribute VB_Exposed = False
  608. '**************************************************************************
  609. '*    模 块 名 称 :帐簿分析_库存对帐表
  610. '*    功 能 描 述 :
  611. '*    程序员姓名  :张万成
  612. '*    最后修改人  :张万成
  613. '*    最后修改时间:2001/12/06
  614. '*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
  615. '**************************************************************************
  616. Dim ReportTitle As String                '报表主标题
  617. Dim Str_QueryCondi As String             '用户录入查询条件
  618. Dim Rec_BillID As New ADODB.Recordset    '用户查询单据ID动态集
  619. '以下为固定使用变量
  620. Dim Dyymctbl As New DY_Dyymsz            '打印页面窗体变量
  621. Dim GridCode As String                   '显示网格网格代码
  622. Dim GridInf() As Variant                 '整个网格设置信息
  623. Dim Tsxx As String                       '系统提示信息
  624. Dim Qslz As Long                         '网格隐藏(非操作显示)列数
  625. Dim Sjhgd As Double                      '网格数据行高度
  626. Dim Sfxshjwg As Boolean                  '是否显示合计网格
  627. Dim GridBoolean() As Boolean             '网格列信息(布尔型)
  628. Dim GridStr()  As String                 '网格列信息(字符型)
  629. Dim GridInt() As Integer                 '网格列信息(整型)
  630. Dim Szzls As Integer                     '数组总列数(网格列数-1)
  631. Dim adoMate As New ADODB.Recordset
  632. Dim adoQuery As New ADODB.Recordset
  633. Dim Kjyear As Integer
  634. Dim Period As Integer
  635. Private Sub Form_Resize()                '根据窗体大小来调整网格,标题栏大小(Fixed)
  636.     On Error Resume Next
  637.     With CxbbGrid
  638.         .Width = Me.Width - 160
  639.         .Height = Me.Height - .Top - 400
  640.     End With
  641.     With Pic_Title
  642.         .Width = Me.Width - 160
  643.     End With
  644.     
  645.     GsToolbar.Left = Me.Width - GsToolbar.Width - 140
  646. End Sub
  647. Private Sub Form_Load()                                                   '窗体装入
  648.   
  649.     '调入打印页面设置窗体
  650.     ReportTitle = "库存对帐表"
  651.     XtReportCode = "KF_Collate"
  652.     Load Dyymctbl
  653.       
  654.     '调整标题栏及网格、格式工具条位置(Fixed)
  655.     Pic_Title.Left = 40
  656.     Pic_Title.Top = SzToolbar.Top + SzToolbar.Height - 10
  657.     CxbbGrid.Left = Pic_Title.Left
  658.     CxbbGrid.Top = Pic_Title.Top + Pic_Title.Height + 20
  659.      
  660.     '调 入 网 格(Fixed)
  661.     GridCode = "KF_Collate"
  662.     Call BzWgcsh(CxbbGrid, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
  663.       
  664.     Qslz = GridInf(1)
  665.     Sjhgd = GridInf(2)
  666.     Sfxshjwg = GridInf(7)
  667.     Szzls = CxbbGrid.Cols - 1
  668.     
  669.     
  670. End Sub
  671. Private Sub Form_Unload(Cancel As Integer)                                  '窗体卸载
  672.     '卸载条件窗体
  673.     KF_FrmCollateCxtj.UnloadCheck.Value = 1
  674.     Unload KF_FrmCollateCxtj
  675.     '卸载打印页面设置窗体
  676.     Unload Dyymctbl
  677. End Sub
  678. Private Sub CxbbGrid_BeforeMoveColumn(ByVal Col As Long, Position As Long)           '网格列发生移动时自动交换网格索引信息
  679.     Call FnBln_RefreshArray(Col, Position, GridStr(), GridInf())
  680. End Sub
  681. Private Sub GsToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)                '网格格式调整(Fixed)
  682.   
  683.     Select Case Button.Key
  684.         Case "bcgs"                                          '保存表格格式
  685.             Call Bcwggs(CxbbGrid, GridCode, GridStr())
  686.         Case "hfmrgs"                                        '恢复默认格式
  687.             Call Hfmrgs(CxbbGrid, GridCode, GridStr())
  688.         Case "szxsxm"                                        '设置显示项目
  689.             Call Szxsxm(CxbbGrid, GridCode)
  690.     End Select
  691. End Sub
  692. Private Sub SzToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
  693.     
  694.     Select Case Button.Key
  695.         Case "ymsz"                                          '页面设置
  696.             Dyymctbl.Show 1
  697.         Case "yl"                                            '预 览
  698.             Call bbyl(True)
  699.         Case "dy"                                            '打 印
  700.             Call bbyl(False)
  701.         Case "cx"                                            '查 询
  702.             KF_FrmCollateCxtj.Show 1
  703.         Case "first"
  704.             Call First
  705.         Case "last"
  706.             Call Last
  707.         Case "prev"
  708.             Call Prev
  709.         Case "next"
  710.             Call Sub_next
  711.         Case "bz"                                            '帮 助
  712.             Call F1bz
  713.         Case "fh"                                            '退 出
  714.            Unload Me
  715.     End Select
  716. End Sub
  717. Private Sub Timer1_Timer()                                 '在窗体激活后调入查询程序
  718.     
  719.     Timer1.Enabled = False
  720.     Xt_Wait.Show
  721.     Xt_Wait.Refresh
  722.    
  723.     '加快显示速度
  724.     CxbbGrid.Redraw = False
  725.  
  726.     '生成查询结果
  727.     Call Sub_Query(0)
  728.    
  729.     CxbbGrid.Redraw = True
  730.     
  731.     Xt_Wait.Hide
  732. End Sub
  733. Private Sub First()
  734.     If adoMate.State = 1 Then
  735.         If adoMate.RecordCount > 0 Then
  736.             adoMate.MoveFirst
  737.             intNowRec = 1
  738.             SzToolbar.Buttons("first").Enabled = False
  739.             SzToolbar.Buttons("prev").Enabled = False
  740.             SzToolbar.Buttons("next").Enabled = True
  741.             SzToolbar.Buttons("last").Enabled = True
  742.             Call Show_Tab(Trim(adoMate.Fields("whcode")))
  743.         End If
  744.     End If
  745. End Sub
  746. Private Sub Last()
  747.     If adoMate.State = 1 Then
  748.         If adoMate.RecordCount > 0 Then
  749.             adoMate.MoveLast
  750.             intNowRec = conRecNum
  751.             SzToolbar.Buttons("next").Enabled = False
  752.             SzToolbar.Buttons("last").Enabled = False
  753.             SzToolbar.Buttons("first").Enabled = True
  754.             SzToolbar.Buttons("prev").Enabled = True
  755.             Call Show_Tab(Trim(adoMate.Fields("whcode")))
  756.         End If
  757.     End If
  758. End Sub
  759. Private Sub Prev()
  760.     If adoMate.State = 1 Then
  761.         SzToolbar.Buttons("next").Enabled = True
  762.         SzToolbar.Buttons("last").Enabled = True
  763.         If adoMate.RecordCount > 0 Then
  764.             intNowRec = intNowRec - 1
  765.             If adoMate.EOF Then
  766.                 adoMate.MovePrevious
  767.             End If
  768.             If Not adoMate.BOF Then
  769.                 adoMate.MovePrevious
  770.                 If Not adoMate.BOF Then
  771.                     Call Show_Tab(Trim(adoMate.Fields("whcode")))
  772.                 End If
  773.             End If
  774.             If adoMate.BOF Then
  775.                 SzToolbar.Buttons("first").Enabled = False
  776.                 SzToolbar.Buttons("prev").Enabled = False
  777.             End If
  778.             
  779.         End If
  780.     End If
  781. End Sub
  782. Private Sub Sub_next()
  783.     If adoMate.State = 1 Then
  784.         If adoMate.RecordCount > 0 Then
  785.             SzToolbar.Buttons("first").Enabled = True
  786.             SzToolbar.Buttons("prev").Enabled = True
  787.             intNowRec = intNowRec + 1
  788.             If adoMate.BOF Then
  789.                 adoMate.MoveNext
  790.             End If
  791.             If Not adoMate.EOF Then
  792.                 adoMate.MoveNext
  793.                 If Not adoMate.EOF Then
  794.                     Call Show_Tab(Trim(adoMate.Fields("whcode")))
  795.                 End If
  796.             End If
  797.             If adoMate.EOF Then
  798.                 SzToolbar.Buttons("next").Enabled = False
  799.                 SzToolbar.Buttons("last").Enabled = False
  800.             End If
  801.         End If
  802.     End If
  803. End Sub
  804. Private Sub Sub_Query(Int_QueryType As Integer)                                     '生成查询结果(Define)
  805.     
  806.    Dim Sqlstr1 As String                        '查询字符串
  807.    Dim Sqlstr2 As String
  808.    Dim Sqlstr As String
  809.    Dim Coljsq As Long                          '网格列计数器
  810.    Dim jsqte As Long                        '临时动态计数器
  811.    Dim adoPeriod As New ADODB.Recordset
  812.    
  813.  '以下为用户自定义部分[
  814.  With KF_FrmCollateCxtj
  815.      
  816.      '显示查询会计期间
  817.      Kjyear = Val(Mid(Trim(.Combo_Kjqj1.Text), 1, 4))
  818.      Period = Val(Mid(Trim(.Combo_Kjqj1.Text), 6))
  819.      If .LrText(0).Text <> "" Then
  820.         Call Show_Tab(Trim(.LrText(0).Tag))
  821.         SzToolbar.Buttons("first").Enabled = False
  822.         SzToolbar.Buttons("prev").Enabled = False
  823.         SzToolbar.Buttons("next").Enabled = False
  824.         SzToolbar.Buttons("last").Enabled = False
  825.      Else
  826.         Sqlstr = "SELECT distinct a.whcode,(select whname from gy_warehouse where a.whcode=gy_warehouse.whcode)as whname " & _
  827.                     "FROM (select mnumber,whcode,sum(startquan)as startquan,sum(inquan)as inquan,sum(outquan)as outquan from  Chhs_Mate where kjyear=" & Kjyear & " and period=" & Period & "  group by mnumber,whcode)a FULL OUTER JOIN " & _
  828.                     "(select mnumber,whcode,sum(startquan)as startquan,sum(receiptquan)as inquan,sum(issuequan)as outquan from KF_MateLedger where kjyear=" & Kjyear & " and period=" & Period & "  group by mnumber,whcode)b ON " & _
  829.                     "a.MNumber = b.MNumber Where (IsNull(a.StartQuan, 0) + IsNull(a.inquan, 0) - IsNull(a.outquan, 0)) <> (IsNull(b.StartQuan, 0) + IsNull(b.inquan, 0) - IsNull(b.outquan, 0))"
  830.         Set adoMate = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  831.         If Not adoMate.EOF Then
  832.             adoMate.MoveFirst
  833.             Call Show_Tab(Trim(adoMate.Fields("whcode")) & "")
  834.         End If
  835.         SzToolbar.Buttons("first").Enabled = True
  836.         SzToolbar.Buttons("prev").Enabled = True
  837.         SzToolbar.Buttons("next").Enabled = True
  838.         SzToolbar.Buttons("last").Enabled = True
  839.      End If
  840.      
  841.      
  842.      
  843.  End With
  844. End Sub
  845. Private Sub Show_Tab(StrTemp As String)
  846. Dim StrQC As String
  847. Dim adoStart As New ADODB.Recordset
  848. Dim InCount As Double
  849. Dim OutCount As Double
  850. Dim StrBill As String
  851. If KF_FrmCollateCxtj.LrText(0).Text <> "" Then
  852.     Label1 = "仓库:   " & Trim(KF_FrmCollateCxtj.LrText(0).Tag) & "--" & Trim(KF_FrmCollateCxtj.LrText(0).Text)
  853. Else
  854.     Label1 = "仓库:   " & Trim(StrTemp) & "--" & Trim(adoMate.Fields("whname"))
  855. End If
  856. Label2.Caption = "会计期间:" & Trim(KF_FrmCollateCxtj.Combo_Kjqj1.Text)
  857.     
  858.   StrBill = "SELECT a.MNumber,(select mname from gy_material where a.mnumber=gy_material.mnumber) as mname, " & _
  859.             "ISNULL(a.StartQuan,0) as StartQuan1,isnull(a.inquan,0) as inquan1,isnull(a.outquan,0) as outquan1, " & _
  860.             "ISNULL(b.StartQuan,0) AS StartQuan2,isnull(b.inquan,0) as inquan2,isnull(b.outquan,0) as outquan2 " & _
  861.             "FROM (select mnumber,whcode,sum(startquan)as startquan,sum(inquan)as inquan,sum(outquan)as outquan from  Chhs_Mate where kjyear=" & Kjyear & " and period=" & Period & " and whcode='" & Trim(StrTemp) & "' group by mnumber,whcode)a FULL OUTER JOIN " & _
  862.             "(select mnumber,whcode,sum(startquan)as startquan,sum(receiptquan)as inquan,sum(issuequan)as outquan from KF_MateLedger where kjyear=" & Kjyear & " and period=" & Period & " and whcode='" & Trim(StrTemp) & "' group by mnumber,whcode)b ON " & _
  863.             "a.MNumber = b.MNumber Where (ISNULL(a.StartQuan, 0) + ISNULL(a.inquan, 0) - ISNULL(a.outquan, 0)) <> (ISNULL(b.StartQuan, 0) + ISNULL(b.inquan, 0) - ISNULL(b.outquan, 0))"
  864.  Set adoQuery = Cw_DataEnvi.DataConnect.Execute(StrBill)
  865.  
  866.  With adoQuery
  867.     CxbbGrid.Rows = CxbbGrid.FixedRows
  868.     jsqte = CxbbGrid.FixedRows
  869.    Do While Not .EOF
  870.   
  871.      If jsqte >= CxbbGrid.Rows Then
  872.      End If
  873.         CxbbGrid.AddItem ""
  874.       
  875.      If IsNull(.Fields("MNumber")) Then
  876.         CxbbGrid.TextMatrix(jsqte, Sydz("001", GridStr(), Szzls)) = ""                                      '物料编码
  877.      Else
  878.         CxbbGrid.TextMatrix(jsqte, Sydz("001", GridStr(), Szzls)) = Trim(.Fields("MNumber") & "") & "-" & Trim(.Fields("mname") & "")
  879.      End If
  880.     
  881.      If Val(.Fields("StartQuan1") & "") <> 0 Then
  882.         CxbbGrid.TextMatrix(jsqte, Sydz("002", GridStr(), Szzls)) = Val(.Fields("StartQuan1") & "")         '期初数据
  883.      End If
  884.      If Val(.Fields("inquan1") & "") <> 0 Then
  885.          CxbbGrid.TextMatrix(jsqte, Sydz("003", GridStr(), Szzls)) = Val(.Fields("inquan1") & "")           '收入数据
  886.      End If
  887.      If Val(.Fields("outquan1") & "") <> 0 Then
  888.          CxbbGrid.TextMatrix(jsqte, Sydz("004", GridStr(), Szzls)) = Val(.Fields("outquan1") & "")          '发出数据
  889.      End If
  890.      If Val(.Fields("StartQuan1") & "") + Val(.Fields("inquan1") & "") - Val(.Fields("outquan1") & "") <> 0 Then
  891.         CxbbGrid.TextMatrix(jsqte, Sydz("005", GridStr(), Szzls)) = Val(.Fields("StartQuan1") & "") + Val(.Fields("inquan1") & "") - Val(.Fields("outquan1") & "")
  892.      End If                                                                                                 '结存数据
  893.      
  894.      If Val(.Fields("StartQuan2") & "") <> 0 Then
  895.          CxbbGrid.TextMatrix(jsqte, Sydz("007", GridStr(), Szzls)) = Val(.Fields("StartQuan2") & "")        '期初数据
  896.      End If
  897.      If Val(.Fields("inquan2") & "") <> 0 Then
  898.          CxbbGrid.TextMatrix(jsqte, Sydz("008", GridStr(), Szzls)) = Val(.Fields("inquan2") & "")           '收入数据
  899.      End If
  900.      If Val(.Fields("outquan2") & "") <> 0 Then
  901.          CxbbGrid.TextMatrix(jsqte, Sydz("009", GridStr(), Szzls)) = Val(.Fields("outquan2") & "")          '发出数据
  902.      End If
  903.      If Val(.Fields("StartQuan2") & "") + Val(.Fields("inquan2") & "") - Val(.Fields("outquan2") & "") <> 0 Then
  904.         CxbbGrid.TextMatrix(jsqte, Sydz("010", GridStr(), Szzls)) = Val(.Fields("StartQuan2") & "") + Val(.Fields("inquan2") & "") - Val(.Fields("outquan2") & "")
  905.      End If                                                                                                 '结存数据
  906.      
  907.      
  908.      CxbbGrid.RowHeight(jsqte) = Sjhgd
  909.      
  910.      jsqte = jsqte + 1
  911.     .MoveNext
  912.    Loop
  913.  End With
  914.  ']以上为用户自定义部分
  915. End Sub
  916. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  917.     
  918.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  919.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  920.     Bbxbtgs = 2                                          '报 表 小 标 题 行 数
  921.     Bbbwhgs = 0                                          '报 表 表 尾 行 数
  922.     ReDim Bbxbt(1 To Bbxbtgs)
  923.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  924.     If Bbbwhgs <> 0 Then
  925.         ReDim Bbbwh(1 To Bbbwhgs)
  926.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  927.     End If
  928.     Bbzbt = ReportTitle
  929.     Bbxbt(1) = Space(5) + Fun_FormatOutPut(Trim(Label1), 30)
  930.     Bbxbt(1) = Bbxbt(1) + Fun_FormatOutPut(Trim(Label2), 30)
  931.     Bbxbt(2) = Space(5) + Fun_FormatOutPut(Trim(Label3), 30)
  932.     Bbxbt(2) = Bbxbt(2) + Fun_FormatOutPut(Trim(Label4), 30)
  933.     Bbxbt(2) = Bbxbt(2) + Fun_FormatOutPut(Trim(Label5), 30)
  934.     
  935.     bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  936.     Call Scyxsjb(CxbbGrid)                               '生成报表数据
  937.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  938.     If Not bbylte Then
  939.         Unload DY_Tybbyldy
  940.     End If
  941. End Sub