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

企业管理

开发平台:

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