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

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{BEEECC20-4D5F-4F8B-BFDC-5D9B6FBDE09D}#1.0#0"; "vsflex8.ocx"
  3. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
  4. Begin VB.Form YH_FrmDzdCx 
  5.    Caption         =   "银行对帐单查询"
  6.    ClientHeight    =   6915
  7.    ClientLeft      =   60
  8.    ClientTop       =   345
  9.    ClientWidth     =   7350
  10.    Icon            =   "银行_银行对帐单查询.frx":0000
  11.    LinkTopic       =   "Form1"
  12.    MDIChild        =   -1  'True
  13.    ScaleHeight     =   6915
  14.    ScaleWidth      =   7350
  15.    Begin VB.PictureBox Pic_Title 
  16.       BackColor       =   &H00FFFFFF&
  17.       Height          =   1065
  18.       Left            =   30
  19.       Picture         =   "银行_银行对帐单查询.frx":1042
  20.       ScaleHeight     =   1005
  21.       ScaleWidth      =   11850
  22.       TabIndex        =   0
  23.       Top             =   570
  24.       Width           =   11910
  25.       Begin VB.Label Lab_TitleText 
  26.          AutoSize        =   -1  'True
  27.          BackStyle       =   0  'Transparent
  28.          ForeColor       =   &H00FF0000&
  29.          Height          =   180
  30.          Index           =   0
  31.          Left            =   3060
  32.          TabIndex        =   16
  33.          Top             =   240
  34.          Width           =   90
  35.       End
  36.       Begin VB.Label TsLabel 
  37.          AutoSize        =   -1  'True
  38.          BackColor       =   &H80000018&
  39.          BackStyle       =   0  'Transparent
  40.          Caption         =   "银行对帐单查询"
  41.          BeginProperty Font 
  42.             Name            =   "宋体"
  43.             Size            =   14.25
  44.             Charset         =   134
  45.             Weight          =   700
  46.             Underline       =   0   'False
  47.             Italic          =   0   'False
  48.             Strikethrough   =   0   'False
  49.          EndProperty
  50.          ForeColor       =   &H00000000&
  51.          Height          =   285
  52.          Index           =   4
  53.          Left            =   495
  54.          TabIndex        =   15
  55.          Top             =   150
  56.          Width           =   2100
  57.       End
  58.       Begin VB.Label TsLabel 
  59.          AutoSize        =   -1  'True
  60.          BackStyle       =   0  'Transparent
  61.          Caption         =   "会计期间:"
  62.          Height          =   180
  63.          Index           =   9
  64.          Left            =   6090
  65.          TabIndex        =   14
  66.          Top             =   750
  67.          Width           =   810
  68.       End
  69.       Begin VB.Label Label1 
  70.          AutoSize        =   -1  'True
  71.          BackStyle       =   0  'Transparent
  72.          Height          =   180
  73.          Left            =   6900
  74.          TabIndex        =   13
  75.          Top             =   750
  76.          Width           =   90
  77.       End
  78.       Begin VB.Label Label2 
  79.          AutoSize        =   -1  'True
  80.          BackStyle       =   0  'Transparent
  81.          Height          =   180
  82.          Index           =   0
  83.          Left            =   9900
  84.          TabIndex        =   12
  85.          Top             =   750
  86.          Width           =   90
  87.       End
  88.       Begin VB.Label Lab_kjkm 
  89.          Appearance      =   0  'Flat
  90.          AutoSize        =   -1  'True
  91.          BackColor       =   &H80000005&
  92.          BackStyle       =   0  'Transparent
  93.          Caption         =   "承前余额:"
  94.          ForeColor       =   &H00000000&
  95.          Height          =   180
  96.          Index           =   1
  97.          Left            =   9000
  98.          TabIndex        =   11
  99.          Top             =   750
  100.          Width           =   810
  101.       End
  102.       Begin VB.Label Lab_Row 
  103.          Alignment       =   2  'Center
  104.          Appearance      =   0  'Flat
  105.          AutoSize        =   -1  'True
  106.          BackColor       =   &H80000005&
  107.          BackStyle       =   0  'Transparent
  108.          ForeColor       =   &H00000000&
  109.          Height          =   180
  110.          Left            =   10155
  111.          TabIndex        =   10
  112.          Top             =   202
  113.          Width           =   90
  114.       End
  115.       Begin VB.Label TsLabel 
  116.          AutoSize        =   -1  'True
  117.          BackStyle       =   0  'Transparent
  118.          Caption         =   "(第"
  119.          Height          =   180
  120.          Index           =   11
  121.          Left            =   9750
  122.          TabIndex        =   9
  123.          Top             =   202
  124.          Width           =   270
  125.       End
  126.       Begin VB.Label TsLabel 
  127.          AutoSize        =   -1  'True
  128.          BackStyle       =   0  'Transparent
  129.          Caption         =   "行)"
  130.          Height          =   180
  131.          Index           =   12
  132.          Left            =   10365
  133.          TabIndex        =   8
  134.          Top             =   202
  135.          Width           =   270
  136.       End
  137.       Begin VB.Label TsLabel 
  138.          AutoSize        =   -1  'True
  139.          BackStyle       =   0  'Transparent
  140.          Caption         =   "当前记录"
  141.          Height          =   180
  142.          Index           =   13
  143.          Left            =   9000
  144.          TabIndex        =   7
  145.          Top             =   202
  146.          Width           =   720
  147.       End
  148.       Begin VB.Label Lab_kjkm 
  149.          Appearance      =   0  'Flat
  150.          AutoSize        =   -1  'True
  151.          BackColor       =   &H80000005&
  152.          BackStyle       =   0  'Transparent
  153.          Caption         =   "银行科目:"
  154.          ForeColor       =   &H00000000&
  155.          Height          =   180
  156.          Index           =   0
  157.          Left            =   795
  158.          TabIndex        =   6
  159.          Top             =   750
  160.          Width           =   810
  161.       End
  162.       Begin VB.Label Lab_kjbm 
  163.          AutoSize        =   -1  'True
  164.          BackStyle       =   0  'Transparent
  165.          Height          =   180
  166.          Left            =   1680
  167.          TabIndex        =   5
  168.          Top             =   750
  169.          Width           =   90
  170.       End
  171.       Begin VB.Label Lab_Bill 
  172.          Appearance      =   0  'Flat
  173.          AutoSize        =   -1  'True
  174.          BackColor       =   &H80000005&
  175.          BackStyle       =   0  'Transparent
  176.          Caption         =   "已勾对"
  177.          ForeColor       =   &H00000000&
  178.          Height          =   180
  179.          Index           =   0
  180.          Left            =   6555
  181.          TabIndex        =   4
  182.          Top             =   202
  183.          Width           =   540
  184.       End
  185.       Begin VB.Label Label3 
  186.          Appearance      =   0  'Flat
  187.          BackColor       =   &H00E9FC61&
  188.          BorderStyle     =   1  'Fixed Single
  189.          ForeColor       =   &H80000008&
  190.          Height          =   180
  191.          Index           =   0
  192.          Left            =   6090
  193.          TabIndex        =   3
  194.          Top             =   202
  195.          Width           =   390
  196.       End
  197.       Begin VB.Label Lab_Bill 
  198.          Appearance      =   0  'Flat
  199.          AutoSize        =   -1  'True
  200.          BackColor       =   &H80000005&
  201.          BackStyle       =   0  'Transparent
  202.          Caption         =   "未勾对"
  203.          ForeColor       =   &H00000000&
  204.          Height          =   180
  205.          Index           =   1
  206.          Left            =   7695
  207.          TabIndex        =   2
  208.          Top             =   202
  209.          Width           =   540
  210.       End
  211.       Begin VB.Label Label3 
  212.          Appearance      =   0  'Flat
  213.          BackColor       =   &H80000005&
  214.          BorderStyle     =   1  'Fixed Single
  215.          ForeColor       =   &H80000008&
  216.          Height          =   180
  217.          Index           =   1
  218.          Left            =   7215
  219.          TabIndex        =   1
  220.          Top             =   202
  221.          Width           =   390
  222.       End
  223.    End
  224.    Begin MSComctlLib.Toolbar Tlb_Action 
  225.       Align           =   1  'Align Top
  226.       Height          =   555
  227.       Left            =   0
  228.       TabIndex        =   17
  229.       Top             =   0
  230.       Width           =   7350
  231.       _ExtentX        =   12965
  232.       _ExtentY        =   979
  233.       ButtonWidth     =   820
  234.       ButtonHeight    =   926
  235.       AllowCustomize  =   0   'False
  236.       Wrappable       =   0   'False
  237.       Appearance      =   1
  238.       Style           =   1
  239.       ImageList       =   "ImageList1"
  240.       _Version        =   393216
  241.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  242.          NumButtons      =   9
  243.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  244.             Caption         =   "设置"
  245.             Key             =   "ymsz"
  246.             Object.ToolTipText     =   "打印页面设置"
  247.             ImageKey        =   "sz"
  248.          EndProperty
  249.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  250.             Caption         =   "打印"
  251.             Key             =   "dy"
  252.             Object.ToolTipText     =   "打印当前单据或Ctrl+P"
  253.             ImageKey        =   "dy"
  254.          EndProperty
  255.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  256.             Caption         =   "预览"
  257.             Key             =   "yl"
  258.             ImageKey        =   "yl"
  259.          EndProperty
  260.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  261.             Style           =   3
  262.          EndProperty
  263.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  264.             Caption         =   "查询"
  265.             Key             =   "cx"
  266.             ImageKey        =   "cx"
  267.          EndProperty
  268.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  269.             Caption         =   "选择"
  270.             Key             =   "Sel"
  271.             ImageIndex      =   19
  272.          EndProperty
  273.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  274.             Style           =   3
  275.          EndProperty
  276.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  277.             Caption         =   "帮助"
  278.             Key             =   "bz"
  279.             ImageKey        =   "bz"
  280.          EndProperty
  281.          BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  282.             Caption         =   "退出"
  283.             Key             =   "fh"
  284.             ImageKey        =   "tc"
  285.          EndProperty
  286.       EndProperty
  287.       BorderStyle     =   1
  288.       Begin MSComctlLib.Toolbar GsToolbar 
  289.          Height          =   540
  290.          Left            =   9390
  291.          TabIndex        =   22
  292.          Top             =   0
  293.          Width           =   2475
  294.          _ExtentX        =   4366
  295.          _ExtentY        =   953
  296.          ButtonWidth     =   1455
  297.          ButtonHeight    =   953
  298.          AllowCustomize  =   0   'False
  299.          Appearance      =   1
  300.          Style           =   1
  301.          ImageList       =   "ImageList1"
  302.          _Version        =   393216
  303.          BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  304.             NumButtons      =   3
  305.             BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  306.                Caption         =   "保存格式"
  307.                Key             =   "bcgs"
  308.                ImageKey        =   "bcgs"
  309.             EndProperty
  310.             BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  311.                Caption         =   "默认列宽"
  312.                Key             =   "hfmrgs"
  313.                ImageKey        =   "mrlk"
  314.             EndProperty
  315.             BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  316.                Caption         =   "显示项目"
  317.                Key             =   "szxsxm"
  318.                ImageKey        =   "xsxm"
  319.             EndProperty
  320.          EndProperty
  321.       End
  322.       Begin MSComctlLib.ImageList ImageList1 
  323.          Left            =   6300
  324.          Top             =   0
  325.          _ExtentX        =   1005
  326.          _ExtentY        =   1005
  327.          BackColor       =   -2147483643
  328.          ImageWidth      =   16
  329.          ImageHeight     =   16
  330.          MaskColor       =   12632256
  331.          _Version        =   393216
  332.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  333.             NumListImages   =   32
  334.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  335.                Picture         =   "银行_银行对帐单查询.frx":35106
  336.                Key             =   "sz"
  337.             EndProperty
  338.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  339.                Picture         =   "银行_银行对帐单查询.frx":354A0
  340.                Key             =   "dy"
  341.             EndProperty
  342.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  343.                Picture         =   "银行_银行对帐单查询.frx":3583A
  344.                Key             =   "yl"
  345.             EndProperty
  346.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  347.                Picture         =   "银行_银行对帐单查询.frx":35BD4
  348.                Key             =   "xg"
  349.             EndProperty
  350.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  351.                Picture         =   "银行_银行对帐单查询.frx":35F6E
  352.                Key             =   "zh"
  353.             EndProperty
  354.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  355.                Picture         =   "银行_银行对帐单查询.frx":36308
  356.                Key             =   "sh"
  357.             EndProperty
  358.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  359.                Picture         =   "银行_银行对帐单查询.frx":366A2
  360.                Key             =   "bc"
  361.             EndProperty
  362.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  363.                Picture         =   "银行_银行对帐单查询.frx":36A3C
  364.                Key             =   "fq"
  365.             EndProperty
  366.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  367.                Picture         =   "银行_银行对帐单查询.frx":36DD6
  368.                Key             =   "bz"
  369.             EndProperty
  370.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  371.                Picture         =   "银行_银行对帐单查询.frx":37170
  372.                Key             =   "tc"
  373.             EndProperty
  374.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  375.                Picture         =   "银行_银行对帐单查询.frx":3750A
  376.                Key             =   "bcgs"
  377.             EndProperty
  378.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  379.                Picture         =   "银行_银行对帐单查询.frx":378A4
  380.                Key             =   "mrlk"
  381.             EndProperty
  382.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  383.                Picture         =   "银行_银行对帐单查询.frx":37C3E
  384.                Key             =   "xsxm"
  385.             EndProperty
  386.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  387.                Picture         =   "银行_银行对帐单查询.frx":37FD8
  388.                Key             =   "first"
  389.             EndProperty
  390.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  391.                Picture         =   "银行_银行对帐单查询.frx":38372
  392.                Key             =   "prev"
  393.             EndProperty
  394.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  395.                Picture         =   "银行_银行对帐单查询.frx":3870C
  396.                Key             =   "next"
  397.             EndProperty
  398.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  399.                Picture         =   "银行_银行对帐单查询.frx":38AA6
  400.                Key             =   "last"
  401.             EndProperty
  402.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  403.                Picture         =   "银行_银行对帐单查询.frx":38E40
  404.                Key             =   "xx"
  405.             EndProperty
  406.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  407.                Picture         =   "银行_银行对帐单查询.frx":391DA
  408.                Key             =   "define"
  409.             EndProperty
  410.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  411.                Picture         =   "银行_银行对帐单查询.frx":39574
  412.                Key             =   "exec"
  413.             EndProperty
  414.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  415.                Picture         =   "银行_银行对帐单查询.frx":3990E
  416.                Key             =   "xz"
  417.             EndProperty
  418.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  419.                Picture         =   "银行_银行对帐单查询.frx":39CA8
  420.                Key             =   "sc"
  421.             EndProperty
  422.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  423.                Picture         =   "银行_银行对帐单查询.frx":3A042
  424.                Key             =   "sx"
  425.             EndProperty
  426.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  427.                Picture         =   "银行_银行对帐单查询.frx":3A3DC
  428.                Key             =   "cx"
  429.             EndProperty
  430.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  431.                Picture         =   "银行_银行对帐单查询.frx":3A776
  432.                Key             =   "zd"
  433.             EndProperty
  434.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  435.                Picture         =   "银行_银行对帐单查询.frx":3AB10
  436.                Key             =   "dz"
  437.             EndProperty
  438.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  439.                Picture         =   "银行_银行对帐单查询.frx":3AEAA
  440.                Key             =   "ph"
  441.             EndProperty
  442.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  443.                Picture         =   "银行_银行对帐单查询.frx":3B244
  444.                Key             =   "fz"
  445.             EndProperty
  446.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  447.                Picture         =   "银行_银行对帐单查询.frx":3B5DE
  448.                Key             =   "dw"
  449.             EndProperty
  450.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  451.                Picture         =   "银行_银行对帐单查询.frx":3B978
  452.                Key             =   "hf"
  453.             EndProperty
  454.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  455.                Picture         =   "银行_银行对帐单查询.frx":3BD12
  456.                Key             =   "pz"
  457.             EndProperty
  458.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  459.                Picture         =   "银行_银行对帐单查询.frx":3C0AC
  460.                Key             =   "check"
  461.             EndProperty
  462.          EndProperty
  463.       End
  464.    End
  465.    Begin VSFlex8Ctl.VSFlexGrid WglrGrid 
  466.       Height          =   5910
  467.       Left            =   30
  468.       TabIndex        =   18
  469.       Top             =   1665
  470.       Width           =   11850
  471.       _cx             =   5080
  472.       _cy             =   5080
  473.       Appearance      =   1
  474.       BorderStyle     =   1
  475.       Enabled         =   -1  'True
  476.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  477.          Name            =   "宋体"
  478.          Size            =   9
  479.          Charset         =   134
  480.          Weight          =   400
  481.          Underline       =   0   'False
  482.          Italic          =   0   'False
  483.          Strikethrough   =   0   'False
  484.       EndProperty
  485.       MousePointer    =   0
  486.       BackColor       =   -2147483643
  487.       ForeColor       =   -2147483640
  488.       BackColorFixed  =   12640511
  489.       ForeColorFixed  =   -2147483630
  490.       BackColorSel    =   -2147483643
  491.       ForeColorSel    =   -2147483640
  492.       BackColorBkg    =   -2147483636
  493.       BackColorAlternate=   -2147483643
  494.       GridColor       =   -2147483633
  495.       GridColorFixed  =   -2147483632
  496.       TreeColor       =   -2147483632
  497.       FloodColor      =   192
  498.       SheetBorder     =   -2147483642
  499.       FocusRect       =   1
  500.       HighLight       =   1
  501.       AllowSelection  =   0   'False
  502.       AllowBigSelection=   0   'False
  503.       AllowUserResizing=   0
  504.       SelectionMode   =   0
  505.       GridLines       =   1
  506.       GridLinesFixed  =   2
  507.       GridLineWidth   =   1
  508.       Rows            =   5000
  509.       Cols            =   20
  510.       FixedRows       =   1
  511.       FixedCols       =   0
  512.       RowHeightMin    =   0
  513.       RowHeightMax    =   0
  514.       ColWidthMin     =   0
  515.       ColWidthMax     =   0
  516.       ExtendLastCol   =   0   'False
  517.       FormatString    =   ""
  518.       ScrollTrack     =   0   'False
  519.       ScrollBars      =   3
  520.       ScrollTips      =   0   'False
  521.       MergeCells      =   0
  522.       MergeCompare    =   0
  523.       AutoResize      =   -1  'True
  524.       AutoSizeMode    =   0
  525.       AutoSearch      =   0
  526.       AutoSearchDelay =   2
  527.       MultiTotals     =   -1  'True
  528.       SubtotalPosition=   1
  529.       OutlineBar      =   0
  530.       OutlineCol      =   0
  531.       Ellipsis        =   0
  532.       ExplorerBar     =   0
  533.       PicturesOver    =   0   'False
  534.       FillStyle       =   0
  535.       RightToLeft     =   0   'False
  536.       PictureType     =   0
  537.       TabBehavior     =   0
  538.       OwnerDraw       =   0
  539.       Editable        =   0
  540.       ShowComboButton =   1
  541.       WordWrap        =   -1  'True
  542.       TextStyle       =   0
  543.       TextStyleFixed  =   0
  544.       OleDragMode     =   0
  545.       OleDropMode     =   0
  546.       DataMode        =   0
  547.       VirtualData     =   -1  'True
  548.       DataMember      =   ""
  549.       ComboSearch     =   3
  550.       AutoSizeMouse   =   -1  'True
  551.       FrozenRows      =   0
  552.       FrozenCols      =   0
  553.       AllowUserFreezing=   0
  554.       BackColorFrozen =   0
  555.       ForeColorFrozen =   0
  556.       WallPaperAlignment=   9
  557.       AccessibleName  =   ""
  558.       AccessibleDescription=   ""
  559.       AccessibleValue =   ""
  560.       AccessibleRole  =   24
  561.    End
  562.    Begin VB.Label Lab_Pzclzt 
  563.       BackColor       =   &H0000FFFF&
  564.       Caption         =   "1"
  565.       ForeColor       =   &H00808080&
  566.       Height          =   420
  567.       Left            =   9268
  568.       TabIndex        =   21
  569.       Top             =   660
  570.       Visible         =   0   'False
  571.       Width           =   367
  572.    End
  573.    Begin VB.Label Lab_OperStatus 
  574.       BackColor       =   &H000080FF&
  575.       Caption         =   "1"
  576.       Height          =   180
  577.       Left            =   7106
  578.       TabIndex        =   20
  579.       Top             =   690
  580.       Visible         =   0   'False
  581.       Width           =   880
  582.    End
  583.    Begin VB.Label Lab_Book 
  584.       Appearance      =   0  'Flat
  585.       BackColor       =   &H80000005&
  586.       BackStyle       =   0  'Transparent
  587.       ForeColor       =   &H000000FF&
  588.       Height          =   373
  589.       Left            =   3946
  590.       TabIndex        =   19
  591.       Top             =   11449
  592.       Width           =   888
  593.    End
  594. End
  595. Attribute VB_Name = "YH_FrmDzdCx"
  596. Attribute VB_GlobalNameSpace = False
  597. Attribute VB_Creatable = False
  598. Attribute VB_PredeclaredId = True
  599. Attribute VB_Exposed = False
  600. '*********************************************************************************************************
  601. '*    模 块 名 称 :银行对帐单查询
  602. '*    功 能 描 述 :查询银行对帐单
  603. '*    程序员姓名  :xjl
  604. '*    最后修改人  :xjl
  605. '*    最后修改时间:2001/07/17
  606. '*********************************************************************************************************
  607. Dim RecTemp As New ADODB.Recordset              '定义数据集
  608. Dim RecTemp1 As New ADODB.Recordset             '定义数据集
  609. Dim Dyymctbl As New DY_Dyymsz                   '打印页面窗体变量
  610. Dim GridCode As String                          '显示网格网格代码
  611. Dim GridInf() As Variant                        '整个网格设置信息
  612. Dim ReportTitle As String                       '报表主标题
  613. Dim Pmbcsjhs As Long                            '屏幕网格保持数据行数(大于等于1)
  614. Dim Fzxwghs As Integer                          '辅助项网格行数(包括合计行)
  615. Dim Sfxshjwg As Boolean                         '是否显示合计网格
  616. Dim Qslz As Long                                '网格隐藏(非操作显示)列数
  617. Dim Sjhgd As Double                             '网格数据行高度
  618. Dim GridBoolean() As Boolean                    '网格列信息(布尔型)
  619. Dim GridStr()  As String                        '网格列信息(字符型)
  620. Dim GridInt() As Integer                        '网格列信息(整型)
  621. Dim Sfblbzkd As Boolean                         '是否保留帮助宽度(字段提供帮助时,是否为按钮保留空间)
  622. Dim Dqlrwgh As Long                             '当前录入数据网格行
  623. Dim Dqlrwgl As Long                             '当前录入数据网格列
  624. Dim Dqlkwgh As Long                             '刚刚离开网格行(不一定为录入行)
  625. Dim Dqtoprow As Long                            '当前录入状态时最上端可视行
  626. Dim Dqleftcol As Long                           '当前录入状态时最左端可视列
  627. Dim Wbkbhlock As Boolean                        '文本框改变值锁
  628. Dim changelock As Boolean                       '网格行列改变控制锁(用来区别用户改变.程序改变)
  629. Dim Gdtlock As Boolean                          '滚动条滚动控制(用来区别用户改变.程序改变)
  630. Dim Yxxpdlock As Boolean                        '字段有效性判断锁(内容不修改不需进行字段有效性判断)
  631. Dim Hyxxpdlock As Boolean                       '行有效性判断锁(字段内容不修改不需进行行有效性判断)
  632. Dim Valilock As Boolean                         '文本框失去焦点是否进行有效性控制(TRUE 为锁定*限用网格录入)
  633. Dim Shsfts As Boolean                           '删除记录行是否提示
  634. Dim Szzls As Integer                            '网格信息数组最大下标值(网格列数-1)
  635. '控制焦点转移
  636. Private Sub Form_KeyPress(KeyAscii As Integer)
  637.     Select Case KeyAscii
  638.     Case 39           '屏蔽字符"'"
  639.         KeyAscii = 0
  640.     End Select
  641. End Sub
  642. '窗体装入
  643. Sub Form_Load()
  644.     changelock = False             '网格行列改变控制锁
  645.     Gdtlock = False                '滚动条滚动控制
  646.     Yxxpdlock = True               '字段有效性判断锁
  647.     Hyxxpdlock = True              '行有效性判断锁
  648.     Wbkbhlock = False              '文本框内容改变锁
  649.     '隐藏选择对话框
  650.     YH_FrmXzkm.Hide
  651.     '定义会计区间
  652.     Label1.Caption = Mid(Trim(Str(10000 + Xtyear)), 2, 4) + "." + Mid(Trim(Str(100 + Xtmm)), 2, 2)
  653.     '设置调整前余额
  654.     Sqlstr = "SELECT * FROM CWZZ_BankBill Where RecType=0 And Ccode='" & Val(YH_FrmXzkm.Combo1.Text) & "'"
  655.     Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  656.     If RecTemp.EOF = False Then
  657.         If Val(RecTemp.Fields("Dfje")) = 0 Then
  658.             Label2(0).Caption = "0"
  659.         Else
  660.             Label2(0).Caption = Format(RecTemp.Fields("Dfje"), "#,###.00")
  661.         End If
  662.     Else
  663.         Label2(0).Caption = 0
  664.     End If
  665.     '报表主标题及报表编码
  666.     ReportTitle = "银行对帐单"
  667.     XtReportCode = "Cwzz_yhdzd"
  668.     Load Dyymctbl
  669.     
  670.     '调入网格
  671.     GridCode = "Cwzz_yhdzdcx"          '网格属性编码
  672.     Call BzWgcsh(WglrGrid, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
  673.     Qslz = GridInf(1)
  674.     Sjhgd = GridInf(2)
  675.     Pmbcsjhs = GridInf(3)
  676.     Fzxwghs = GridInf(4)
  677.     Sfblbzkd = GridInf(5)
  678.     Shsfts = GridInf(6)
  679.     Sfxshjwg = GridInf(7)
  680.     Szzls = WglrGrid.Cols - 1
  681.     
  682.     '设置网格宽度
  683.     For Jsqte = WglrGrid.FixedRows To WglrGrid.Rows - 1
  684.         WglrGrid.RowHeight(Jsqte) = Sjhgd
  685.     Next Jsqte
  686.     
  687.     '单据变动置为False
  688.     Bln_BillChange = False
  689.     
  690.     '设置会计科目
  691.     Lab_kjbm.Caption = YH_FrmXzkm.Combo1.Text
  692.     Call Sub_ShowBill
  693.     
  694.     '调整标题位置
  695.     SetTitlePos tsLabel(4)
  696. End Sub
  697. Private Sub Form_Resize()
  698.     On Error Resume Next
  699.     With WglrGrid
  700.         .Width = Me.Width - 160
  701.         .Height = Me.Height - .Top - 400
  702.     End With
  703.     With Pic_Title
  704.         .Width = Me.Width - 160
  705.     End With
  706.     
  707.     GsToolbar.Left = Me.Width - GsToolbar.Width - 140
  708. End Sub
  709. '窗体卸载
  710. Private Sub Form_Unload(Cancel As Integer)
  711.     '卸载打印页面窗体
  712.     Unload Dyymctbl
  713.     '卸载过滤条件
  714.     Unload YH_FrmGltj
  715. End Sub
  716. '显示网格内容
  717. Private Sub Sub_ShowBill()
  718.     Dim rs As New ADODB.Recordset        '定义数据集
  719.     Dim RS1 As New ADODB.Recordset       '定义数据集
  720.     Dim Jsqte  As Long                   '定义计数器
  721.     
  722.     '查询银行对帐单
  723.     Sqlstr = "SELECT * FROM CWZZ_BankBill  Where Ccode='" & Val(Lab_kjbm) & "' And  " _
  724.     & "RecType=2 Order By BillDate"
  725.     
  726.     Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  727.     With RecTemp
  728.         WglrGrid.Clear 1
  729.         If .EOF Then
  730.             Exit Sub
  731.         Else
  732.             WglrGrid.Rows = .RecordCount + WglrGrid.FixedRows
  733.         End If
  734.         Jsqte = WglrGrid.FixedRows
  735.         Do While Not .EOF
  736.             If Jsqte >= WglrGrid.Rows Then
  737.                 WglrGrid.AddItem ""
  738.             End If
  739.             WglrGrid.TextMatrix(Jsqte, 0) = "*"                                                                     '行标识
  740.             WglrGrid.TextMatrix(Jsqte, 1) = .Fields("BankBillID")                                                   'ID号
  741.             WglrGrid.TextMatrix(Jsqte, Sydz("001", GridStr(), Szzls)) = Format(.Fields("billdate"), "yyyy-mm-dd")   '票据日期限
  742.             Sqlstr = "Select * From Gy_SetTleMent Where Sscode='" & .Fields!sscode & "'"
  743.             Set RecTemp1 = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  744.             If RecTemp1.EOF = False Then
  745.                 WglrGrid.TextMatrix(Jsqte, Sydz("002", GridStr(), Szzls)) = Trim(RecTemp1.Fields("ssname") & "")    '结算方式
  746.             End If
  747.             WglrGrid.TextMatrix(Jsqte, Sydz("003", GridStr(), Szzls)) = Trim(.Fields("BillNo") & "")                '票号
  748.             If Val(Str(.Fields("Jfje"))) <> 0 Then
  749.                 WglrGrid.TextMatrix(Jsqte, Sydz("004", GridStr(), Szzls)) = Trim(Str(.Fields("Jfje")))              '借方金额
  750.             End If
  751.             If Val(Str(.Fields("Dfje"))) Then
  752.                 WglrGrid.TextMatrix(Jsqte, Sydz("005", GridStr(), Szzls)) = Trim(Str(.Fields("Dfje")))              '贷方金额
  753.             End If
  754.             WglrGrid.TextMatrix(Jsqte, Sydz("007", GridStr(), Szzls)) = Trim(.Fields("Digest")) & ""                '摘要
  755.             If .Fields("bcheckflag") = True Then
  756.                 WglrGrid.Cell(flexcpBackColor, Jsqte, 0, Jsqte, WglrGrid.Cols - 1) = &HE9FC61                       '如果已勾对设置网格颜色
  757.             End If
  758.             WglrGrid.RowHeight(Jsqte) = Sjhgd
  759.             .MoveNext
  760.             Jsqte = Jsqte + 1
  761.         Loop
  762.     End With
  763.     '计算合计数据
  764.     Call Sjhj
  765. End Sub
  766. Private Sub GsToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
  767.     Select Case Button.Key
  768.     Case "bcgs"                              '保存表格格式
  769.         Call Bcwggs(WglrGrid, GridCode, GridStr())
  770.     Case "hfmrgs"                            '恢复默认格式
  771.         Call Hfmrgs(WglrGrid, GridCode, GridStr())
  772.     Case "szxsxm"                            '设置显示项目
  773.         Call Szxsxm(WglrGrid, GridCode)
  774.     End Select
  775. End Sub
  776. '用户点击工具条
  777. Private Sub Tlb_Action_ButtonClick(ByVal Button As MSComctlLib.Button)
  778.     '屏蔽文本框,下拉组合框有效性判断
  779.     Valilock = True
  780.     '屏蔽网格失去焦点产生的有效性判断
  781.     changelock = True
  782.     Select Case Button.Key
  783.     Case "ymsz"                                          '页面设置
  784.         Dyymctbl.Show 1
  785.     Case "yl"                                            '预 览
  786.         Call bbyl(True)
  787.     Case "dy"                                            '打 印
  788.         Call bbyl(False)
  789.     Case "cx"                                            '查 询
  790.         YH_FrmGltj.Tag = "Y"
  791.         YH_FrmGltj.HelpContextID = "0115003"
  792.         YH_FrmGltj.Show 1
  793.     Case "bz"                                            '帮 助
  794.         Call F1bz
  795.     Case "fh"                                            '退 出
  796.         Glo_Variable.Unload_TF = True
  797.         Unload YH_FrmXzkm
  798.         Unload Me
  799.     Case "Sel"                                           '选择
  800.         Glo_Variable.Unload_TF = False
  801.         YH_FrmXzkm.HelpContextID = "0115003"
  802.         YH_FrmXzkm.Show 1
  803.     End Select
  804.     '解 锁
  805.     Valilock = False
  806.     changelock = False
  807. End Sub
  808. '支持热键操作
  809. Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
  810.     If Shift = 2 Then
  811.         Select Case UCase(Chr(KeyCode))
  812.         Case "P"                   'Ctrl+P 打印
  813.             If Tlb_Action.Buttons("dy").Enabled Then
  814.                 Call bbyl(False)
  815.             End If
  816.         End Select
  817.     End If
  818. End Sub
  819. '===以下程序为通用部分 ,一般不需更改==='
  820. '显示当前数据行相关信息
  821. Private Sub WglrGrid_EnterCell()
  822.     With WglrGrid
  823.         If .Row >= .FixedRows Then
  824.             Lab_Row = Trim(Str(.Row - .FixedRows + 1))
  825.         End If
  826.     End With
  827. End Sub
  828. '网格得到焦点
  829. Private Sub WglrGrid_GotFocus()
  830.     '则调整当前焦点至有效数据行
  831.     With WglrGrid
  832.         If .Row < .FixedRows And .Rows > .FixedRows Then
  833.             changelock = True
  834.             .Select .FixedRows, .Col
  835.             changelock = False
  836.         End If
  837.         If .Col < Qslz Then
  838.             changelock = True
  839.             .Select .Row, Qslz
  840.             changelock = False
  841.         End If
  842.     End With
  843. End Sub
  844. '限制用户在录入过程中滚动鼠标
  845. Private Sub WglrGrid_AfterScroll(ByVal OldTopRow As Long, ByVal OldLeftCol As Long, ByVal NewTopRow As Long, ByVal NewLeftCol As Long)
  846.     If Gdtlock Then
  847.         Exit Sub
  848.     End If
  849. End Sub
  850. '网格列数据合计
  851. Private Sub Sjhj()
  852.     Dim Hjjg As Double
  853.     Dim Rjsq As Integer
  854.     With WglrGrid
  855.         For Rjsq = 1 To .Rows - 1
  856.             Hjjg = 0
  857.             If Rjsq = 1 Then
  858.                 Hjjg = Hjjg + Val(Format(.TextMatrix(Rjsq, Sydz("005", GridStr(), Szzls)), "0.00")) - Val(Format(.TextMatrix(Rjsq, Sydz("004", GridStr(), Szzls)), "0.00")) + Val(Format(Label2(0).Caption, "0.00"))
  859.             Else
  860.                 Hjjg = Hjjg + Val(Format(.TextMatrix(Rjsq, Sydz("005", GridStr(), Szzls)), "0.00")) - Val(Format(.TextMatrix(Rjsq, Sydz("004", GridStr(), Szzls)), "0.00")) + Val(Format(.TextMatrix(Rjsq - 1, Sydz("006", GridStr(), Szzls)), "0.00"))
  861.             End If
  862.             If Hjjg <> 0 Then
  863.                 .TextMatrix(Rjsq, Sydz("006", GridStr(), Szzls)) = Format(Hjjg, "#,###.00")
  864.             Else
  865.                 .TextMatrix(Rjsq, Sydz("006", GridStr(), Szzls)) = ""
  866.             End If
  867.             If Val(.TextMatrix(Rjsq, Sydz("004", GridStr(), Szzls))) <> 0 Then
  868.                 .TextMatrix(Rjsq, Sydz("004", GridStr(), Szzls)) = Format(.TextMatrix(Rjsq, Sydz("004", GridStr(), Szzls)), "#,###.00")
  869.             End If
  870.             If Val(.TextMatrix(Rjsq, Sydz("005", GridStr(), Szzls))) <> 0 Then
  871.                 .TextMatrix(Rjsq, Sydz("005", GridStr(), Szzls)) = Format(.TextMatrix(Rjsq, Sydz("005", GridStr(), Szzls)), "#,###.00")
  872.             End If
  873.         Next Rjsq
  874.     End With
  875. End Sub
  876. '打印预览(通用)
  877. Private Sub bbyl(bbylte As Boolean)
  878.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  879.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  880.     '报表小标题行数
  881.     Bbxbtgs = 1
  882.     '报表表尾行数
  883.     Bbbwhgs = 1
  884.     ReDim Bbxbt(1 To Bbxbtgs)
  885.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  886.     If Bbbwhgs <> 0 Then
  887.         ReDim Bbbwh(1 To Bbbwhgs)
  888.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  889.     End If
  890.     '报表总标题
  891.     Bbzbt = ReportTitle
  892.     '报表行组织形式(0-居左 1-居中 2-居右)
  893.     Bbxbt(1) = Space(0) + Fun_FormatOutPut("会计期间:" + Trim(Label1.Caption), 30)
  894.     Bbxbt(1) = Bbxbt(1) + Fun_FormatOutPut("科目编码:" + Trim(Lab_kjbm), 26)
  895.     '报表小标题组织形式
  896.     '报表行组织形式(0-居左 1-居中 2-居右)
  897.     bbxbtzzxs(1) = 0
  898.     Bbbwhzzxs(1) = 1
  899.     '生成报表数据
  900.     Call Scyxsjb(WglrGrid)
  901.     '生成报表
  902.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  903.     '卸载预览窗体
  904.     If Not bbylte Then
  905.         Unload DY_Tybbyldy
  906.     End If
  907. End Sub