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

企业管理

开发平台:

Visual Basic

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