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

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{65A39231-6133-11D1-BAA2-444553540000}#1.0#0"; "vslight6.OCX"
  3. Object = "{D76D7128-4A96-11D3-BD95-D296DC2DD072}#1.0#0"; "VSOCX7.OCX"
  4. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
  5. Begin VB.Form Dev_SparePartListForm 
  6.    Caption         =   "备品备件库存列表"
  7.    ClientHeight    =   8595
  8.    ClientLeft      =   315
  9.    ClientTop       =   390
  10.    ClientWidth     =   11820
  11.    HelpContextID   =   2508001
  12.    Icon            =   "备品备件_库存查询显示.frx":0000
  13.    KeyPreview      =   -1  'True
  14.    LinkTopic       =   "Form1"
  15.    MDIChild        =   -1  'True
  16.    ScaleHeight     =   8595
  17.    ScaleWidth      =   11820
  18.    WindowState     =   2  'Maximized
  19.    Begin MSComctlLib.Toolbar GsToolbar 
  20.       Height          =   540
  21.       Left            =   10110
  22.       TabIndex        =   3
  23.       Top             =   30
  24.       Width           =   1665
  25.       _ExtentX        =   2937
  26.       _ExtentY        =   953
  27.       ButtonWidth     =   1455
  28.       ButtonHeight    =   953
  29.       Appearance      =   1
  30.       Style           =   1
  31.       ImageList       =   "ImageList2"
  32.       _Version        =   393216
  33.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  34.          NumButtons      =   3
  35.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  36.             Caption         =   "保存格式"
  37.             Key             =   "bcgs"
  38.             ImageKey        =   "bcgs"
  39.          EndProperty
  40.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  41.             Caption         =   "默认列宽"
  42.             Key             =   "hfmrgs"
  43.             ImageKey        =   "mrlk"
  44.          EndProperty
  45.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  46.             Enabled         =   0   'False
  47.             Object.Visible         =   0   'False
  48.             Caption         =   "显示项目"
  49.             Key             =   "szxsxm"
  50.             ImageKey        =   "xsxm"
  51.          EndProperty
  52.       EndProperty
  53.    End
  54.    Begin VB.PictureBox Pic_Title 
  55.       BackColor       =   &H00FFFFFF&
  56.       Height          =   825
  57.       Left            =   0
  58.       Picture         =   "备品备件_库存查询显示.frx":1042
  59.       ScaleHeight     =   765
  60.       ScaleWidth      =   11715
  61.       TabIndex        =   1
  62.       Top             =   570
  63.       Width           =   11775
  64.       Begin VB.Label Lab_Title 
  65.          BackColor       =   &H80000018&
  66.          BackStyle       =   0  'Transparent
  67.          Caption         =   "备品备件库存列表"
  68.          BeginProperty Font 
  69.             Name            =   "宋体"
  70.             Size            =   12
  71.             Charset         =   134
  72.             Weight          =   700
  73.             Underline       =   0   'False
  74.             Italic          =   0   'False
  75.             Strikethrough   =   0   'False
  76.          EndProperty
  77.          ForeColor       =   &H00000000&
  78.          Height          =   300
  79.          Index           =   4
  80.          Left            =   510
  81.          TabIndex        =   2
  82.          Top             =   210
  83.          Width           =   2415
  84.       End
  85.    End
  86.    Begin VB.Timer Timer1 
  87.       Enabled         =   0   'False
  88.       Interval        =   1
  89.       Left            =   7620
  90.       Top             =   90
  91.    End
  92.    Begin VSFlex8Ctl.VSFlexGrid CxbbGrid 
  93.       Height          =   7545
  94.       Left            =   30
  95.       TabIndex        =   0
  96.       Top             =   1470
  97.       Width           =   11775
  98.       _ExtentX        =   20770
  99.       _ExtentY        =   13309
  100.       Appearance      =   1
  101.       BorderStyle     =   1
  102.       Enabled         =   -1  'True
  103.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  104.          Name            =   "宋体"
  105.          Size            =   9
  106.          Charset         =   134
  107.          Weight          =   400
  108.          Underline       =   0   'False
  109.          Italic          =   0   'False
  110.          Strikethrough   =   0   'False
  111.       EndProperty
  112.       MousePointer    =   0
  113.       BackColor       =   16777215
  114.       ForeColor       =   -2147483640
  115.       BackColorFixed  =   13826538
  116.       ForeColorFixed  =   -2147483630
  117.       BackColorSel    =   -2147483635
  118.       ForeColorSel    =   -2147483634
  119.       BackColorBkg    =   -2147483636
  120.       BackColorAlternate=   16777215
  121.       GridColor       =   -2147483633
  122.       GridColorFixed  =   -2147483632
  123.       TreeColor       =   -2147483632
  124.       FloodColor      =   192
  125.       SheetBorder     =   -2147483642
  126.       FocusRect       =   1
  127.       HighLight       =   1
  128.       AllowSelection  =   -1  'True
  129.       AllowBigSelection=   -1  'True
  130.       AllowUserResizing=   0
  131.       SelectionMode   =   0
  132.       GridLines       =   1
  133.       GridLinesFixed  =   2
  134.       GridLineWidth   =   1
  135.       Rows            =   50
  136.       Cols            =   10
  137.       FixedRows       =   1
  138.       FixedCols       =   1
  139.       RowHeightMin    =   0
  140.       RowHeightMax    =   0
  141.       ColWidthMin     =   0
  142.       ColWidthMax     =   0
  143.       ExtendLastCol   =   0   'False
  144.       FormatString    =   ""
  145.       ScrollTrack     =   0   'False
  146.       ScrollBars      =   3
  147.       ScrollTips      =   0   'False
  148.       MergeCells      =   0
  149.       MergeCompare    =   0
  150.       AutoResize      =   -1  'True
  151.       AutoSizeMode    =   0
  152.       AutoSearch      =   0
  153.       MultiTotals     =   -1  'True
  154.       SubtotalPosition=   1
  155.       OutlineBar      =   0
  156.       OutlineCol      =   0
  157.       Ellipsis        =   0
  158.       ExplorerBar     =   0
  159.       PicturesOver    =   0   'False
  160.       FillStyle       =   0
  161.       RightToLeft     =   0   'False
  162.       PictureType     =   0
  163.       TabBehavior     =   0
  164.       OwnerDraw       =   0
  165.       Editable        =   0   'False
  166.       ShowComboButton =   -1  'True
  167.       WordWrap        =   0   'False
  168.       TextStyle       =   0
  169.       TextStyleFixed  =   0
  170.       OleDragMode     =   0
  171.       OleDropMode     =   0
  172.       DataMode        =   0
  173.       VirtualData     =   -1  'True
  174.       Begin MSComctlLib.ImageList ImageList2 
  175.          Left            =   0
  176.          Top             =   0
  177.          _ExtentX        =   1005
  178.          _ExtentY        =   1005
  179.          BackColor       =   -2147483643
  180.          ImageWidth      =   16
  181.          ImageHeight     =   16
  182.          MaskColor       =   12632256
  183.          _Version        =   393216
  184.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  185.             NumListImages   =   40
  186.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  187.                Picture         =   "备品备件_库存查询显示.frx":1DF82
  188.                Key             =   "sz"
  189.             EndProperty
  190.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  191.                Picture         =   "备品备件_库存查询显示.frx":1E31C
  192.                Key             =   "dy"
  193.             EndProperty
  194.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  195.                Picture         =   "备品备件_库存查询显示.frx":1E6B6
  196.                Key             =   "yl"
  197.             EndProperty
  198.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  199.                Picture         =   "备品备件_库存查询显示.frx":1EA50
  200.                Key             =   "xg"
  201.             EndProperty
  202.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  203.                Picture         =   "备品备件_库存查询显示.frx":1EDEA
  204.                Key             =   "zh"
  205.             EndProperty
  206.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  207.                Picture         =   "备品备件_库存查询显示.frx":1F184
  208.                Key             =   "sh"
  209.             EndProperty
  210.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  211.                Picture         =   "备品备件_库存查询显示.frx":1F51E
  212.                Key             =   "bc"
  213.             EndProperty
  214.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  215.                Picture         =   "备品备件_库存查询显示.frx":1F8B8
  216.                Key             =   "fq"
  217.             EndProperty
  218.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  219.                Picture         =   "备品备件_库存查询显示.frx":1FC52
  220.                Key             =   "bz"
  221.             EndProperty
  222.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  223.                Picture         =   "备品备件_库存查询显示.frx":1FFEC
  224.                Key             =   "tc"
  225.             EndProperty
  226.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  227.                Picture         =   "备品备件_库存查询显示.frx":20386
  228.                Key             =   "bcgs"
  229.             EndProperty
  230.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  231.                Picture         =   "备品备件_库存查询显示.frx":20720
  232.                Key             =   "mrlk"
  233.             EndProperty
  234.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  235.                Picture         =   "备品备件_库存查询显示.frx":20ABA
  236.                Key             =   "xsxm"
  237.             EndProperty
  238.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  239.                Picture         =   "备品备件_库存查询显示.frx":20E54
  240.                Key             =   "first"
  241.             EndProperty
  242.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  243.                Picture         =   "备品备件_库存查询显示.frx":211EE
  244.                Key             =   "prev"
  245.             EndProperty
  246.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  247.                Picture         =   "备品备件_库存查询显示.frx":21588
  248.                Key             =   "next"
  249.             EndProperty
  250.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  251.                Picture         =   "备品备件_库存查询显示.frx":21922
  252.                Key             =   "last"
  253.             EndProperty
  254.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  255.                Picture         =   "备品备件_库存查询显示.frx":21CBC
  256.                Key             =   "xx"
  257.             EndProperty
  258.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  259.                Picture         =   "备品备件_库存查询显示.frx":22056
  260.                Key             =   "define"
  261.             EndProperty
  262.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  263.                Picture         =   "备品备件_库存查询显示.frx":223F0
  264.                Key             =   "exec"
  265.             EndProperty
  266.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  267.                Picture         =   "备品备件_库存查询显示.frx":2278A
  268.                Key             =   "xz"
  269.             EndProperty
  270.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  271.                Picture         =   "备品备件_库存查询显示.frx":22B24
  272.                Key             =   "sc"
  273.             EndProperty
  274.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  275.                Picture         =   "备品备件_库存查询显示.frx":22EBE
  276.                Key             =   "sx"
  277.             EndProperty
  278.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  279.                Picture         =   "备品备件_库存查询显示.frx":23258
  280.                Key             =   "cx"
  281.             EndProperty
  282.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  283.                Picture         =   "备品备件_库存查询显示.frx":235F2
  284.                Key             =   "zd"
  285.             EndProperty
  286.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  287.                Picture         =   "备品备件_库存查询显示.frx":2398C
  288.                Key             =   "dz"
  289.             EndProperty
  290.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  291.                Picture         =   "备品备件_库存查询显示.frx":23D26
  292.                Key             =   "ph"
  293.             EndProperty
  294.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  295.                Picture         =   "备品备件_库存查询显示.frx":240C0
  296.                Key             =   "fz"
  297.             EndProperty
  298.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  299.                Picture         =   "备品备件_库存查询显示.frx":2445A
  300.                Key             =   "dw"
  301.             EndProperty
  302.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  303.                Picture         =   "备品备件_库存查询显示.frx":247F4
  304.                Key             =   "hf"
  305.             EndProperty
  306.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  307.                Picture         =   "备品备件_库存查询显示.frx":24B8E
  308.                Key             =   "pz"
  309.             EndProperty
  310.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  311.                Picture         =   "备品备件_库存查询显示.frx":24F28
  312.                Key             =   "check"
  313.             EndProperty
  314.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  315.                Picture         =   "备品备件_库存查询显示.frx":252C2
  316.                Key             =   "qs"
  317.             EndProperty
  318.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  319.                Picture         =   "备品备件_库存查询显示.frx":2565C
  320.                Key             =   "fullcheck"
  321.             EndProperty
  322.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  323.                Picture         =   "备品备件_库存查询显示.frx":259F6
  324.                Key             =   "qq"
  325.             EndProperty
  326.             BeginProperty ListImage36 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  327.                Picture         =   "备品备件_库存查询显示.frx":25D90
  328.                Key             =   "bcw"
  329.             EndProperty
  330.             BeginProperty ListImage37 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  331.                Picture         =   "备品备件_库存查询显示.frx":2612A
  332.                Key             =   "ye"
  333.             EndProperty
  334.             BeginProperty ListImage38 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  335.                Picture         =   "备品备件_库存查询显示.frx":264C4
  336.                Key             =   ""
  337.             EndProperty
  338.             BeginProperty ListImage39 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  339.                Picture         =   "备品备件_库存查询显示.frx":2685E
  340.                Key             =   "frist"
  341.             EndProperty
  342.             BeginProperty ListImage40 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  343.                Picture         =   "备品备件_库存查询显示.frx":26BF8
  344.                Key             =   "dj"
  345.             EndProperty
  346.          EndProperty
  347.       End
  348.    End
  349.    Begin MSComctlLib.Toolbar SzToolbar 
  350.       Align           =   1  'Align Top
  351.       Height          =   570
  352.       Left            =   0
  353.       TabIndex        =   4
  354.       Top             =   0
  355.       Width           =   11820
  356.       _ExtentX        =   20849
  357.       _ExtentY        =   1005
  358.       ButtonWidth     =   820
  359.       ButtonHeight    =   953
  360.       AllowCustomize  =   0   'False
  361.       Appearance      =   1
  362.       Style           =   1
  363.       ImageList       =   "ImageList1"
  364.       _Version        =   393216
  365.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  366.          NumButtons      =   8
  367.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  368.             Caption         =   "设置"
  369.             Key             =   "ymsz"
  370.             ImageKey        =   "sz"
  371.          EndProperty
  372.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  373.             Caption         =   "打印"
  374.             Key             =   "dy"
  375.             ImageKey        =   "dy"
  376.          EndProperty
  377.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  378.             Caption         =   "预览"
  379.             Key             =   "yl"
  380.             ImageKey        =   "yl"
  381.          EndProperty
  382.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  383.             Style           =   3
  384.          EndProperty
  385.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  386.             Caption         =   "查询"
  387.             Key             =   "cx"
  388.             ImageKey        =   "cx"
  389.          EndProperty
  390.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  391.             Style           =   3
  392.          EndProperty
  393.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  394.             Caption         =   "帮助"
  395.             Key             =   "bz"
  396.             ImageKey        =   "bz"
  397.          EndProperty
  398.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  399.             Caption         =   "退出"
  400.             Key             =   "fh"
  401.             ImageKey        =   "tc"
  402.          EndProperty
  403.       EndProperty
  404.       BorderStyle     =   1
  405.       Begin MSComctlLib.ImageList ImageList1 
  406.          Left            =   6990
  407.          Top             =   30
  408.          _ExtentX        =   1005
  409.          _ExtentY        =   1005
  410.          BackColor       =   -2147483643
  411.          ImageWidth      =   16
  412.          ImageHeight     =   16
  413.          MaskColor       =   12632256
  414.          _Version        =   393216
  415.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  416.             NumListImages   =   32
  417.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  418.                Picture         =   "备品备件_库存查询显示.frx":26F92
  419.                Key             =   "sz"
  420.             EndProperty
  421.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  422.                Picture         =   "备品备件_库存查询显示.frx":2732C
  423.                Key             =   "dy"
  424.             EndProperty
  425.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  426.                Picture         =   "备品备件_库存查询显示.frx":276C6
  427.                Key             =   "yl"
  428.             EndProperty
  429.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  430.                Picture         =   "备品备件_库存查询显示.frx":27A60
  431.                Key             =   "xg"
  432.             EndProperty
  433.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  434.                Picture         =   "备品备件_库存查询显示.frx":27DFA
  435.                Key             =   "zh"
  436.             EndProperty
  437.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  438.                Picture         =   "备品备件_库存查询显示.frx":28194
  439.                Key             =   "sh"
  440.             EndProperty
  441.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  442.                Picture         =   "备品备件_库存查询显示.frx":2852E
  443.                Key             =   "bc"
  444.             EndProperty
  445.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  446.                Picture         =   "备品备件_库存查询显示.frx":288C8
  447.                Key             =   "fq"
  448.             EndProperty
  449.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  450.                Picture         =   "备品备件_库存查询显示.frx":28C62
  451.                Key             =   "bz"
  452.             EndProperty
  453.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  454.                Picture         =   "备品备件_库存查询显示.frx":28FFC
  455.                Key             =   "tc"
  456.             EndProperty
  457.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  458.                Picture         =   "备品备件_库存查询显示.frx":29396
  459.                Key             =   "bcgs"
  460.             EndProperty
  461.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  462.                Picture         =   "备品备件_库存查询显示.frx":29730
  463.                Key             =   "mrlk"
  464.             EndProperty
  465.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  466.                Picture         =   "备品备件_库存查询显示.frx":29ACA
  467.                Key             =   "xsxm"
  468.             EndProperty
  469.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  470.                Picture         =   "备品备件_库存查询显示.frx":29E64
  471.                Key             =   "first"
  472.             EndProperty
  473.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  474.                Picture         =   "备品备件_库存查询显示.frx":2A1FE
  475.                Key             =   "prev"
  476.             EndProperty
  477.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  478.                Picture         =   "备品备件_库存查询显示.frx":2A598
  479.                Key             =   "next"
  480.             EndProperty
  481.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  482.                Picture         =   "备品备件_库存查询显示.frx":2A932
  483.                Key             =   "last"
  484.             EndProperty
  485.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  486.                Picture         =   "备品备件_库存查询显示.frx":2ACCC
  487.                Key             =   "xx"
  488.             EndProperty
  489.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  490.                Picture         =   "备品备件_库存查询显示.frx":2B066
  491.                Key             =   "define"
  492.             EndProperty
  493.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  494.                Picture         =   "备品备件_库存查询显示.frx":2B400
  495.                Key             =   "exec"
  496.             EndProperty
  497.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  498.                Picture         =   "备品备件_库存查询显示.frx":2B79A
  499.                Key             =   "xz"
  500.             EndProperty
  501.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  502.                Picture         =   "备品备件_库存查询显示.frx":2BB34
  503.                Key             =   "sc"
  504.             EndProperty
  505.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  506.                Picture         =   "备品备件_库存查询显示.frx":2BECE
  507.                Key             =   "sx"
  508.             EndProperty
  509.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  510.                Picture         =   "备品备件_库存查询显示.frx":2C268
  511.                Key             =   "cx"
  512.             EndProperty
  513.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  514.                Picture         =   "备品备件_库存查询显示.frx":2C602
  515.                Key             =   "zd"
  516.             EndProperty
  517.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  518.                Picture         =   "备品备件_库存查询显示.frx":2C99C
  519.                Key             =   "dz"
  520.             EndProperty
  521.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  522.                Picture         =   "备品备件_库存查询显示.frx":2CD36
  523.                Key             =   "ph"
  524.             EndProperty
  525.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  526.                Picture         =   "备品备件_库存查询显示.frx":2D0D0
  527.                Key             =   "fz"
  528.             EndProperty
  529.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  530.                Picture         =   "备品备件_库存查询显示.frx":2D46A
  531.                Key             =   "dw"
  532.             EndProperty
  533.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  534.                Picture         =   "备品备件_库存查询显示.frx":2D804
  535.                Key             =   "hf"
  536.             EndProperty
  537.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  538.                Picture         =   "备品备件_库存查询显示.frx":2DB9E
  539.                Key             =   "pz"
  540.             EndProperty
  541.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  542.                Picture         =   "备品备件_库存查询显示.frx":2DF38
  543.                Key             =   "check"
  544.             EndProperty
  545.          EndProperty
  546.       End
  547.    End
  548. End
  549. Attribute VB_Name = "Dev_SparePartListForm"
  550. Attribute VB_GlobalNameSpace = False
  551. Attribute VB_Creatable = False
  552. Attribute VB_PredeclaredId = True
  553. Attribute VB_Exposed = False
  554. '**************************************************************************
  555. '*    模 块 名 称 :库存量查询显示
  556. '*    功 能 描 述 :
  557. '*    程序员姓名  :王哲
  558. '*    最后修改人  :王哲
  559. '*    最后修改时间:2001/12/12
  560. '*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
  561. '**************************************************************************
  562. Dim ReportTitle As String                '报表主标题
  563. Dim Str_QueryCondi As String             '用户录入查询条件
  564. Dim Rec_BillID As New ADODB.Recordset    '用户查询单据ID动态集
  565. '以下为固定使用变量
  566. Dim Dyymctbl As New DY_Dyymsz            '打印页面窗体变量
  567. Dim GridCode As String                   '显示网格网格代码
  568. Dim GridInf() As Variant                 '整个网格设置信息
  569. Dim Tsxx As String                       '系统提示信息
  570. Dim Qslz As Long                         '网格隐藏(非操作显示)列数
  571. Dim Sjhgd As Double                      '网格数据行高度
  572. Dim Sfxshjwg As Boolean                  '是否显示合计网格
  573. Dim GridBoolean() As Boolean             '网格列信息(布尔型)
  574. Dim GridStr()  As String                 '网格列信息(字符型)
  575. Dim GridInt() As Integer                 '网格列信息(整型)
  576. Dim Szzls As Integer                     '数组总列数(网格列数-1)
  577. Private Sub Form_Resize()                '根据窗体大小来调整网格,标题栏大小(Fixed)
  578.     
  579.     On Error Resume Next
  580.     
  581.     With CxbbGrid
  582.         .Width = Me.Width - 160
  583.         .Height = Me.Height - .Top - 400
  584.     End With
  585.     
  586.     With Pic_Title
  587.         .Width = Me.Width - 160
  588.     End With
  589.     
  590.     GsToolbar.Left = Me.Width - GsToolbar.Width - 140
  591. End Sub
  592. Private Sub Form_Load()                                                   '窗体装入
  593.   
  594.     '调入打印页面设置窗体
  595.     ReportTitle = "备品备件库存列表"
  596.     XtReportCode = "Dev_SparePartList"
  597.     Load Dyymctbl
  598.   
  599.     '调整标题栏及网格、格式工具条位置(Fixed)
  600.     Pic_Title.Left = 40
  601.     Pic_Title.Top = SzToolbar.Top + SzToolbar.Height - 10
  602.     CxbbGrid.Left = Pic_Title.Left
  603.     CxbbGrid.Top = Pic_Title.Top + Pic_Title.Height + 20
  604.  
  605.     '调 入 网 格(Fixed)
  606.     GridCode = "Dev_SparePartList"
  607.     Call BzWgcsh(CxbbGrid, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
  608.   
  609.     Qslz = GridInf(1)
  610.     Sjhgd = GridInf(2)
  611.     Sfxshjwg = GridInf(7)
  612.     Szzls = CxbbGrid.Cols - 1
  613. End Sub
  614. Private Sub Form_Unload(Cancel As Integer)                                  '窗体卸载
  615.     '卸载条件窗体
  616.     Dev_SparePartFindForm.UnloadCheck.Value = 1
  617.     Unload Dev_SparePartFindForm
  618.     
  619.     '卸载打印页面设置窗体
  620.     Unload Dyymctbl
  621. End Sub
  622. Private Sub CxbbGrid_BeforeMoveColumn(ByVal Col As Long, Position As Long)           '网格列发生移动时自动交换网格索引信息
  623.     Call FnBln_RefreshArray(Col, Position, GridStr(), GridInf())
  624. End Sub
  625. Private Sub GsToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)       '网格格式调整(Fixed)
  626.     
  627.     Select Case Button.Key
  628.         Case "bcgs"                                          '保存表格格式
  629.             Call Bcwggs(CxbbGrid, GridCode, GridStr())
  630.         Case "hfmrgs"                                        '恢复默认格式
  631.             Call Hfmrgs(CxbbGrid, GridCode, GridStr())
  632.         Case "szxsxm"                                        '设置显示项目
  633.             Call Szxsxm(CxbbGrid, GridCode)
  634.     End Select
  635. End Sub
  636. Private Sub SzToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
  637.     
  638.     Select Case Button.Key
  639.         Case "ymsz"                                          '页面设置
  640.             Dyymctbl.Show 1
  641.         Case "yl"                                            '预 览
  642.             Call bbyl(True)
  643.         Case "dy"                                            '打 印
  644.             Call bbyl(False)
  645.         Case "cx"                                            '查 询
  646.             Dev_SparePartFindForm.Show 1
  647.         Case "bz"                                            '帮 助
  648.             Call F1bz
  649.         Case "fh"                                            '退 出
  650.             Unload Me
  651.     End Select
  652. End Sub
  653. Private Sub Timer1_Timer()                                 '在窗体激活后调入查询程序
  654.     
  655.     Timer1.Enabled = False
  656.     Xt_Wait.Show
  657.     Xt_Wait.Refresh
  658.    
  659.     '加快显示速度
  660.     CxbbGrid.Redraw = False
  661.  
  662.     '生成查询结果
  663.     Call Sub_Query
  664.    
  665.     CxbbGrid.Redraw = True
  666.     
  667.     Xt_Wait.Hide
  668. End Sub
  669. Private Sub Sub_Query()                                     '生成查询结果(Define)
  670.     
  671.     Dim Rec_Query As New ADODB.Recordset        '查询结果动态集
  672.     Dim Coljsq As Long                          '网格列计数器
  673.     Dim jsqte As Integer                        '临时动态计数器
  674.     '以下为自定义部分[
  675.  
  676.         With Dev_SparePartFindForm
  677.          
  678.             '生成查询条件
  679.                     If .LrText(0).Text = "" Then
  680.                         If .LrText(1).Text <> "" Then
  681.                             Str_QueryCondi = Str_QueryCondi & " And Mnumber='" & Trim(.LrText(1).Text) & "'"
  682.                         End If
  683.                         If .LrText(2).Text <> "" Then
  684.                             Str_QueryCondi = Str_QueryCondi & " And Mname='" & Trim(.LrText(2).Text) & "'"
  685.                         End If
  686.                         If Str_QueryCondi <> "" Then
  687.                             DEVQstring = "select * from gy_material where isbpbj=1 " & Str_QueryCondi
  688.                         Else
  689.                             DEVQstring = "select * from gy_material where isbpbj=1 "
  690.                         End If
  691.                     Else
  692.                         Str_QueryCondi = Str_QueryCondi & " And DEVID='" & Trim(.LrText(0).Text) & "'"
  693.                         If .LrText(1).Text <> "" Then
  694.                             Str_QueryCondi = Str_QueryCondi & " And PartCode='" & Trim(.LrText(1).Text) & "'"
  695.                         End If
  696.                         If .LrText(2).Text <> "" Then
  697.                             Str_QueryCondi = Str_QueryCondi & " And Mname='" & Trim(.LrText(2).Text) & "'"
  698.                         End If
  699.                         If Str_QueryCondi <> "" Then
  700.                             DEVQstring = "select * from Dev_V_SpareMaterial where 1=1 " & Str_QueryCondi
  701.                         Else
  702.                             DEVQstring = "select * from Dev_V_SpareMaterial "
  703.                         End If
  704.                     End If
  705.                     Str_QueryCondi = ""
  706.                
  707.                 
  708.         End With
  709.     
  710.     
  711.      
  712.     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(DEVQstring)
  713.     
  714.     With Rec_Query
  715.         CxbbGrid.Rows = CxbbGrid.FixedRows
  716.         jsqte = CxbbGrid.FixedRows
  717.         Do While Not .EOF
  718.             CxbbGrid.AddItem ""
  719.             
  720.             '[>>自定义填充内容
  721.             If Dev_SparePartFindForm.LrText(0).Text = "" Then
  722.                 CxbbGrid.ColHidden(Sydz("001", GridStr(), Szzls)) = True
  723.                 CxbbGrid.ColHidden(Sydz("002", GridStr(), Szzls)) = True
  724.                 CxbbGrid.ColHidden(Sydz("003", GridStr(), Szzls)) = True
  725.                 CxbbGrid.TextMatrix(jsqte, Sydz("004", GridStr(), Szzls)) = Trim(.Fields("Mnumber") & "")           '备件编号
  726.                 CxbbGrid.TextMatrix(jsqte, Sydz("005", GridStr(), Szzls)) = Trim(.Fields("Mname") & "")             '备件名称
  727.                 CxbbGrid.TextMatrix(jsqte, Sydz("006", GridStr(), Szzls)) = Trim(.Fields("Model") & "")             '规格型号
  728.                 CxbbGrid.TextMatrix(jsqte, Sydz("007", GridStr(), Szzls)) = Val(.Fields("NowStorage") & "")         '库存量
  729.             Else
  730.                 CxbbGrid.ColHidden(Sydz("001", GridStr(), Szzls)) = False
  731.                 CxbbGrid.ColHidden(Sydz("002", GridStr(), Szzls)) = False
  732.                 CxbbGrid.ColHidden(Sydz("003", GridStr(), Szzls)) = False
  733.                 CxbbGrid.TextMatrix(jsqte, Sydz("001", GridStr(), Szzls)) = Trim(.Fields("DEVID"))                  '设备编号
  734.                 CxbbGrid.TextMatrix(jsqte, Sydz("002", GridStr(), Szzls)) = Trim(.Fields("DName") & "")             '设备名称
  735.                 CxbbGrid.TextMatrix(jsqte, Sydz("003", GridStr(), Szzls)) = Trim(.Fields("Model") & "")             '规格型号
  736.                 CxbbGrid.TextMatrix(jsqte, Sydz("004", GridStr(), Szzls)) = Trim(.Fields("PartCode") & "")          '备件编号
  737.                 CxbbGrid.TextMatrix(jsqte, Sydz("005", GridStr(), Szzls)) = Trim(.Fields("Mname") & "")             '备件名称
  738.                 CxbbGrid.TextMatrix(jsqte, Sydz("006", GridStr(), Szzls)) = Trim(.Fields("SpareModel") & "")        '规格型号
  739.                 CxbbGrid.TextMatrix(jsqte, Sydz("007", GridStr(), Szzls)) = Trim(.Fields("NowStorage") & "")        '库存量
  740.             
  741.             End If
  742.             '<<]
  743.      
  744.             '设置数据行高度(Fixed)
  745.             CxbbGrid.RowHeight(jsqte) = Sjhgd
  746.             
  747.             '动态集指针加1,同时将计数器加1(Fixed)
  748.             .MoveNext
  749.             jsqte = jsqte + 1
  750.         Loop
  751.     End With
  752.     ']以上为用户自定义部分
  753. End Sub
  754. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  755.     
  756.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  757.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  758.     Bbxbtgs = 1                                          '报 表 小 标 题 行 数
  759.     Bbbwhgs = 0                                          '报 表 表 尾 行 数
  760.     
  761.     ReDim Bbxbt(1 To Bbxbtgs)
  762.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  763.     If Bbbwhgs <> 0 Then
  764.         ReDim Bbbwh(1 To Bbbwhgs)
  765.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  766.     End If
  767.     
  768.     Bbzbt = ReportTitle
  769.     Bbxbt(1) = ""
  770.     bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  771.     Call Scyxsjb(CxbbGrid)                               '生成报表数据
  772.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  773.     If Not bbylte Then
  774.         Unload DY_Tybbyldy
  775.     End If
  776. End Sub