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

企业管理

开发平台:

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_TrainAccount 
  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.       BackColor       =   &H00FFFFFF&
  54.       Height          =   780
  55.       Left            =   0
  56.       Picture         =   "铁运统计_铁运台帐.frx":1042
  57.       ScaleHeight     =   720
  58.       ScaleWidth      =   11715
  59.       TabIndex        =   1
  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        =   2
  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        =   0
  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":1FAC4
  194.                Key             =   "sz"
  195.             EndProperty
  196.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  197.                Picture         =   "铁运统计_铁运台帐.frx":1FE5E
  198.                Key             =   "dy"
  199.             EndProperty
  200.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  201.                Picture         =   "铁运统计_铁运台帐.frx":201F8
  202.                Key             =   "yl"
  203.             EndProperty
  204.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  205.                Picture         =   "铁运统计_铁运台帐.frx":20592
  206.                Key             =   "xg"
  207.             EndProperty
  208.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  209.                Picture         =   "铁运统计_铁运台帐.frx":2092C
  210.                Key             =   "zh"
  211.             EndProperty
  212.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  213.                Picture         =   "铁运统计_铁运台帐.frx":20CC6
  214.                Key             =   "sh"
  215.             EndProperty
  216.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  217.                Picture         =   "铁运统计_铁运台帐.frx":21060
  218.                Key             =   "bc"
  219.             EndProperty
  220.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  221.                Picture         =   "铁运统计_铁运台帐.frx":213FA
  222.                Key             =   "fq"
  223.             EndProperty
  224.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  225.                Picture         =   "铁运统计_铁运台帐.frx":21794
  226.                Key             =   "bz"
  227.             EndProperty
  228.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  229.                Picture         =   "铁运统计_铁运台帐.frx":21B2E
  230.                Key             =   "tc"
  231.             EndProperty
  232.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  233.                Picture         =   "铁运统计_铁运台帐.frx":21EC8
  234.                Key             =   "bcgs"
  235.             EndProperty
  236.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  237.                Picture         =   "铁运统计_铁运台帐.frx":22262
  238.                Key             =   "mrlk"
  239.             EndProperty
  240.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  241.                Picture         =   "铁运统计_铁运台帐.frx":225FC
  242.                Key             =   "xsxm"
  243.             EndProperty
  244.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  245.                Picture         =   "铁运统计_铁运台帐.frx":22996
  246.                Key             =   "first"
  247.             EndProperty
  248.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  249.                Picture         =   "铁运统计_铁运台帐.frx":22D30
  250.                Key             =   "prev"
  251.             EndProperty
  252.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  253.                Picture         =   "铁运统计_铁运台帐.frx":230CA
  254.                Key             =   "next"
  255.             EndProperty
  256.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  257.                Picture         =   "铁运统计_铁运台帐.frx":23464
  258.                Key             =   "last"
  259.             EndProperty
  260.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  261.                Picture         =   "铁运统计_铁运台帐.frx":237FE
  262.                Key             =   "xx"
  263.             EndProperty
  264.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  265.                Picture         =   "铁运统计_铁运台帐.frx":23B98
  266.                Key             =   "define"
  267.             EndProperty
  268.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  269.                Picture         =   "铁运统计_铁运台帐.frx":23F32
  270.                Key             =   "exec"
  271.             EndProperty
  272.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  273.                Picture         =   "铁运统计_铁运台帐.frx":242CC
  274.                Key             =   "xz"
  275.             EndProperty
  276.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  277.                Picture         =   "铁运统计_铁运台帐.frx":24666
  278.                Key             =   "sc"
  279.             EndProperty
  280.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  281.                Picture         =   "铁运统计_铁运台帐.frx":24A00
  282.                Key             =   "sx"
  283.             EndProperty
  284.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  285.                Picture         =   "铁运统计_铁运台帐.frx":24D9A
  286.                Key             =   "cx"
  287.             EndProperty
  288.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  289.                Picture         =   "铁运统计_铁运台帐.frx":25134
  290.                Key             =   "zd"
  291.             EndProperty
  292.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  293.                Picture         =   "铁运统计_铁运台帐.frx":254CE
  294.                Key             =   "dz"
  295.             EndProperty
  296.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  297.                Picture         =   "铁运统计_铁运台帐.frx":25868
  298.                Key             =   "ph"
  299.             EndProperty
  300.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  301.                Picture         =   "铁运统计_铁运台帐.frx":25C02
  302.                Key             =   "fz"
  303.             EndProperty
  304.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  305.                Picture         =   "铁运统计_铁运台帐.frx":25F9C
  306.                Key             =   "dw"
  307.             EndProperty
  308.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  309.                Picture         =   "铁运统计_铁运台帐.frx":26336
  310.                Key             =   "hf"
  311.             EndProperty
  312.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  313.                Picture         =   "铁运统计_铁运台帐.frx":266D0
  314.                Key             =   "pz"
  315.             EndProperty
  316.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  317.                Picture         =   "铁运统计_铁运台帐.frx":26A6A
  318.                Key             =   "check"
  319.             EndProperty
  320.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  321.                Picture         =   "铁运统计_铁运台帐.frx":26E04
  322.                Key             =   "qs"
  323.             EndProperty
  324.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  325.                Picture         =   "铁运统计_铁运台帐.frx":2719E
  326.                Key             =   "fullcheck"
  327.             EndProperty
  328.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  329.                Picture         =   "铁运统计_铁运台帐.frx":27538
  330.                Key             =   "qq"
  331.             EndProperty
  332.             BeginProperty ListImage36 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  333.                Picture         =   "铁运统计_铁运台帐.frx":278D2
  334.                Key             =   "bcw"
  335.             EndProperty
  336.             BeginProperty ListImage37 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  337.                Picture         =   "铁运统计_铁运台帐.frx":27C6C
  338.                Key             =   "ye"
  339.             EndProperty
  340.             BeginProperty ListImage38 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  341.                Picture         =   "铁运统计_铁运台帐.frx":28006
  342.                Key             =   ""
  343.             EndProperty
  344.             BeginProperty ListImage39 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  345.                Picture         =   "铁运统计_铁运台帐.frx":283A0
  346.                Key             =   "frist"
  347.             EndProperty
  348.             BeginProperty ListImage40 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  349.                Picture         =   "铁运统计_铁运台帐.frx":2873A
  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":28AD4
  425.                Key             =   "sz"
  426.             EndProperty
  427.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  428.                Picture         =   "铁运统计_铁运台帐.frx":28E6E
  429.                Key             =   "dy"
  430.             EndProperty
  431.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  432.                Picture         =   "铁运统计_铁运台帐.frx":29208
  433.                Key             =   "yl"
  434.             EndProperty
  435.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  436.                Picture         =   "铁运统计_铁运台帐.frx":295A2
  437.                Key             =   "xg"
  438.             EndProperty
  439.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  440.                Picture         =   "铁运统计_铁运台帐.frx":2993C
  441.                Key             =   "zh"
  442.             EndProperty
  443.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  444.                Picture         =   "铁运统计_铁运台帐.frx":29CD6
  445.                Key             =   "sh"
  446.             EndProperty
  447.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  448.                Picture         =   "铁运统计_铁运台帐.frx":2A070
  449.                Key             =   "bc"
  450.             EndProperty
  451.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  452.                Picture         =   "铁运统计_铁运台帐.frx":2A40A
  453.                Key             =   "fq"
  454.             EndProperty
  455.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  456.                Picture         =   "铁运统计_铁运台帐.frx":2A7A4
  457.                Key             =   "bz"
  458.             EndProperty
  459.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  460.                Picture         =   "铁运统计_铁运台帐.frx":2AB3E
  461.                Key             =   "tc"
  462.             EndProperty
  463.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  464.                Picture         =   "铁运统计_铁运台帐.frx":2AED8
  465.                Key             =   "bcgs"
  466.             EndProperty
  467.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  468.                Picture         =   "铁运统计_铁运台帐.frx":2B272
  469.                Key             =   "mrlk"
  470.             EndProperty
  471.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  472.                Picture         =   "铁运统计_铁运台帐.frx":2B60C
  473.                Key             =   "xsxm"
  474.             EndProperty
  475.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  476.                Picture         =   "铁运统计_铁运台帐.frx":2B9A6
  477.                Key             =   "first"
  478.             EndProperty
  479.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  480.                Picture         =   "铁运统计_铁运台帐.frx":2BD40
  481.                Key             =   "prev"
  482.             EndProperty
  483.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  484.                Picture         =   "铁运统计_铁运台帐.frx":2C0DA
  485.                Key             =   "next"
  486.             EndProperty
  487.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  488.                Picture         =   "铁运统计_铁运台帐.frx":2C474
  489.                Key             =   "last"
  490.             EndProperty
  491.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  492.                Picture         =   "铁运统计_铁运台帐.frx":2C80E
  493.                Key             =   "xx"
  494.             EndProperty
  495.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  496.                Picture         =   "铁运统计_铁运台帐.frx":2CBA8
  497.                Key             =   "define"
  498.             EndProperty
  499.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  500.                Picture         =   "铁运统计_铁运台帐.frx":2CF42
  501.                Key             =   "exec"
  502.             EndProperty
  503.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  504.                Picture         =   "铁运统计_铁运台帐.frx":2D2DC
  505.                Key             =   "xz"
  506.             EndProperty
  507.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  508.                Picture         =   "铁运统计_铁运台帐.frx":2D676
  509.                Key             =   "sc"
  510.             EndProperty
  511.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  512.                Picture         =   "铁运统计_铁运台帐.frx":2DA10
  513.                Key             =   "sx"
  514.             EndProperty
  515.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  516.                Picture         =   "铁运统计_铁运台帐.frx":2DDAA
  517.                Key             =   "cx"
  518.             EndProperty
  519.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  520.                Picture         =   "铁运统计_铁运台帐.frx":2E144
  521.                Key             =   "zd"
  522.             EndProperty
  523.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  524.                Picture         =   "铁运统计_铁运台帐.frx":2E4DE
  525.                Key             =   "dz"
  526.             EndProperty
  527.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  528.                Picture         =   "铁运统计_铁运台帐.frx":2E878
  529.                Key             =   "ph"
  530.             EndProperty
  531.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  532.                Picture         =   "铁运统计_铁运台帐.frx":2EC12
  533.                Key             =   "fz"
  534.             EndProperty
  535.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  536.                Picture         =   "铁运统计_铁运台帐.frx":2EFAC
  537.                Key             =   "dw"
  538.             EndProperty
  539.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  540.                Picture         =   "铁运统计_铁运台帐.frx":2F346
  541.                Key             =   "hf"
  542.             EndProperty
  543.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  544.                Picture         =   "铁运统计_铁运台帐.frx":2F6E0
  545.                Key             =   "pz"
  546.             EndProperty
  547.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  548.                Picture         =   "铁运统计_铁运台帐.frx":2FA7A
  549.                Key             =   "check"
  550.             EndProperty
  551.          EndProperty
  552.       End
  553.    End
  554. End
  555. Attribute VB_Name = "Tr_TrainAccount"
  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_trainaccount"
  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_trainaccount"
  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_TrainAccountcxtj.UnloadCheck.Value = 1
  620.     Unload Tr_TrainAccountcxtj
  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_TrainAccountcxtj.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_TrainAccountcxtj
  681.         Str_QueryCondi = "select * from (select * from Tr_V_TrainAccount_In union select * from Tr_V_TrainAccount_out) as a where 1=1 "
  682.         
  683.         If Trim(.LrText(0).Text) <> "" Then
  684.             Str_QueryCondi = Str_QueryCondi & " And Invoicetime>=' " & Trim(.LrText(0).Text) & "'"
  685.         End If
  686.         If Trim(.LrText(1).Text) <> "" Then
  687.             Str_QueryCondi = Str_QueryCondi & " And Invoicetime<= ' " & Trim(.LrText(1).Text) & "'"
  688.         End If
  689.         
  690.         If Trim(.LrText(2).Text) <> "" Then
  691.             Str_QueryCondi = Str_QueryCondi & " and vehiclenum = '" & Trim(.LrText(2).Text) & "'"
  692.         End If
  693.         If Trim(.LrText(3).Text) <> "" Then
  694.             Str_QueryCondi = Str_QueryCondi & " and CustCode = '" & Trim(.LrText(3).Tag) & "'"
  695.         End If
  696.         If Trim(.LrText(4).Text) <> "" Then
  697.             Str_QueryCondi = Str_QueryCondi & " and mnumber = '" & Trim(.LrText(4).Text) & "'"
  698.         End If
  699.         If Trim(.LrText(5).Text) <> "" Then
  700.             Str_QueryCondi = Str_QueryCondi & " and typename = '" & Trim(.LrText(5).Tag) & "'"
  701.         End If
  702.     End With
  703.  
  704.      Str_QueryCondi = Str_QueryCondi & " order by invoicenum,invoicetime"
  705.     
  706.      Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(Str_QueryCondi)
  707.      With Rec_Query
  708.       CxbbGrid.Rows = CxbbGrid.FixedRows
  709.       CxbbGrid.Rows = CxbbGrid.FixedRows + .RecordCount
  710.       CxbbGrid.Redraw = False
  711.       jsqte = CxbbGrid.FixedRows
  712.       CxbbGrid.ExplorerBar = flexExMove
  713.       Do While Not .EOF
  714.          If jsqte >= CxbbGrid.Rows Then
  715.             CxbbGrid.AddItem ""
  716.          End If
  717.      
  718.          CxbbGrid.TextMatrix(jsqte, Sydz("001", GridStr(), szzls)) = Trim(.Fields("invoicenum") & "")
  719.          CxbbGrid.TextMatrix(jsqte, Sydz("002", GridStr(), szzls)) = Format(.Fields("invoicetime") & "", "yyyy-mm-dd hh:mm")
  720.          CxbbGrid.TextMatrix(jsqte, Sydz("003", GridStr(), szzls)) = Trim(.Fields("vehiclenum") & "")
  721.          CxbbGrid.TextMatrix(jsqte, Sydz("004", GridStr(), szzls)) = Trim(.Fields("custname") & "")
  722.          CxbbGrid.TextMatrix(jsqte, Sydz("005", GridStr(), szzls)) = Trim(.Fields("station") & "")
  723.          CxbbGrid.TextMatrix(jsqte, Sydz("006", GridStr(), szzls)) = Trim(.Fields("mname") & "")
  724.          CxbbGrid.TextMatrix(jsqte, Sydz("007", GridStr(), szzls)) = Trim(.Fields("model") & "")
  725.          CxbbGrid.TextMatrix(jsqte, Sydz("008", GridStr(), szzls)) = Trim(.Fields("piece") & "")
  726.          CxbbGrid.TextMatrix(jsqte, Sydz("009", GridStr(), szzls)) = Trim(.Fields("quantity") & "")
  727.          CxbbGrid.TextMatrix(jsqte, Sydz("010", GridStr(), szzls)) = Format(.Fields("holdtime") & "", "yyyy-mm-dd hh:mm")
  728.          CxbbGrid.TextMatrix(jsqte, Sydz("011", GridStr(), szzls)) = Format(.Fields("holdendtime") & "", "yyyy-mm-dd hh:mm")
  729.          CxbbGrid.TextMatrix(jsqte, Sydz("012", GridStr(), szzls)) = Format(.Fields("arrivetime") & "", "yyyy-mm-dd hh:mm")
  730.          CxbbGrid.TextMatrix(jsqte, Sydz("013", GridStr(), szzls)) = Trim(.Fields("applycode") & "")
  731.          CxbbGrid.TextMatrix(jsqte, Sydz("014", GridStr(), szzls)) = Trim(.Fields("typename") & "")
  732.          jsqte = jsqte + 1
  733.          .MoveNext
  734.        Loop
  735.     End With
  736.     ']以上为用户自定义部分
  737.    
  738. End Sub
  739. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  740.     
  741.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  742.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  743.     Bbxbtgs = 1                                          '报 表 小 标 题 行 数
  744.     Bbbwhgs = 0                                          '报 表 表 尾 行 数
  745.     ReDim Bbxbt(1 To Bbxbtgs)
  746.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  747.     If Bbbwhgs <> 0 Then
  748.         ReDim Bbbwh(1 To Bbbwhgs)
  749.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  750.     End If
  751.     Bbzbt = ReportTitle
  752.     Bbxbt(1) = ""
  753.     bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  754.     Call Scyxsjb(CxbbGrid)                               '生成报表数据
  755.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  756.     If Not bbylte Then
  757.         Unload DY_Tybbyldy
  758.     End If
  759. End Sub