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

企业管理

开发平台:

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