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

企业管理

开发平台:

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