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