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

企业管理

开发平台:

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 AutoTran_Importpz 
  5.    BackColor       =   &H00E9F4FA&
  6.    BorderStyle     =   1  'Fixed Single
  7.    Caption         =   "引入外部凭证"
  8.    ClientHeight    =   6720
  9.    ClientLeft      =   675
  10.    ClientTop       =   720
  11.    ClientWidth     =   10515
  12.    BeginProperty Font 
  13.       Name            =   "宋体"
  14.       Size            =   14.25
  15.       Charset         =   134
  16.       Weight          =   700
  17.       Underline       =   0   'False
  18.       Italic          =   0   'False
  19.       Strikethrough   =   0   'False
  20.    EndProperty
  21.    Icon            =   "自动转帐凭证_引入外部凭证处理.frx":0000
  22.    KeyPreview      =   -1  'True
  23.    LinkTopic       =   "Form4"
  24.    MaxButton       =   0   'False
  25.    MinButton       =   0   'False
  26.    ScaleHeight     =   6720
  27.    ScaleWidth      =   10515
  28.    StartUpPosition =   1  '所有者中心
  29.    Begin VB.CommandButton Ydcommand1 
  30.       BeginProperty Font 
  31.          Name            =   "宋体"
  32.          Size            =   9
  33.          Charset         =   134
  34.          Weight          =   400
  35.          Underline       =   0   'False
  36.          Italic          =   0   'False
  37.          Strikethrough   =   0   'False
  38.       EndProperty
  39.       Height          =   300
  40.       Left            =   6930
  41.       Picture         =   "自动转帐凭证_引入外部凭证处理.frx":1042
  42.       Style           =   1  'Graphical
  43.       TabIndex        =   21
  44.       Top             =   1110
  45.       Visible         =   0   'False
  46.       Width           =   300
  47.    End
  48.    Begin VB.CommandButton Ydcommand 
  49.       BeginProperty Font 
  50.          Name            =   "宋体"
  51.          Size            =   9
  52.          Charset         =   134
  53.          Weight          =   400
  54.          Underline       =   0   'False
  55.          Italic          =   0   'False
  56.          Strikethrough   =   0   'False
  57.       EndProperty
  58.       Height          =   300
  59.       Left            =   6600
  60.       Picture         =   "自动转帐凭证_引入外部凭证处理.frx":13CC
  61.       Style           =   1  'Graphical
  62.       TabIndex        =   7
  63.       Top             =   1110
  64.       Visible         =   0   'False
  65.       Width           =   300
  66.    End
  67.    Begin VB.Timer Timer1 
  68.       Interval        =   1
  69.       Left            =   7200
  70.       Top             =   840
  71.    End
  72.    Begin VB.TextBox Ydtext 
  73.       BackColor       =   &H00C0FFFF&
  74.       BorderStyle     =   0  'None
  75.       BeginProperty Font 
  76.          Name            =   "宋体"
  77.          Size            =   9
  78.          Charset         =   134
  79.          Weight          =   400
  80.          Underline       =   0   'False
  81.          Italic          =   0   'False
  82.          Strikethrough   =   0   'False
  83.       EndProperty
  84.       Height          =   270
  85.       Left            =   7800
  86.       MultiLine       =   -1  'True
  87.       TabIndex        =   5
  88.       Top             =   540
  89.       Visible         =   0   'False
  90.       Width           =   1185
  91.    End
  92.    Begin VB.CheckBox Chk_DeleteMess 
  93.       BackColor       =   &H00C9ECFE&
  94.       Caption         =   "删除会计分录是否提示"
  95.       BeginProperty Font 
  96.          Name            =   "宋体"
  97.          Size            =   9
  98.          Charset         =   134
  99.          Weight          =   400
  100.          Underline       =   0   'False
  101.          Italic          =   0   'False
  102.          Strikethrough   =   0   'False
  103.       EndProperty
  104.       Height          =   285
  105.       Left            =   6330
  106.       TabIndex        =   32
  107.       Top             =   3030
  108.       Value           =   1  'Checked
  109.       Visible         =   0   'False
  110.       Width           =   2685
  111.    End
  112.    Begin VB.CheckBox Chk_Quantity 
  113.       BackColor       =   &H00C9ECFE&
  114.       Caption         =   "科目数量核算则数量不能为零"
  115.       BeginProperty Font 
  116.          Name            =   "宋体"
  117.          Size            =   9
  118.          Charset         =   134
  119.          Weight          =   400
  120.          Underline       =   0   'False
  121.          Italic          =   0   'False
  122.          Strikethrough   =   0   'False
  123.       EndProperty
  124.       Height          =   285
  125.       Left            =   6330
  126.       TabIndex        =   28
  127.       Top             =   3330
  128.       Value           =   1  'Checked
  129.       Visible         =   0   'False
  130.       Width           =   2685
  131.    End
  132.    Begin VB.TextBox LrText 
  133.       Appearance      =   0  'Flat
  134.       BeginProperty Font 
  135.          Name            =   "宋体"
  136.          Size            =   9
  137.          Charset         =   134
  138.          Weight          =   400
  139.          Underline       =   0   'False
  140.          Italic          =   0   'False
  141.          Strikethrough   =   0   'False
  142.       EndProperty
  143.       ForeColor       =   &H00FF0000&
  144.       Height          =   300
  145.       Index           =   3
  146.       Left            =   2250
  147.       TabIndex        =   24
  148.       Text            =   "3"
  149.       Top             =   1320
  150.       Visible         =   0   'False
  151.       Width           =   795
  152.    End
  153.    Begin VB.ComboBox Combo_Kjqj 
  154.       BeginProperty Font 
  155.          Name            =   "宋体"
  156.          Size            =   9
  157.          Charset         =   134
  158.          Weight          =   400
  159.          Underline       =   0   'False
  160.          Italic          =   0   'False
  161.          Strikethrough   =   0   'False
  162.       EndProperty
  163.       ForeColor       =   &H00FF0000&
  164.       Height          =   300
  165.       Left            =   8670
  166.       Style           =   2  'Dropdown List
  167.       TabIndex        =   22
  168.       Top             =   1020
  169.       Width           =   1095
  170.    End
  171.    Begin VB.TextBox LrText 
  172.       Appearance      =   0  'Flat
  173.       BeginProperty Font 
  174.          Name            =   "宋体"
  175.          Size            =   9
  176.          Charset         =   134
  177.          Weight          =   400
  178.          Underline       =   0   'False
  179.          Italic          =   0   'False
  180.          Strikethrough   =   0   'False
  181.       EndProperty
  182.       ForeColor       =   &H00FF0000&
  183.       Height          =   300
  184.       Index           =   2
  185.       Left            =   8670
  186.       TabIndex        =   2
  187.       Text            =   "2"
  188.       Top             =   1320
  189.       Width           =   1095
  190.    End
  191.    Begin VB.TextBox LrText 
  192.       Appearance      =   0  'Flat
  193.       BeginProperty Font 
  194.          Name            =   "宋体"
  195.          Size            =   9
  196.          Charset         =   134
  197.          Weight          =   400
  198.          Underline       =   0   'False
  199.          Italic          =   0   'False
  200.          Strikethrough   =   0   'False
  201.       EndProperty
  202.       ForeColor       =   &H00FF0000&
  203.       Height          =   300
  204.       Index           =   0
  205.       Left            =   1530
  206.       TabIndex        =   0
  207.       Text            =   "0"
  208.       Top             =   1320
  209.       Width           =   450
  210.    End
  211.    Begin VB.TextBox LrText 
  212.       Appearance      =   0  'Flat
  213.       BeginProperty Font 
  214.          Name            =   "宋体"
  215.          Size            =   9
  216.          Charset         =   134
  217.          Weight          =   400
  218.          Underline       =   0   'False
  219.          Italic          =   0   'False
  220.          Strikethrough   =   0   'False
  221.       EndProperty
  222.       ForeColor       =   &H00FF0000&
  223.       Height          =   300
  224.       Index           =   1
  225.       Left            =   5280
  226.       TabIndex        =   1
  227.       Text            =   "1"
  228.       Top             =   1320
  229.       Width           =   1155
  230.    End
  231.    Begin VB.ComboBox YdCombo 
  232.       BeginProperty Font 
  233.          Name            =   "宋体"
  234.          Size            =   9
  235.          Charset         =   134
  236.          Weight          =   400
  237.          Underline       =   0   'False
  238.          Italic          =   0   'False
  239.          Strikethrough   =   0   'False
  240.       EndProperty
  241.       Height          =   300
  242.       Left            =   6570
  243.       Style           =   2  'Dropdown List
  244.       TabIndex        =   6
  245.       Top             =   540
  246.       Visible         =   0   'False
  247.       Width           =   1155
  248.    End
  249.    Begin VSFlex8Ctl.VSFlexGrid WglrGrid 
  250.       Height          =   3795
  251.       Left            =   135
  252.       TabIndex        =   3
  253.       Top             =   1680
  254.       Width           =   10260
  255.       _cx             =   5080
  256.       _cy             =   5080
  257.       Appearance      =   1
  258.       BorderStyle     =   1
  259.       Enabled         =   -1  'True
  260.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  261.          Name            =   "宋体"
  262.          Size            =   9
  263.          Charset         =   134
  264.          Weight          =   400
  265.          Underline       =   0   'False
  266.          Italic          =   0   'False
  267.          Strikethrough   =   0   'False
  268.       EndProperty
  269.       MousePointer    =   0
  270.       BackColor       =   -2147483643
  271.       ForeColor       =   -2147483640
  272.       BackColorFixed  =   12640511
  273.       ForeColorFixed  =   -2147483630
  274.       BackColorSel    =   -2147483643
  275.       ForeColorSel    =   -2147483640
  276.       BackColorBkg    =   16777215
  277.       BackColorAlternate=   -2147483643
  278.       GridColor       =   -2147483633
  279.       GridColorFixed  =   -2147483632
  280.       TreeColor       =   -2147483632
  281.       FloodColor      =   192
  282.       SheetBorder     =   -2147483642
  283.       FocusRect       =   1
  284.       HighLight       =   1
  285.       AllowSelection  =   0   'False
  286.       AllowBigSelection=   0   'False
  287.       AllowUserResizing=   0
  288.       SelectionMode   =   0
  289.       GridLines       =   1
  290.       GridLinesFixed  =   2
  291.       GridLineWidth   =   1
  292.       Rows            =   5000
  293.       Cols            =   10
  294.       FixedRows       =   1
  295.       FixedCols       =   0
  296.       RowHeightMin    =   0
  297.       RowHeightMax    =   0
  298.       ColWidthMin     =   0
  299.       ColWidthMax     =   0
  300.       ExtendLastCol   =   0   'False
  301.       FormatString    =   ""
  302.       ScrollTrack     =   0   'False
  303.       ScrollBars      =   2
  304.       ScrollTips      =   0   'False
  305.       MergeCells      =   0
  306.       MergeCompare    =   0
  307.       AutoResize      =   -1  'True
  308.       AutoSizeMode    =   0
  309.       AutoSearch      =   0
  310.       AutoSearchDelay =   2
  311.       MultiTotals     =   -1  'True
  312.       SubtotalPosition=   1
  313.       OutlineBar      =   0
  314.       OutlineCol      =   0
  315.       Ellipsis        =   0
  316.       ExplorerBar     =   0
  317.       PicturesOver    =   0   'False
  318.       FillStyle       =   0
  319.       RightToLeft     =   0   'False
  320.       PictureType     =   0
  321.       TabBehavior     =   0
  322.       OwnerDraw       =   0
  323.       Editable        =   0
  324.       ShowComboButton =   1
  325.       WordWrap        =   -1  'True
  326.       TextStyle       =   0
  327.       TextStyleFixed  =   0
  328.       OleDragMode     =   0
  329.       OleDropMode     =   0
  330.       DataMode        =   0
  331.       VirtualData     =   -1  'True
  332.       DataMember      =   ""
  333.       ComboSearch     =   3
  334.       AutoSizeMouse   =   -1  'True
  335.       FrozenRows      =   0
  336.       FrozenCols      =   0
  337.       AllowUserFreezing=   0
  338.       BackColorFrozen =   0
  339.       ForeColorFrozen =   0
  340.       WallPaperAlignment=   9
  341.       AccessibleName  =   ""
  342.       AccessibleDescription=   ""
  343.       AccessibleValue =   ""
  344.       AccessibleRole  =   24
  345.       Begin VB.CheckBox Chk_CodeOutput 
  346.          BackColor       =   &H00C9ECFE&
  347.          Caption         =   "打印凭证是否输出科目编码"
  348.          BeginProperty Font 
  349.             Name            =   "宋体"
  350.             Size            =   9
  351.             Charset         =   134
  352.             Weight          =   400
  353.             Underline       =   0   'False
  354.             Italic          =   0   'False
  355.             Strikethrough   =   0   'False
  356.          EndProperty
  357.          Height          =   255
  358.          Left            =   6060
  359.          TabIndex        =   36
  360.          Top             =   1740
  361.          Visible         =   0   'False
  362.          Width           =   2685
  363.       End
  364.       Begin VSFlex8Ctl.VSFlexGrid HjGrid 
  365.          Height          =   555
  366.          Left            =   0
  367.          TabIndex        =   8
  368.          Top             =   3270
  369.          Width           =   7545
  370.          _cx             =   5080
  371.          _cy             =   5080
  372.          Appearance      =   1
  373.          BorderStyle     =   0
  374.          Enabled         =   -1  'True
  375.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  376.             Name            =   "宋体"
  377.             Size            =   9
  378.             Charset         =   134
  379.             Weight          =   400
  380.             Underline       =   0   'False
  381.             Italic          =   0   'False
  382.             Strikethrough   =   0   'False
  383.          EndProperty
  384.          MousePointer    =   0
  385.          BackColor       =   15332602
  386.          ForeColor       =   -2147483640
  387.          BackColorFixed  =   -2147483633
  388.          ForeColorFixed  =   -2147483630
  389.          BackColorSel    =   -2147483643
  390.          ForeColorSel    =   -2147483640
  391.          BackColorBkg    =   16777215
  392.          BackColorAlternate=   15332602
  393.          GridColor       =   -2147483633
  394.          GridColorFixed  =   -2147483632
  395.          TreeColor       =   -2147483632
  396.          FloodColor      =   192
  397.          SheetBorder     =   -2147483642
  398.          FocusRect       =   1
  399.          HighLight       =   1
  400.          AllowSelection  =   0   'False
  401.          AllowBigSelection=   0   'False
  402.          AllowUserResizing=   0
  403.          SelectionMode   =   0
  404.          GridLines       =   1
  405.          GridLinesFixed  =   2
  406.          GridLineWidth   =   1
  407.          Rows            =   5000
  408.          Cols            =   10
  409.          FixedRows       =   1
  410.          FixedCols       =   0
  411.          RowHeightMin    =   0
  412.          RowHeightMax    =   0
  413.          ColWidthMin     =   0
  414.          ColWidthMax     =   0
  415.          ExtendLastCol   =   0   'False
  416.          FormatString    =   ""
  417.          ScrollTrack     =   0   'False
  418.          ScrollBars      =   3
  419.          ScrollTips      =   0   'False
  420.          MergeCells      =   0
  421.          MergeCompare    =   0
  422.          AutoResize      =   -1  'True
  423.          AutoSizeMode    =   0
  424.          AutoSearch      =   0
  425.          AutoSearchDelay =   2
  426.          MultiTotals     =   -1  'True
  427.          SubtotalPosition=   1
  428.          OutlineBar      =   0
  429.          OutlineCol      =   0
  430.          Ellipsis        =   0
  431.          ExplorerBar     =   0
  432.          PicturesOver    =   0   'False
  433.          FillStyle       =   0
  434.          RightToLeft     =   0   'False
  435.          PictureType     =   0
  436.          TabBehavior     =   0
  437.          OwnerDraw       =   0
  438.          Editable        =   0
  439.          ShowComboButton =   1
  440.          WordWrap        =   -1  'True
  441.          TextStyle       =   0
  442.          TextStyleFixed  =   0
  443.          OleDragMode     =   0
  444.          OleDropMode     =   0
  445.          DataMode        =   0
  446.          VirtualData     =   -1  'True
  447.          DataMember      =   ""
  448.          ComboSearch     =   3
  449.          AutoSizeMouse   =   -1  'True
  450.          FrozenRows      =   0
  451.          FrozenCols      =   0
  452.          AllowUserFreezing=   0
  453.          BackColorFrozen =   0
  454.          ForeColorFrozen =   0
  455.          WallPaperAlignment=   9
  456.          AccessibleName  =   ""
  457.          AccessibleDescription=   ""
  458.          AccessibleValue =   ""
  459.          AccessibleRole  =   24
  460.       End
  461.    End
  462.    Begin VB.Frame Frame1 
  463.       BackColor       =   &H00E9F4FA&
  464.       BeginProperty Font 
  465.          Name            =   "宋体"
  466.          Size            =   9
  467.          Charset         =   134
  468.          Weight          =   400
  469.          Underline       =   0   'False
  470.          Italic          =   0   'False
  471.          Strikethrough   =   0   'False
  472.       EndProperty
  473.       Height          =   855
  474.       Left            =   150
  475.       TabIndex        =   12
  476.       Top             =   5400
  477.       Width           =   10215
  478.       Begin VB.Label Lab_Memo 
  479.          Appearance      =   0  'Flat
  480.          BackColor       =   &H00E9F4FA&
  481.          BorderStyle     =   1  'Fixed Single
  482.          BeginProperty Font 
  483.             Name            =   "宋体"
  484.             Size            =   9
  485.             Charset         =   134
  486.             Weight          =   400
  487.             Underline       =   0   'False
  488.             Italic          =   0   'False
  489.             Strikethrough   =   0   'False
  490.          EndProperty
  491.          ForeColor       =   &H00FF0000&
  492.          Height          =   675
  493.          Index           =   0
  494.          Left            =   330
  495.          TabIndex        =   13
  496.          Top             =   120
  497.          Width           =   9825
  498.       End
  499.       Begin VB.Label Lab_Memo 
  500.          Alignment       =   2  'Center
  501.          Appearance      =   0  'Flat
  502.          BackColor       =   &H00E9F4FA&
  503.          BorderStyle     =   1  'Fixed Single
  504.          Caption         =   "备 注"
  505.          BeginProperty Font 
  506.             Name            =   "宋体"
  507.             Size            =   9
  508.             Charset         =   134
  509.             Weight          =   400
  510.             Underline       =   0   'False
  511.             Italic          =   0   'False
  512.             Strikethrough   =   0   'False
  513.          EndProperty
  514.          ForeColor       =   &H80000008&
  515.          Height          =   675
  516.          Index           =   1
  517.          Left            =   30
  518.          TabIndex        =   14
  519.          Top             =   120
  520.          Width           =   285
  521.          WordWrap        =   -1  'True
  522.       End
  523.    End
  524.    Begin MSComctlLib.ImageList ImageList1 
  525.       Left            =   9780
  526.       Top             =   1320
  527.       _ExtentX        =   1005
  528.       _ExtentY        =   1005
  529.       BackColor       =   -2147483643
  530.       ImageWidth      =   16
  531.       ImageHeight     =   16
  532.       MaskColor       =   12632256
  533.       _Version        =   393216
  534.       BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  535.          NumListImages   =   18
  536.          BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  537.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":1756
  538.             Key             =   "sz"
  539.          EndProperty
  540.          BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  541.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":1AF0
  542.             Key             =   "dy"
  543.          EndProperty
  544.          BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  545.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":1E8A
  546.             Key             =   "yl"
  547.          EndProperty
  548.          BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  549.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":2224
  550.             Key             =   "xg"
  551.          EndProperty
  552.          BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  553.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":25BE
  554.             Key             =   "zh"
  555.          EndProperty
  556.          BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  557.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":2958
  558.             Key             =   "sh"
  559.          EndProperty
  560.          BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  561.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":2CF2
  562.             Key             =   "bc"
  563.          EndProperty
  564.          BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  565.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":308C
  566.             Key             =   "fq"
  567.          EndProperty
  568.          BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  569.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":3426
  570.             Key             =   "bz"
  571.          EndProperty
  572.          BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  573.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":37C0
  574.             Key             =   "tc"
  575.          EndProperty
  576.          BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  577.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":3B5A
  578.             Key             =   "bcgs"
  579.          EndProperty
  580.          BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  581.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":3EF4
  582.             Key             =   "mrlk"
  583.          EndProperty
  584.          BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  585.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":428E
  586.             Key             =   "xsxm"
  587.          EndProperty
  588.          BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  589.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":4628
  590.             Key             =   "first"
  591.          EndProperty
  592.          BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  593.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":49C2
  594.             Key             =   "prev"
  595.          EndProperty
  596.          BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  597.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":4D5C
  598.             Key             =   "next"
  599.          EndProperty
  600.          BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  601.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":50F6
  602.             Key             =   "last"
  603.          EndProperty
  604.          BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  605.             Picture         =   "自动转帐凭证_引入外部凭证处理.frx":5490
  606.             Key             =   "xx"
  607.          EndProperty
  608.       EndProperty
  609.    End
  610.    Begin MSComctlLib.Toolbar Tlb_Action 
  611.       Align           =   1  'Align Top
  612.       Height          =   555
  613.       Left            =   0
  614.       TabIndex        =   50
  615.       Top             =   0
  616.       Width           =   10515
  617.       _ExtentX        =   18547
  618.       _ExtentY        =   979
  619.       ButtonWidth     =   820
  620.       ButtonHeight    =   926
  621.       AllowCustomize  =   0   'False
  622.       Wrappable       =   0   'False
  623.       Appearance      =   1
  624.       Style           =   1
  625.       ImageList       =   "ImageList1"
  626.       _Version        =   393216
  627.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  628.          NumButtons      =   19
  629.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  630.             Caption         =   "设置"
  631.             Key             =   "ymsz"
  632.             Object.ToolTipText     =   "打印页面设置"
  633.             ImageIndex      =   1
  634.          EndProperty
  635.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  636.             Caption         =   "打印"
  637.             Key             =   "dy"
  638.             Object.ToolTipText     =   "打印当前单据或Ctrl+P"
  639.             ImageIndex      =   2
  640.          EndProperty
  641.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  642.             Caption         =   "预览"
  643.             Key             =   "yl"
  644.             ImageIndex      =   3
  645.          EndProperty
  646.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  647.             Style           =   3
  648.          EndProperty
  649.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  650.             Caption         =   "增行"
  651.             Key             =   "zh"
  652.             Object.ToolTipText     =   "插入一行或Insert"
  653.             ImageIndex      =   5
  654.          EndProperty
  655.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  656.             Caption         =   "删行"
  657.             Key             =   "sh"
  658.             Object.ToolTipText     =   "删除当前记录行或Delete"
  659.             ImageIndex      =   6
  660.          EndProperty
  661.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  662.             Key             =   "fgh1"
  663.             Style           =   3
  664.          EndProperty
  665.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  666.             Caption         =   "保存"
  667.             Key             =   "bc"
  668.             Object.ToolTipText     =   "保存单据或F6"
  669.             ImageIndex      =   7
  670.          EndProperty
  671.          BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  672.             Caption         =   "放弃"
  673.             Key             =   "fq"
  674.             Object.ToolTipText     =   "放弃此次操作"
  675.             ImageIndex      =   8
  676.          EndProperty
  677.          BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  678.             Key             =   "fgh2"
  679.             Style           =   3
  680.          EndProperty
  681.          BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  682.             Caption         =   "首张"
  683.             Key             =   "first"
  684.             ImageIndex      =   14
  685.          EndProperty
  686.          BeginProperty Button12 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  687.             Caption         =   "上张"
  688.             Key             =   "prev"
  689.             ImageIndex      =   15
  690.          EndProperty
  691.          BeginProperty Button13 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  692.             Caption         =   "下张"
  693.             Key             =   "next"
  694.             ImageIndex      =   16
  695.          EndProperty
  696.          BeginProperty Button14 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  697.             Caption         =   "末张"
  698.             Key             =   "last"
  699.             ImageIndex      =   17
  700.          EndProperty
  701.          BeginProperty Button15 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  702.             Key             =   "fgh5"
  703.             ImageIndex      =   18
  704.             Style           =   3
  705.          EndProperty
  706.          BeginProperty Button16 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  707.             Caption         =   "选项"
  708.             Key             =   "xx"
  709.             ImageIndex      =   18
  710.          EndProperty
  711.          BeginProperty Button17 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  712.             Style           =   3
  713.          EndProperty
  714.          BeginProperty Button18 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  715.             Caption         =   "帮助"
  716.             Key             =   "bz"
  717.             ImageIndex      =   9
  718.          EndProperty
  719.          BeginProperty Button19 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  720.             Caption         =   "退出"
  721.             Key             =   "fh"
  722.             ImageIndex      =   10
  723.          EndProperty
  724.       EndProperty
  725.       BorderStyle     =   1
  726.    End
  727.    Begin VB.Label TsLabel 
  728.       BackStyle       =   0  'Transparent
  729.       Caption         =   "制单:"
  730.       BeginProperty Font 
  731.          Name            =   "宋体"
  732.          Size            =   9
  733.          Charset         =   134
  734.          Weight          =   400
  735.          Underline       =   0   'False
  736.          Italic          =   0   'False
  737.          Strikethrough   =   0   'False
  738.       EndProperty
  739.       Height          =   225
  740.       Index           =   23
  741.       Left            =   8520
  742.       TabIndex        =   49
  743.       Top             =   6390
  744.       Width           =   525
  745.    End
  746.    Begin VB.Label TsLabel 
  747.       BackStyle       =   0  'Transparent
  748.       Caption         =   "审核:"
  749.       BeginProperty Font 
  750.          Name            =   "宋体"
  751.          Size            =   9
  752.          Charset         =   134
  753.          Weight          =   400
  754.          Underline       =   0   'False
  755.          Italic          =   0   'False
  756.          Strikethrough   =   0   'False
  757.       EndProperty
  758.       Height          =   225
  759.       Index           =   22
  760.       Left            =   6645
  761.       TabIndex        =   48
  762.       Top             =   6390
  763.       Width           =   495
  764.    End
  765.    Begin VB.Label TsLabel 
  766.       BackStyle       =   0  'Transparent
  767.       Caption         =   "记帐:"
  768.       BeginProperty Font 
  769.          Name            =   "宋体"
  770.          Size            =   9
  771.          Charset         =   134
  772.          Weight          =   400
  773.          Underline       =   0   'False
  774.          Italic          =   0   'False
  775.          Strikethrough   =   0   'False
  776.       EndProperty
  777.       Height          =   225
  778.       Index           =   21
  779.       Left            =   2595
  780.       TabIndex        =   47
  781.       Top             =   6390
  782.       Width           =   645
  783.    End
  784.    Begin VB.Label TsLabel 
  785.       BackStyle       =   0  'Transparent
  786.       Caption         =   "会计主管:"
  787.       BeginProperty Font 
  788.          Name            =   "宋体"
  789.          Size            =   9
  790.          Charset         =   134
  791.          Weight          =   400
  792.          Underline       =   0   'False
  793.          Italic          =   0   'False
  794.          Strikethrough   =   0   'False
  795.       EndProperty
  796.       Height          =   225
  797.       Index           =   20
  798.       Left            =   360
  799.       TabIndex        =   46
  800.       Top             =   6390
  801.       Width           =   855
  802.    End
  803.    Begin VB.Label TsLabel 
  804.       BackStyle       =   0  'Transparent
  805.       Caption         =   "出纳:"
  806.       BeginProperty Font 
  807.          Name            =   "宋体"
  808.          Size            =   9
  809.          Charset         =   134
  810.          Weight          =   400
  811.          Underline       =   0   'False
  812.          Italic          =   0   'False
  813.          Strikethrough   =   0   'False
  814.       EndProperty
  815.       Height          =   225
  816.       Index           =   19
  817.       Left            =   4620
  818.       TabIndex        =   45
  819.       Top             =   6390
  820.       Width           =   645
  821.    End
  822.    Begin VB.Label Label5 
  823.       Appearance      =   0  'Flat
  824.       BackColor       =   &H80000005&
  825.       BackStyle       =   0  'Transparent
  826.       BeginProperty Font 
  827.          Name            =   "宋体"
  828.          Size            =   9
  829.          Charset         =   134
  830.          Weight          =   400
  831.          Underline       =   0   'False
  832.          Italic          =   0   'False
  833.          Strikethrough   =   0   'False
  834.       EndProperty
  835.       ForeColor       =   &H00000000&
  836.       Height          =   225
  837.       Left            =   2790
  838.       TabIndex        =   44
  839.       Top             =   30
  840.       Width           =   735
  841.    End
  842.    Begin VB.Label Label2 
  843.       Appearance      =   0  'Flat
  844.       BackColor       =   &H80000005&
  845.       BackStyle       =   0  'Transparent
  846.       BeginProperty Font 
  847.          Name            =   "宋体"
  848.          Size            =   9
  849.          Charset         =   134
  850.          Weight          =   400
  851.          Underline       =   0   'False
  852.          Italic          =   0   'False
  853.          Strikethrough   =   0   'False
  854.       EndProperty
  855.       ForeColor       =   &H00000000&
  856.       Height          =   225
  857.       Left            =   5760
  858.       TabIndex        =   43
  859.       Top             =   6390
  860.       Width           =   735
  861.    End
  862.    Begin VB.Label Label1 
  863.       Appearance      =   0  'Flat
  864.       BackColor       =   &H80000005&
  865.       BackStyle       =   0  'Transparent
  866.       BeginProperty Font 
  867.          Name            =   "宋体"
  868.          Size            =   9
  869.          Charset         =   134
  870.          Weight          =   400
  871.          Underline       =   0   'False
  872.          Italic          =   0   'False
  873.          Strikethrough   =   0   'False
  874.       EndProperty
  875.       ForeColor       =   &H00000000&
  876.       Height          =   225
  877.       Left            =   9210
  878.       TabIndex        =   42
  879.       Top             =   6390
  880.       Width           =   735
  881.    End
  882.    Begin VB.Label Lab_VouchSource 
  883.       Caption         =   "Lab_VouchSource"
  884.       BeginProperty Font 
  885.          Name            =   "宋体"
  886.          Size            =   9
  887.          Charset         =   134
  888.          Weight          =   400
  889.          Underline       =   0   'False
  890.          Italic          =   0   'False
  891.          Strikethrough   =   0   'False
  892.       EndProperty
  893.       Height          =   285
  894.       Left            =   1260
  895.       TabIndex        =   41
  896.       Top             =   660
  897.       Visible         =   0   'False
  898.       Width           =   1095
  899.    End
  900.    Begin VB.Label Lab_OperNum 
  901.       Caption         =   "Lab_OperNum"
  902.       BeginProperty Font 
  903.          Name            =   "宋体"
  904.          Size            =   9
  905.          Charset         =   134
  906.          Weight          =   400
  907.          Underline       =   0   'False
  908.          Italic          =   0   'False
  909.          Strikethrough   =   0   'False
  910.       EndProperty
  911.       Height          =   285
  912.       Left            =   2370
  913.       TabIndex        =   40
  914.       Top             =   660
  915.       Visible         =   0   'False
  916.       Width           =   1065
  917.    End
  918.    Begin VB.Label Lab_Error 
  919.       Appearance      =   0  'Flat
  920.       BackColor       =   &H80000005&
  921.       BackStyle       =   0  'Transparent
  922.       BorderStyle     =   1  'Fixed Single
  923.       Caption         =   "有错"
  924.       BeginProperty Font 
  925.          Name            =   "宋体"
  926.          Size            =   15.75
  927.          Charset         =   134
  928.          Weight          =   400
  929.          Underline       =   0   'False
  930.          Italic          =   0   'False
  931.          Strikethrough   =   0   'False
  932.       EndProperty
  933.       ForeColor       =   &H000000FF&
  934.       Height          =   390
  935.       Left            =   120
  936.       TabIndex        =   39
  937.       Top             =   720
  938.       Visible         =   0   'False
  939.       Width           =   825
  940.    End
  941.    Begin VB.Label Lab_Succeed 
  942.       Appearance      =   0  'Flat
  943.       BackColor       =   &H80000005&
  944.       BackStyle       =   0  'Transparent
  945.       BorderStyle     =   1  'Fixed Single
  946.       Caption         =   "已生成"
  947.       BeginProperty Font 
  948.          Name            =   "宋体"
  949.          Size            =   15
  950.          Charset         =   134
  951.          Weight          =   400
  952.          Underline       =   0   'False
  953.          Italic          =   0   'False
  954.          Strikethrough   =   0   'False
  955.       EndProperty
  956.       ForeColor       =   &H000000FF&
  957.       Height          =   405
  958.       Left            =   120
  959.       TabIndex        =   38
  960.       Top             =   660
  961.       Visible         =   0   'False
  962.       Width           =   1005
  963.    End
  964.    Begin VB.Label Lab_VouchId 
  965.       AutoSize        =   -1  'True
  966.       BackColor       =   &H00C0C0C0&
  967.       Caption         =   "Lab_VouchId"
  968.       BeginProperty Font 
  969.          Name            =   "宋体"
  970.          Size            =   9
  971.          Charset         =   134
  972.          Weight          =   400
  973.          Underline       =   0   'False
  974.          Italic          =   0   'False
  975.          Strikethrough   =   0   'False
  976.       EndProperty
  977.       Height          =   180
  978.       Left            =   3060
  979.       TabIndex        =   37
  980.       Top             =   1380
  981.       Visible         =   0   'False
  982.       Width           =   990
  983.    End
  984.    Begin VB.Label TsLabel 
  985.       BackStyle       =   0  'Transparent
  986.       Caption         =   "出纳:"
  987.       BeginProperty Font 
  988.          Name            =   "宋体"
  989.          Size            =   9
  990.          Charset         =   134
  991.          Weight          =   400
  992.          Underline       =   0   'False
  993.          Italic          =   0   'False
  994.          Strikethrough   =   0   'False
  995.       EndProperty
  996.       Height          =   225
  997.       Index           =   14
  998.       Left            =   4680
  999.       TabIndex        =   35
  1000.       Top             =   6900
  1001.       Width           =   645
  1002.    End
  1003.    Begin VB.Label TsLabel 
  1004.       BackStyle       =   0  'Transparent
  1005.       Caption         =   "会计主管:"
  1006.       BeginProperty Font 
  1007.          Name            =   "宋体"
  1008.          Size            =   9
  1009.          Charset         =   134
  1010.          Weight          =   400
  1011.          Underline       =   0   'False
  1012.          Italic          =   0   'False
  1013.          Strikethrough   =   0   'False
  1014.       EndProperty
  1015.       Height          =   225
  1016.       Index           =   3
  1017.       Left            =   420
  1018.       TabIndex        =   34
  1019.       Top             =   6900
  1020.       Width           =   855
  1021.    End
  1022.    Begin VB.Label TsLabel 
  1023.       BackStyle       =   0  'Transparent
  1024.       Caption         =   "当前记录"
  1025.       BeginProperty Font 
  1026.          Name            =   "宋体"
  1027.          Size            =   9
  1028.          Charset         =   134
  1029.          Weight          =   400
  1030.          Underline       =   0   'False
  1031.          Italic          =   0   'False
  1032.          Strikethrough   =   0   'False
  1033.       EndProperty
  1034.       Height          =   255
  1035.       Index           =   13
  1036.       Left            =   7860
  1037.       TabIndex        =   33
  1038.       Top             =   810
  1039.       Width           =   825
  1040.    End
  1041.    Begin VB.Label Lab_Pzclzt 
  1042.       BackColor       =   &H0000FFFF&
  1043.       Caption         =   "1"
  1044.       BeginProperty Font 
  1045.          Name            =   "宋体"
  1046.          Size            =   9
  1047.          Charset         =   134
  1048.          Weight          =   400
  1049.          Underline       =   0   'False
  1050.          Italic          =   0   'False
  1051.          Strikethrough   =   0   'False
  1052.       EndProperty
  1053.       ForeColor       =   &H00808080&
  1054.       Height          =   255
  1055.       Left            =   6600
  1056.       TabIndex        =   31
  1057.       Top             =   840
  1058.       Visible         =   0   'False
  1059.       Width           =   285
  1060.    End
  1061.    Begin VB.Label TsLabel 
  1062.       BackStyle       =   0  'Transparent
  1063.       Caption         =   "行)"
  1064.       BeginProperty Font 
  1065.          Name            =   "宋体"
  1066.          Size            =   9
  1067.          Charset         =   134
  1068.          Weight          =   400
  1069.          Underline       =   0   'False
  1070.          Italic          =   0   'False
  1071.          Strikethrough   =   0   'False
  1072.       EndProperty
  1073.       Height          =   255
  1074.       Index           =   12
  1075.       Left            =   9330
  1076.       TabIndex        =   30
  1077.       Top             =   810
  1078.       Width           =   405
  1079.    End
  1080.    Begin VB.Label TsLabel 
  1081.       BackStyle       =   0  'Transparent
  1082.       Caption         =   "(第"
  1083.       BeginProperty Font 
  1084.          Name            =   "宋体"
  1085.          Size            =   9
  1086.          Charset         =   134
  1087.          Weight          =   400
  1088.          Underline       =   0   'False
  1089.          Italic          =   0   'False
  1090.          Strikethrough   =   0   'False
  1091.       EndProperty
  1092.       Height          =   255
  1093.       Index           =   11
  1094.       Left            =   8700
  1095.       TabIndex        =   29
  1096.       Top             =   810
  1097.       Width           =   315
  1098.    End
  1099.    Begin VB.Label Lab_Row 
  1100.       Alignment       =   2  'Center
  1101.       Appearance      =   0  'Flat
  1102.       BackColor       =   &H80000005&
  1103.       BackStyle       =   0  'Transparent
  1104.       BeginProperty Font 
  1105.          Name            =   "宋体"
  1106.          Size            =   9
  1107.          Charset         =   134
  1108.          Weight          =   400
  1109.          Underline       =   0   'False
  1110.          Italic          =   0   'False
  1111.          Strikethrough   =   0   'False
  1112.       EndProperty
  1113.       ForeColor       =   &H00FF0000&
  1114.       Height          =   225
  1115.       Left            =   9000
  1116.       TabIndex        =   27
  1117.       Top             =   810
  1118.       Width           =   315
  1119.    End
  1120.    Begin VB.Label Lab_OperStatus 
  1121.       BackColor       =   &H000080FF&
  1122.       Caption         =   "2"
  1123.       BeginProperty Font 
  1124.          Name            =   "宋体"
  1125.          Size            =   9
  1126.          Charset         =   134
  1127.          Weight          =   400
  1128.          Underline       =   0   'False
  1129.          Italic          =   0   'False
  1130.          Strikethrough   =   0   'False
  1131.       EndProperty
  1132.       Height          =   225
  1133.       Left            =   6930
  1134.       TabIndex        =   26
  1135.       Top             =   840
  1136.       Visible         =   0   'False
  1137.       Width           =   195
  1138.    End
  1139.    Begin VB.Label TsLabel 
  1140.       BackStyle       =   0  'Transparent
  1141.       Caption         =   "字"
  1142.       BeginProperty Font 
  1143.          Name            =   "宋体"
  1144.          Size            =   9
  1145.          Charset         =   134
  1146.          Weight          =   400
  1147.          Underline       =   0   'False
  1148.          Italic          =   0   'False
  1149.          Strikethrough   =   0   'False
  1150.       EndProperty
  1151.       Height          =   195
  1152.       Index           =   10
  1153.       Left            =   2040
  1154.       TabIndex        =   25
  1155.       Top             =   1380
  1156.       Visible         =   0   'False
  1157.       Width           =   255
  1158.    End
  1159.    Begin VB.Label TsLabel 
  1160.       BackStyle       =   0  'Transparent
  1161.       Caption         =   "会计期间"
  1162.       BeginProperty Font 
  1163.          Name            =   "宋体"
  1164.          Size            =   9
  1165.          Charset         =   134
  1166.          Weight          =   400
  1167.          Underline       =   0   'False
  1168.          Italic          =   0   'False
  1169.          Strikethrough   =   0   'False
  1170.       EndProperty
  1171.       Height          =   255
  1172.       Index           =   9
  1173.       Left            =   7860
  1174.       TabIndex        =   23
  1175.       Top             =   1080
  1176.       Width           =   825
  1177.    End
  1178.    Begin VB.Label Lab_Bill 
  1179.       Appearance      =   0  'Flat
  1180.       AutoSize        =   -1  'True
  1181.       BackColor       =   &H80000005&
  1182.       BackStyle       =   0  'Transparent
  1183.       BeginProperty Font 
  1184.          Name            =   "宋体"
  1185.          Size            =   9
  1186.          Charset         =   134
  1187.          Weight          =   400
  1188.          Underline       =   0   'False
  1189.          Italic          =   0   'False
  1190.          Strikethrough   =   0   'False
  1191.       EndProperty
  1192.       ForeColor       =   &H00000000&
  1193.       Height          =   180
  1194.       Left            =   9120
  1195.       TabIndex        =   20
  1196.       Top             =   6390
  1197.       Width           =   90
  1198.    End
  1199.    Begin VB.Label Lab_Checker 
  1200.       Appearance      =   0  'Flat
  1201.       AutoSize        =   -1  'True
  1202.       BackColor       =   &H80000005&
  1203.       BackStyle       =   0  'Transparent
  1204.       BeginProperty Font 
  1205.          Name            =   "宋体"
  1206.          Size            =   9
  1207.          Charset         =   134
  1208.          Weight          =   400
  1209.          Underline       =   0   'False
  1210.          Italic          =   0   'False
  1211.          Strikethrough   =   0   'False
  1212.       EndProperty
  1213.       ForeColor       =   &H00000000&
  1214.       Height          =   180
  1215.       Left            =   7260
  1216.       TabIndex        =   19
  1217.       Top             =   6390
  1218.       Width           =   90
  1219.    End
  1220.    Begin VB.Label Lab_Book 
  1221.       Appearance      =   0  'Flat
  1222.       AutoSize        =   -1  'True
  1223.       BackColor       =   &H80000005&
  1224.       BackStyle       =   0  'Transparent
  1225.       BeginProperty Font 
  1226.          Name            =   "宋体"
  1227.          Size            =   9
  1228.          Charset         =   134
  1229.          Weight          =   400
  1230.          Underline       =   0   'False
  1231.          Italic          =   0   'False
  1232.          Strikethrough   =   0   'False
  1233.       EndProperty
  1234.       ForeColor       =   &H00000000&
  1235.       Height          =   180
  1236.       Left            =   3210
  1237.       TabIndex        =   18
  1238.       Top             =   6390
  1239.       Width           =   90
  1240.    End
  1241.    Begin VB.Label TsLabel 
  1242.       BackStyle       =   0  'Transparent
  1243.       Caption         =   "记帐:"
  1244.       BeginProperty Font 
  1245.          Name            =   "宋体"
  1246.          Size            =   9
  1247.          Charset         =   134
  1248.          Weight          =   400
  1249.          Underline       =   0   'False
  1250.          Italic          =   0   'False
  1251.          Strikethrough   =   0   'False
  1252.       EndProperty
  1253.       Height          =   225
  1254.       Index           =   8
  1255.       Left            =   2655
  1256.       TabIndex        =   17
  1257.       Top             =   6900
  1258.       Width           =   645
  1259.    End
  1260.    Begin VB.Label TsLabel 
  1261.       BackStyle       =   0  'Transparent
  1262.       Caption         =   "审核:"
  1263.       BeginProperty Font 
  1264.          Name            =   "宋体"
  1265.          Size            =   9
  1266.          Charset         =   134
  1267.          Weight          =   400
  1268.          Underline       =   0   'False
  1269.          Italic          =   0   'False
  1270.          Strikethrough   =   0   'False
  1271.       EndProperty
  1272.       Height          =   225
  1273.       Index           =   7
  1274.       Left            =   6705
  1275.       TabIndex        =   16
  1276.       Top             =   6900
  1277.       Width           =   495
  1278.    End
  1279.    Begin VB.Label TsLabel 
  1280.       BackStyle       =   0  'Transparent
  1281.       Caption         =   "制单:"
  1282.       BeginProperty Font 
  1283.          Name            =   "宋体"
  1284.          Size            =   9
  1285.          Charset         =   134
  1286.          Weight          =   400
  1287.          Underline       =   0   'False
  1288.          Italic          =   0   'False
  1289.          Strikethrough   =   0   'False
  1290.       EndProperty
  1291.       Height          =   225
  1292.       Index           =   5
  1293.       Left            =   8580
  1294.       TabIndex        =   15
  1295.       Top             =   6900
  1296.       Width           =   525
  1297.    End
  1298.    Begin VB.Label TsLabel 
  1299.       BackStyle       =   0  'Transparent
  1300.       Caption         =   "附单据数"
  1301.       BeginProperty Font 
  1302.          Name            =   "宋体"
  1303.          Size            =   9
  1304.          Charset         =   134
  1305.          Weight          =   400
  1306.          Underline       =   0   'False
  1307.          Italic          =   0   'False
  1308.          Strikethrough   =   0   'False
  1309.       EndProperty
  1310.       Height          =   255
  1311.       Index           =   2
  1312.       Left            =   7860
  1313.       TabIndex        =   11
  1314.       Top             =   1380
  1315.       Width           =   825
  1316.    End
  1317.    Begin VB.Label TsLabel 
  1318.       BackStyle       =   0  'Transparent
  1319.       Caption         =   "类别字号"
  1320.       BeginProperty Font 
  1321.          Name            =   "宋体"
  1322.          Size            =   9
  1323.          Charset         =   134
  1324.          Weight          =   400
  1325.          Underline       =   0   'False
  1326.          Italic          =   0   'False
  1327.          Strikethrough   =   0   'False
  1328.       EndProperty
  1329.       Height          =   225
  1330.       Index           =   0
  1331.       Left            =   750
  1332.       TabIndex        =   10
  1333.       Top             =   1380
  1334.       Width           =   825
  1335.    End
  1336.    Begin VB.Label TsLabel 
  1337.       BackStyle       =   0  'Transparent
  1338.       Caption         =   "制单日期"
  1339.       BeginProperty Font 
  1340.          Name            =   "宋体"
  1341.          Size            =   9
  1342.          Charset         =   134
  1343.          Weight          =   400
  1344.          Underline       =   0   'False
  1345.          Italic          =   0   'False
  1346.          Strikethrough   =   0   'False
  1347.       EndProperty
  1348.       Height          =   255
  1349.       Index           =   1
  1350.       Left            =   4470
  1351.       TabIndex        =   9
  1352.       Top             =   1380
  1353.       Width           =   825
  1354.    End
  1355.    Begin VB.Line Line1 
  1356.       BorderColor     =   &H00000000&
  1357.       Index           =   0
  1358.       X1              =   3945
  1359.       X2              =   6270
  1360.       Y1              =   1035
  1361.       Y2              =   1035
  1362.    End
  1363.    Begin VB.Line Line1 
  1364.       BorderColor     =   &H00000000&
  1365.       Index           =   1
  1366.       X1              =   3930
  1367.       X2              =   6270
  1368.       Y1              =   1080
  1369.       Y2              =   1080
  1370.    End
  1371.    Begin VB.Label TsLabel 
  1372.       BackColor       =   &H80000018&
  1373.       BackStyle       =   0  'Transparent
  1374.       Caption         =   "记 帐 凭 证"
  1375.       ForeColor       =   &H00000000&
  1376.       Height          =   330
  1377.       Index           =   4
  1378.       Left            =   4290
  1379.       TabIndex        =   4
  1380.       Top             =   720
  1381.       Width           =   2115
  1382.    End
  1383. End
  1384. Attribute VB_Name = "AutoTran_Importpz"
  1385. Attribute VB_GlobalNameSpace = False
  1386. Attribute VB_Creatable = False
  1387. Attribute VB_PredeclaredId = True
  1388. Attribute VB_Exposed = False
  1389. '*********************************************************************************************************
  1390. '*    模 块 名 称 :外部凭证处理
  1391. '*    功 能 描 述 :此功能模块主要完成凭证录入、修改、删除、预览打印等。
  1392. '*    程序员姓名  : 魏永生
  1393. '*    最后修改人  :
  1394. '*    最后修改时间:2002/01/23
  1395. '*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
  1396. '*
  1397. '*    1.每次调入外部功能窗体,均要加锁ChangeLock=True,窗体关闭后解锁ChangeLock=false
  1398. '*    2.网格列存储内容注解
  1399. '*      0-行有效标识 1-结算方式编码 2-结算方式名称 3-票号 4-发生日期 5-数量 6-用户录入单价(显示时自动计算)
  1400. '*      7-计量单位 8-外币编码 9-外币名称 10-外币金额 11-汇率 12-部门编码 13-部门名称
  1401. '*      14-客户编码 15-客户名称  16-职员编码 17-职员名称 18-项目大类编码 19-项目大类名称
  1402. '*      20-项目编码 21-项目名称  22-项目数量 23-项目计量单位 24-经办人 25-供应商编码 26-供应商名称
  1403. '*      索引对照:001-摘要  002-科目编码 003-科目名称 004-借方金额 005-贷方金额
  1404. '*    3.Lab_OperStatus 用此标签来标识单据录入状态(默认值为1) "1"-浏览 "2"-新增 "3"-修改
  1405. '*    4.Lab_Pzclzt 用此标签来标识凭证处理状态(默认值为1) "1"-填制凭证 "2"-查询凭证列表 "3"-审核凭证
  1406. '*                                                       "4"-明细帐联查凭证
  1407. '*    5.原则:只要单据能够存盘(无论修改或新增)则其必须接受完整性及有效性规则检查
  1408. '*    6.当执行“下张、上张、首张、末张”,写临时凭证;当“保存”时,则保存到正式凭证中,同时写临时凭证。
  1409. '*
  1410. '*********************************************************************************************************
  1411.  
  1412.  '[以下为根据实际情况设置变量
  1413.     Dim Int_AssCount As Integer                     '辅助核算项目总数
  1414.     Dim Bln_AssShow() As Boolean                    '辅助核算项目是否显示
  1415.     Dim Bln_AssHelp() As Boolean                    '辅助核算项目是否有帮助
  1416.     Dim Str_Digest As String                        '最后录入的一条凭证分录的摘要内容
  1417.     Dim Bln_BillChange As Boolean                   '标识单据是否发生改动
  1418.     Dim Int_Year As Integer     '年份
  1419.     Dim Int_Period As Integer   '会计期间
  1420.     Dim Rec_VouchMainTemp As New ADODB.Recordset    '临时凭证主表
  1421.     Dim Rec_VouchTemp As New ADODB.Recordset        '临时凭证辅表
  1422.     Dim RecTemp As New ADODB.Recordset              '临时数据表
  1423.     Dim Sqlstr As String                            '临时查询字符串
  1424.     Dim Rec_TranMainTemp  As New ADODB.Recordset    '本批结转的所有凭证记录集
  1425.     Dim Max_VouchIdTemp As Integer                  '本批凭证中最大的VouchIdTemp值
  1426.     Dim Min_VouchIdTemp As Integer                  '本批凭证中最小的VouchIdTemp值
  1427.     Dim Pub_VouchSource As String
  1428.     
  1429.  ']
  1430.  
  1431.  '以下为固定使用变量(网格)
  1432.     Dim Cxnrrec As New ADODB.Recordset              '显示查询内容动态集
  1433.     Dim Dyymctbl As New DY_Dyymsz                   '打印页面窗体变量
  1434.     Dim GridCode As String                          '显示网格网格代码
  1435.     Dim GridInf() As Variant                        '整个网格设置信息
  1436.     Dim ReportTitle As String                       '报表主标题
  1437.     Dim Tsxx As String                              '系统提示信息
  1438.     Dim Pmbcsjhs As Long                            '屏幕网格保持数据行数(大于等于1)
  1439.     Dim Fzxwghs As Integer                          '辅助项网格行数(包括合计行)
  1440.     Dim Sfxshjwg As Boolean                         '是否显示合计网格
  1441.     Dim Qslz As Long                                '网格隐藏(非操作显示)列数
  1442.     Dim Sjhgd As Double                             '网格数据行高度
  1443.     Dim GridBoolean() As Boolean                    '网格列信息(布尔型)
  1444.     Dim GridStr()  As String                        '网格列信息(字符型)
  1445.     Dim GridInt() As Integer                        '网格列信息(整型)
  1446.     Dim Sfblbzkd As Boolean                         '是否保留帮助宽度(字段提供帮助时,是否为按钮保留空间)
  1447.     Dim Dqlrwgh As Long                             '当前录入数据网格行
  1448.     Dim Dqlrwgl As Long                             '当前录入数据网格列
  1449.     Dim Dqlkwgh As Long                             '刚刚离开网格行(不一定为录入行)
  1450.     Dim Dqlkwgl As Long                             '刚刚离开网格列
  1451.     Dim Dqtoprow As Long                            '当前录入状态时最上端可视行
  1452.     Dim Dqleftcol As Long                           '当前录入状态时最左端可视列
  1453.     Dim Zdlrqnr As String                           '字段录入修改前内容(用来判断内容是否修改)
  1454.     Dim Wbkbhlock As Boolean                        '文本框改变值锁
  1455.     Dim changelock As Boolean                       '网格行列改变控制锁(用来区别用户改变.程序改变)
  1456.     Dim Gdtlock As Boolean                          '滚动条滚动控制(用来区别用户改变.程序改变)
  1457.     Dim Yxxpdlock As Boolean                        '字段有效性判断锁(内容不修改不需进行字段有效性判断)
  1458.     Dim Hyxxpdlock As Boolean                       '行有效性判断锁(字段内容不修改不需进行行有效性判断)
  1459.     Dim Valilock As Boolean                         '文本框失去焦点是否进行有效性控制(TRUE 为锁定*限用网格录入)
  1460.     Dim Shsfts As Boolean                           '删除记录行是否提示
  1461.     Dim Szzls As Integer                            '网格信息数组最大下标值(网格列数-1)
  1462.     
  1463.  '以下为固定使用变量(文本框)
  1464.     Dim Textvar() As Variant                        '存储变体型文本框信息
  1465.     Dim Textboolean() As Boolean                    '存储布尔型文本框信息
  1466.     Dim Textint() As Integer                        '存储整型文本框信息
  1467.     Dim Textstr() As String                         '存储字符型文本框信息
  1468.     Dim Max_Text_Index As Integer                   '最大录入文本框索引值
  1469.     Dim TextGroupCode As String                     '文本框录入分组编码
  1470.     Dim TextValiLock As Boolean                     '文本框失去焦点是否进行有效性控制判断
  1471.     Dim TextValiJudgeLock() As Boolean              '文本框录入有效性判断控制锁
  1472.     Dim TextChangeLock As Boolean                   '文本框内容变换控制锁
  1473.     Dim Bln_Cancel As Boolean                       '取消按钮信息传递
  1474. Private Sub Form_KeyPress(KeyAscii As Integer)       '控 制 焦 点 转 移
  1475.     Dim jdzygs As Integer
  1476.     jdzygs = 3
  1477.     Select Case KeyAscii
  1478.     Case vbKeyReturn
  1479.         If Kjjdzy(jdzygs) Then
  1480.             KeyAscii = 0
  1481.         End If
  1482.     Case 39           '屏蔽字符"'"
  1483.         KeyAscii = 0
  1484.     End Select
  1485. End Sub
  1486. Private Sub Form_Load()                              '窗 体 装 入
  1487.     
  1488.     
  1489.     '初始化各种锁值
  1490.     
  1491.     changelock = False             '网格行列改变控制锁
  1492.     Gdtlock = False                '滚动条滚动控制
  1493.     Yxxpdlock = True               '字段有效性判断锁
  1494.     Hyxxpdlock = True              '行有效性判断锁
  1495.     Wbkbhlock = False              '文本框内容改变锁
  1496.     
  1497.     
  1498.     
  1499.     '[>>开始 设置辅助核算项目属性
  1500.     Int_AssCount = 14
  1501.     ReDim Bln_AssShow(Int_AssCount - 1)
  1502.     ReDim Bln_AssHelp(Int_AssCount - 1)
  1503.     Bln_AssHelp(0) = True         '结算方式
  1504.     Bln_AssHelp(2) = True         '发生日期
  1505.     Bln_AssHelp(7) = True         '部门
  1506.     Bln_AssHelp(8) = True         '往来客户
  1507.     Bln_AssHelp(9) = True         '个人
  1508.     Bln_AssHelp(10) = True        '项目
  1509.     Bln_AssHelp(12) = True        '供应商
  1510.     Bln_AssHelp(13) = True        '经办人
  1511.     
  1512.     
  1513.     '完毕<<]
  1514.     '整理凭证时表,清除非法字段
  1515.     Cw_DataEnvi.DataConnect.Execute "exec Cwzz_Sp_ValidPz '%','自动转帐'"
  1516.     
  1517.     Sub_FillPeriod Combo_Kjqj, Xtyear, Xtmm
  1518.     
  1519.     '报表主标题及报表编码
  1520.     ReportTitle = "记 帐 凭 证"
  1521.     XtReportCode = "Cwzz_jzpzcl"
  1522.     Load Dyymctbl
  1523.     
  1524.     '以下为文本框处理程序
  1525.     TextGroupCode = "Cwzz_jzpzcl"
  1526.     
  1527.     Call Drwbkxx(TextGroupCode, Textvar(), Textboolean(), Textint(), Textstr())  '读入文本框录入信息
  1528.     Call Wbkcsh
  1529.     
  1530.     '调 入 网 格
  1531.     GridCode = "Cwzz_jzpzcl"          '网格属性编码
  1532.     Call BzWgcsh(WglrGrid, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
  1533.     
  1534.     Qslz = GridInf(1)
  1535.     Sjhgd = GridInf(2)
  1536.     Pmbcsjhs = GridInf(3)
  1537.     Fzxwghs = GridInf(4)
  1538.     Sfblbzkd = GridInf(5)
  1539.     Shsfts = GridInf(6)
  1540.     Sfxshjwg = GridInf(7)
  1541.     Szzls = WglrGrid.Cols - 1
  1542.     
  1543.     For Jsqte = WglrGrid.FixedRows To WglrGrid.Rows - 1
  1544.         WglrGrid.RowHeight(Jsqte) = Sjhgd
  1545.     Next Jsqte
  1546.     
  1547.     
  1548.     '[>>置删行是否提示状态
  1549.     If Shsfts Then
  1550.         Chk_DeleteMess.Value = 1
  1551.     Else
  1552.         Chk_DeleteMess.Value = 0
  1553.     End If
  1554.     '<<]
  1555.     
  1556.     '初始化合计网格
  1557.     
  1558.     Call Cshhjwg
  1559.     
  1560.     '单据变动置为False
  1561.     Bln_BillChange = False
  1562.     
  1563.     '装入会计科目编码帮助窗体(为加快参照速度)PZ_FrmKjkmcz
  1564.     Load PZ_FrmKjkmcz
  1565.     Lab_Succeed.Caption = ""
  1566.     
  1567.     Lab_OperNum = "%"
  1568.     
  1569. End Sub
  1570. Private Sub Form_Unload(Cancel As Integer)           '窗体卸载
  1571.     
  1572.     '卸载打印页面窗体
  1573.     Unload Dyymctbl
  1574.     
  1575.     '卸载会计科目编码参照窗体
  1576.     PZ_FrmKjkmcz.UnloadCheck.Value = 1
  1577.     Unload PZ_FrmKjkmcz
  1578.     
  1579.     '判断凭证是否发生变化
  1580.     If Bln_BillChange Then
  1581.         Xtfhcs = "1"
  1582.     Else
  1583.         Xtfhcs = "0"
  1584.     End If
  1585.     Set Rec_VouchMainTemp = Nothing
  1586.     Set Rec_VouchTemp = Nothing
  1587.     Set RecTemp = Nothing
  1588.     Set Rec_TranMainTemp = Nothing
  1589.     Set Rs_TranMainTemp = Nothing
  1590. End Sub
  1591. Private Sub Timer1_Timer()                           '根据不同凭证或单据状态处理不同的数据初始化
  1592.     
  1593.     '关闭定时器
  1594.     Timer1.Enabled = False
  1595.     '调入数据初始化模块
  1596.     Call Read_Data
  1597.     
  1598.     Call Sjcsh(Trim(Lab_Pzclzt.Caption))
  1599.     '填充会计期间列表框(年度默认为用户选择年度)
  1600.     Call Sub_FillPeriTran
  1601.     Int_Year = CInt(Left(Combo_Kjqj.Text, 4))
  1602.     Int_Period = CInt(Right(Combo_Kjqj.Text, 2))
  1603. End Sub
  1604. Private Sub Sjcsh(Str_Pzclzt As String)              '数据初始化模块(根据实际情况)
  1605.     Dim Sqlstr As String       '查询凭证列表条件
  1606.     
  1607.     '[>>根据实际情况初始化
  1608.     Select Case Str_Pzclzt
  1609.     Case "1"   '编辑凭证
  1610.         Me.Caption = "引入外部凭证"
  1611.         
  1612.         '日期默认值为用户选择日期
  1613.         LrText(1).Text = Xtrq
  1614.         
  1615.         '设置操作状态为浏览
  1616.         Lab_OperStatus = "2"         '新增状态
  1617.         Call Sub_OperStatus("30")
  1618.         Call Sub_ShowBill
  1619.     End Select
  1620.     
  1621.     '<<]
  1622.     '重 置 网 格
  1623.     Call Sub_AdjustGrid
  1624. End Sub
  1625. Private Sub Sub_ShowBill()                                          '根据当前单据号显示整张单据内容
  1626.     Dim Jsqte As Long                       '临时计数器
  1627.     Sqlstr = "select * from Cwzz_V_AccVouchTempCh where Vouchsource='" & Glo_VouchSource & "' and VouchId='" & Val(Trim(Lab_VouchId.Caption)) & "' Order by VouchId,serialId"
  1628.     Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  1629.     '若该临时凭证没有保存为正式凭证,可以编辑
  1630.     If RecTemp.EOF Then
  1631.         Exit Sub
  1632.     End If
  1633.     
  1634.     Combo_Kjqj.Text = Trim(RecTemp("year")) & "." & Right("0" & Trim(RecTemp("period")), 2)
  1635.     
  1636.     If Trim(RecTemp.Fields("VouchNo") & "") = "" Or Trim(RecTemp.Fields("VouchNo") & "") = 0 Then
  1637.         Lab_Succeed.Visible = False
  1638.         Lab_Succeed.Caption = ""
  1639.         Lab_OperStatus = "2"
  1640.         Call Sub_OperStatus("30")
  1641.     Else
  1642.         Lab_Succeed.Visible = True
  1643.         Lab_Succeed.Caption = "已生成"
  1644.         Lab_OperStatus = "1"
  1645.         Call Sub_OperStatus("11")
  1646.     End If
  1647.     With RecTemp
  1648.         WglrGrid.Clear 1
  1649.         If .EOF Then
  1650.             Exit Sub
  1651.         Else
  1652.             WglrGrid.Rows = .RecordCount + WglrGrid.FixedRows
  1653.             
  1654.             '[>>显示单据头
  1655.             TextChangeLock = True
  1656.             LrText(0).Text = Trim(.Fields("VouchClassCode"))                                        '凭证类别
  1657.             If Lab_Succeed.Caption = "已生成" Then
  1658.                 LrText(3).Text = Mid(Trim(Str(10000 + .Fields("VouchNo"))), 2, 4)                    '凭证号
  1659.             End If
  1660.             LrText(3).Text = Lab_VouchId.Caption                                                    '在主表中取到的ID号
  1661.             If IsDate(.Fields("DDate")) Then
  1662.                 LrText(1).Text = Format(.Fields("Ddate"), "yyyy-mm-dd")                              '制单日期
  1663.             End If
  1664.             LrText(2).Text = Trim(Str(.Fields("Doc")))                                              '附单据数
  1665.             Lab_Bill.Caption = Trim(.Fields("Bill") & "")                                           '制单人
  1666.             Lab_Checker.Caption = ""                                                                '审核人
  1667.             Lab_Book.Caption = ""                                                                   '记帐人
  1668.             Lab_Error.Visible = False                                                               '标错
  1669.             TextChangeLock = False
  1670.             '<<]
  1671.         End If
  1672.         Jsqte = WglrGrid.FixedRows
  1673.         Do While Not .EOF
  1674.             If Jsqte >= WglrGrid.Rows Then
  1675.                 WglrGrid.AddItem ""
  1676.             End If
  1677.             
  1678.             '[>>显示单据分录
  1679.             WglrGrid.TextMatrix(Jsqte, 0) = "*"                                                     '行标识
  1680.             WglrGrid.TextMatrix(Jsqte, 1) = Trim(IIf(IsNull(.Fields("SScode")), "", .Fields("SScode")))                                                    '结算方式编码
  1681.             WglrGrid.TextMatrix(Jsqte, 2) = Trim(IIf(IsNull(.Fields("SSName")), "", .Fields("SSName")))   '结算方式名称
  1682.             WglrGrid.TextMatrix(Jsqte, 3) = Trim(IIf(IsNull(.Fields("billno")), "", .Fields("billno")))    '票号
  1683.             If IsDate(.Fields("BillDate") & "") Then
  1684.                 WglrGrid.TextMatrix(Jsqte, 4) = Format(.Fields("BillDate"), "yyyy-mm-dd")            '发生日期
  1685.             End If
  1686.             If .Fields("Jfsl") <> 0 Then
  1687.                 WglrGrid.TextMatrix(Jsqte, 5) = Trim(Str(.Fields("Jfsl")))                           '数量
  1688.             End If
  1689.             If .Fields("Dfsl") <> 0 Then
  1690.                 WglrGrid.TextMatrix(Jsqte, 5) = Trim(Str(.Fields("Dfsl")))                           '数量
  1691.             End If
  1692.             WglrGrid.TextMatrix(Jsqte, 7) = ""                                                      '计量单位
  1693.             '币种为外币时填充网格
  1694.             If Trim(.Fields("ForeignCurrCode") & "") <> XtSCurrCode Then
  1695.                 WglrGrid.TextMatrix(Jsqte, 8) = Trim(.Fields("ForeignCurrCode") & "")                         '原币编码
  1696.                 WglrGrid.TextMatrix(Jsqte, 9) = Trim(.Fields("ForeignCurrName") & "")                         '原币名称
  1697.                 If .Fields("Wbjfje") <> 0 Then
  1698.                     WglrGrid.TextMatrix(Jsqte, 10) = Trim(Str(.Fields("Wbjfje")))                              '原币金额
  1699.                 End If
  1700.                 If .Fields("Wbdfje") <> 0 Then
  1701.                     WglrGrid.TextMatrix(Jsqte, 10) = Trim(Str(.Fields("Wbdfje")))                              '原币金额
  1702.                 End If
  1703.                 If .Fields("AccRate") <> 0 Then
  1704.                     WglrGrid.TextMatrix(Jsqte, 11) = Trim(Str(.Fields("AccRate")))                             '记帐汇率
  1705.                 End If
  1706.             End If
  1707.             WglrGrid.TextMatrix(Jsqte, 12) = Trim(.Fields("DeptCode") & "")                         '部门编码
  1708.             WglrGrid.TextMatrix(Jsqte, 13) = Trim(.Fields("DeptName") & "")                         '部门名称
  1709.             WglrGrid.TextMatrix(Jsqte, 14) = Trim(.Fields("CusCode") & "")                          '客户编码
  1710.             WglrGrid.TextMatrix(Jsqte, 15) = Trim(.Fields("CusName") & "")                          '客户名称
  1711.             WglrGrid.TextMatrix(Jsqte, 25) = Trim(.Fields("Suppliercode") & "")                    '供应商编码
  1712.             WglrGrid.TextMatrix(Jsqte, 26) = Trim(.Fields("Suppliername") & "")                    '供应商名称
  1713.             WglrGrid.TextMatrix(Jsqte, 16) = Trim(.Fields("PersonCode") & "")                       '职员编码
  1714.             WglrGrid.TextMatrix(Jsqte, 17) = Trim(.Fields("PersonName") & "")                       '职员名称
  1715.             WglrGrid.TextMatrix(Jsqte, 18) = Trim(.Fields("ItemClassCode") & "")                    '项目类别编码
  1716.             WglrGrid.TextMatrix(Jsqte, 19) = Trim(.Fields("ItemClassName") & "")                    '项目类别名称
  1717.             WglrGrid.TextMatrix(Jsqte, 20) = Trim(.Fields("ItemCode") & "")                         '项目编码
  1718.             WglrGrid.TextMatrix(Jsqte, 21) = Trim(.Fields("ItemName") & "")                         '项目名称
  1719.             If Val(Trim(.Fields("ItemJfsl") & "")) <> 0 Then
  1720.                 WglrGrid.TextMatrix(Jsqte, 22) = Trim(Str(.Fields("ItemJfsl")))                     '项目数量
  1721.             End If
  1722.             If Val(Trim(.Fields("ItemDfsl") & "")) <> 0 Then
  1723.                 WglrGrid.TextMatrix(Jsqte, 22) = Trim(Str(.Fields("ItemDfsl")))                      '项目数量
  1724.             End If
  1725.             WglrGrid.TextMatrix(Jsqte, 24) = Trim(.Fields("TranPerson") & "")                       '经办人
  1726.             WglrGrid.TextMatrix(Jsqte, Sydz("001", GridStr(), Szzls)) = Trim(.Fields("Digest"))     '摘 要
  1727.             WglrGrid.TextMatrix(Jsqte, Sydz("002", GridStr(), Szzls)) = Trim(.Fields("Ccode") & "")        '科目编码
  1728.             WglrGrid.TextMatrix(Jsqte, Sydz("003", GridStr(), Szzls)) = Trim(.Fields("Cname") & "")   '科目名称
  1729.             If .Fields("Jfje") <> 0 Then
  1730.                 WglrGrid.TextMatrix(Jsqte, Sydz("004", GridStr(), Szzls)) = Trim(Str(.Fields("Jfje"))) '借方金额
  1731.             Else
  1732.                 WglrGrid.TextMatrix(Jsqte, Sydz("005", GridStr(), Szzls)) = Trim(Str(.Fields("Dfje"))) '贷方金额
  1733.             End If
  1734.             Pub_VouchSource = .Fields("vouchsource") & ""
  1735.             
  1736.             '<<]
  1737.             
  1738.             WglrGrid.RowHeight(Jsqte) = Sjhgd
  1739.             .MoveNext
  1740.             Jsqte = Jsqte + 1
  1741.         Loop
  1742.     End With
  1743.     
  1744.     '调整网格
  1745.     Call Sub_AdjustGrid
  1746.     
  1747.     '显示备注信息
  1748.     Call Sub_ShowMemo(WglrGrid.Row)
  1749.     
  1750.     '计算合计数据
  1751.     For Jsqte = Qslz To WglrGrid.Cols - 1
  1752.         Call Sjhj(Jsqte)
  1753.     Next Jsqte
  1754.     
  1755. End Sub
  1756. Private Sub Tlb_Action_ButtonClick(ByVal Button As MSComctlLib.Button)             '用户点击工具条
  1757.     
  1758.     '屏蔽文本框,下拉组合框有效性判断
  1759.     
  1760.     Valilock = True
  1761.     
  1762.     '屏蔽网格失去焦点产生的有效性判断
  1763.     
  1764.     changelock = True
  1765.     
  1766.     Select Case Button.Key
  1767.     Case "ymsz"                                          '页面设置
  1768.         
  1769.         Dyymctbl.Show 1
  1770.     Case "yl"                                            '预 览
  1771.         If Fun_Drfrmyxxpd Then
  1772.             Call bbyl(True)
  1773.         End If
  1774.     Case "dy"                                            '打 印
  1775.         If Fun_Drfrmyxxpd Then
  1776.             Call bbyl(False)
  1777.         End If
  1778.     Case "zh"                                            '增 行
  1779.         If Lab_Succeed.Caption = "已生成" Then
  1780.             Tsxx = "已生成凭证,不能执行此操作"
  1781.             Call Xtxxts(Tsxx, 0, 1)
  1782.             Exit Sub
  1783.         End If
  1784.         Call zjlrfl
  1785.     Case "sh"                                            '删 行
  1786.         If Lab_Succeed.Caption = "已生成" Then
  1787.             Tsxx = "已生成凭证,不能执行此操作"
  1788.             Call Xtxxts(Tsxx, 0, 1)
  1789.             Exit Sub
  1790.         End If
  1791.         Call Scdqfl
  1792.     Case "xx"                                            '选 项
  1793.         Call Sub_Option
  1794.     Case "bc"                                            '保 存 即生成正式凭证
  1795.         Call Sub_SaveBill
  1796.     Case "fq"                                            '放 弃
  1797.         Call Sub_AbandonBill
  1798.     Case "first"                                         '首 张
  1799.         Call Sub_First
  1800.     Case "prev"                                          '上 张
  1801.         Call Sub_Prev
  1802.     Case "next"                                          '下 张
  1803.         Call Sub_next
  1804.     Case "last"                                          '末 张
  1805.         Call Sub_Last
  1806.     Case "bz"                                            '帮 助
  1807.         Call F1bz
  1808.     Case "fh"                                            '退 出
  1809.         Call Quit
  1810.     End Select
  1811.     
  1812.     '解 锁
  1813.     Valilock = False
  1814.     changelock = False
  1815.     
  1816. End Sub
  1817. Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)     '支持热键操作
  1818.     Select Case KeyCode
  1819.     Case vbKeyF6                                                 '保存凭证
  1820.         If Tlb_Action.Buttons("bc").Enabled Then
  1821.             Call Sub_SaveBill
  1822.         End If
  1823.     End Select
  1824. End Sub
  1825. Private Sub Sub_Option()                             '调用填制凭证选项
  1826.     With AutoTran_ImportOptFrm
  1827.         
  1828.         '删行是否提示
  1829.         .Chk_DeleteMess.Value = Me.Chk_DeleteMess.Value
  1830.         
  1831.         '科目数量核算数量项是否可以为零
  1832.         .Chk_Quantity.Value = Me.Chk_Quantity.Value
  1833.         
  1834.         '打印凭证是否输出科目编码
  1835.         .Chk_CodeOutput.Value = Me.Chk_CodeOutput.Value
  1836.         
  1837.         .Show 1
  1838.         
  1839.     End With
  1840.     
  1841. End Sub
  1842. Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)       '支持热键操作
  1843.     If Shift = 2 Then
  1844.         Select Case UCase(Chr(KeyCode))
  1845.         Case "P"                   'Ctrl+P 打印
  1846.             If Tlb_Action.Buttons("dy").Enabled Then
  1847.                 Call bbyl(False)
  1848.             End If
  1849.         End Select
  1850.     End If
  1851. End Sub
  1852. Private Sub Sub_OperStatus(Str_Status As String)                 '工具条依据不同状态所进行的变化
  1853.     With Tlb_Action
  1854.         Select Case Str_Status
  1855.         Case "11"   '浏览(放弃修改单据,查询单据,明细帐联查凭证)
  1856.             '工具条
  1857.             .Buttons("dy").Enabled = True      '打印
  1858.             .Buttons("yl").Enabled = True      '预览
  1859.             .Buttons("zh").Enabled = False     '增行
  1860.             .Buttons("sh").Enabled = False     '删行
  1861.             .Buttons("bc").Enabled = False     '保存
  1862.             .Buttons("fq").Enabled = False     '放弃
  1863.             If Val(Lab_VouchId.Caption) = Min_VouchIdTemp Then
  1864.                 .Buttons("first").Enabled = False   '首张
  1865.                 .Buttons("prev").Enabled = False    '上张
  1866.             Else
  1867.                 .Buttons("first").Enabled = True    '首张
  1868.                 .Buttons("prev").Enabled = True     '上张
  1869.             End If
  1870.             If Val(Lab_VouchId.Caption) = Max_VouchIdTemp Then
  1871.                 .Buttons("next").Enabled = False    '下张
  1872.                 .Buttons("last").Enabled = False    '末张
  1873.             Else
  1874.                 .Buttons("next").Enabled = True     '下张
  1875.                 .Buttons("last").Enabled = True     '末张
  1876.             End If
  1877.             '录入文本框
  1878.             For Jsqte = Max_Text_Index To 0 Step -1
  1879.                 LrText(Jsqte).Enabled = False
  1880.             Next Jsqte
  1881.             Ydcommand.Visible = False
  1882.             Combo_Kjqj.Enabled = False
  1883.             
  1884.             '合计金额大写显示
  1885.             HjGrid.TextMatrix(0, Sydz("003", GridStr(), Szzls)) = Fun_Jezh(Val(HjGrid.TextMatrix(0, Sydz("004", GridStr(), Szzls))))
  1886.             
  1887.         Case "30"   '修改
  1888.             
  1889.             '工具条
  1890.             If Lab_Succeed.Caption = "已生成" Then
  1891.                 .Buttons("dy").Enabled = True                   '打印
  1892.                 .Buttons("yl").Enabled = True                   '预览
  1893.             Else
  1894.                 .Buttons("dy").Enabled = False                  '打印
  1895.                 .Buttons("yl").Enabled = False                  '预览
  1896.             End If
  1897.             .Buttons("zh").Enabled = True                       '增行
  1898.             .Buttons("sh").Enabled = True                       '删行
  1899.             .Buttons("bc").Enabled = True                       '保存
  1900.             .Buttons("fq").Enabled = True                       '放弃
  1901.             If Val(Lab_VouchId.Caption) = Min_VouchIdTemp Then
  1902.                 .Buttons("first").Enabled = False               '首张
  1903.                 .Buttons("prev").Enabled = False                '上张
  1904.             Else
  1905.                 .Buttons("first").Enabled = True                '首张
  1906.                 .Buttons("prev").Enabled = True                 '上张
  1907.             End If
  1908.             If Val(Lab_VouchId.Caption) = Max_VouchIdTemp Then
  1909.                 .Buttons("next").Enabled = False                '下张
  1910.                 .Buttons("last").Enabled = False                '末张
  1911.             Else
  1912.                 .Buttons("next").Enabled = True                 '下张
  1913.                 .Buttons("last").Enabled = True                 '末张
  1914.             End If
  1915.             
  1916.             '录入文本框
  1917.             For Jsqte = 0 To Max_Text_Index
  1918.                 LrText(Jsqte).Enabled = True
  1919.             Next Jsqte
  1920.             
  1921.             LrText(0).Enabled = False
  1922.             LrText(3).Enabled = False
  1923.             Ydcommand.Visible = False
  1924.             Combo_Kjqj.Enabled = True
  1925.             
  1926.             '清空合计大写
  1927.             HjGrid.TextMatrix(0, Sydz("003", GridStr(), Szzls)) = ""
  1928.             
  1929.         End Select
  1930.     End With
  1931. End Sub
  1932. Private Sub Wbkcl()                                                 '文本框录入之前处理(根据实际情况)
  1933.     Dim xswbrr As String
  1934.     With WglrGrid
  1935.         Zdlrqnr = Trim(.Text)
  1936.         xswbrr = Trim(.Text)
  1937.         
  1938.         If GridBoolean(.Col, 3) Then   '列表框录入
  1939.             
  1940.             '填充列表框程序
  1941.             Call FillCombo(YdCombo, GridStr(.Col, 5), xswbrr, 0)
  1942.         Else
  1943.             Wbkbhlock = True
  1944.             
  1945.             '====以下为用户自定义
  1946.             Ydtext.Text = xswbrr
  1947.             '====以上为用户自定义
  1948.             
  1949.             Wbkbhlock = False
  1950.             Ydtext.SelStart = Len(Ydtext.Text)
  1951.         End If
  1952.     End With
  1953. End Sub
  1954. Private Function sjzdyxxpd(Dqpdwgh As Long, Dqpdwgl As Long)        '录入数据字段有效性判断,同时进行字段录入事后处理
  1955.     Dim Str_JudgeText As String            '临时有效性判断字段内容
  1956.     Dim Coljsq As Long                     '临时列计数器
  1957.     Dim RecTemp As New ADODB.Recordset     '临时使用动态集
  1958.     
  1959.     With WglrGrid
  1960.         
  1961.         '非录入状态有效性为合法
  1962.         If Yxxpdlock Or .Row < .FixedRows Then
  1963.             sjzdyxxpd = True
  1964.             Exit Function
  1965.         End If
  1966.         
  1967.         Str_JudgeText = Trim(.TextMatrix(Dqpdwgh, Dqpdwgl))
  1968.         Select Case GridStr(Dqpdwgl, 1)
  1969.             
  1970.             '以下为自定义部分[
  1971.         Case "001"          '凭证摘要(如用户录入编码正确,则自动调入摘要内容)
  1972.             If Len(Str_JudgeText) <> 0 Then
  1973.                 Sqlstr = "SELECT * FROM Cwzz_Digest Where DigestCode='" & Str_JudgeText & "'"
  1974.                 Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  1975.                 If Not RecTemp.EOF Then
  1976.                     .TextMatrix(Dqpdwgh, Sydz("001", GridStr(), Szzls)) = Trim(RecTemp.Fields("DigestText"))
  1977.                 End If
  1978.                 
  1979.                 '保存最后录入的一条凭证分录的摘要内容
  1980.                 Str_Digest = .TextMatrix(Dqpdwgh, Sydz("001", GridStr(), Szzls))
  1981.             End If
  1982.         Case "002"          '会计科目(如有效则调入科目名称,如有辅助核算则调入辅助核算项录入窗体)
  1983.             If Len(Str_JudgeText) <> 0 Then
  1984.                 Sqlstr = "Select Cwzz_AccCode.* ,ItemClassName,ForeignCurrName,AccRate FROM  Cwzz_AccCode " & _
  1985.                 " LEFT OUTER JOIN Cwzz_ItemClass ON Cwzz_AccCode.ItemClassCode = Cwzz_ItemClass.ItemClassCode " & _
  1986.                 " LEFT OUTER JOIN Gy_ForeignCurrency ON Cwzz_AccCode.ForeignCurrCode= Gy_ForeignCurrency.ForeignCurrCode " & _
  1987.                 " Where Ccode='" & Str_JudgeText & "' OR AssCode='" & Str_JudgeText & "'"
  1988.                 Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  1989.                 With RecTemp
  1990.                     If .EOF Then
  1991.                         Tsxx = "此科目不存在!"
  1992.                         GoTo Lrcwcl
  1993.                     Else
  1994.                         If Not .Fields("EndFlag") Then
  1995.                             Tsxx = "此科目非末级科目!"
  1996.                             GoTo Lrcwcl
  1997.                         End If
  1998.                         If .Fields("StopFlag") Then
  1999.                             Tsxx = "此科目已停用"
  2000.                             GoTo Lrcwcl
  2001.                         End If
  2002.                         
  2003.                         '如果此科目存在且改变过则执行下列操作
  2004.                         
  2005.                         '1.显示科目编码,改变科目名称
  2006.                         WglrGrid.TextMatrix(Dqpdwgh, Sydz("002", GridStr(), Szzls)) = Trim(RecTemp.Fields("Ccode"))
  2007.                         WglrGrid.TextMatrix(Dqpdwgh, Sydz("003", GridStr(), Szzls)) = Trim(RecTemp.Fields("Cname"))
  2008.                         
  2009.                         '2.判断科目进行哪些辅助核算
  2010.                         '读入外币汇率
  2011.                         If Not IsNull(RecTemp.Fields("AccRate")) Then
  2012.                             WglrGrid.TextMatrix(Dqpdwgh, 11) = RecTemp.Fields("AccRate")
  2013.                         Else
  2014.                             WglrGrid.TextMatrix(Dqpdwgh, 11) = ""
  2015.                         End If
  2016.                         Call Sub_Drfzhsx(Dqpdwgh, Str_JudgeText)
  2017.                     End If
  2018.                 End With
  2019.             Else
  2020.                 '清除所有辅助核算内容
  2021.                 For Jsqte = 1 To 23
  2022.                     WglrGrid.TextMatrix(Dqpdwgh, Jsqte) = ""
  2023.                 Next Jsqte
  2024.                 .TextMatrix(Dqpdwgh, Sydz("003", GridStr(), Szzls)) = ""
  2025.                 
  2026.             End If
  2027.         Case "004"                                              '借方金额
  2028.             '用户如录入借方金额,系统则自动清除贷方金额
  2029.             If Val(WglrGrid.TextMatrix(Dqpdwgh, Dqpdwgl)) <> 0 Then
  2030.                 WglrGrid.TextMatrix(Dqpdwgh, Sydz("005", GridStr(), Szzls)) = ""
  2031.             End If
  2032.         Case "005"                                              '贷方金额
  2033.             '用户如录入贷方金额,系统则自动清除借方金额
  2034.             If Val(WglrGrid.TextMatrix(Dqpdwgh, Dqpdwgl)) <> 0 Then
  2035.                 WglrGrid.TextMatrix(Dqpdwgh, Sydz("004", GridStr(), Szzls)) = ""
  2036.             End If
  2037.             
  2038.             '2.放置字段事后处理程序
  2039.             '以上为自定义部分]
  2040.         End Select
  2041.         
  2042.         '字段录入正确后为零字段清空
  2043.         Call Qkwlzd(Dqpdwgh, Dqpdwgl)
  2044.         
  2045.         '字段录入正确后进行数据合计
  2046.         For Coljsq = Qslz To .Cols - 1
  2047.             Call Sjhj(Coljsq)
  2048.         Next Coljsq
  2049.         sjzdyxxpd = True
  2050.         Yxxpdlock = True
  2051.         Exit Function
  2052.     End With
  2053. Lrcwcl:    '录入错误处理
  2054.     With WglrGrid
  2055.         Call Xtxxts(Tsxx, 0, 1)
  2056.         changelock = True
  2057.         .Select Dqpdwgh, Dqpdwgl
  2058.         changelock = False
  2059.         Call xswbk
  2060.         sjzdyxxpd = False
  2061.         Exit Function
  2062.     End With
  2063. End Function
  2064. Private Function Sjhzyxxpd(ByVal Yxxpdh As Long) As Boolean                  '录入数据行有效性判断,同时进行行处理
  2065.     Dim Lrywlz As Long
  2066.     Dim RecTemp As New ADODB.Recordset     '临时使用动态集
  2067.     Dim Bln_AssVali As Boolean             '辅助核算错误
  2068.     Dim Jsqte As Long                      '临时计数器
  2069.     
  2070.     With WglrGrid
  2071.         
  2072.         '判断行为空和无效数据行则清除当前行
  2073.         If Yxxpdh > (.Rows - .FixedRows) Then Exit Function
  2074.         If .TextMatrix(Yxxpdh, 0) <> "*" Then
  2075.             Sjhzyxxpd = True
  2076.             Exit Function
  2077.         Else
  2078.             If pdhwk(Yxxpdh) And Yxxpdh + 1 <= .Rows - 1 Then
  2079.                 If .TextMatrix(Yxxpdh + 1, 0) <> "*" Then
  2080.                     changelock = True
  2081.                     .RemoveItem Yxxpdh
  2082.                     If .Rows < Pmbcsjhs + .FixedRows + Fzxwghs + 1 Then
  2083.                         .AddItem ""
  2084.                         .RowHeight(.Rows - 1) = Sjhgd
  2085.                     End If
  2086.                     changelock = False
  2087.                     Sjhzyxxpd = True
  2088.                     Exit Function
  2089.                 End If
  2090.             End If
  2091.         End If
  2092.         
  2093.         '行没有发生变化则不进行有效性判断
  2094.         If Hyxxpdlock Then
  2095.             Sjhzyxxpd = True
  2096.             Exit Function
  2097.         End If
  2098.         
  2099.         '以下为自定义部分[
  2100.         
  2101.         '1.放置行有效性判断程序
  2102.         
  2103.         '首先进行为空判断(固定不变)
  2104.         For Jsqte = Qslz To .Cols - 1
  2105.             If (GridInt(Jsqte, 5) = 1 And Len(Trim(.TextMatrix(Yxxpdh, Jsqte))) = 0) Or (GridInt(Jsqte, 5) = 2 And Val(Trim(.TextMatrix(Yxxpdh, Jsqte))) = 0) Then
  2106.                 Tsxx = GridStr(Jsqte, 2)
  2107.                 Lrywlz = Jsqte
  2108.                 GoTo Lrcwcl
  2109.                 Exit For
  2110.             End If
  2111.         Next Jsqte
  2112.         
  2113.         '2.[自定义判断(补丁)
  2114.         If Val(Trim(.TextMatrix(Yxxpdh, Sydz("004", GridStr(), Szzls)))) = 0 And Val(Trim(.TextMatrix(Yxxpdh, Sydz("005", GridStr(), Szzls)))) = 0 Then
  2115.             Tsxx = "借方和贷方金额不能同时为零!"
  2116.             Lrywlz = Sydz("004", GridStr(), Szzls)
  2117.             GoTo Lrcwcl
  2118.         End If
  2119.         
  2120.         If Val(Trim(.TextMatrix(Yxxpdh, Sydz("004", GridStr(), Szzls)))) <> 0 And Val(Trim(.TextMatrix(Yxxpdh, Sydz("005", GridStr(), Szzls)))) <> 0 Then
  2121.             Tsxx = "借方和贷方金额不能同时不为零!"
  2122.             Lrywlz = Sydz("004", GridStr(), Szzls)
  2123.             GoTo Lrcwcl
  2124.         End If
  2125.         
  2126.         '判断辅助核算项目是否填写
  2127.         Sqlstr = "Select * FROM Cwzz_AccCode Where Ccode='" & Trim(.TextMatrix(Yxxpdh, Sydz("002", GridStr(), Szzls))) & "'"
  2128.         Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  2129.         With RecTemp
  2130.             If Not .EOF Then
  2131.                 
  2132.                 '如有数量核算且用户选择数量不能为零则数量项不能为零
  2133.                 If RecTemp.Fields("QuantityFlag") And Chk_Quantity.Value = 1 And Val(WglrGrid.TextMatrix(Yxxpdh, 5)) = 0 Then
  2134.                     Tsxx = "此科目需要数量核算,数量项不能为零!"
  2135.                     Lrywlz = Sydz("002", GridStr(), Szzls)
  2136.                     Bln_AssVali = True
  2137.                     GoTo Lrcwcl
  2138.                 End If
  2139.                 
  2140.                 '部门核算则部门不能为空
  2141.                 If RecTemp.Fields("DeptFlag") And Len(Trim(WglrGrid.TextMatrix(Yxxpdh, 12))) = 0 Then
  2142.                     Tsxx = "此科目需要部门核算,部门项不能为空!"
  2143.                     Lrywlz = Sydz("002", GridStr(), Szzls)
  2144.                     Bln_AssVali = True
  2145.                     GoTo Lrcwcl
  2146.                 End If
  2147.                 
  2148.                 '往来客户核算则往来单位不能为空
  2149.                 If RecTemp.Fields("CusFlag") And Len(Trim(WglrGrid.TextMatrix(Yxxpdh, 14))) = 0 Then
  2150.                     Tsxx = "此科目需要往来客户核算,往来客户项不能为空!"
  2151.                     Lrywlz = Sydz("002", GridStr(), Szzls)
  2152.                     Bln_AssVali = True
  2153.                     GoTo Lrcwcl
  2154.                 End If
  2155.                 
  2156.                 '往来供应商核算则往来供应商不能为空
  2157.                 If RecTemp.Fields("SupplierFlag") And Len(Trim(WglrGrid.TextMatrix(Yxxpdh, 25))) = 0 Then
  2158.                     Tsxx = "此科目需要往来供应商核算,往来供应商项不能为空!"
  2159.                     Lrywlz = Sydz("002", GridStr(), Szzls)
  2160.                     Bln_AssVali = True
  2161.                     GoTo Lrcwcl
  2162.                 End If
  2163.                 
  2164.                 '个人往来核算则个人项不能为空
  2165.                 If RecTemp.Fields("PersonFlag") And Len(Trim(WglrGrid.TextMatrix(Yxxpdh, 16))) = 0 Then
  2166.                     Tsxx = "此科目需要个人往来核算,个人项不能为空!"
  2167.                     Lrywlz = Sydz("002", GridStr(), Szzls)
  2168.                     Bln_AssVali = True
  2169.                     GoTo Lrcwcl
  2170.                 End If
  2171.                 
  2172.                 '项目核算则项目不能为空
  2173.                 If RecTemp.Fields("ItemFlag") And Len(Trim(WglrGrid.TextMatrix(Yxxpdh, 20))) = 0 Then
  2174.                     Tsxx = "此科目需要项目核算,核算项目不能为空!"
  2175.                     Lrywlz = Sydz("002", GridStr(), Szzls)
  2176.                     Bln_AssVali = True
  2177.                     GoTo Lrcwcl
  2178.                 End If
  2179.             End If
  2180.         End With
  2181.         
  2182.         '2.放置行处理程序
  2183.         '以上为自定义部分]
  2184.     End With
  2185.     Sjhzyxxpd = True
  2186.     Hyxxpdlock = True
  2187.     Exit Function
  2188.     
  2189. Lrcwcl:      '录入错误处理
  2190.     With WglrGrid
  2191.         Call Xtxxts(Tsxx, 0, 1)
  2192.         changelock = True
  2193.         .Select Yxxpdh, Lrywlz
  2194.         changelock = False
  2195.         
  2196.         '[>>如果辅助核算出现错误则调用辅助核算功能
  2197.         If Bln_AssVali Then
  2198.             Call Sub_Drfzhsx(Yxxpdh, Trim(.TextMatrix(Yxxpdh, Sydz("002", GridStr(), Szzls))))
  2199.             
  2200.             '解决鼠标点击取消造成的换行
  2201.             changelock = True
  2202.             .Select Yxxpdh, Lrywlz
  2203.             changelock = False
  2204.             
  2205.             '<<]
  2206.         Else
  2207.             Call xswbk
  2208.         End If
  2209.         Sjhzyxxpd = False
  2210.         Exit Function
  2211.     End With
  2212. End Function
  2213. Private Sub Lab_Memo_DblClick(Index As Integer)            '点击辅助核算信息列
  2214.     
  2215.     '如果单据操作状态为浏览状态则不能显示录入载体
  2216.     If Trim(Lab_OperStatus.Caption) = "1" Then
  2217.         Exit Sub
  2218.     End If
  2219.     
  2220.     '当科目编码处于录入状态时不能调入辅助核算项目
  2221.     If Ydtext.Visible And GridStr(WglrGrid.Col, 1) = "002" Then
  2222.         Exit Sub
  2223.     End If
  2224.     
  2225.     '当焦点处于非录入区域时也不能调入辅助核算项目
  2226.     If WglrGrid.Row < WglrGrid.FixedRows Then
  2227.         Exit Sub
  2228.     End If
  2229.     
  2230.     '屏蔽文本框,下拉组合框有效性判断
  2231.     Valilock = True
  2232.     Call Sub_Drfzhsx(WglrGrid.Row, Trim(WglrGrid.TextMatrix(WglrGrid.Row, Sydz("002", GridStr(), Szzls))))
  2233.     Valilock = False
  2234. End Sub
  2235. Private Sub Sub_Drfzhsx(Dqpdwgh As Long, Str_JudgeText As String)   '判断科目是否有辅助核算,如有则调入辅助核算窗体
  2236.     '函数参数:当前判断网格行,判断科目
  2237.     
  2238.     Dim Coljsq As Long           '临时列计数器
  2239.     Dim RecTemp As New ADODB.Recordset     '临时使用动态集
  2240.     
  2241.     If Len(Str_JudgeText) <> 0 Then
  2242.         Sqlstr = "Select Cwzz_AccCode.* ,ItemClassName,ForeignCurrName,ConVertFlag FROM  Cwzz_AccCode " & _
  2243.         " LEFT OUTER JOIN Cwzz_ItemClass ON Cwzz_AccCode.ItemClassCode = Cwzz_ItemClass.ItemClassCode " & _
  2244.         " LEFT OUTER JOIN Gy_ForeignCurrency ON Cwzz_AccCode.ForeignCurrCode= Gy_ForeignCurrency.ForeignCurrCode " & _
  2245.         " Where Ccode='" + Str_JudgeText + "' and EndFlag=1 and StopFlag=0"
  2246.         Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  2247.         With RecTemp
  2248.             If .EOF Then
  2249.                 Exit Sub
  2250.             Else
  2251.                 '判断科目进行哪些辅助核算
  2252.                 
  2253.                 '清空辅助核算标识
  2254.                 For Jsqte = 0 To Int_AssCount - 1
  2255.                     Bln_AssShow(Jsqte) = False
  2256.                 Next Jsqte
  2257.                 '客户往来,供应商往来,银行科目需录入经办人
  2258.                 If Trim(RecTemp.Fields("Cproperty")) = "银行" Or RecTemp.Fields("CusFlag") Or RecTemp.Fields("SupplierFlag") Then
  2259.                     Bln_AssShow(13) = True '经办人
  2260.                 Else
  2261.                     WglrGrid.TextMatrix(Dqpdwgh, 24) = ""
  2262.                 End If
  2263.                 
  2264.                 '银行科目--结算方式、票号、日期
  2265.                 If Trim(RecTemp.Fields("Cproperty")) = "银行" Then
  2266.                     Bln_AssShow(0) = True  '结算方式
  2267.                     Bln_AssShow(1) = True  '票号
  2268.                     Bln_AssShow(2) = True  '日期
  2269.                     Bln_AssShow(13) = True '经办人
  2270.                 Else
  2271.                     WglrGrid.TextMatrix(Dqpdwgh, 1) = ""
  2272.                     WglrGrid.TextMatrix(Dqpdwgh, 2) = ""
  2273.                     WglrGrid.TextMatrix(Dqpdwgh, 3) = ""
  2274.                     WglrGrid.TextMatrix(Dqpdwgh, 4) = ""
  2275.                 End If
  2276.                 
  2277.                 '数量核算--数量,单价
  2278.                 If RecTemp.Fields("QuantityFlag") Then
  2279.                     Bln_AssShow(3) = True  '数量
  2280.                     Bln_AssShow(4) = True  '单价
  2281.                     WglrGrid.TextMatrix(Dqpdwgh, 6) = ""
  2282.                     WglrGrid.TextMatrix(Dqpdwgh, 7) = Trim(.Fields("measure")) '单位
  2283.                 Else
  2284.                     WglrGrid.TextMatrix(Dqpdwgh, 5) = ""
  2285.                     WglrGrid.TextMatrix(Dqpdwgh, 6) = ""
  2286.                     WglrGrid.TextMatrix(Dqpdwgh, 7) = ""
  2287.                 End If
  2288.                 
  2289.                 '外币核算--外币,汇率
  2290.                 If RecTemp.Fields("ForeignFlag") Then
  2291.                     WglrGrid.TextMatrix(Dqpdwgh, 8) = Trim(.Fields("ForeignCurrCode"))
  2292.                     WglrGrid.TextMatrix(Dqpdwgh, 9) = Trim(.Fields("ForeignCurrName"))
  2293.                     Bln_AssShow(5) = True  '外币金额
  2294.                     Bln_AssShow(6) = True  '汇率
  2295.                 Else
  2296.                     WglrGrid.TextMatrix(Dqpdwgh, 8) = ""
  2297.                     WglrGrid.TextMatrix(Dqpdwgh, 9) = ""
  2298.                     WglrGrid.TextMatrix(Dqpdwgh, 10) = ""
  2299.                     WglrGrid.TextMatrix(Dqpdwgh, 11) = ""
  2300.                 End If
  2301.                 
  2302.                 '部门核算
  2303.                 If RecTemp.Fields("DeptFlag") Then
  2304.                     Bln_AssShow(7) = True  '部门
  2305.                 Else
  2306.                     WglrGrid.TextMatrix(Dqpdwgh, 12) = ""
  2307.                     WglrGrid.TextMatrix(Dqpdwgh, 13) = ""
  2308.                 End If
  2309.                 
  2310.                 '客户核算
  2311.                 If RecTemp.Fields("CusFlag") Then
  2312.                     Bln_AssShow(8) = True  '客户
  2313.                 Else
  2314.                     WglrGrid.TextMatrix(Dqpdwgh, 14) = ""
  2315.                     WglrGrid.TextMatrix(Dqpdwgh, 15) = ""
  2316.                 End If
  2317.                 
  2318.                 '供应商核算
  2319.                 If RecTemp.Fields("SupplierFlag") Then
  2320.                     Bln_AssShow(12) = True  '供应商
  2321.                 Else
  2322.                     WglrGrid.TextMatrix(Dqpdwgh, 25) = ""
  2323.                     WglrGrid.TextMatrix(Dqpdwgh, 26) = ""
  2324.                 End If
  2325.                 
  2326.                 '个人核算
  2327.                 If RecTemp.Fields("PersonFlag") Then
  2328.                     Bln_AssShow(9) = True  '个人
  2329.                 Else
  2330.                     WglrGrid.TextMatrix(Dqpdwgh, 16) = ""
  2331.                     WglrGrid.TextMatrix(Dqpdwgh, 17) = ""
  2332.                 End If
  2333.                 
  2334.                 '项目核算
  2335.                 If RecTemp.Fields("ItemFlag") Then
  2336.                     If WglrGrid.TextMatrix(Dqpdwgh, 18) <> Trim(.Fields("ItemClassCode")) Then
  2337.                         WglrGrid.TextMatrix(Dqpdwgh, 20) = ""
  2338.                         WglrGrid.TextMatrix(Dqpdwgh, 21) = ""
  2339.                         WglrGrid.TextMatrix(Dqpdwgh, 22) = ""
  2340.                         WglrGrid.TextMatrix(Dqpdwgh, 23) = ""
  2341.                     End If
  2342.                     
  2343.                     WglrGrid.TextMatrix(Dqpdwgh, 18) = Trim(.Fields("ItemClassCode")) '项目类别编码
  2344.                     WglrGrid.TextMatrix(Dqpdwgh, 19) = Trim(.Fields("ItemClassName")) '项目类别名称
  2345.                     
  2346.                     Bln_AssShow(10) = True  '项目
  2347.                     Bln_AssShow(11) = True  '项目数量
  2348.                 Else
  2349.                     WglrGrid.TextMatrix(Dqpdwgh, 18) = ""
  2350.                     WglrGrid.TextMatrix(Dqpdwgh, 19) = ""
  2351.                     WglrGrid.TextMatrix(Dqpdwgh, 20) = ""
  2352.                     WglrGrid.TextMatrix(Dqpdwgh, 21) = ""
  2353.                     WglrGrid.TextMatrix(Dqpdwgh, 22) = ""
  2354.                     WglrGrid.TextMatrix(Dqpdwgh, 23) = ""
  2355.                     
  2356.                 End If
  2357.                 
  2358.                 '调入科目辅助核算项目
  2359.                 For Jsqte = 0 To Int_AssCount - 1
  2360.                     If Bln_AssShow(Jsqte) Then
  2361.                         AutoTran_ImportPzAss.lab_GridRow = Dqpdwgh
  2362.                         Call Kmfzhsx(Dqpdwgh)
  2363.                         
  2364.                         '判断用户录入数量单价是否为零,如不为零则由数量*单价=金额
  2365.                         '(考虑销售收入主要为贷方则借贷金额均为零时,金额自动填入贷方)
  2366.                         If Val(WglrGrid.TextMatrix(Dqpdwgh, 5)) <> 0 And Val(WglrGrid.TextMatrix(Dqpdwgh, 6)) <> 0 Then
  2367.                             If Val(Trim(WglrGrid.TextMatrix(Dqpdwgh, Sydz("004", GridStr(), Szzls)))) <> 0 Then
  2368.                                 WglrGrid.TextMatrix(Dqpdwgh, Sydz("004", GridStr(), Szzls)) = Format(Val(WglrGrid.TextMatrix(Dqpdwgh, 5)) * Val(WglrGrid.TextMatrix(Dqpdwgh, 6)), "##." + String(Xtjexsws, "0"))