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

企业管理

开发平台:

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