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

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{BEEECC20-4D5F-4F8B-BFDC-5D9B6FBDE09D}#1.0#0"; "vsflex8.ocx"
  3. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  4. Begin VB.Form Xs_I_UseInvoicelist 
  5.    Caption         =   "专用发票列表"
  6.    ClientHeight    =   8595
  7.    ClientLeft      =   315
  8.    ClientTop       =   390
  9.    ClientWidth     =   11820
  10.    HelpContextID   =   5001
  11.    Icon            =   "普通专用发票列表.frx":0000
  12.    KeyPreview      =   -1  'True
  13.    LinkTopic       =   "Form1"
  14.    MDIChild        =   -1  'True
  15.    ScaleHeight     =   8595
  16.    ScaleWidth      =   11820
  17.    WindowState     =   2  'Maximized
  18.    Begin MSComctlLib.Toolbar GsToolbar 
  19.       Height          =   525
  20.       Left            =   9330
  21.       TabIndex        =   3
  22.       Top             =   30
  23.       Width           =   2475
  24.       _ExtentX        =   4366
  25.       _ExtentY        =   926
  26.       ButtonWidth     =   1455
  27.       ButtonHeight    =   926
  28.       Appearance      =   1
  29.       Style           =   1
  30.       ImageList       =   "ImageList2"
  31.       _Version        =   393216
  32.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  33.          NumButtons      =   3
  34.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  35.             Caption         =   "保存格式"
  36.             Key             =   "bcgs"
  37.             ImageKey        =   "bcgs"
  38.          EndProperty
  39.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  40.             Caption         =   "默认列宽"
  41.             Key             =   "hfmrgs"
  42.             ImageKey        =   "mrlk"
  43.          EndProperty
  44.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  45.             Caption         =   "显示项目"
  46.             Key             =   "szxsxm"
  47.             ImageKey        =   "xsxm"
  48.          EndProperty
  49.       EndProperty
  50.    End
  51.    Begin VB.PictureBox Pic_Title 
  52.       BackColor       =   &H00FFFFFF&
  53.       Height          =   825
  54.       Left            =   0
  55.       Picture         =   "普通专用发票列表.frx":1042
  56.       ScaleHeight     =   765
  57.       ScaleWidth      =   11715
  58.       TabIndex        =   1
  59.       Top             =   570
  60.       Width           =   11775
  61.       Begin VB.Label Label1 
  62.          BackColor       =   &H80000009&
  63.          Caption         =   "红票"
  64.          Height          =   225
  65.          Left            =   9600
  66.          TabIndex        =   6
  67.          Top             =   210
  68.          Visible         =   0   'False
  69.          Width           =   585
  70.       End
  71.       Begin VB.Label Lab_Color 
  72.          Appearance      =   0  'Flat
  73.          BackColor       =   &H00C0E0FF&
  74.          BorderStyle     =   1  'Fixed Single
  75.          ForeColor       =   &H80000008&
  76.          Height          =   195
  77.          Left            =   9330
  78.          TabIndex        =   5
  79.          Top             =   210
  80.          Visible         =   0   'False
  81.          Width           =   195
  82.       End
  83.       Begin VB.Label Lab_Title 
  84.          BackColor       =   &H80000018&
  85.          BackStyle       =   0  'Transparent
  86.          Caption         =   "专用发票列表"
  87.          BeginProperty Font 
  88.             Name            =   "宋体"
  89.             Size            =   12
  90.             Charset         =   134
  91.             Weight          =   700
  92.             Underline       =   0   'False
  93.             Italic          =   0   'False
  94.             Strikethrough   =   0   'False
  95.          EndProperty
  96.          ForeColor       =   &H00000000&
  97.          Height          =   300
  98.          Index           =   4
  99.          Left            =   480
  100.          TabIndex        =   2
  101.          Top             =   210
  102.          Width           =   2715
  103.       End
  104.    End
  105.    Begin VB.Timer Timer1 
  106.       Enabled         =   0   'False
  107.       Interval        =   1
  108.       Left            =   7620
  109.       Top             =   90
  110.    End
  111.    Begin VSFlex8Ctl.VSFlexGrid CxbbGrid 
  112.       Height          =   7545
  113.       Left            =   0
  114.       TabIndex        =   0
  115.       Top             =   1470
  116.       Width           =   11775
  117.       _cx             =   5080
  118.       _cy             =   5080
  119.       Appearance      =   1
  120.       BorderStyle     =   1
  121.       Enabled         =   -1  'True
  122.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  123.          Name            =   "宋体"
  124.          Size            =   9
  125.          Charset         =   134
  126.          Weight          =   400
  127.          Underline       =   0   'False
  128.          Italic          =   0   'False
  129.          Strikethrough   =   0   'False
  130.       EndProperty
  131.       MousePointer    =   0
  132.       BackColor       =   16777215
  133.       ForeColor       =   -2147483640
  134.       BackColorFixed  =   13826538
  135.       ForeColorFixed  =   -2147483630
  136.       BackColorSel    =   -2147483635
  137.       ForeColorSel    =   -2147483634
  138.       BackColorBkg    =   -2147483636
  139.       BackColorAlternate=   16777215
  140.       GridColor       =   -2147483633
  141.       GridColorFixed  =   -2147483632
  142.       TreeColor       =   -2147483632
  143.       FloodColor      =   192
  144.       SheetBorder     =   -2147483642
  145.       FocusRect       =   1
  146.       HighLight       =   1
  147.       AllowSelection  =   -1  'True
  148.       AllowBigSelection=   -1  'True
  149.       AllowUserResizing=   0
  150.       SelectionMode   =   0
  151.       GridLines       =   1
  152.       GridLinesFixed  =   2
  153.       GridLineWidth   =   1
  154.       Rows            =   2
  155.       Cols            =   10
  156.       FixedRows       =   1
  157.       FixedCols       =   1
  158.       RowHeightMin    =   0
  159.       RowHeightMax    =   0
  160.       ColWidthMin     =   0
  161.       ColWidthMax     =   0
  162.       ExtendLastCol   =   0   'False
  163.       FormatString    =   ""
  164.       ScrollTrack     =   0   'False
  165.       ScrollBars      =   3
  166.       ScrollTips      =   0   'False
  167.       MergeCells      =   0
  168.       MergeCompare    =   0
  169.       AutoResize      =   -1  'True
  170.       AutoSizeMode    =   0
  171.       AutoSearch      =   0
  172.       AutoSearchDelay =   2
  173.       MultiTotals     =   -1  'True
  174.       SubtotalPosition=   1
  175.       OutlineBar      =   0
  176.       OutlineCol      =   0
  177.       Ellipsis        =   0
  178.       ExplorerBar     =   0
  179.       PicturesOver    =   0   'False
  180.       FillStyle       =   0
  181.       RightToLeft     =   0   'False
  182.       PictureType     =   0
  183.       TabBehavior     =   0
  184.       OwnerDraw       =   0
  185.       Editable        =   0
  186.       ShowComboButton =   1
  187.       WordWrap        =   0   'False
  188.       TextStyle       =   0
  189.       TextStyleFixed  =   0
  190.       OleDragMode     =   0
  191.       OleDropMode     =   0
  192.       DataMode        =   0
  193.       VirtualData     =   -1  'True
  194.       DataMember      =   ""
  195.       ComboSearch     =   3
  196.       AutoSizeMouse   =   -1  'True
  197.       FrozenRows      =   0
  198.       FrozenCols      =   0
  199.       AllowUserFreezing=   0
  200.       BackColorFrozen =   0
  201.       ForeColorFrozen =   0
  202.       WallPaperAlignment=   9
  203.       AccessibleName  =   ""
  204.       AccessibleDescription=   ""
  205.       AccessibleValue =   ""
  206.       AccessibleRole  =   24
  207.       Begin MSComctlLib.ImageList ImageList2 
  208.          Left            =   0
  209.          Top             =   0
  210.          _ExtentX        =   1005
  211.          _ExtentY        =   1005
  212.          BackColor       =   -2147483643
  213.          ImageWidth      =   16
  214.          ImageHeight     =   16
  215.          MaskColor       =   12632256
  216.          _Version        =   393216
  217.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  218.             NumListImages   =   40
  219.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  220.                Picture         =   "普通专用发票列表.frx":1DF82
  221.                Key             =   "sz"
  222.             EndProperty
  223.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  224.                Picture         =   "普通专用发票列表.frx":1E31C
  225.                Key             =   "dy"
  226.             EndProperty
  227.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  228.                Picture         =   "普通专用发票列表.frx":1E6B6
  229.                Key             =   "yl"
  230.             EndProperty
  231.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  232.                Picture         =   "普通专用发票列表.frx":1EA50
  233.                Key             =   "xg"
  234.             EndProperty
  235.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  236.                Picture         =   "普通专用发票列表.frx":1EDEA
  237.                Key             =   "zh"
  238.             EndProperty
  239.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  240.                Picture         =   "普通专用发票列表.frx":1F184
  241.                Key             =   "sh"
  242.             EndProperty
  243.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  244.                Picture         =   "普通专用发票列表.frx":1F51E
  245.                Key             =   "bc"
  246.             EndProperty
  247.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  248.                Picture         =   "普通专用发票列表.frx":1F8B8
  249.                Key             =   "fq"
  250.             EndProperty
  251.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  252.                Picture         =   "普通专用发票列表.frx":1FC52
  253.                Key             =   "bz"
  254.             EndProperty
  255.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  256.                Picture         =   "普通专用发票列表.frx":1FFEC
  257.                Key             =   "tc"
  258.             EndProperty
  259.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  260.                Picture         =   "普通专用发票列表.frx":20386
  261.                Key             =   "bcgs"
  262.             EndProperty
  263.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  264.                Picture         =   "普通专用发票列表.frx":20720
  265.                Key             =   "mrlk"
  266.             EndProperty
  267.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  268.                Picture         =   "普通专用发票列表.frx":20ABA
  269.                Key             =   "xsxm"
  270.             EndProperty
  271.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  272.                Picture         =   "普通专用发票列表.frx":20E54
  273.                Key             =   "first"
  274.             EndProperty
  275.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  276.                Picture         =   "普通专用发票列表.frx":211EE
  277.                Key             =   "prev"
  278.             EndProperty
  279.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  280.                Picture         =   "普通专用发票列表.frx":21588
  281.                Key             =   "next"
  282.             EndProperty
  283.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  284.                Picture         =   "普通专用发票列表.frx":21922
  285.                Key             =   "last"
  286.             EndProperty
  287.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  288.                Picture         =   "普通专用发票列表.frx":21CBC
  289.                Key             =   "xx"
  290.             EndProperty
  291.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  292.                Picture         =   "普通专用发票列表.frx":22056
  293.                Key             =   "define"
  294.             EndProperty
  295.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  296.                Picture         =   "普通专用发票列表.frx":223F0
  297.                Key             =   "exec"
  298.             EndProperty
  299.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  300.                Picture         =   "普通专用发票列表.frx":2278A
  301.                Key             =   "xz"
  302.             EndProperty
  303.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  304.                Picture         =   "普通专用发票列表.frx":22B24
  305.                Key             =   "sc"
  306.             EndProperty
  307.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  308.                Picture         =   "普通专用发票列表.frx":22EBE
  309.                Key             =   "sx"
  310.             EndProperty
  311.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  312.                Picture         =   "普通专用发票列表.frx":23258
  313.                Key             =   "cx"
  314.             EndProperty
  315.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  316.                Picture         =   "普通专用发票列表.frx":235F2
  317.                Key             =   "zd"
  318.             EndProperty
  319.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  320.                Picture         =   "普通专用发票列表.frx":2398C
  321.                Key             =   "dz"
  322.             EndProperty
  323.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  324.                Picture         =   "普通专用发票列表.frx":23D26
  325.                Key             =   "ph"
  326.             EndProperty
  327.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  328.                Picture         =   "普通专用发票列表.frx":240C0
  329.                Key             =   "fz"
  330.             EndProperty
  331.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  332.                Picture         =   "普通专用发票列表.frx":2445A
  333.                Key             =   "dw"
  334.             EndProperty
  335.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  336.                Picture         =   "普通专用发票列表.frx":247F4
  337.                Key             =   "hf"
  338.             EndProperty
  339.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  340.                Picture         =   "普通专用发票列表.frx":24B8E
  341.                Key             =   "pz"
  342.             EndProperty
  343.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  344.                Picture         =   "普通专用发票列表.frx":24F28
  345.                Key             =   "check"
  346.             EndProperty
  347.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  348.                Picture         =   "普通专用发票列表.frx":252C2
  349.                Key             =   "qs"
  350.             EndProperty
  351.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  352.                Picture         =   "普通专用发票列表.frx":2565C
  353.                Key             =   "fullcheck"
  354.             EndProperty
  355.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  356.                Picture         =   "普通专用发票列表.frx":259F6
  357.                Key             =   "qq"
  358.             EndProperty
  359.             BeginProperty ListImage36 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  360.                Picture         =   "普通专用发票列表.frx":25D90
  361.                Key             =   "bcw"
  362.             EndProperty
  363.             BeginProperty ListImage37 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  364.                Picture         =   "普通专用发票列表.frx":2612A
  365.                Key             =   "ye"
  366.             EndProperty
  367.             BeginProperty ListImage38 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  368.                Picture         =   "普通专用发票列表.frx":264C4
  369.                Key             =   ""
  370.             EndProperty
  371.             BeginProperty ListImage39 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  372.                Picture         =   "普通专用发票列表.frx":2685E
  373.                Key             =   "frist"
  374.             EndProperty
  375.             BeginProperty ListImage40 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  376.                Picture         =   "普通专用发票列表.frx":26BF8
  377.                Key             =   "dj"
  378.             EndProperty
  379.          EndProperty
  380.       End
  381.    End
  382.    Begin MSComctlLib.Toolbar SzToolbar 
  383.       Align           =   1  'Align Top
  384.       Height          =   555
  385.       Left            =   0
  386.       TabIndex        =   4
  387.       Top             =   0
  388.       Width           =   11820
  389.       _ExtentX        =   20849
  390.       _ExtentY        =   979
  391.       ButtonWidth     =   820
  392.       ButtonHeight    =   926
  393.       AllowCustomize  =   0   'False
  394.       Appearance      =   1
  395.       Style           =   1
  396.       ImageList       =   "ImageList1"
  397.       _Version        =   393216
  398.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  399.          NumButtons      =   12
  400.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  401.             Caption         =   "设置"
  402.             Key             =   "ymsz"
  403.             ImageKey        =   "sz"
  404.          EndProperty
  405.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  406.             Caption         =   "打印"
  407.             Key             =   "dy"
  408.             ImageKey        =   "dy"
  409.          EndProperty
  410.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  411.             Caption         =   "预览"
  412.             Key             =   "yl"
  413.             ImageKey        =   "yl"
  414.          EndProperty
  415.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  416.             Style           =   3
  417.          EndProperty
  418.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  419.             Caption         =   "查询"
  420.             Key             =   "cx"
  421.             ImageKey        =   "cx"
  422.          EndProperty
  423.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  424.             Caption         =   "单据"
  425.             Key             =   "Bill"
  426.             ImageKey        =   "pz"
  427.          EndProperty
  428.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  429.             Style           =   3
  430.          EndProperty
  431.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  432.             Caption         =   "新增"
  433.             Key             =   "xz"
  434.             ImageKey        =   "xz"
  435.          EndProperty
  436.          BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  437.             Caption         =   "删除"
  438.             Key             =   "sc"
  439.             ImageKey        =   "sc"
  440.          EndProperty
  441.          BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  442.             Style           =   3
  443.          EndProperty
  444.          BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  445.             Caption         =   "帮助"
  446.             Key             =   "bz"
  447.             ImageKey        =   "bz"
  448.          EndProperty
  449.          BeginProperty Button12 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  450.             Caption         =   "退出"
  451.             Key             =   "fh"
  452.             ImageKey        =   "tc"
  453.          EndProperty
  454.       EndProperty
  455.       BorderStyle     =   1
  456.       Begin MSComctlLib.ImageList ImageList1 
  457.          Left            =   6990
  458.          Top             =   30
  459.          _ExtentX        =   1005
  460.          _ExtentY        =   1005
  461.          BackColor       =   -2147483643
  462.          ImageWidth      =   16
  463.          ImageHeight     =   16
  464.          MaskColor       =   12632256
  465.          _Version        =   393216
  466.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  467.             NumListImages   =   32
  468.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  469.                Picture         =   "普通专用发票列表.frx":26F92
  470.                Key             =   "sz"
  471.             EndProperty
  472.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  473.                Picture         =   "普通专用发票列表.frx":2732C
  474.                Key             =   "dy"
  475.             EndProperty
  476.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  477.                Picture         =   "普通专用发票列表.frx":276C6
  478.                Key             =   "yl"
  479.             EndProperty
  480.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  481.                Picture         =   "普通专用发票列表.frx":27A60
  482.                Key             =   "xg"
  483.             EndProperty
  484.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  485.                Picture         =   "普通专用发票列表.frx":27DFA
  486.                Key             =   "zh"
  487.             EndProperty
  488.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  489.                Picture         =   "普通专用发票列表.frx":28194
  490.                Key             =   "sh"
  491.             EndProperty
  492.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  493.                Picture         =   "普通专用发票列表.frx":2852E
  494.                Key             =   "bc"
  495.             EndProperty
  496.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  497.                Picture         =   "普通专用发票列表.frx":288C8
  498.                Key             =   "fq"
  499.             EndProperty
  500.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  501.                Picture         =   "普通专用发票列表.frx":28C62
  502.                Key             =   "bz"
  503.             EndProperty
  504.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  505.                Picture         =   "普通专用发票列表.frx":28FFC
  506.                Key             =   "tc"
  507.             EndProperty
  508.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  509.                Picture         =   "普通专用发票列表.frx":29396
  510.                Key             =   "bcgs"
  511.             EndProperty
  512.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  513.                Picture         =   "普通专用发票列表.frx":29730
  514.                Key             =   "mrlk"
  515.             EndProperty
  516.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  517.                Picture         =   "普通专用发票列表.frx":29ACA
  518.                Key             =   "xsxm"
  519.             EndProperty
  520.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  521.                Picture         =   "普通专用发票列表.frx":29E64
  522.                Key             =   "first"
  523.             EndProperty
  524.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  525.                Picture         =   "普通专用发票列表.frx":2A1FE
  526.                Key             =   "prev"
  527.             EndProperty
  528.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  529.                Picture         =   "普通专用发票列表.frx":2A598
  530.                Key             =   "next"
  531.             EndProperty
  532.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  533.                Picture         =   "普通专用发票列表.frx":2A932
  534.                Key             =   "last"
  535.             EndProperty
  536.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  537.                Picture         =   "普通专用发票列表.frx":2ACCC
  538.                Key             =   "xx"
  539.             EndProperty
  540.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  541.                Picture         =   "普通专用发票列表.frx":2B066
  542.                Key             =   "define"
  543.             EndProperty
  544.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  545.                Picture         =   "普通专用发票列表.frx":2B400
  546.                Key             =   "exec"
  547.             EndProperty
  548.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  549.                Picture         =   "普通专用发票列表.frx":2B79A
  550.                Key             =   "xz"
  551.             EndProperty
  552.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  553.                Picture         =   "普通专用发票列表.frx":2BB34
  554.                Key             =   "sc"
  555.             EndProperty
  556.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  557.                Picture         =   "普通专用发票列表.frx":2BECE
  558.                Key             =   "sx"
  559.             EndProperty
  560.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  561.                Picture         =   "普通专用发票列表.frx":2C268
  562.                Key             =   "cx"
  563.             EndProperty
  564.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  565.                Picture         =   "普通专用发票列表.frx":2C602
  566.                Key             =   "zd"
  567.             EndProperty
  568.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  569.                Picture         =   "普通专用发票列表.frx":2C99C
  570.                Key             =   "dz"
  571.             EndProperty
  572.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  573.                Picture         =   "普通专用发票列表.frx":2CD36
  574.                Key             =   "ph"
  575.             EndProperty
  576.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  577.                Picture         =   "普通专用发票列表.frx":2D0D0
  578.                Key             =   "fz"
  579.             EndProperty
  580.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  581.                Picture         =   "普通专用发票列表.frx":2D46A
  582.                Key             =   "dw"
  583.             EndProperty
  584.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  585.                Picture         =   "普通专用发票列表.frx":2D804
  586.                Key             =   "hf"
  587.             EndProperty
  588.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  589.                Picture         =   "普通专用发票列表.frx":2DB9E
  590.                Key             =   "pz"
  591.             EndProperty
  592.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  593.                Picture         =   "普通专用发票列表.frx":2DF38
  594.                Key             =   "check"
  595.             EndProperty
  596.          EndProperty
  597.       End
  598.    End
  599. End
  600. Attribute VB_Name = "Xs_I_UseInvoicelist"
  601. Attribute VB_GlobalNameSpace = False
  602. Attribute VB_Creatable = False
  603. Attribute VB_PredeclaredId = True
  604. Attribute VB_Exposed = False
  605. '**************************************************************************
  606. '*    模 块 名 称 :发票列表
  607. '*    功 能 描 述 :
  608. '*    程序员姓名  :王长兴
  609. '*    最后修改人  :王长兴
  610. '*    最后修改时间:2001/10/06
  611. '*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
  612. '**************************************************************************
  613. Dim ReportTitle As String                '报表主标题
  614. Dim Str_QueryCondi As String             '用户录入查询条件
  615. Dim Rec_BillID As New ADODB.Recordset    '用户查询单据ID动态集
  616. Dim Str_RightEdit As String                     '单据编辑(新增、修改、删除)权限索引
  617. '以下为固定使用变量
  618. Dim Dyymctbl As New DY_Dyymsz            '打印页面窗体变量
  619. Dim GridCode As String                   '显示网格网格代码
  620. Dim GridInf() As Variant                 '整个网格设置信息
  621. Dim Tsxx As String                       '系统提示信息
  622. Dim Qslz As Long                         '网格隐藏(非操作显示)列数
  623. Dim Sjhgd As Double                      '网格数据行高度
  624. Dim Sfxshjwg As Boolean                  '是否显示合计网格
  625. Dim GridBoolean() As Boolean             '网格列信息(布尔型)
  626. Dim GridStr()  As String                 '网格列信息(字符型)
  627. Dim GridInt() As Integer                 '网格列信息(整型)
  628. Dim Szzls As Integer                     '数组总列数(网格列数-1)
  629. Private Sub Form_Resize()                '根据窗体大小来调整网格,标题栏大小(Fixed)
  630.     On Error Resume Next
  631.     With CxbbGrid
  632.         .Width = Me.Width - 160
  633.         .Height = Me.Height - .Top - 400
  634.     End With
  635.     With Pic_Title
  636.         .Width = Me.Width - 160
  637.     End With
  638.     
  639.     GsToolbar.Left = Me.Width - GsToolbar.Width - 140
  640. End Sub
  641. Private Sub Form_Load()                                                   '窗体装入
  642.     '单据权限索引设置
  643.     Str_RightEdit = "Xs_I_UseInvoicelistEdit"
  644.     '调入打印页面设置窗体
  645.     ReportTitle = "专用发票列表"
  646.     XtReportCode = "Xs_I_UseInvoicelist"
  647.     Load Dyymctbl
  648.       
  649.     '调整标题栏及网格、格式工具条位置(Fixed)
  650.     Pic_Title.Left = 40
  651.     Pic_Title.Top = SzToolbar.Top + SzToolbar.Height - 10
  652.     CxbbGrid.Left = Pic_Title.Left
  653.     CxbbGrid.Top = Pic_Title.Top + Pic_Title.Height + 20
  654.      
  655.     '调 入 网 格(Fixed)
  656.     GridCode = "Xs_I_UseInvoicelist"
  657.     Call BzWgcsh(CxbbGrid, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
  658.       
  659.     Qslz = GridInf(1)
  660.     Sjhgd = GridInf(2)
  661.     Sfxshjwg = GridInf(7)
  662.     Szzls = CxbbGrid.Cols - 1
  663. End Sub
  664. Private Sub Form_Unload(Cancel As Integer)                                  '窗体卸载
  665.     '卸载条件窗体
  666.     Xs_Icx_UseInvoicelist.UnloadCheck.Value = 1
  667.     Unload Xs_Icx_UseInvoicelist
  668.     
  669.     '卸载打印页面设置窗体
  670.     Unload Dyymctbl
  671. End Sub
  672. Private Sub CxbbGrid_BeforeMoveColumn(ByVal Col As Long, Position As Long)           '网格列发生移动时自动交换网格索引信息
  673.     Call FnBln_RefreshArray(Col, Position, GridStr(), GridInf())
  674. End Sub
  675. Private Sub GsToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)                '网格格式调整(Fixed)
  676.   
  677.     Select Case Button.Key
  678.         Case "bcgs"                                          '保存表格格式
  679.             Call Bcwggs(CxbbGrid, GridCode, GridStr())
  680.         Case "hfmrgs"                                        '恢复默认格式
  681.             Call Hfmrgs(CxbbGrid, GridCode, GridStr())
  682.         Case "szxsxm"                                        '设置显示项目
  683.             Call Szxsxm(CxbbGrid, GridCode)
  684.     End Select
  685. End Sub
  686. Private Sub SzToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
  687.     
  688.     Select Case Button.Key
  689.         Case "ymsz"                                          '页面设置
  690.             Dyymctbl.Show 1
  691.         Case "yl"                                            '预 览
  692.             Call bbyl(True)
  693.         Case "dy"                                            '打 印
  694.             Call bbyl(False)
  695.         Case "cx"                                            '查 询
  696.             Xs_Icx_UseInvoicelist.Show 1
  697.         Case "Bill"                                          '单 据
  698.             Call CxbbGrid_DblClick
  699.         Case "xz"                                            '新 增
  700.             Call Sub_AddBill
  701.         Case "sc"                                            '删 除
  702.             Call Sub_DeleteBill
  703.         Case "bz"                                            '帮 助
  704.             Call F1bz
  705.         Case "fh"                                            '退 出
  706.            Unload Me
  707.     End Select
  708. End Sub
  709. Private Sub Timer1_Timer()                                 '在窗体激活后调入查询程序
  710.     
  711.     Timer1.Enabled = False
  712.     Xt_Wait.Show
  713.     Xt_Wait.Refresh
  714.    
  715.     '加快显示速度
  716.     CxbbGrid.Redraw = False
  717.  
  718.     '生成查询结果
  719.     Call Sub_Query(0)
  720.    
  721.     CxbbGrid.Redraw = True
  722.     
  723.     Xt_Wait.Hide
  724. End Sub
  725. Private Sub Sub_Query(Int_QueryType As Integer)                                     '生成查询结果(Define)
  726.     
  727.     '过程参数:Int_QueryType 0-"点确定按钮"查询  1-"刷新"查询
  728.     Dim Rec_Query As New ADODB.Recordset        '查询结果动态集
  729.     Dim Coljsq As Long                          '网格列计数器
  730.     Dim Jsqte As Long                           '临时动态计数器
  731.     '以下为自定义部分[
  732.  
  733.     If Int_QueryType = 0 Then   '0-"点确定按钮"查询
  734.         With Xs_Icx_UseInvoicelist
  735.             '生成查询条件
  736.             Str_QueryCondi = " where 1=1 and InvoiceType=1 "
  737.             For Jsqte = 0 To .LrText.count - 1
  738.                 Select Case Jsqte
  739.                     Case 0                  '查询日期范围(起始)
  740.                         If Trim(.LrText(0).Text) <> "" Then
  741.                             Str_QueryCondi = Str_QueryCondi & " And " & Trim(.Label1(Jsqte).Tag) & ">=' " & Trim(.LrText(0).Text) & "'"
  742.                         End If
  743.                     Case 1                  '查询日期范围(终止)
  744.                         If Trim(.LrText(1).Text) <> "" Then
  745.                             Str_QueryCondi = Str_QueryCondi & " And " & Trim(.Label1(0).Tag) & "<= ' " & Trim(.LrText(1).Text) & "'"
  746.                         End If
  747.                     Case Else
  748.                         If Trim(.LrText(Jsqte).Text) <> "" Then
  749.                             If .LrText(Jsqte).Tag <> "" Then
  750.                                 Str_QueryCondi = Str_QueryCondi & " and " & Trim(.Label1(Jsqte).Tag) & "='" & Trim(.LrText(Jsqte).Tag) & "'"
  751.                             Else
  752.                                 Str_QueryCondi = Str_QueryCondi & " and " & Trim(.Label1(Jsqte).Tag) & "='" & Trim(.LrText(Jsqte).Text) & "'"
  753.                             End If
  754.                         End If
  755.                 End Select
  756.             Next Jsqte
  757.             '审核状态
  758.             If Not .Opt_Check(0).Value Then
  759.                 If .Opt_Check(1).Value Then
  760.                     Str_QueryCondi = Str_QueryCondi & " and  Checker='' "
  761.                 Else
  762.                     Str_QueryCondi = Str_QueryCondi & " and  Checker<>'' "
  763.                 End If
  764.             End If
  765.             '发票类型
  766.             If Not .Opt_Check(3).Value Then
  767.                 If .Opt_Check(4).Value Then
  768.                     Str_QueryCondi = Str_QueryCondi & " and  ReturnFlag=0 "
  769.                 Else
  770.                     Str_QueryCondi = Str_QueryCondi & " and  ReturnFlag=1 "
  771.                 End If
  772.             End If
  773.         End With
  774.     Else
  775.         '1-"刷新"查询
  776.         If Str_QueryCondi = "" Then
  777.             Str_QueryCondi = " where 1=2 and InvoiceType=1 "
  778.         End If
  779.     End If
  780.      
  781.     Sqlstr = "SELECT * FROM Xs_V_InvoiceBill " & Str_QueryCondi & " order by Invoicebillmainid,Invoicebillsubid"
  782.     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  783.     With Rec_Query
  784.         CxbbGrid.Rows = CxbbGrid.FixedRows
  785.         Jsqte = CxbbGrid.FixedRows
  786.         Do While Not .EOF
  787.             CxbbGrid.AddItem ""
  788.             '[>>自定义填充内容
  789.             If Trim(.Fields("returnflag")) Then CxbbGrid.Cell(flexcpForeColor, Jsqte, 0, Jsqte, CxbbGrid.Cols - 1) = &HFF&
  790.             CxbbGrid.TextMatrix(Jsqte, 0) = .Fields("InvoiceBillMainID")                    '发票ID(主要用来查询定位用)
  791. '            CxbbGrid.TextMatrix(jsqte, 1) = .Fields("ReturnFlag")                           '发票类型(红或蓝)
  792.             CxbbGrid.TextMatrix(Jsqte, Sydz("001", GridStr(), Szzls)) = Format(.Fields("InvoiceDate"), "yyyy-mm-dd")    '开票日期
  793.             CxbbGrid.TextMatrix(Jsqte, Sydz("002", GridStr(), Szzls)) = Trim(.Fields("InvoiceCode") & "")               '发票号
  794. '            CxbbGrid.TextMatrix(jsqte, Sydz("002", GridStr(), Szzls)) = Trim(.Fields("ConsignCode") & "")              '发票号
  795.             CxbbGrid.TextMatrix(Jsqte, Sydz("004", GridStr(), Szzls)) = Trim(.Fields("Cusname") & "")                   '客户名称
  796.             CxbbGrid.TextMatrix(Jsqte, Sydz("005", GridStr(), Szzls)) = Trim(.Fields("Deptname") & "")                  '部门名称
  797.             CxbbGrid.TextMatrix(Jsqte, Sydz("006", GridStr(), Szzls)) = Trim(.Fields("SellTypeName") & "")              '销售员
  798.             CxbbGrid.TextMatrix(Jsqte, Sydz("007", GridStr(), Szzls)) = Trim(.Fields("Personname") & "")                '销售员
  799.             CxbbGrid.TextMatrix(Jsqte, Sydz("008", GridStr(), Szzls)) = Trim(.Fields("Mname") & "")                     '货物名称
  800.             CxbbGrid.TextMatrix(Jsqte, Sydz("009", GridStr(), Szzls)) = Trim(.Fields("model") & "")                     '规格
  801.             CxbbGrid.TextMatrix(Jsqte, Sydz("010", GridStr(), Szzls)) = Trim(.Fields("saleunitname") & "")              '单位
  802.             CxbbGrid.TextMatrix(Jsqte, Sydz("011", GridStr(), Szzls)) = Abs(.Fields("Quantity") & "")                   '开票数量
  803.             CxbbGrid.TextMatrix(Jsqte, Sydz("012", GridStr(), Szzls)) = Trim(.Fields("CapitalTaxUnitPrice") & "")       '含税单价
  804.             CxbbGrid.TextMatrix(Jsqte, Sydz("013", GridStr(), Szzls)) = Abs(.Fields("CapitalWhole") & "")               '含税金额
  805.             CxbbGrid.TextMatrix(Jsqte, Sydz("014", GridStr(), Szzls)) = Abs(.Fields("CapitalTax") & "")                 '税额
  806.             CxbbGrid.TextMatrix(Jsqte, Sydz("015", GridStr(), Szzls)) = Trim(.Fields("Maker") & "")                     '制单人
  807.             CxbbGrid.TextMatrix(Jsqte, Sydz("016", GridStr(), Szzls)) = Trim(.Fields("Checker") & "")                   '审核人
  808.             CxbbGrid.TextMatrix(Jsqte, Sydz("017", GridStr(), Szzls)) = Trim(.Fields("InvalideMaker") & "")             '作废人
  809.             CxbbGrid.TextMatrix(Jsqte, Sydz("018", GridStr(), Szzls)) = Trim(.Fields("CapitalUnitPrice") & "")          '不含税单价
  810.             CxbbGrid.TextMatrix(Jsqte, Sydz("019", GridStr(), Szzls)) = Abs(.Fields("CapitalMoney") & "")               '不含税金额
  811.             If Val(Trim(.Fields("CapitalDiscount") & "")) <> 0 Then
  812.                 CxbbGrid.TextMatrix(Jsqte, Sydz("020", GridStr(), Szzls)) = Abs(.Fields("CapitalDiscount") & "")            '折扣额
  813.             End If
  814.             CxbbGrid.TextMatrix(Jsqte, Sydz("021", GridStr(), Szzls)) = Trim(.Fields("TaxCode") & "")                   '税号
  815.             
  816.             '<<]
  817.             '设置数据行高度(Fixed)
  818.             CxbbGrid.RowHeight(Jsqte) = Sjhgd
  819.      
  820.             '动态集指针加1,同时将计数器加1(Fixed)
  821.             .MoveNext
  822.             Jsqte = Jsqte + 1
  823.         Loop
  824.     End With
  825.     ']以上为用户自定义部分
  826. End Sub
  827. Private Sub CxbbGrid_DblClick()                                              '用户双击网格调入相应单据
  828.     
  829.     Dim RecTemp As New ADODB.Recordset               '临时使用动态集
  830.     '非数据行退出
  831.     If CxbbGrid.Row < CxbbGrid.FixedRows Or Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0)) = 0 Then
  832.         Exit Sub
  833.     End If
  834.     Sqlstr = "SELECT InvoiceBillMainID,returnflag From Xs_InvoiceBillMain Where InvoiceBillMainID=" & Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0))
  835.     Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  836.     With RecTemp
  837.         If .EOF Then
  838.             Tsxx = "此发票已被其他用户删除!"
  839.             Call Xtxxts(Tsxx, 0, 4)
  840.             Exit Sub
  841.         Else
  842.             XT_BillID = CxbbGrid.TextMatrix(CxbbGrid.Row, 0)        '填充查询单据标识
  843.             Xtcdcs = "2"                                            '设置单据处理为列表查询(修改)状态
  844.             '调入单据处理窗体
  845.             If Trim(.Fields("returnflag")) Then
  846.                 Xtcdcsfz = Str_QueryCondi & " and returnflag = 1"
  847.                 Xs_I_UseRedInvoice.Show 1
  848.             Else
  849.                 Xtcdcsfz = Str_QueryCondi & " and returnflag = 0"
  850.                 Xs_I_UseInvoice.Show 1
  851.             End If
  852.             If Xtfhcs = "1" Then
  853.                 Tsxx = "发票发生变化,是否刷新发票列表?"
  854.                 Yhanswer = Xtxxts(Tsxx, 2, 2)
  855.                 If Yhanswer = 1 Then
  856.                     Xt_Wait.Show
  857.                     Xt_Wait.Refresh
  858.    
  859.                     '加快显示速度
  860.                     CxbbGrid.Redraw = False
  861.  
  862.                     '生成查询结果
  863.                     Call Sub_Query(1)
  864.    
  865.                     CxbbGrid.Redraw = True
  866.                     Xt_Wait.Hide
  867.                 End If
  868.             End If
  869.         End If
  870.     End With
  871. End Sub
  872. Private Sub Sub_AddBill()                                              '新增单据
  873.     '判断用户是否有此功能执行权限,如有则写上机日志(进入)
  874.     If Not Security_Log(Str_RightEdit, Xtczybm, 1, True) Then
  875.         Exit Sub
  876.     End If
  877.     '设置单据处理为填制单据状态
  878.     Xtcdcs = "1"
  879.      
  880.     XS_I_InvoiceType.Show 1
  881.     If GTempAnswer = "2" Then Exit Sub
  882.     If GTempAnswer = "0" Then
  883.         Xs_I_UseInvoice.Show 1
  884.     Else
  885.         Xs_I_UseRedInvoice.Show 1
  886.     End If
  887.        
  888.     If Xtfhcs = "1" Then
  889.         Tsxx = "发票发生变化,是否刷新发票列表?"
  890.         Yhanswer = Xtxxts(Tsxx, 2, 2)
  891.         If Yhanswer = 1 Then
  892.             Xt_Wait.Show
  893.             Xt_Wait.Refresh
  894.    
  895.             '加快显示速度
  896.             CxbbGrid.Redraw = False
  897.  
  898.             '生成查询结果
  899.             Call Sub_Query(1)
  900.    
  901.             CxbbGrid.Redraw = True
  902.             Xt_Wait.Hide
  903.         End If
  904.     End If
  905.    
  906. End Sub
  907. Private Sub Sub_DeleteBill()                                            '删除选中当前发票
  908.     
  909.     Dim YAnswer As Integer
  910.     Dim Lng_BillID As Long           '单据标识
  911.     '判断用户是否有此功能执行权限,如有则写上机日志(进入)
  912.     If Not Security_Log(Str_RightEdit, Xtczybm, 1, True) Then
  913.         Exit Sub
  914.     End If
  915.     '非数据行退出
  916.     If CxbbGrid.Row < CxbbGrid.FixedRows Or Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0)) = 0 Then
  917.         Exit Sub
  918.     End If
  919.   
  920.     Tsxx = "请确认是否删除当前发票?"
  921.     Yhanswer = Xtxxts(Tsxx, 2, 2)
  922.   
  923.     If Yhanswer = 1 Then
  924.         '1.判断当前发票是否允许删除
  925.         If Not Fun_AllowDelete Then
  926.             Exit Sub
  927.         End If
  928.   
  929.         '2.删除单据所有内容
  930.         Lng_BillID = Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0))
  931.         On Error GoTo Swcwcl
  932.         Cw_DataEnvi.DataConnect.BeginTrans
  933.         Cw_DataEnvi.DataConnect.Execute ("Delete Xs_Invoice_Consign Where InvoiceBillMainID = " & Lng_BillID)       '核销关系
  934.         Cw_DataEnvi.DataConnect.Execute ("Delete Xs_InvoiceBillSub Where InvoiceBillMainID=" & Lng_BillID)          '删除单据子表内容
  935.         Cw_DataEnvi.DataConnect.Execute ("Delete Xs_InvoiceBillMain Where InvoiceBillMainID=" & Lng_BillID)         '删除单据主表内容
  936.         Cw_DataEnvi.DataConnect.CommitTrans
  937.       
  938.         '删除网格中单据数据
  939.         Jsqte = CxbbGrid.FixedRows
  940.         Do While Jsqte <= CxbbGrid.Rows - 1
  941.             If Val(CxbbGrid.TextMatrix(Jsqte, 0)) = Lng_BillID Then
  942.                 CxbbGrid.RemoveItem (Jsqte)
  943.             Else
  944.                 Jsqte = Jsqte + 1
  945.             End If
  946.         Loop
  947.     Else
  948.         Exit Sub
  949.     End If
  950.     Exit Sub
  951. Swcwcl:
  952.     Cw_DataEnvi.DataConnect.RollbackTrans
  953.     Tsxx = "删除发票过程中出现未知错误,程序自动恢复删除前状态!"
  954.     Call Xtxxts(Tsxx, 0, 1)
  955.     Exit Sub
  956.   
  957. End Sub
  958. Private Function Fun_AllowDelete() As Boolean                                        '判断当前单据是否允许删除
  959.   
  960.     Dim RecTemp As New ADODB.Recordset     '临时使用动态集
  961.     Dim Sqlstr As String                   '查询字符串
  962.     Dim Lng_BillID As Long                 '单据ID
  963.   
  964.     Lng_BillID = Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0))
  965.     Sqlstr = "Select Checker From Xs_InvoiceBillMain Where InvoiceBillMainID=" & Lng_BillID
  966.     Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  967.     With RecTemp
  968.         If Not .EOF Then
  969.             If Trim(.Fields("Checker") & "") <> "" Then
  970.                 Tsxx = "该发票已审核确认,不能删除!"
  971.                 Call Xtxxts(Tsxx, 0, 4)
  972.                 Exit Function
  973.             End If
  974.             End If
  975.     End With
  976.     Fun_AllowDelete = True
  977.   
  978. End Function
  979. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  980.     
  981.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  982.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  983.     Bbxbtgs = 1                                          '报 表 小 标 题 行 数
  984.     Bbbwhgs = 0                                          '报 表 表 尾 行 数
  985.     ReDim Bbxbt(1 To Bbxbtgs)
  986.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  987.     If Bbbwhgs <> 0 Then
  988.         ReDim Bbbwh(1 To Bbbwhgs)
  989.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  990.     End If
  991.     Bbzbt = ReportTitle
  992.     Bbxbt(1) = ""
  993.     bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  994.     Call Scyxsjb(CxbbGrid)                               '生成报表数据
  995.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  996.     If Not bbylte Then
  997.         Unload DY_Tybbyldy
  998.     End If
  999. End Sub