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

企业管理

开发平台:

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 Zbfx_Mate 
  5.    Caption         =   "总帐"
  6.    ClientHeight    =   6420
  7.    ClientLeft      =   60
  8.    ClientTop       =   345
  9.    ClientWidth     =   11580
  10.    HelpContextID   =   130502
  11.    Icon            =   "帐簿分析_总帐.frx":0000
  12.    KeyPreview      =   -1  'True
  13.    LinkTopic       =   "Form2"
  14.    MDIChild        =   -1  'True
  15.    ScaleHeight     =   6420
  16.    ScaleWidth      =   11580
  17.    WindowState     =   2  'Maximized
  18.    Begin VB.Timer Timer1 
  19.       Enabled         =   0   'False
  20.       Interval        =   1
  21.       Left            =   7620
  22.       Top             =   90
  23.    End
  24.    Begin MSComctlLib.ImageCombo Com_Mnumber 
  25.       Height          =   315
  26.       Left            =   1140
  27.       TabIndex        =   0
  28.       Top             =   1380
  29.       Width           =   3645
  30.       _ExtentX        =   6429
  31.       _ExtentY        =   556
  32.       _Version        =   393216
  33.       ForeColor       =   -2147483640
  34.       BackColor       =   -2147483643
  35.    End
  36.    Begin MSComctlLib.Toolbar GsToolbar 
  37.       Height          =   525
  38.       Left            =   9330
  39.       TabIndex        =   1
  40.       Top             =   30
  41.       Width           =   2475
  42.       _ExtentX        =   4366
  43.       _ExtentY        =   926
  44.       ButtonWidth     =   1455
  45.       ButtonHeight    =   926
  46.       Appearance      =   1
  47.       Style           =   1
  48.       ImageList       =   "ImageList2"
  49.       _Version        =   393216
  50.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  51.          NumButtons      =   3
  52.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  53.             Caption         =   "保存格式"
  54.             Key             =   "bcgs"
  55.             ImageKey        =   "bcgs"
  56.          EndProperty
  57.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  58.             Caption         =   "默认列宽"
  59.             Key             =   "hfmrgs"
  60.             ImageKey        =   "mrlk"
  61.          EndProperty
  62.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  63.             Caption         =   "显示项目"
  64.             Key             =   "szxsxm"
  65.             ImageKey        =   "xsxm"
  66.          EndProperty
  67.       EndProperty
  68.    End
  69.    Begin VSFlex8Ctl.VSFlexGrid CxbbGrid 
  70.       Height          =   7155
  71.       Left            =   0
  72.       TabIndex        =   2
  73.       Top             =   1860
  74.       Width           =   11775
  75.       _cx             =   5080
  76.       _cy             =   5080
  77.       Appearance      =   1
  78.       BorderStyle     =   1
  79.       Enabled         =   -1  'True
  80.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  81.          Name            =   "宋体"
  82.          Size            =   9
  83.          Charset         =   134
  84.          Weight          =   400
  85.          Underline       =   0   'False
  86.          Italic          =   0   'False
  87.          Strikethrough   =   0   'False
  88.       EndProperty
  89.       MousePointer    =   0
  90.       BackColor       =   16777215
  91.       ForeColor       =   -2147483640
  92.       BackColorFixed  =   13826538
  93.       ForeColorFixed  =   -2147483630
  94.       BackColorSel    =   -2147483635
  95.       ForeColorSel    =   -2147483634
  96.       BackColorBkg    =   -2147483636
  97.       BackColorAlternate=   16777215
  98.       GridColor       =   -2147483633
  99.       GridColorFixed  =   -2147483632
  100.       TreeColor       =   -2147483632
  101.       FloodColor      =   192
  102.       SheetBorder     =   -2147483642
  103.       FocusRect       =   1
  104.       HighLight       =   1
  105.       AllowSelection  =   -1  'True
  106.       AllowBigSelection=   -1  'True
  107.       AllowUserResizing=   0
  108.       SelectionMode   =   0
  109.       GridLines       =   1
  110.       GridLinesFixed  =   2
  111.       GridLineWidth   =   1
  112.       Rows            =   50
  113.       Cols            =   10
  114.       FixedRows       =   1
  115.       FixedCols       =   1
  116.       RowHeightMin    =   0
  117.       RowHeightMax    =   0
  118.       ColWidthMin     =   0
  119.       ColWidthMax     =   0
  120.       ExtendLastCol   =   0   'False
  121.       FormatString    =   ""
  122.       ScrollTrack     =   0   'False
  123.       ScrollBars      =   3
  124.       ScrollTips      =   0   'False
  125.       MergeCells      =   0
  126.       MergeCompare    =   0
  127.       AutoResize      =   -1  'True
  128.       AutoSizeMode    =   0
  129.       AutoSearch      =   0
  130.       AutoSearchDelay =   2
  131.       MultiTotals     =   -1  'True
  132.       SubtotalPosition=   1
  133.       OutlineBar      =   0
  134.       OutlineCol      =   0
  135.       Ellipsis        =   0
  136.       ExplorerBar     =   0
  137.       PicturesOver    =   0   'False
  138.       FillStyle       =   0
  139.       RightToLeft     =   0   'False
  140.       PictureType     =   0
  141.       TabBehavior     =   0
  142.       OwnerDraw       =   0
  143.       Editable        =   0
  144.       ShowComboButton =   1
  145.       WordWrap        =   0   'False
  146.       TextStyle       =   0
  147.       TextStyleFixed  =   0
  148.       OleDragMode     =   0
  149.       OleDropMode     =   0
  150.       DataMode        =   0
  151.       VirtualData     =   -1  'True
  152.       DataMember      =   ""
  153.       ComboSearch     =   3
  154.       AutoSizeMouse   =   -1  'True
  155.       FrozenRows      =   0
  156.       FrozenCols      =   0
  157.       AllowUserFreezing=   0
  158.       BackColorFrozen =   0
  159.       ForeColorFrozen =   0
  160.       WallPaperAlignment=   9
  161.       AccessibleName  =   ""
  162.       AccessibleDescription=   ""
  163.       AccessibleValue =   ""
  164.       AccessibleRole  =   24
  165.       Begin MSComctlLib.ImageList ImageList2 
  166.          Left            =   0
  167.          Top             =   0
  168.          _ExtentX        =   1005
  169.          _ExtentY        =   1005
  170.          BackColor       =   -2147483643
  171.          ImageWidth      =   16
  172.          ImageHeight     =   16
  173.          MaskColor       =   12632256
  174.          _Version        =   393216
  175.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  176.             NumListImages   =   40
  177.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  178.                Picture         =   "帐簿分析_总帐.frx":1042
  179.                Key             =   "sz"
  180.             EndProperty
  181.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  182.                Picture         =   "帐簿分析_总帐.frx":13DC
  183.                Key             =   "dy"
  184.             EndProperty
  185.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  186.                Picture         =   "帐簿分析_总帐.frx":1776
  187.                Key             =   "yl"
  188.             EndProperty
  189.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  190.                Picture         =   "帐簿分析_总帐.frx":1B10
  191.                Key             =   "xg"
  192.             EndProperty
  193.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  194.                Picture         =   "帐簿分析_总帐.frx":1EAA
  195.                Key             =   "zh"
  196.             EndProperty
  197.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  198.                Picture         =   "帐簿分析_总帐.frx":2244
  199.                Key             =   "sh"
  200.             EndProperty
  201.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  202.                Picture         =   "帐簿分析_总帐.frx":25DE
  203.                Key             =   "bc"
  204.             EndProperty
  205.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  206.                Picture         =   "帐簿分析_总帐.frx":2978
  207.                Key             =   "fq"
  208.             EndProperty
  209.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  210.                Picture         =   "帐簿分析_总帐.frx":2D12
  211.                Key             =   "bz"
  212.             EndProperty
  213.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  214.                Picture         =   "帐簿分析_总帐.frx":30AC
  215.                Key             =   "tc"
  216.             EndProperty
  217.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  218.                Picture         =   "帐簿分析_总帐.frx":3446
  219.                Key             =   "bcgs"
  220.             EndProperty
  221.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  222.                Picture         =   "帐簿分析_总帐.frx":37E0
  223.                Key             =   "mrlk"
  224.             EndProperty
  225.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  226.                Picture         =   "帐簿分析_总帐.frx":3B7A
  227.                Key             =   "xsxm"
  228.             EndProperty
  229.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  230.                Picture         =   "帐簿分析_总帐.frx":3F14
  231.                Key             =   "first"
  232.             EndProperty
  233.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  234.                Picture         =   "帐簿分析_总帐.frx":42AE
  235.                Key             =   "prev"
  236.             EndProperty
  237.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  238.                Picture         =   "帐簿分析_总帐.frx":4648
  239.                Key             =   "next"
  240.             EndProperty
  241.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  242.                Picture         =   "帐簿分析_总帐.frx":49E2
  243.                Key             =   "last"
  244.             EndProperty
  245.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  246.                Picture         =   "帐簿分析_总帐.frx":4D7C
  247.                Key             =   "xx"
  248.             EndProperty
  249.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  250.                Picture         =   "帐簿分析_总帐.frx":5116
  251.                Key             =   "define"
  252.             EndProperty
  253.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  254.                Picture         =   "帐簿分析_总帐.frx":54B0
  255.                Key             =   "exec"
  256.             EndProperty
  257.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  258.                Picture         =   "帐簿分析_总帐.frx":584A
  259.                Key             =   "xz"
  260.             EndProperty
  261.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  262.                Picture         =   "帐簿分析_总帐.frx":5BE4
  263.                Key             =   "sc"
  264.             EndProperty
  265.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  266.                Picture         =   "帐簿分析_总帐.frx":5F7E
  267.                Key             =   "sx"
  268.             EndProperty
  269.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  270.                Picture         =   "帐簿分析_总帐.frx":6318
  271.                Key             =   "cx"
  272.             EndProperty
  273.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  274.                Picture         =   "帐簿分析_总帐.frx":66B2
  275.                Key             =   "zd"
  276.             EndProperty
  277.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  278.                Picture         =   "帐簿分析_总帐.frx":6A4C
  279.                Key             =   "dz"
  280.             EndProperty
  281.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  282.                Picture         =   "帐簿分析_总帐.frx":6DE6
  283.                Key             =   "ph"
  284.             EndProperty
  285.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  286.                Picture         =   "帐簿分析_总帐.frx":7180
  287.                Key             =   "fz"
  288.             EndProperty
  289.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  290.                Picture         =   "帐簿分析_总帐.frx":751A
  291.                Key             =   "dw"
  292.             EndProperty
  293.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  294.                Picture         =   "帐簿分析_总帐.frx":78B4
  295.                Key             =   "hf"
  296.             EndProperty
  297.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  298.                Picture         =   "帐簿分析_总帐.frx":7C4E
  299.                Key             =   "pz"
  300.             EndProperty
  301.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  302.                Picture         =   "帐簿分析_总帐.frx":7FE8
  303.                Key             =   "check"
  304.             EndProperty
  305.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  306.                Picture         =   "帐簿分析_总帐.frx":8382
  307.                Key             =   "qs"
  308.             EndProperty
  309.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  310.                Picture         =   "帐簿分析_总帐.frx":871C
  311.                Key             =   "fullcheck"
  312.             EndProperty
  313.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  314.                Picture         =   "帐簿分析_总帐.frx":8AB6
  315.                Key             =   "qq"
  316.             EndProperty
  317.             BeginProperty ListImage36 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  318.                Picture         =   "帐簿分析_总帐.frx":8E50
  319.                Key             =   "bcw"
  320.             EndProperty
  321.             BeginProperty ListImage37 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  322.                Picture         =   "帐簿分析_总帐.frx":91EA
  323.                Key             =   "ye"
  324.             EndProperty
  325.             BeginProperty ListImage38 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  326.                Picture         =   "帐簿分析_总帐.frx":9584
  327.                Key             =   ""
  328.             EndProperty
  329.             BeginProperty ListImage39 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  330.                Picture         =   "帐簿分析_总帐.frx":991E
  331.                Key             =   "frist"
  332.             EndProperty
  333.             BeginProperty ListImage40 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  334.                Picture         =   "帐簿分析_总帐.frx":9CB8
  335.                Key             =   "dj"
  336.             EndProperty
  337.          EndProperty
  338.       End
  339.    End
  340.    Begin MSComctlLib.Toolbar SzToolbar 
  341.       Align           =   1  'Align Top
  342.       Height          =   555
  343.       Left            =   0
  344.       TabIndex        =   3
  345.       Top             =   0
  346.       Width           =   11580
  347.       _ExtentX        =   20426
  348.       _ExtentY        =   979
  349.       ButtonWidth     =   820
  350.       ButtonHeight    =   926
  351.       AllowCustomize  =   0   'False
  352.       Appearance      =   1
  353.       Style           =   1
  354.       ImageList       =   "ImageList1"
  355.       _Version        =   393216
  356.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  357.          NumButtons      =   10
  358.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  359.             Caption         =   "设置"
  360.             Key             =   "ymsz"
  361.             ImageKey        =   "sz"
  362.          EndProperty
  363.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  364.             Caption         =   "打印"
  365.             Key             =   "dy"
  366.             ImageKey        =   "dy"
  367.          EndProperty
  368.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  369.             Caption         =   "预览"
  370.             Key             =   "yl"
  371.             ImageKey        =   "yl"
  372.          EndProperty
  373.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  374.             Style           =   3
  375.          EndProperty
  376.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  377.             Caption         =   "查询"
  378.             Key             =   "cx"
  379.             ImageKey        =   "cx"
  380.          EndProperty
  381.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  382.             Style           =   4
  383.          EndProperty
  384.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  385.             Caption         =   "明细"
  386.             Key             =   "mx"
  387.             ImageKey        =   "mx"
  388.          EndProperty
  389.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  390.             Key             =   "fg"
  391.             Style           =   4
  392.          EndProperty
  393.          BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  394.             Caption         =   "帮助"
  395.             Key             =   "bz"
  396.             ImageKey        =   "bz"
  397.          EndProperty
  398.          BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  399.             Caption         =   "退出"
  400.             Key             =   "fh"
  401.             ImageKey        =   "tc"
  402.          EndProperty
  403.       EndProperty
  404.       BorderStyle     =   1
  405.       Begin MSComctlLib.ImageList ImageList1 
  406.          Left            =   6990
  407.          Top             =   30
  408.          _ExtentX        =   1005
  409.          _ExtentY        =   1005
  410.          BackColor       =   -2147483643
  411.          ImageWidth      =   16
  412.          ImageHeight     =   16
  413.          MaskColor       =   12632256
  414.          _Version        =   393216
  415.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  416.             NumListImages   =   38
  417.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  418.                Picture         =   "帐簿分析_总帐.frx":A052
  419.                Key             =   "sz"
  420.             EndProperty
  421.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  422.                Picture         =   "帐簿分析_总帐.frx":A3EC
  423.                Key             =   "dy"
  424.             EndProperty
  425.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  426.                Picture         =   "帐簿分析_总帐.frx":A786
  427.                Key             =   "yl"
  428.             EndProperty
  429.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  430.                Picture         =   "帐簿分析_总帐.frx":AB20
  431.                Key             =   "xg"
  432.             EndProperty
  433.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  434.                Picture         =   "帐簿分析_总帐.frx":AEBA
  435.                Key             =   "zh"
  436.             EndProperty
  437.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  438.                Picture         =   "帐簿分析_总帐.frx":B254
  439.                Key             =   "sh"
  440.             EndProperty
  441.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  442.                Picture         =   "帐簿分析_总帐.frx":B5EE
  443.                Key             =   "bc"
  444.             EndProperty
  445.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  446.                Picture         =   "帐簿分析_总帐.frx":B988
  447.                Key             =   "fq"
  448.             EndProperty
  449.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  450.                Picture         =   "帐簿分析_总帐.frx":BD22
  451.                Key             =   "bz"
  452.             EndProperty
  453.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  454.                Picture         =   "帐簿分析_总帐.frx":C0BC
  455.                Key             =   "tc"
  456.             EndProperty
  457.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  458.                Picture         =   "帐簿分析_总帐.frx":C456
  459.                Key             =   "bcgs"
  460.             EndProperty
  461.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  462.                Picture         =   "帐簿分析_总帐.frx":C7F0
  463.                Key             =   "mrlk"
  464.             EndProperty
  465.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  466.                Picture         =   "帐簿分析_总帐.frx":CB8A
  467.                Key             =   "xsxm"
  468.             EndProperty
  469.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  470.                Picture         =   "帐簿分析_总帐.frx":CF24
  471.                Key             =   "first"
  472.             EndProperty
  473.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  474.                Picture         =   "帐簿分析_总帐.frx":D2BE
  475.                Key             =   "prev"
  476.             EndProperty
  477.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  478.                Picture         =   "帐簿分析_总帐.frx":D658
  479.                Key             =   "next"
  480.             EndProperty
  481.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  482.                Picture         =   "帐簿分析_总帐.frx":D9F2
  483.                Key             =   "last"
  484.             EndProperty
  485.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  486.                Picture         =   "帐簿分析_总帐.frx":DD8C
  487.                Key             =   "xx"
  488.             EndProperty
  489.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  490.                Picture         =   "帐簿分析_总帐.frx":E126
  491.                Key             =   "define"
  492.             EndProperty
  493.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  494.                Picture         =   "帐簿分析_总帐.frx":E4C0
  495.                Key             =   "exec"
  496.             EndProperty
  497.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  498.                Picture         =   "帐簿分析_总帐.frx":E85A
  499.                Key             =   "xz"
  500.             EndProperty
  501.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  502.                Picture         =   "帐簿分析_总帐.frx":EBF4
  503.                Key             =   "sc"
  504.             EndProperty
  505.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  506.                Picture         =   "帐簿分析_总帐.frx":EF8E
  507.                Key             =   "sx"
  508.             EndProperty
  509.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  510.                Picture         =   "帐簿分析_总帐.frx":F328
  511.                Key             =   "cx"
  512.             EndProperty
  513.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  514.                Picture         =   "帐簿分析_总帐.frx":F6C2
  515.                Key             =   "zd"
  516.             EndProperty
  517.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  518.                Picture         =   "帐簿分析_总帐.frx":FA5C
  519.                Key             =   "dz"
  520.             EndProperty
  521.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  522.                Picture         =   "帐簿分析_总帐.frx":FDF6
  523.                Key             =   "ph"
  524.             EndProperty
  525.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  526.                Picture         =   "帐簿分析_总帐.frx":10190
  527.                Key             =   "fz"
  528.             EndProperty
  529.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  530.                Picture         =   "帐簿分析_总帐.frx":1052A
  531.                Key             =   "dw"
  532.             EndProperty
  533.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  534.                Picture         =   "帐簿分析_总帐.frx":108C4
  535.                Key             =   "hf"
  536.             EndProperty
  537.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  538.                Picture         =   "帐簿分析_总帐.frx":10C5E
  539.                Key             =   "pz"
  540.             EndProperty
  541.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  542.                Picture         =   "帐簿分析_总帐.frx":10FF8
  543.                Key             =   "check"
  544.             EndProperty
  545.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  546.                Picture         =   "帐簿分析_总帐.frx":11392
  547.                Key             =   "mx"
  548.             EndProperty
  549.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  550.                Picture         =   "帐簿分析_总帐.frx":1172C
  551.                Key             =   "jz"
  552.             EndProperty
  553.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  554.                Picture         =   "帐簿分析_总帐.frx":11AC6
  555.                Key             =   "hz"
  556.             EndProperty
  557.             BeginProperty ListImage36 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  558.                Picture         =   "帐簿分析_总帐.frx":11E60
  559.                Key             =   "dj"
  560.             EndProperty
  561.             BeginProperty ListImage37 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  562.                Picture         =   "帐簿分析_总帐.frx":121FA
  563.                Key             =   "cy"
  564.             EndProperty
  565.             BeginProperty ListImage38 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  566.                Picture         =   "帐簿分析_总帐.frx":12594
  567.                Key             =   "zhh"
  568.             EndProperty
  569.          EndProperty
  570.       End
  571.    End
  572.    Begin VB.PictureBox Pic_Title 
  573.       BackColor       =   &H00FFFFFF&
  574.       Height          =   1245
  575.       Left            =   0
  576.       Picture         =   "帐簿分析_总帐.frx":1292E
  577.       ScaleHeight     =   1185
  578.       ScaleWidth      =   11715
  579.       TabIndex        =   4
  580.       Top             =   570
  581.       Width           =   11775
  582.       Begin VB.Label Lab_Title 
  583.          AutoSize        =   -1  'True
  584.          BackColor       =   &H80000018&
  585.          BackStyle       =   0  'Transparent
  586.          Caption         =   "总帐"
  587.          BeginProperty Font 
  588.             Name            =   "宋体"
  589.             Size            =   12
  590.             Charset         =   134
  591.             Weight          =   700
  592.             Underline       =   0   'False
  593.             Italic          =   0   'False
  594.             Strikethrough   =   0   'False
  595.          EndProperty
  596.          ForeColor       =   &H00000000&
  597.          Height          =   240
  598.          Index           =   0
  599.          Left            =   480
  600.          TabIndex        =   10
  601.          Top             =   210
  602.          Width           =   510
  603.       End
  604.       Begin VB.Label Lbl_TitleMess 
  605.          AutoSize        =   -1  'True
  606.          BackStyle       =   0  'Transparent
  607.          Caption         =   "规格型号:"
  608.          Height          =   195
  609.          Index           =   1
  610.          Left            =   5010
  611.          TabIndex        =   9
  612.          Top             =   840
  613.          Width           =   765
  614.       End
  615.       Begin VB.Label Lbl_TitleMess 
  616.          AutoSize        =   -1  'True
  617.          BackStyle       =   0  'Transparent
  618.          Caption         =   "存货:"
  619.          Height          =   195
  620.          Index           =   0
  621.          Left            =   570
  622.          TabIndex        =   8
  623.          Top             =   840
  624.          Width           =   405
  625.       End
  626.       Begin VB.Label Lbl_TitleText 
  627.          AutoSize        =   -1  'True
  628.          BackStyle       =   0  'Transparent
  629.          Caption         =   "仓库"
  630.          ForeColor       =   &H00000000&
  631.          Height          =   195
  632.          Index           =   0
  633.          Left            =   5850
  634.          TabIndex        =   7
  635.          Top             =   840
  636.          Width           =   360
  637.       End
  638.       Begin VB.Label Lbl_TitleText 
  639.          AutoSize        =   -1  'True
  640.          BackStyle       =   0  'Transparent
  641.          Caption         =   "仓库"
  642.          ForeColor       =   &H00000000&
  643.          Height          =   195
  644.          Index           =   1
  645.          Left            =   8970
  646.          TabIndex        =   6
  647.          Top             =   840
  648.          Width           =   360
  649.       End
  650.       Begin VB.Label Lbl_TitleMess 
  651.          AutoSize        =   -1  'True
  652.          BackStyle       =   0  'Transparent
  653.          Caption         =   "仓库:"
  654.          Height          =   180
  655.          Index           =   2
  656.          Left            =   8430
  657.          TabIndex        =   5
  658.          Top             =   840
  659.          Width           =   450
  660.       End
  661.    End
  662. End
  663. Attribute VB_Name = "Zbfx_Mate"
  664. Attribute VB_GlobalNameSpace = False
  665. Attribute VB_Creatable = False
  666. Attribute VB_PredeclaredId = True
  667. Attribute VB_Exposed = False
  668. '**************************************************************************
  669. '*    模 块 名 称 :总帐
  670. '*    功 能 描 述 :
  671. '*    程序员姓名  :白凤英
  672. '*    最后修改人  :白凤英
  673. '*    最后修改时间:2001/12/14
  674. '*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
  675. '**************************************************************************
  676. Dim mMnumber As String                   '存货编码
  677. Dim ReportTitle As String                '报表主标题
  678. Dim Str_QueryCondi As String             '用户录入查询条件
  679. Dim Rec_BillID As New ADODB.Recordset    '用户查询单据ID动态集
  680. '以下为固定使用变量
  681. Dim Dyymctbl As New DY_Dyymsz            '打印页面窗体变量
  682. Dim GridCode As String                   '显示网格网格代码
  683. Dim GridInf() As Variant                 '整个网格设置信息
  684. Dim Tsxx As String                       '系统提示信息
  685. Dim Qslz As Long                         '网格隐藏(非操作显示)列数
  686. Dim Sjhgd As Double                      '网格数据行高度
  687. Dim Sfxshjwg As Boolean                  '是否显示合计网格
  688. Dim GridBoolean() As Boolean             '网格列信息(布尔型)
  689. Dim GridStr()  As String                 '网格列信息(字符型)
  690. Dim GridInt() As Integer                 '网格列信息(整型)
  691. Dim Szzls As Integer                     '数组总列数(网格列数-1)
  692. Private Sub Com_Mnumber_Click()        '存货列表
  693.     
  694.     Dim strCode As String
  695.     
  696.     Xt_Wait.Show
  697.     Xt_Wait.Refresh
  698.     strCode = Mid(Com_Mnumber.ComboItems.Item(Com_Mnumber.SelectedItem.Index).Key, 2, 20)
  699.     mMnumber = strCode
  700.     Lbl_TitleText(0) = Com_Mnumber.ComboItems.Item(Com_Mnumber.SelectedItem.Index).Tag
  701.     Call Sub_Query(1, strCode)
  702.     Unload Xt_Wait
  703.     
  704. End Sub
  705. Private Sub Form_Resize()                '根据窗体大小来调整网格,标题栏大小(Fixed)
  706.     On Error Resume Next
  707.     With CxbbGrid
  708.         .Width = Me.Width - 160
  709.         .Height = Me.Height - .Top - 400
  710.     End With
  711.     With Pic_Title
  712.         .Width = Me.Width - 160
  713.     End With
  714.     
  715.     GsToolbar.Left = Me.Width - GsToolbar.Width - 140
  716. End Sub
  717. Private Sub Form_Load()                                                   '窗体装入
  718.   
  719.     '调入打印页面设置窗体
  720.     ReportTitle = "总帐"
  721.     XtReportCode = "Chhs_Mate"
  722.     Load Dyymctbl
  723.       
  724.     '调整标题栏及网格、格式工具条位置(Fixed)
  725.     Pic_Title.Left = 40
  726.     Pic_Title.Top = SzToolbar.Top + SzToolbar.Height - 10
  727.     CxbbGrid.Left = Pic_Title.Left
  728.     CxbbGrid.Top = Pic_Title.Top + Pic_Title.Height + 20
  729.      
  730.     '调 入 网 格(Fixed)
  731.     GridCode = "Chhs_Mate"
  732.     Call BzWgcsh(CxbbGrid, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
  733.       
  734.     Qslz = GridInf(1)
  735.     Sjhgd = GridInf(2)
  736.     Sfxshjwg = GridInf(7)
  737.     Szzls = CxbbGrid.Cols - 1
  738.         
  739.     '清除表头内容
  740.     Lbl_TitleText(0) = ""
  741.     Lbl_TitleText(1) = ""
  742. End Sub
  743. Private Sub Form_Unload(Cancel As Integer)                                  '窗体卸载
  744.     '卸载条件窗体
  745.     Zbfx_MateCond.UnloadCheck.Value = 1
  746.     Unload Zbfx_MateCond
  747.     
  748.     '卸载打印页面设置窗体
  749.     Unload Dyymctbl
  750. End Sub
  751. Private Sub CxbbGrid_BeforeMoveColumn(ByVal Col As Long, Position As Long)           '网格列发生移动时自动交换网格索引信息
  752.     Call FnBln_RefreshArray(Col, Position, GridStr(), GridInf())
  753. End Sub
  754. Private Sub GsToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)                '网格格式调整(Fixed)
  755.   
  756.     Select Case Button.Key
  757.         Case "bcgs"                                          '保存表格格式
  758.             Call Bcwggs(CxbbGrid, GridCode, GridStr())
  759.         Case "hfmrgs"                                        '恢复默认格式
  760.             Call Hfmrgs(CxbbGrid, GridCode, GridStr())
  761.         Case "szxsxm"                                        '设置显示项目
  762.             Call Szxsxm(CxbbGrid, GridCode)
  763.     End Select
  764. End Sub
  765. Private Sub SzToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
  766.     
  767.     Select Case Button.Key
  768.         Case "ymsz"                                          '页面设置
  769.             Dyymctbl.Show 1
  770.         Case "yl"                                            '预 览
  771.             Call bbyl(True)
  772.         Case "dy"                                            '打 印
  773.             Call bbyl(False)
  774.         Case "cx"                                            '查 询
  775.             Zbfx_MateCond.Show 1
  776.         Case "mx"                                            '明 细
  777.             Call Sub_Mx
  778.         Case "bz"                                            '帮 助
  779.             Call F1bz
  780.         Case "fh"                                            '退 出
  781.            Unload Me
  782.     End Select
  783. End Sub
  784. Private Sub Timer1_Timer()                                 '在窗体激活后调入查询程序
  785.     
  786.     Timer1.Enabled = False
  787.     Xt_Wait.Show
  788.     Xt_Wait.Refresh
  789.    
  790.     '加快显示速度
  791.     CxbbGrid.Redraw = False
  792.     '生成查询结果
  793.     Call Sub_Query(0, "")
  794.    
  795.     CxbbGrid.Redraw = True
  796.     
  797.     Xt_Wait.Hide
  798.     
  799.     If Qmclcy And Trim(Lbl_TitleText(0).Tag) = "计划价法" Then
  800.         CxbbGrid.ColHidden(Sydz("012", GridStr(), Szzls)) = False
  801.         CxbbGrid.ColHidden(Sydz("013", GridStr(), Szzls)) = False
  802.         CxbbGrid.ColHidden(Sydz("014", GridStr(), Szzls)) = False
  803.     Else
  804.         CxbbGrid.ColHidden(Sydz("012", GridStr(), Szzls)) = True
  805.         CxbbGrid.ColHidden(Sydz("013", GridStr(), Szzls)) = True
  806.         CxbbGrid.ColHidden(Sydz("014", GridStr(), Szzls)) = True
  807.     End If
  808. End Sub
  809. Private Sub Sub_Query(Int_QueryType As Integer, Mnumber As String)                              '生成查询结果(Define)
  810.     
  811.     '过程参数:Int_QueryType 0-"点确定按钮"查询  1-"刷新"查询
  812.     Dim Rec_Query As Recordset                  '查询结果动态集
  813.     Dim Coljsq As Long                          '网格列计数器
  814.     Dim Jsqte As Long                        '临时动态计数器
  815.     Dim Str1 As String
  816.     Dim NewCombox As ComboItem
  817.     
  818.     '以下为自定义部分[
  819.  
  820.     If Int_QueryType = 0 Then   '0-"点确定按钮"查询
  821.         With Zbfx_MateCond
  822.          
  823.             '生成查询条件
  824.             Str_QueryCondi = " where kjyear= " & Xtyear
  825.             For Jsqte = 0 To 5
  826.                 Select Case Jsqte
  827.                     Case 0  '月份(起始)
  828.                         Str_QueryCondi = Str_QueryCondi & " And a.period>= '" & .Com_QsMon.ItemData(.Com_QsMon.ListIndex) & "'"
  829.                     Case 1  '月份(终止)
  830.                         Str_QueryCondi = Str_QueryCondi & " And a.period<= '" & .Com_JzMon.ItemData(.Com_JzMon.ListIndex) & "'"
  831.                     Case 2  '仓库
  832.                         Str_QueryCondi = Str_QueryCondi & " And a.whcode='" & Trim(.LrText(0).Tag) & "'"
  833.                     Case 3  '存货分类(Like)
  834.                         If Trim(.LrText(1).Text) <> "" Then
  835.                             Str_QueryCondi = Str_QueryCondi & " And a.invsortcode like '" & Trim(.LrText(1).Tag) & "%'"
  836.                         End If
  837.                     Case 4  '查询存货范围(起始)
  838.                         If Trim(.LrText(2).Text) <> "" Then
  839.                             Str_QueryCondi = Str_QueryCondi & " And a.mnumber>='" & Trim(.LrText(2).Text) & "'"
  840.                         End If
  841.                     Case 5  '查询存货范围(终止)
  842.                         If Trim(.LrText(3).Text) <> "" Then
  843.                             Str_QueryCondi = Str_QueryCondi & " And a.mnumber<= '" & Trim(.LrText(3).Text) & "'"
  844.                         End If
  845.                 End Select
  846.             Next Jsqte
  847.         End With
  848.     
  849.         '填充存货列表
  850.         SqlStr = "SELECT Distinct Mnumber,Mname,Model FROM Chhs_V_Mate a " & Trim(Str_QueryCondi)
  851.         Xtbmczdm = SqlStr
  852.         Com_Mnumber.Enabled = True
  853.         Com_Mnumber.Text = ""
  854.         Call FillImageCombo(Com_Mnumber, "Chhs_List", 0)
  855.         If Com_Mnumber.ComboItems.count > 0 Then
  856.             Mnumber = Mid(Com_Mnumber.ComboItems.Item(1).Key, 2, 20)
  857.             mMnumber = Mnumber
  858.         End If
  859.     Else
  860.         If Str_QueryCondi = "" Then
  861.             Str_QueryCondi = " where 1=2"
  862.         End If
  863.     End If
  864.      
  865.     CxbbGrid.Rows = CxbbGrid.FixedRows
  866.     
  867.     SqlStr = "SELECT * FROM Chhs_V_Mate a " & Trim(Str_QueryCondi) & " and a.mnumber='" & Mnumber & "'  order by a.period "
  868.     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(SqlStr)
  869.     With Rec_Query
  870.         If Not .EOF Then
  871.             
  872.             '填充期初数据
  873.             CxbbGrid.AddItem ""
  874.             Jsqte = CxbbGrid.Rows - 1
  875.             CxbbGrid.RowHeight(Jsqte) = Sjhgd
  876.             CxbbGrid.TextMatrix(Jsqte, Sydz("002", GridStr(), Szzls)) = " 期初结存"
  877.             Lbl_TitleText(0).Tag = Trim(.Fields("pricemode"))
  878.             
  879.             CxbbGrid.TextMatrix(Jsqte, Sydz("009", GridStr(), Szzls)) = .Fields("StartQuan") + 0
  880.             If .Fields("StartPrice") <> 0 Then                                                                     '计划单价
  881.                 CxbbGrid.TextMatrix(Jsqte, Sydz("010", GridStr(), Szzls)) = .Fields("StartPrice") + 0
  882.             End If
  883.             CxbbGrid.TextMatrix(Jsqte, Sydz("011", GridStr(), Szzls)) = .Fields("StartMoney") + 0
  884.             If .Fields("StartDiff") <> 0 Then                                                                      '计划金额
  885.                 CxbbGrid.TextMatrix(Jsqte, Sydz("014", GridStr(), Szzls)) = .Fields("StartDiff") + 0
  886.             End If
  887.         End If
  888.     End With
  889.     
  890.     SqlStr = "SELECT * FROM Chhs_V_Mate a " & Trim(Str_QueryCondi) & " and a.mnumber='" & Mnumber & "'  order by a.period "
  891.     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(SqlStr)
  892.     With Rec_Query
  893.         Do While Not .EOF
  894.             
  895.             '日常数据
  896.             If .Fields("inmoney") <> 0 Or .Fields("outmoney") <> 0 Or .Fields("jfdiff") <> 0 Or .Fields("dfdiff") <> 0 Then
  897.                 CxbbGrid.AddItem ""
  898.                 Jsqte = CxbbGrid.Rows - 1
  899.                 CxbbGrid.RowHeight(Jsqte) = Sjhgd
  900.                 CxbbGrid.TextMatrix(Jsqte, Sydz("001", GridStr(), Szzls)) = .Fields("period")
  901.                 CxbbGrid.TextMatrix(Jsqte, Sydz("002", GridStr(), Szzls)) = " 本月合计"
  902.                 '入库
  903.                 If .Fields("InQuan") <> 0 Then                                                                           '数量
  904.                     CxbbGrid.TextMatrix(Jsqte, Sydz("003", GridStr(), Szzls)) = .Fields("InQuan") + 0
  905.                 End If
  906.                 If .Fields("InPrice") <> 0 Then                                                                      '计划单价
  907.                     CxbbGrid.TextMatrix(Jsqte, Sydz("004", GridStr(), Szzls)) = .Fields("InPrice") + 0
  908.                 End If
  909.                 If .Fields("InMoney") <> 0 Then                                                                      '计划金额
  910.                     CxbbGrid.TextMatrix(Jsqte, Sydz("005", GridStr(), Szzls)) = .Fields("InMoney") + 0
  911.                 End If
  912.                 '出库
  913.                 If .Fields("OutQuan") <> 0 Then                                                                           '数量
  914.                     CxbbGrid.TextMatrix(Jsqte, Sydz("006", GridStr(), Szzls)) = .Fields("OutQuan") + 0
  915.                 End If
  916.                 If .Fields("OutPrice") <> 0 Then                                                                          '实际单价
  917.                     CxbbGrid.TextMatrix(Jsqte, Sydz("007", GridStr(), Szzls)) = .Fields("OutPrice") + 0
  918.                 End If
  919.                 If .Fields("OutMoney") <> 0 Then                                                                         '实际金额
  920.                     CxbbGrid.TextMatrix(Jsqte, Sydz("008", GridStr(), Szzls)) = .Fields("OutMoney") + 0
  921.                 End If
  922.             
  923.                 '结存
  924.                 CxbbGrid.TextMatrix(Jsqte, Sydz("009", GridStr(), Szzls)) = Val(CxbbGrid.TextMatrix(Jsqte - 1, Sydz("009", GridStr(), Szzls))) + Val(.Fields("inquan")) - Val(.Fields("outquan"))
  925.                 CxbbGrid.TextMatrix(Jsqte, Sydz("011", GridStr(), Szzls)) = Val(CxbbGrid.TextMatrix(Jsqte - 1, Sydz("011", GridStr(), Szzls))) + Val(.Fields("inmoney")) - Val(.Fields("outmoney"))
  926.                 If Val(CxbbGrid.TextMatrix(Jsqte, Sydz("009", GridStr(), Szzls))) <> 0 Then
  927.                     CxbbGrid.TextMatrix(Jsqte, Sydz("010", GridStr(), Szzls)) = Val(CxbbGrid.TextMatrix(Jsqte, Sydz("011", GridStr(), Szzls))) / Val(CxbbGrid.TextMatrix(Jsqte, Sydz("009", GridStr(), Szzls)))
  928.                 End If
  929.                 If Val(CxbbGrid.TextMatrix(Jsqte, Sydz("010", GridStr(), Szzls))) = 0 Then
  930.                     CxbbGrid.TextMatrix(Jsqte, Sydz("010", GridStr(), Szzls)) = ""
  931.                 End If
  932.                 '差异
  933.                 If .Fields("JfDiff") <> 0 Then                                                                               '借方差异
  934.                     CxbbGrid.TextMatrix(Jsqte, Sydz("012", GridStr(), Szzls)) = .Fields("JfDiff") + 0
  935.                 End If
  936.                 If .Fields("DfDiff") <> 0 Then                                                                               '贷方差异
  937.                     CxbbGrid.TextMatrix(Jsqte, Sydz("013", GridStr(), Szzls)) = .Fields("DfDiff") + 0
  938.                 End If
  939.                 CxbbGrid.TextMatrix(Jsqte, Sydz("014", GridStr(), Szzls)) = Val(CxbbGrid.TextMatrix(Jsqte - 1, Sydz("014", GridStr(), Szzls))) + Val(.Fields("jfdiff")) - Val(.Fields("dfdiff"))
  940.                 If Val(CxbbGrid.TextMatrix(Jsqte, Sydz("014", GridStr(), Szzls))) = 0 Then
  941.                     CxbbGrid.TextMatrix(Jsqte, Sydz("014", GridStr(), Szzls)) = ""
  942.                 End If
  943.             End If
  944.             .MoveNext
  945.         Loop
  946.     End With
  947.     
  948.     ']以上为用户自定义部分
  949.     
  950.     Set Rec_Query = Nothing
  951. End Sub
  952. Private Sub Sub_Mx()                                             '明细
  953.     
  954.     If Com_Mnumber.ComboItems.count = 0 Then Exit Sub
  955.     
  956.     '明细帐
  957.     Xtcdcs = "Chhs_List"
  958.     Xtcdcsfz = Com_Mnumber.SelectedItem.Index
  959.     Load Zbfx_ListCond
  960.     With Zbfx_ListCond
  961.         .Lbl_Year = Zbfx_MateCond.Lbl_Year
  962.         .Com_QsMon.ListIndex = Zbfx_MateCond.Com_QsMon.ListIndex
  963.         .Com_JzMon.ListIndex = Zbfx_MateCond.Com_JzMon.ListIndex
  964.         
  965.         .LrText(0).Text = Zbfx_MateCond.LrText(0).Text
  966.         .LrText(0).Tag = Zbfx_MateCond.LrText(0).Tag
  967.         .LrText(1).Text = Zbfx_MateCond.LrText(1).Text
  968.         .LrText(1).Tag = Zbfx_MateCond.LrText(1).Tag
  969.         .LrText(2).Text = Zbfx_MateCond.LrText(2).Text
  970.         .LrText(3).Text = Zbfx_MateCond.LrText(3)
  971.     End With
  972.     Zbfx_List.Show
  973.     Zbfx_List.Lbl_TitleText(0).Tag = Lbl_TitleText(0).Tag
  974.     Zbfx_List.Timer1.Enabled = True
  975. End Sub
  976. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  977.     
  978.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  979.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  980.     Bbxbtgs = 1                                          '报 表 小 标 题 行 数
  981.     Bbbwhgs = 0                                          '报 表 表 尾 行 数
  982.     ReDim Bbxbt(1 To Bbxbtgs)
  983.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  984.     If Bbbwhgs <> 0 Then
  985.         ReDim Bbbwh(1 To Bbbwhgs)
  986.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  987.     End If
  988.     Bbzbt = Lab_Title(0)
  989.     Bbxbt(1) = Fun_FormatOutPut("存货:" + Trim(Com_Mnumber.Text), 40)
  990.     Bbxbt(1) = Bbxbt(1) + Fun_FormatOutPut("规格型号:" + Trim(Lbl_TitleText(0)), 40)
  991.     Bbxbt(1) = Bbxbt(1) + Fun_FormatOutPut("仓库:" + Trim(Lbl_TitleText(1)), 20)
  992.     bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  993.     Call Scyxsjb(CxbbGrid)                               '生成报表数据
  994.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  995.     If Not bbylte Then
  996.         Unload DY_Tybbyldy
  997.     End If
  998. End Sub