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

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{D76D7128-4A96-11D3-BD95-D296DC2DD072}#1.0#0"; "VSOCX7.OCX"
  3. Begin VB.Form YH_FrmDzjc 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "平衡检查"
  6.    ClientHeight    =   1785
  7.    ClientLeft      =   45
  8.    ClientTop       =   330
  9.    ClientWidth     =   5325
  10.    HelpContextID   =   5103
  11.    Icon            =   "银行_对帐检查.frx":0000
  12.    LinkTopic       =   "Form1"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   1785
  16.    ScaleWidth      =   5325
  17.    ShowInTaskbar   =   0   'False
  18.    StartUpPosition =   2  '屏幕中心
  19.    Begin VB.CommandButton Command1 
  20.       Caption         =   "确定(&O)"
  21.       Height          =   300
  22.       Left            =   4140
  23.       TabIndex        =   1
  24.       Top             =   1410
  25.       Width           =   1120
  26.    End
  27.    Begin VSFlex8Ctl.VSFlexGrid vsFlexGrid1 
  28.       Height          =   1125
  29.       Left            =   90
  30.       TabIndex        =   0
  31.       Top             =   120
  32.       Width           =   5175
  33.       _ExtentX        =   9128
  34.       _ExtentY        =   1984
  35.       Appearance      =   1
  36.       BorderStyle     =   1
  37.       Enabled         =   -1  'True
  38.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  39.          Name            =   "宋体"
  40.          Size            =   9
  41.          Charset         =   134
  42.          Weight          =   400
  43.          Underline       =   0   'False
  44.          Italic          =   0   'False
  45.          Strikethrough   =   0   'False
  46.       EndProperty
  47.       MousePointer    =   0
  48.       BackColor       =   -2147483643
  49.       ForeColor       =   -2147483640
  50.       BackColorFixed  =   -2147483633
  51.       ForeColorFixed  =   -2147483630
  52.       BackColorSel    =   -2147483635
  53.       ForeColorSel    =   -2147483634
  54.       BackColorBkg    =   12632256
  55.       BackColorAlternate=   -2147483643
  56.       GridColor       =   -2147483633
  57.       GridColorFixed  =   -2147483632
  58.       TreeColor       =   -2147483632
  59.       FloodColor      =   192
  60.       SheetBorder     =   -2147483642
  61.       FocusRect       =   1
  62.       HighLight       =   1
  63.       AllowSelection  =   -1  'True
  64.       AllowBigSelection=   -1  'True
  65.       AllowUserResizing=   0
  66.       SelectionMode   =   0
  67.       GridLines       =   1
  68.       GridLinesFixed  =   2
  69.       GridLineWidth   =   1
  70.       Rows            =   3
  71.       Cols            =   3
  72.       FixedRows       =   1
  73.       FixedCols       =   1
  74.       RowHeightMin    =   350
  75.       RowHeightMax    =   0
  76.       ColWidthMin     =   1700
  77.       ColWidthMax     =   0
  78.       ExtendLastCol   =   0   'False
  79.       FormatString    =   ""
  80.       ScrollTrack     =   0   'False
  81.       ScrollBars      =   3
  82.       ScrollTips      =   0   'False
  83.       MergeCells      =   0
  84.       MergeCompare    =   0
  85.       AutoResize      =   -1  'True
  86.       AutoSizeMode    =   0
  87.       AutoSearch      =   0
  88.       MultiTotals     =   -1  'True
  89.       SubtotalPosition=   1
  90.       OutlineBar      =   0
  91.       OutlineCol      =   0
  92.       Ellipsis        =   0
  93.       ExplorerBar     =   0
  94.       PicturesOver    =   0   'False
  95.       FillStyle       =   0
  96.       RightToLeft     =   0   'False
  97.       PictureType     =   0
  98.       TabBehavior     =   0
  99.       OwnerDraw       =   0
  100.       Editable        =   0   'False
  101.       ShowComboButton =   -1  'True
  102.       WordWrap        =   0   'False
  103.       TextStyle       =   0
  104.       TextStyleFixed  =   0
  105.       OleDragMode     =   0
  106.       OleDropMode     =   0
  107.       DataMode        =   0
  108.       VirtualData     =   -1  'True
  109.    End
  110.    Begin VB.Label Label3 
  111.       Caption         =   ":"
  112.       Height          =   225
  113.       Left            =   690
  114.       TabIndex        =   4
  115.       Top             =   1440
  116.       Width           =   135
  117.    End
  118.    Begin VB.Label Label2 
  119.       AutoSize        =   -1  'True
  120.       Caption         =   "提示"
  121.       BeginProperty Font 
  122.          Name            =   "宋体"
  123.          Size            =   10.5
  124.          Charset         =   134
  125.          Weight          =   400
  126.          Underline       =   0   'False
  127.          Italic          =   0   'False
  128.          Strikethrough   =   0   'False
  129.       EndProperty
  130.       Height          =   210
  131.       Left            =   240
  132.       TabIndex        =   3
  133.       Top             =   1440
  134.       Width           =   420
  135.    End
  136.    Begin VB.Label Label1 
  137.       Appearance      =   0  'Flat
  138.       AutoSize        =   -1  'True
  139.       BackColor       =   &H8000000A&
  140.       BackStyle       =   0  'Transparent
  141.       Caption         =   "平衡"
  142.       BeginProperty Font 
  143.          Name            =   "宋体"
  144.          Size            =   10.5
  145.          Charset         =   134
  146.          Weight          =   400
  147.          Underline       =   0   'False
  148.          Italic          =   0   'False
  149.          Strikethrough   =   0   'False
  150.       EndProperty
  151.       ForeColor       =   &H00FF0000&
  152.       Height          =   210
  153.       Left            =   870
  154.       TabIndex        =   2
  155.       Top             =   1425
  156.       Width           =   420
  157.    End
  158. End
  159. Attribute VB_Name = "YH_FrmDzjc"
  160. Attribute VB_GlobalNameSpace = False
  161. Attribute VB_Creatable = False
  162. Attribute VB_PredeclaredId = True
  163. Attribute VB_Exposed = False
  164. '*************************************************************
  165. '*    模 块 名 称 :银行对帐检查
  166. '*    功 能 描 述 :检查对帐是否平衡
  167. '*    程序员姓名  : xjl
  168. '*    最后修改人  : xjl
  169. '*    最后修改时间:2000/11/07
  170. '*    备        注:
  171. '*************************************************************
  172. '退出
  173. Private Sub Command1_Click()
  174.     Unload Me
  175. End Sub
  176. '查询平衡结果
  177. Private Sub Form_Load()
  178.     '定以网格行
  179.     Dim Coljsq As Integer
  180.     '定义合计数据
  181.     Dim YhSum, Yhsum1
  182.     With vsFlexGrid1
  183.         .FormatString = "平衡检查|单位日记帐|银行对帐单"
  184.         .TextMatrix(1, 0) = "收入合计"
  185.         .TextMatrix(2, 0) = "支出合计"
  186.         For Coljsq = 0 To .Cols - 1
  187.             .ColAlignment(Coljsq) = flexAlignCenterCenter
  188.         Next Coljsq
  189.     End With
  190.     '银行对帐单
  191.     YhSum = 0: Yhsum1 = 0
  192.     With YH_FrmZddz.CXBBGrid
  193.         For Coljsq = 1 To .Rows - 1
  194.             If .TextMatrix(Coljsq, 5) <> "" Then
  195.                 If .TextMatrix(Coljsq, 3) = "借" Then
  196.                     YhSum = YhSum + Val(Format(.TextMatrix(Coljsq, 4), "0.00"))
  197.                 Else
  198.                     Yhsum1 = Yhsum1 + Val(Format(.TextMatrix(Coljsq, 4), "0.00"))
  199.                 End If
  200.             End If
  201.         Next Coljsq
  202.     End With
  203.     vsFlexGrid1.TextMatrix(1, 2) = Yhsum1
  204.     vsFlexGrid1.TextMatrix(2, 2) = YhSum
  205.     '单位日记帐
  206.     YhSum = 0: Yhsum1 = 0
  207.     With YH_FrmZddz.vsFlexGrid1
  208.         For Coljsq = 1 To .Rows - 1
  209.             If .TextMatrix(Coljsq, 6) <> "" Then
  210.                 If .TextMatrix(Coljsq, 4) = "借" Then
  211.                     YhSum = YhSum + Val(Format(.TextMatrix(Coljsq, 5), "0.00"))
  212.                 Else
  213.                     Yhsum1 = Yhsum1 + Val(Format(.TextMatrix(Coljsq, 5), "0.00"))
  214.                 End If
  215.             End If
  216.         Next Coljsq
  217.     End With
  218.     vsFlexGrid1.TextMatrix(1, 1) = YhSum
  219.     vsFlexGrid1.TextMatrix(2, 1) = Yhsum1
  220.     If vsFlexGrid1.TextMatrix(1, 1) - vsFlexGrid1.TextMatrix(2, 1) = vsFlexGrid1.TextMatrix(1, 2) - vsFlexGrid1.TextMatrix(2, 2) Then
  221.         Label1.ForeColor = &HFF0000
  222.         Label1.Caption = "平衡"
  223.     Else
  224.         Label1.ForeColor = vbRed
  225.         Label1.Caption = "不平衡!"
  226.     End If
  227. End Sub