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

企业管理

开发平台:

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_RepairFileListForm 
  6.    Caption         =   "设备检修记录列表"
  7.    ClientHeight    =   8595
  8.    ClientLeft      =   315
  9.    ClientTop       =   390
  10.    ClientWidth     =   11820
  11.    HelpContextID   =   2506008
  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            =   9330
  22.       TabIndex        =   3
  23.       Top             =   30
  24.       Width           =   2475
  25.       _ExtentX        =   4366
  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.             Caption         =   "显示项目"
  47.             Key             =   "szxsxm"
  48.             ImageKey        =   "xsxm"
  49.          EndProperty
  50.       EndProperty
  51.    End
  52.    Begin VB.PictureBox Pic_Title 
  53.       BackColor       =   &H00FFFFFF&
  54.       Height          =   825
  55.       Left            =   0
  56.       Picture         =   "设备检修_检修记录显示.frx":1042
  57.       ScaleHeight     =   765
  58.       ScaleWidth      =   11715
  59.       TabIndex        =   1
  60.       Top             =   570
  61.       Width           =   11775
  62.       Begin VB.Label Lab_Title 
  63.          BackColor       =   &H80000018&
  64.          BackStyle       =   0  'Transparent
  65.          Caption         =   "设备检修记录列表"
  66.          BeginProperty Font 
  67.             Name            =   "宋体"
  68.             Size            =   12
  69.             Charset         =   134
  70.             Weight          =   700
  71.             Underline       =   0   'False
  72.             Italic          =   0   'False
  73.             Strikethrough   =   0   'False
  74.          EndProperty
  75.          ForeColor       =   &H00000000&
  76.          Height          =   300
  77.          Index           =   4
  78.          Left            =   510
  79.          TabIndex        =   2
  80.          Top             =   210
  81.          Width           =   2325
  82.       End
  83.    End
  84.    Begin VB.Timer Timer1 
  85.       Enabled         =   0   'False
  86.       Interval        =   1
  87.       Left            =   7620
  88.       Top             =   90
  89.    End
  90.    Begin VSFlex8Ctl.VSFlexGrid CxbbGrid 
  91.       Height          =   7545
  92.       Left            =   30
  93.       TabIndex        =   0
  94.       Top             =   1470
  95.       Width           =   11775
  96.       _ExtentX        =   20770
  97.       _ExtentY        =   13309
  98.       Appearance      =   1
  99.       BorderStyle     =   1
  100.       Enabled         =   -1  'True
  101.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  102.          Name            =   "宋体"
  103.          Size            =   9
  104.          Charset         =   134
  105.          Weight          =   400
  106.          Underline       =   0   'False
  107.          Italic          =   0   'False
  108.          Strikethrough   =   0   'False
  109.       EndProperty
  110.       MousePointer    =   0
  111.       BackColor       =   16777215
  112.       ForeColor       =   -2147483640
  113.       BackColorFixed  =   13826538
  114.       ForeColorFixed  =   -2147483630
  115.       BackColorSel    =   -2147483635
  116.       ForeColorSel    =   -2147483634
  117.       BackColorBkg    =   -2147483636
  118.       BackColorAlternate=   16777215
  119.       GridColor       =   -2147483633
  120.       GridColorFixed  =   -2147483632
  121.       TreeColor       =   -2147483632
  122.       FloodColor      =   192
  123.       SheetBorder     =   -2147483642
  124.       FocusRect       =   1
  125.       HighLight       =   1
  126.       AllowSelection  =   -1  'True
  127.       AllowBigSelection=   -1  'True
  128.       AllowUserResizing=   0
  129.       SelectionMode   =   0
  130.       GridLines       =   1
  131.       GridLinesFixed  =   2
  132.       GridLineWidth   =   1
  133.       Rows            =   50
  134.       Cols            =   10
  135.       FixedRows       =   1
  136.       FixedCols       =   1
  137.       RowHeightMin    =   0
  138.       RowHeightMax    =   0
  139.       ColWidthMin     =   0
  140.       ColWidthMax     =   0
  141.       ExtendLastCol   =   0   'False
  142.       FormatString    =   ""
  143.       ScrollTrack     =   0   'False
  144.       ScrollBars      =   3
  145.       ScrollTips      =   0   'False
  146.       MergeCells      =   0
  147.       MergeCompare    =   0
  148.       AutoResize      =   -1  'True
  149.       AutoSizeMode    =   0
  150.       AutoSearch      =   0
  151.       MultiTotals     =   -1  'True
  152.       SubtotalPosition=   1
  153.       OutlineBar      =   0
  154.       OutlineCol      =   0
  155.       Ellipsis        =   0
  156.       ExplorerBar     =   0
  157.       PicturesOver    =   0   'False
  158.       FillStyle       =   0
  159.       RightToLeft     =   0   'False
  160.       PictureType     =   0
  161.       TabBehavior     =   0
  162.       OwnerDraw       =   0
  163.       Editable        =   0   'False
  164.       ShowComboButton =   -1  'True
  165.       WordWrap        =   0   'False
  166.       TextStyle       =   0
  167.       TextStyleFixed  =   0
  168.       OleDragMode     =   0
  169.       OleDropMode     =   0
  170.       DataMode        =   0
  171.       VirtualData     =   -1  'True
  172.       Begin MSComctlLib.ImageList ImageList2 
  173.          Left            =   0
  174.          Top             =   0
  175.          _ExtentX        =   1005
  176.          _ExtentY        =   1005
  177.          BackColor       =   -2147483643
  178.          ImageWidth      =   16
  179.          ImageHeight     =   16
  180.          MaskColor       =   12632256
  181.          _Version        =   393216
  182.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  183.             NumListImages   =   40
  184.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  185.                Picture         =   "设备检修_检修记录显示.frx":1DF82
  186.                Key             =   "sz"
  187.             EndProperty
  188.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  189.                Picture         =   "设备检修_检修记录显示.frx":1E31C
  190.                Key             =   "dy"
  191.             EndProperty
  192.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  193.                Picture         =   "设备检修_检修记录显示.frx":1E6B6
  194.                Key             =   "yl"
  195.             EndProperty
  196.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  197.                Picture         =   "设备检修_检修记录显示.frx":1EA50
  198.                Key             =   "xg"
  199.             EndProperty
  200.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  201.                Picture         =   "设备检修_检修记录显示.frx":1EDEA
  202.                Key             =   "zh"
  203.             EndProperty
  204.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  205.                Picture         =   "设备检修_检修记录显示.frx":1F184
  206.                Key             =   "sh"
  207.             EndProperty
  208.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  209.                Picture         =   "设备检修_检修记录显示.frx":1F51E
  210.                Key             =   "bc"
  211.             EndProperty
  212.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  213.                Picture         =   "设备检修_检修记录显示.frx":1F8B8
  214.                Key             =   "fq"
  215.             EndProperty
  216.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  217.                Picture         =   "设备检修_检修记录显示.frx":1FC52
  218.                Key             =   "bz"
  219.             EndProperty
  220.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  221.                Picture         =   "设备检修_检修记录显示.frx":1FFEC
  222.                Key             =   "tc"
  223.             EndProperty
  224.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  225.                Picture         =   "设备检修_检修记录显示.frx":20386
  226.                Key             =   "bcgs"
  227.             EndProperty
  228.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  229.                Picture         =   "设备检修_检修记录显示.frx":20720
  230.                Key             =   "mrlk"
  231.             EndProperty
  232.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  233.                Picture         =   "设备检修_检修记录显示.frx":20ABA
  234.                Key             =   "xsxm"
  235.             EndProperty
  236.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  237.                Picture         =   "设备检修_检修记录显示.frx":20E54
  238.                Key             =   "first"
  239.             EndProperty
  240.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  241.                Picture         =   "设备检修_检修记录显示.frx":211EE
  242.                Key             =   "prev"
  243.             EndProperty
  244.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  245.                Picture         =   "设备检修_检修记录显示.frx":21588
  246.                Key             =   "next"
  247.             EndProperty
  248.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  249.                Picture         =   "设备检修_检修记录显示.frx":21922
  250.                Key             =   "last"
  251.             EndProperty
  252.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  253.                Picture         =   "设备检修_检修记录显示.frx":21CBC
  254.                Key             =   "xx"
  255.             EndProperty
  256.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  257.                Picture         =   "设备检修_检修记录显示.frx":22056
  258.                Key             =   "define"
  259.             EndProperty
  260.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  261.                Picture         =   "设备检修_检修记录显示.frx":223F0
  262.                Key             =   "exec"
  263.             EndProperty
  264.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  265.                Picture         =   "设备检修_检修记录显示.frx":2278A
  266.                Key             =   "xz"
  267.             EndProperty
  268.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  269.                Picture         =   "设备检修_检修记录显示.frx":22B24
  270.                Key             =   "sc"
  271.             EndProperty
  272.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  273.                Picture         =   "设备检修_检修记录显示.frx":22EBE
  274.                Key             =   "sx"
  275.             EndProperty
  276.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  277.                Picture         =   "设备检修_检修记录显示.frx":23258
  278.                Key             =   "cx"
  279.             EndProperty
  280.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  281.                Picture         =   "设备检修_检修记录显示.frx":235F2
  282.                Key             =   "zd"
  283.             EndProperty
  284.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  285.                Picture         =   "设备检修_检修记录显示.frx":2398C
  286.                Key             =   "dz"
  287.             EndProperty
  288.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  289.                Picture         =   "设备检修_检修记录显示.frx":23D26
  290.                Key             =   "ph"
  291.             EndProperty
  292.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  293.                Picture         =   "设备检修_检修记录显示.frx":240C0
  294.                Key             =   "fz"
  295.             EndProperty
  296.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  297.                Picture         =   "设备检修_检修记录显示.frx":2445A
  298.                Key             =   "dw"
  299.             EndProperty
  300.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  301.                Picture         =   "设备检修_检修记录显示.frx":247F4
  302.                Key             =   "hf"
  303.             EndProperty
  304.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  305.                Picture         =   "设备检修_检修记录显示.frx":24B8E
  306.                Key             =   "pz"
  307.             EndProperty
  308.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  309.                Picture         =   "设备检修_检修记录显示.frx":24F28
  310.                Key             =   "check"
  311.             EndProperty
  312.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  313.                Picture         =   "设备检修_检修记录显示.frx":252C2
  314.                Key             =   "qs"
  315.             EndProperty
  316.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  317.                Picture         =   "设备检修_检修记录显示.frx":2565C
  318.                Key             =   "fullcheck"
  319.             EndProperty
  320.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  321.                Picture         =   "设备检修_检修记录显示.frx":259F6
  322.                Key             =   "qq"
  323.             EndProperty
  324.             BeginProperty ListImage36 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  325.                Picture         =   "设备检修_检修记录显示.frx":25D90
  326.                Key             =   "bcw"
  327.             EndProperty
  328.             BeginProperty ListImage37 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  329.                Picture         =   "设备检修_检修记录显示.frx":2612A
  330.                Key             =   "ye"
  331.             EndProperty
  332.             BeginProperty ListImage38 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  333.                Picture         =   "设备检修_检修记录显示.frx":264C4
  334.                Key             =   ""
  335.             EndProperty
  336.             BeginProperty ListImage39 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  337.                Picture         =   "设备检修_检修记录显示.frx":2685E
  338.                Key             =   "frist"
  339.             EndProperty
  340.             BeginProperty ListImage40 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  341.                Picture         =   "设备检修_检修记录显示.frx":26BF8
  342.                Key             =   "dj"
  343.             EndProperty
  344.          EndProperty
  345.       End
  346.    End
  347.    Begin MSComctlLib.Toolbar SzToolbar 
  348.       Align           =   1  'Align Top
  349.       Height          =   570
  350.       Left            =   0
  351.       TabIndex        =   4
  352.       Top             =   0
  353.       Width           =   11820
  354.       _ExtentX        =   20849
  355.       _ExtentY        =   1005
  356.       ButtonWidth     =   820
  357.       ButtonHeight    =   953
  358.       AllowCustomize  =   0   'False
  359.       Appearance      =   1
  360.       Style           =   1
  361.       ImageList       =   "ImageList1"
  362.       _Version        =   393216
  363.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  364.          NumButtons      =   12
  365.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  366.             Caption         =   "设置"
  367.             Key             =   "ymsz"
  368.             ImageKey        =   "sz"
  369.          EndProperty
  370.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  371.             Caption         =   "打印"
  372.             Key             =   "dy"
  373.             ImageKey        =   "dy"
  374.          EndProperty
  375.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  376.             Caption         =   "预览"
  377.             Key             =   "yl"
  378.             ImageKey        =   "yl"
  379.          EndProperty
  380.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  381.             Style           =   3
  382.          EndProperty
  383.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  384.             Caption         =   "查询"
  385.             Key             =   "cx"
  386.             ImageKey        =   "cx"
  387.          EndProperty
  388.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  389.             Caption         =   "单据"
  390.             Key             =   "Bill"
  391.             ImageKey        =   "pz"
  392.          EndProperty
  393.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  394.             Style           =   3
  395.          EndProperty
  396.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  397.             Enabled         =   0   'False
  398.             Object.Visible         =   0   'False
  399.             Caption         =   "新增"
  400.             Key             =   "xz"
  401.             ImageKey        =   "xz"
  402.          EndProperty
  403.          BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  404.             Caption         =   "删除"
  405.             Key             =   "sc"
  406.             ImageKey        =   "sc"
  407.          EndProperty
  408.          BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  409.             Style           =   3
  410.          EndProperty
  411.          BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  412.             Caption         =   "帮助"
  413.             Key             =   "bz"
  414.             ImageKey        =   "bz"
  415.          EndProperty
  416.          BeginProperty Button12 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  417.             Caption         =   "退出"
  418.             Key             =   "fh"
  419.             ImageKey        =   "tc"
  420.          EndProperty
  421.       EndProperty
  422.       BorderStyle     =   1
  423.       Begin MSComctlLib.ImageList ImageList1 
  424.          Left            =   6990
  425.          Top             =   30
  426.          _ExtentX        =   1005
  427.          _ExtentY        =   1005
  428.          BackColor       =   -2147483643
  429.          ImageWidth      =   16
  430.          ImageHeight     =   16
  431.          MaskColor       =   12632256
  432.          _Version        =   393216
  433.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  434.             NumListImages   =   32
  435.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  436.                Picture         =   "设备检修_检修记录显示.frx":26F92
  437.                Key             =   "sz"
  438.             EndProperty
  439.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  440.                Picture         =   "设备检修_检修记录显示.frx":2732C
  441.                Key             =   "dy"
  442.             EndProperty
  443.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  444.                Picture         =   "设备检修_检修记录显示.frx":276C6
  445.                Key             =   "yl"
  446.             EndProperty
  447.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  448.                Picture         =   "设备检修_检修记录显示.frx":27A60
  449.                Key             =   "xg"
  450.             EndProperty
  451.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  452.                Picture         =   "设备检修_检修记录显示.frx":27DFA
  453.                Key             =   "zh"
  454.             EndProperty
  455.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  456.                Picture         =   "设备检修_检修记录显示.frx":28194
  457.                Key             =   "sh"
  458.             EndProperty
  459.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  460.                Picture         =   "设备检修_检修记录显示.frx":2852E
  461.                Key             =   "bc"
  462.             EndProperty
  463.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  464.                Picture         =   "设备检修_检修记录显示.frx":288C8
  465.                Key             =   "fq"
  466.             EndProperty
  467.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  468.                Picture         =   "设备检修_检修记录显示.frx":28C62
  469.                Key             =   "bz"
  470.             EndProperty
  471.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  472.                Picture         =   "设备检修_检修记录显示.frx":28FFC
  473.                Key             =   "tc"
  474.             EndProperty
  475.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  476.                Picture         =   "设备检修_检修记录显示.frx":29396
  477.                Key             =   "bcgs"
  478.             EndProperty
  479.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  480.                Picture         =   "设备检修_检修记录显示.frx":29730
  481.                Key             =   "mrlk"
  482.             EndProperty
  483.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  484.                Picture         =   "设备检修_检修记录显示.frx":29ACA
  485.                Key             =   "xsxm"
  486.             EndProperty
  487.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  488.                Picture         =   "设备检修_检修记录显示.frx":29E64
  489.                Key             =   "first"
  490.             EndProperty
  491.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  492.                Picture         =   "设备检修_检修记录显示.frx":2A1FE
  493.                Key             =   "prev"
  494.             EndProperty
  495.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  496.                Picture         =   "设备检修_检修记录显示.frx":2A598
  497.                Key             =   "next"
  498.             EndProperty
  499.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  500.                Picture         =   "设备检修_检修记录显示.frx":2A932
  501.                Key             =   "last"
  502.             EndProperty
  503.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  504.                Picture         =   "设备检修_检修记录显示.frx":2ACCC
  505.                Key             =   "xx"
  506.             EndProperty
  507.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  508.                Picture         =   "设备检修_检修记录显示.frx":2B066
  509.                Key             =   "define"
  510.             EndProperty
  511.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  512.                Picture         =   "设备检修_检修记录显示.frx":2B400
  513.                Key             =   "exec"
  514.             EndProperty
  515.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  516.                Picture         =   "设备检修_检修记录显示.frx":2B79A
  517.                Key             =   "xz"
  518.             EndProperty
  519.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  520.                Picture         =   "设备检修_检修记录显示.frx":2BB34
  521.                Key             =   "sc"
  522.             EndProperty
  523.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  524.                Picture         =   "设备检修_检修记录显示.frx":2BECE
  525.                Key             =   "sx"
  526.             EndProperty
  527.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  528.                Picture         =   "设备检修_检修记录显示.frx":2C268
  529.                Key             =   "cx"
  530.             EndProperty
  531.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  532.                Picture         =   "设备检修_检修记录显示.frx":2C602
  533.                Key             =   "zd"
  534.             EndProperty
  535.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  536.                Picture         =   "设备检修_检修记录显示.frx":2C99C
  537.                Key             =   "dz"
  538.             EndProperty
  539.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  540.                Picture         =   "设备检修_检修记录显示.frx":2CD36
  541.                Key             =   "ph"
  542.             EndProperty
  543.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  544.                Picture         =   "设备检修_检修记录显示.frx":2D0D0
  545.                Key             =   "fz"
  546.             EndProperty
  547.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  548.                Picture         =   "设备检修_检修记录显示.frx":2D46A
  549.                Key             =   "dw"
  550.             EndProperty
  551.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  552.                Picture         =   "设备检修_检修记录显示.frx":2D804
  553.                Key             =   "hf"
  554.             EndProperty
  555.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  556.                Picture         =   "设备检修_检修记录显示.frx":2DB9E
  557.                Key             =   "pz"
  558.             EndProperty
  559.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  560.                Picture         =   "设备检修_检修记录显示.frx":2DF38
  561.                Key             =   "check"
  562.             EndProperty
  563.          EndProperty
  564.       End
  565.    End
  566. End
  567. Attribute VB_Name = "Dev_RepairFileListForm"
  568. Attribute VB_GlobalNameSpace = False
  569. Attribute VB_Creatable = False
  570. Attribute VB_PredeclaredId = True
  571. Attribute VB_Exposed = False
  572. '**************************************************************************
  573. '*    模 块 名 称 :设备检修列表
  574. '*    功 能 描 述 :
  575. '*    程序员姓名  :王哲
  576. '*    最后修改人  :王哲
  577. '*    最后修改时间:2001/12/25
  578. '*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
  579. '**************************************************************************
  580. Dim ReportTitle As String                '报表主标题
  581. Dim Str_QueryCondi As String             '用户录入查询条件
  582. Dim Rec_BillID As New ADODB.Recordset    '用户查询单据ID动态集
  583. '以下为固定使用变量
  584. Dim Dyymctbl As New DY_Dyymsz            '打印页面窗体变量
  585. Dim GridCode As String                   '显示网格网格代码
  586. Dim GridInf() As Variant                 '整个网格设置信息
  587. Dim Tsxx As String                       '系统提示信息
  588. Dim Qslz As Long                         '网格隐藏(非操作显示)列数
  589. Dim Sjhgd As Double                      '网格数据行高度
  590. Dim Sfxshjwg As Boolean                  '是否显示合计网格
  591. Dim GridBoolean() As Boolean             '网格列信息(布尔型)
  592. Dim GridStr()  As String                 '网格列信息(字符型)
  593. Dim GridInt() As Integer                 '网格列信息(整型)
  594. Dim Szzls As Integer                     '数组总列数(网格列数-1)
  595. Private Sub Form_Resize()                '根据窗体大小来调整网格,标题栏大小(Fixed)
  596.     
  597.     On Error Resume Next
  598.     
  599.     With CxbbGrid
  600.         .Width = Me.Width - 160
  601.         .Height = Me.Height - .Top - 400
  602.     End With
  603.     
  604.     With Pic_Title
  605.         .Width = Me.Width - 160
  606.     End With
  607.     
  608.     GsToolbar.Left = Me.Width - GsToolbar.Width - 140
  609. End Sub
  610. Private Sub Form_Load()                                                   '窗体装入
  611.   
  612.     '调入打印页面设置窗体
  613.     ReportTitle = "设备检修记录列表"
  614.     XtReportCode = "Dev_RePairFileList"
  615.     Load Dyymctbl
  616.   
  617.     '调整标题栏及网格、格式工具条位置(Fixed)
  618.     Pic_Title.Left = 40
  619.     Pic_Title.Top = SzToolbar.Top + SzToolbar.Height - 10
  620.     CxbbGrid.Left = Pic_Title.Left
  621.     CxbbGrid.Top = Pic_Title.Top + Pic_Title.Height + 20
  622.  
  623.     '调 入 网 格(Fixed)
  624.     GridCode = "Dev_RePairFileList"
  625.     Call BzWgcsh(CxbbGrid, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
  626.   
  627.     Qslz = GridInf(1)
  628.     Sjhgd = GridInf(2)
  629.     Sfxshjwg = GridInf(7)
  630.     Szzls = CxbbGrid.Cols - 1
  631. End Sub
  632. Private Sub Form_Unload(Cancel As Integer)                                  '窗体卸载
  633.     '卸载条件窗体
  634.     Dev_RepairFileFindForm.UnloadCheck.Value = 1
  635.     Unload Dev_RepairFileFindForm
  636.     
  637.     '卸载打印页面设置窗体
  638.     Unload Dyymctbl
  639. End Sub
  640. Private Sub CxbbGrid_BeforeMoveColumn(ByVal Col As Long, Position As Long)           '网格列发生移动时自动交换网格索引信息
  641.     Call FnBln_RefreshArray(Col, Position, GridStr(), GridInf())
  642. End Sub
  643. Private Sub GsToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)       '网格格式调整(Fixed)
  644.     
  645.     Select Case Button.Key
  646.         Case "bcgs"                                          '保存表格格式
  647.             Call Bcwggs(CxbbGrid, GridCode, GridStr())
  648.         Case "hfmrgs"                                        '恢复默认格式
  649.             Call Hfmrgs(CxbbGrid, GridCode, GridStr())
  650.         Case "szxsxm"                                        '设置显示项目
  651.             Call Szxsxm(CxbbGrid, GridCode)
  652.     End Select
  653. End Sub
  654. Private Sub SzToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
  655.     
  656.     Select Case Button.Key
  657.         Case "ymsz"                                          '页面设置
  658.             Dyymctbl.Show 1
  659.         Case "yl"                                            '预 览
  660.             Call bbyl(True)
  661.         Case "dy"                                            '打 印
  662.             Call bbyl(False)
  663.         Case "cx"                                            '查 询
  664.             Dev_RepairFileFindForm.Show 1
  665.         Case "Bill"                                          '单 据
  666.             Call CxbbGrid_DblClick
  667.         Case "xz"                                            '新 增
  668.             Call Sub_AddBill
  669.         Case "sc"                                            '删 除
  670.             If Not Security_Log("Dev_MonthRepairFile", Xtczybm, 1, True) Then
  671.                Exit Sub
  672.             End If
  673.             Call Sub_DeleteBill
  674.         Case "bz"                                            '帮 助
  675.             Call F1bz
  676.         Case "fh"                                            '退 出
  677.             Unload Me
  678.     End Select
  679. End Sub
  680. Private Sub Timer1_Timer()                                 '在窗体激活后调入查询程序
  681.     
  682.     Timer1.Enabled = False
  683.     Xt_Wait.Show
  684.     Xt_Wait.Refresh
  685.    
  686.     '加快显示速度
  687.     CxbbGrid.Redraw = False
  688.  
  689.     '生成查询结果
  690.     Call Sub_Query(0)
  691.    
  692.     CxbbGrid.Redraw = True
  693.     
  694.     Xt_Wait.Hide
  695. End Sub
  696. Private Sub Sub_Query(Int_QueryType As Integer)                                     '生成查询结果(Define)
  697.     
  698.     '过程参数:Int_QueryType 0-"点确定按钮"查询  1-"刷新"查询
  699.     Dim Rec_Query As New ADODB.Recordset        '查询结果动态集
  700.     Dim Coljsq As Long                          '网格列计数器
  701.     Dim jsqte As Integer                        '临时动态计数器
  702.     '以下为自定义部分[
  703.  
  704.     If Int_QueryType = 0 Then   '0-"点确定按钮"查询
  705.         With Dev_RepairFileFindForm
  706.          
  707.             '生成查询条件
  708.             Str_QueryCondi = " where 1=1 "
  709.          
  710.             For jsqte = 1 To 7
  711.                 Select Case jsqte
  712.                     Case 1
  713.                         If Trim(.LrText(0).Text) <> "" Then
  714.                             Str_QueryCondi = Str_QueryCondi & " And Dev_V_DevCheckFile.Enddate>='" & Format(.LrText(0).Text, "yyyy-mm-dd") & "'"
  715.                         End If
  716.                     Case 2
  717.                         If Trim(.LrText(1).Text) <> "" Then
  718.                             Str_QueryCondi = Str_QueryCondi & " And Dev_V_DevCheckFile.Enddate<= '" & Format(.LrText(1).Text, "yyyy-mm-dd") & "'"
  719.                         End If
  720.                     Case 3
  721.                         If Trim(.LrText(2).Text) <> "" Then
  722.                             Str_QueryCondi = Str_QueryCondi & " And Dev_V_DevCheckFile.CheckCode = '" & Trim(.LrText(2).Text) & "'"
  723.                         End If
  724.                     Case 4
  725.                         If Trim(.LrText(3).Text) <> "" Then
  726.                             Str_QueryCondi = Str_QueryCondi & " and Dev_V_DevCheckFile.UseDept = '" & Trim(.LrText(3).Tag) & "'"
  727.                         End If
  728.                     Case 5
  729.                         If Trim(.LrText(4).Text) <> "" Then
  730.                             Str_QueryCondi = Str_QueryCondi & " and Dev_V_DevCheckFile.DEVID = '" & (.LrText(4).Text) & "'"
  731.                         End If
  732.                     Case 6
  733.                         Str_QueryCondi = Str_QueryCondi & " and RepairType = '" & Trim(.Combo1.Text) & "'"
  734.                     Case 7
  735.                         If Not .Opt_Check(0).Value Then
  736.                             If .Opt_Check(1).Value Then
  737.                                 Str_QueryCondi = Str_QueryCondi & " and  Dev_V_DevCheckFile.Checker='' "
  738.                             Else
  739.                                 Str_QueryCondi = Str_QueryCondi & " and  Dev_V_DevCheckFile.Checker<>'' "
  740.                             End If
  741.                         End If
  742.                 End Select
  743.             Next jsqte
  744.         End With
  745.     Else
  746.         '1-"刷新"查询
  747.         If Str_QueryCondi = "" Then
  748.             Str_QueryCondi = " where 1=2 "
  749.         End If
  750.     End If
  751.      
  752.     Sqlstr = "select Dev_V_DevCheckFile.* from Dev_V_DevCheckFile " & _
  753.             Str_QueryCondi
  754.     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  755.     With Rec_Query
  756.         CxbbGrid.Rows = CxbbGrid.FixedRows
  757.         jsqte = CxbbGrid.FixedRows
  758.         Do While Not .EOF
  759.             CxbbGrid.AddItem ""
  760.             
  761.             '[>>自定义填充内容
  762.             CxbbGrid.TextMatrix(jsqte, 0) = .Fields("DevCheckFileID")                                                   '记录ID
  763.             CxbbGrid.TextMatrix(jsqte, Sydz("001", GridStr(), Szzls)) = Trim(.Fields("RepairMainCode"))                 '计划单号
  764.             CxbbGrid.TextMatrix(jsqte, Sydz("002", GridStr(), Szzls)) = Val(.Fields("RepairSubID"))                     '子表ID
  765.             CxbbGrid.TextMatrix(jsqte, Sydz("003", GridStr(), Szzls)) = Trim(.Fields("ScenarioCode") & "")              '方案单号
  766.             CxbbGrid.TextMatrix(jsqte, Sydz("004", GridStr(), Szzls)) = Trim(.Fields("CheckCode") & "")                 '记录单号
  767.             CxbbGrid.TextMatrix(jsqte, Sydz("005", GridStr(), Szzls)) = Trim(.Fields("DEVID") & "")                     '设备编号
  768.             CxbbGrid.TextMatrix(jsqte, Sydz("006", GridStr(), Szzls)) = Trim(.Fields("Dname") & "")                     '设备名称
  769.             CxbbGrid.TextMatrix(jsqte, Sydz("007", GridStr(), Szzls)) = Trim(.Fields("Model") & "")                     '规格型号
  770.             CxbbGrid.TextMatrix(jsqte, Sydz("008", GridStr(), Szzls)) = Trim(.Fields("RepairType") & "")                '计划类型
  771.             CxbbGrid.TextMatrix(jsqte, Sydz("009", GridStr(), Szzls)) = Trim(.Fields("DeptName") & "")                  '使用部门
  772.             CxbbGrid.TextMatrix(jsqte, Sydz("010", GridStr(), Szzls)) = Trim(.Fields("PersonName") & "")                '主修人员
  773.             CxbbGrid.TextMatrix(jsqte, Sydz("011", GridStr(), Szzls)) = Format(.Fields("BeginDate"), "yyyy-mm-dd")      '开工日期
  774.             CxbbGrid.TextMatrix(jsqte, Sydz("012", GridStr(), Szzls)) = Format(.Fields("EndDate"), "yyyy-mm-dd")        '完工日期
  775.             CxbbGrid.TextMatrix(jsqte, Sydz("013", GridStr(), Szzls)) = Val(.Fields("RepairHour"))                      '修理工时
  776.             CxbbGrid.TextMatrix(jsqte, Sydz("014", GridStr(), Szzls)) = Val(.Fields("StopHour"))                        '停机台时
  777.             CxbbGrid.TextMatrix(jsqte, Sydz("015", GridStr(), Szzls)) = Val(.Fields("RepairExes"))                      '修理费用
  778.             CxbbGrid.TextMatrix(jsqte, Sydz("016", GridStr(), Szzls)) = Trim(.Fields("Repair") & "")                    '修理内容
  779.             CxbbGrid.TextMatrix(jsqte, Sydz("017", GridStr(), Szzls)) = Trim(.Fields("DealResult") & "")                '处理结果
  780.             CxbbGrid.TextMatrix(jsqte, Sydz("018", GridStr(), Szzls)) = Trim(.Fields("Maker") & "")                     '制表人
  781.             CxbbGrid.TextMatrix(jsqte, Sydz("019", GridStr(), Szzls)) = Trim(.Fields("Checker") & "")                   '审核人
  782.             CxbbGrid.TextMatrix(jsqte, Sydz("020", GridStr(), Szzls)) = Trim(.Fields("Authorizer") & "")                '批准人
  783.             '<<]
  784.      
  785.             '设置数据行高度(Fixed)
  786.             CxbbGrid.RowHeight(jsqte) = Sjhgd
  787.             
  788.             '动态集指针加1,同时将计数器加1(Fixed)
  789.             .MoveNext
  790.             jsqte = jsqte + 1
  791.         Loop
  792.     End With
  793.     ']以上为用户自定义部分
  794. End Sub
  795. Private Sub CxbbGrid_DblClick()                                              '用户双击网格调入相应单据
  796.     Dim RecTemp As New ADODB.Recordset               '临时使用动态集
  797.     '非数据行退出
  798.     If CxbbGrid.Rows = CxbbGrid.FixedRows Then Exit Sub
  799.     If CxbbGrid.Row < CxbbGrid.FixedRows Or Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0)) = 0 Then
  800.         Exit Sub
  801.     End If
  802.     Sqlstr = "SELECT DevCheckFileID From Dev_V_DevCheckFile Where DevCheckFileID=" & Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0))
  803.     Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  804.     With RecTemp
  805.         If .EOF Then
  806.             Tsxx = "此检修记录已被其他用户删除!"
  807.             Call Xtxxts(Tsxx, 0, 4)
  808.             Exit Sub
  809.         Else
  810.             '调入单据处理窗体
  811.             With Dev_RepairFileEditForm
  812.                 
  813.                 '填充查询单据标识
  814.                 XT_BillID = CxbbGrid.TextMatrix(CxbbGrid.Row, 0)
  815.                 Xtcdcsfz = Str_QueryCondi
  816.                 
  817.                 '设置单据处理为列表查询(修改)状态
  818.                 Xtcdcs = "2"
  819.                 .Show 1
  820.             End With
  821.             
  822.             If Xtfhcs = "1" Then
  823.                 Tsxx = "检修记录发生变化,是否刷新检修记录列表?"
  824.                 Yhanswer = Xtxxts(Tsxx, 2, 2)
  825.                 If Yhanswer = 1 Then
  826.                     Xt_Wait.Show
  827.                     Xt_Wait.Refresh
  828.                     
  829.                     '加快显示速度
  830.                     CxbbGrid.Redraw = False
  831.                     '生成查询结果
  832.                     Call Sub_Query(1)
  833.    
  834.                     CxbbGrid.Redraw = True
  835.     
  836.                     Xt_Wait.Hide
  837.                 End If
  838.             End If
  839.         End If
  840.     End With
  841. End Sub
  842. Private Sub Sub_AddBill()                                              '新增单据
  843.     
  844.     With Dev_RepairFileEditForm
  845.        
  846.         '设置单据处理为填制单据状态
  847.         Xtcdcs = "1"
  848.          
  849.         .Show 1
  850.     End With
  851.        
  852.     If Xtfhcs = "1" Then
  853.         Tsxx = "检修记录发生变化,是否刷新检修记录列表?"
  854.         Yhanswer = Xtxxts(Tsxx, 2, 2)
  855.         
  856.         If Yhanswer = 1 Then
  857.             Xt_Wait.Show
  858.             Xt_Wait.Refresh
  859.             
  860.             '加快显示速度
  861.             CxbbGrid.Redraw = False
  862.             
  863.             '生成查询结果
  864.             Call Sub_Query(1)
  865.             
  866.             CxbbGrid.Redraw = True
  867.             Xt_Wait.Hide
  868.         End If
  869.     End If
  870.    
  871. End Sub
  872. Private Sub Sub_DeleteBill()                                            '删除选中当前单据
  873.     
  874.     Dim YAnswer As Integer
  875.     Dim Lng_BillID As Long           '单据标识
  876.   
  877.     '非数据行退出
  878.     If CxbbGrid.Row < CxbbGrid.FixedRows Or Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0)) = 0 Then
  879.         Exit Sub
  880.     End If
  881.   
  882.     Tsxx = "请确认是否删除当前单据?"
  883.     Yhanswer = Xtxxts(Tsxx, 2, 2)
  884.   
  885.     If Yhanswer = 1 Then
  886.   
  887.         '1.判断当前单据是否允许删除
  888.         If Not Fun_AllowDelete Then
  889.             Exit Sub
  890.         End If
  891.   
  892.         '2.删除单据所有内容
  893.         Lng_BillID = Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0))
  894.       
  895.         On Error GoTo Swcwcl
  896.     
  897.         Cw_DataEnvi.DataConnect.BeginTrans
  898.         Cw_DataEnvi.DataConnect.Execute ("Delete Dev_DevCheckFile Where DevCheckFileID=" & Lng_BillID)
  899.         Set TempRec = Cw_DataEnvi.DataConnect.Execute("Select RepairMainID from Dev_RepairMain where RepairMainCode='" & Trim(CxbbGrid.TextMatrix(CxbbGrid.Row, 1)) & "'")
  900.         Cw_DataEnvi.DataConnect.Execute ("update Dev_RepairSub set FileFlag=0,RealBeginDate=Null,RealEndDate=NULL,RealMoney=0 where RepairMainID=" & Val(TempRec.Fields("RepairMainID")) & " and RepairSubID=" & Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 2)))
  901.         If Trim(CxbbGrid.TextMatrix(CxbbGrid.Row, 3)) <> "" Then
  902.         Cw_DataEnvi.DataConnect.Execute ("update Dev_CheckScenario Set NoteFlag=0 where ScenarioCode='" & Trim(CxbbGrid.TextMatrix(CxbbGrid.Row, 3)) & "'")
  903.         End If
  904.         Cw_DataEnvi.DataConnect.CommitTrans
  905.       
  906.         '删除网格中单据数据
  907.         CxbbGrid.RemoveItem (CxbbGrid.Row)
  908.     Else
  909.         Exit Sub
  910.     End If
  911.   
  912.     Exit Sub
  913. Swcwcl:
  914.     Cw_DataEnvi.DataConnect.RollbackTrans
  915.     Tsxx = "删除单据过程中出现未知错误,程序自动恢复删除前状态!"
  916.     Call Xtxxts(Tsxx, 0, 1)
  917.     Exit Sub
  918.   
  919. End Sub
  920. Private Function Fun_AllowDelete() As Boolean                                        '判断当前单据是否允许删除
  921.   
  922.     Dim RecTemp As New ADODB.Recordset     '临时使用动态集
  923.     Dim Sqlstr As String                   '查询字符串
  924.     Dim Lng_BillID As Long                 '单据ID
  925.   
  926.     Lng_BillID = Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0))
  927.     Sqlstr = "Select Checker From Dev_DevCheckFile Where DevCheckFileID=" & Lng_BillID
  928.     Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  929.     With RecTemp
  930.         If Not .EOF Then
  931.             If Trim(.Fields("Checker") & "") <> "" Then
  932.                 Tsxx = "该记录已审核确认,不能删除!"
  933.                 Call Xtxxts(Tsxx, 0, 4)
  934.                 Exit Function
  935.             End If
  936.             End If
  937.     End With
  938.     Fun_AllowDelete = True
  939.   
  940. End Function
  941. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  942.     
  943.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  944.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  945.     Bbxbtgs = 1                                          '报 表 小 标 题 行 数
  946.     Bbbwhgs = 0                                          '报 表 表 尾 行 数
  947.     
  948.     ReDim Bbxbt(1 To Bbxbtgs)
  949.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  950.     If Bbbwhgs <> 0 Then
  951.         ReDim Bbbwh(1 To Bbbwhgs)
  952.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  953.     End If
  954.     
  955.     Bbzbt = ReportTitle
  956.     Bbxbt(1) = ""
  957.     bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  958.     Call Scyxsjb(CxbbGrid)                               '生成报表数据
  959.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  960.     If Not bbylte Then
  961.         Unload DY_Tybbyldy
  962.     End If
  963. End Sub