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