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

企业管理

开发平台:

Visual Basic

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