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

企业管理

开发平台:

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