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

企业管理

开发平台:

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