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

企业管理

开发平台:

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