˪-i
上传用户: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 ArNote_FrmOtherBillList 
  5.    Caption         =   "其他应收单列表"
  6.    ClientHeight    =   8595
  7.    ClientLeft      =   315
  8.    ClientTop       =   390
  9.    ClientWidth     =   11820
  10.    HelpContextID   =   20305
  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            =   30
  143.       TabIndex        =   0
  144.       Top             =   1470
  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 = "ArNote_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. '*    最后修改时间:2001/12/12
  656. '*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
  657. '**************************************************************************
  658. Dim ReportTitle As String                '报表主标题
  659. Dim Str_QueryCondi As String             '用户录入查询条件
  660. Dim Rec_BillID As New ADODB.Recordset    '用户查询单据ID动态集
  661. Dim YbTotal As Double                    '原币应收汇总金额
  662. Dim BbTotal 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 = "Ar_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 = "Ar_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.     ArNote_FrmOtherBillQuery.UnloadCheck.Value = 1
  716.     Unload ArNote_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.             ArNote_FrmOtherBillQuery.Show 1
  746.         Case "Bill"                                          '单 据
  747.             Call CxbbGrid_DblClick
  748.         Case "xz"                                            '新 增
  749.             '判断用户是否有此功能执行权限,如有则写上机日志(进入)
  750.             If Not Security_Log("Ar_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("Ar_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("Ar_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.     YbTotal = 0
  798.     BbTotal = 0
  799.     
  800.     '以下为自定义部分[
  801.  
  802.     If Int_QueryType = 0 Then   '0-"点确定按钮"查询
  803.         With ArNote_FrmOtherBillQuery
  804.         
  805.             Str_Foreign = Trim(.LrText(3).Tag & "")
  806.          
  807.             '生成查询条件
  808.             Str_QueryCondi = " where 1=1 and RPFlag = 'AR'  AND BillItemCode = '20' and startflag=0 "
  809.          
  810.             For jsqte = 1 To 12
  811.                 Select Case jsqte
  812.                     Case 1  '单据日期(起)
  813.                         If Trim(.LrText(0).Text) <> "" Then
  814.                             Str_QueryCondi = Str_QueryCondi & " and BillDate >= '" & CDate(.LrText(0).Text) & "'"
  815.                         End If
  816.                     Case 2  '单据日期(止)
  817.                         If Trim(.LrText(1).Text) <> "" Then
  818.                             Str_QueryCondi = Str_QueryCondi & " and BillDate <= '" & CDate(.LrText(1).Text) & "'"
  819.                         End If
  820.                     Case 3  '客户
  821.                         If Trim(.LrText(2).Text) <> "" Then
  822.                             Str_QueryCondi = Str_QueryCondi & " and PsCode = '" & Trim(.LrText(2).Tag) & "'"
  823.                         End If
  824.                     Case 4  '币别
  825.                         If Trim(.LrText(3).Text) <> "" Then
  826.                             Str_QueryCondi = Str_QueryCondi & " And ForeignCurrCode='" & Trim(.LrText(3).Tag) & "'"
  827.                         End If
  828.                     Case 5  '其他应收科目
  829.                         If Trim(.LrText(4).Text) <> "" Then
  830.                             Str_QueryCondi = Str_QueryCondi & " And AccCode='" & Trim(.LrText(4).Tag) & "'"
  831.                         End If
  832.                     Case 6 '审核状态
  833.                         If .Opt_Check(1).Value = True Then
  834.                             Str_QueryCondi = Str_QueryCondi & " And Checker<>'' "
  835.                         End If
  836.                         
  837.                         If .Opt_Check(2).Value = True Then
  838.                             Str_QueryCondi = Str_QueryCondi & " And Checker='' "
  839.                         End If
  840.                     Case 7  '原币金额(起)
  841.                         If Trim(.LrText(5).Text) <> "" Then
  842.                             Str_QueryCondi = Str_QueryCondi & " And YbYsJe>= " & Val(.LrText(5).Text)
  843.                         End If
  844.                     Case 8  '原币金额(止)
  845.                         If Trim(.LrText(6).Text) <> "" Then
  846.                             Str_QueryCondi = Str_QueryCondi & " And YbYsJe<= " & Val(.LrText(6).Text)
  847.                         End If
  848.                     Case 9  '本币金额(起)
  849.                         If Trim(.LrText(7).Text) <> "" Then
  850.                             Str_QueryCondi = Str_QueryCondi & " And BbYsJe>= " & Val(.LrText(7).Text)
  851.                         End If
  852.                     Case 10  '本币金额(止)
  853.                         If Trim(.LrText(8).Text) <> "" Then
  854.                             Str_QueryCondi = Str_QueryCondi & " And BbYsJe<= " & Val(.LrText(8).Text)
  855.                         End If
  856.                     Case 11  '部门
  857.                         If Trim(.LrText(9).Text) <> "" Then
  858.                             Str_QueryCondi = Str_QueryCondi & " And DeptCode= '" & Trim(.LrText(9).Tag) & "'"
  859.                         End If
  860.                     Case 12  '经办人
  861.                         If Trim(.LrText(10).Text) <> "" Then
  862.                             Str_QueryCondi = Str_QueryCondi & " And Personcode= '" & Trim(.LrText(10).Tag) & "'"
  863.                         End If
  864.                               
  865.                 End Select
  866.             Next jsqte
  867.         End With
  868.     Else
  869.         '1-"刷新"查询
  870.         If Str_QueryCondi = "" Then
  871.             Str_QueryCondi = " where 1=2 "
  872.         End If
  873.     End If
  874.      
  875.     Sqlstr = "SELECT * FROM Ar_v_OtherNote " & Str_QueryCondi & " Order By BillDate,BillCode"
  876.     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  877.     With Rec_Query
  878.         CxbbGrid.Rows = CxbbGrid.FixedRows
  879.         jsqte = CxbbGrid.FixedRows
  880.         Do While Not .EOF
  881.             CxbbGrid.AddItem ""
  882.             
  883.             '[>>自定义填充内容
  884.             CxbbGrid.TextMatrix(jsqte, 0) = .Fields("OtherBillID")                                                 '期初应收单ID(主要用来查询定位用)
  885.             CxbbGrid.TextMatrix(jsqte, Sydz("002", GridStr(), Szzls)) = Trim(.Fields("BillCode") & "")             '单据编号
  886.             CxbbGrid.TextMatrix(jsqte, Sydz("001", GridStr(), Szzls)) = Format(.Fields("BillDate"), "yyyy-mm-dd")  '单据日期
  887.             CxbbGrid.TextMatrix(jsqte, Sydz("003", GridStr(), Szzls)) = Trim(.Fields("PSCode") & "")               '客户编码
  888.             CxbbGrid.TextMatrix(jsqte, Sydz("004", GridStr(), Szzls)) = Trim(.Fields("CusName") & "")              '客户名称
  889.             CxbbGrid.TextMatrix(jsqte, Sydz("005", GridStr(), Szzls)) = Trim(.Fields("AccCode") & "")              '其他应收单科目编码
  890.             CxbbGrid.TextMatrix(jsqte, Sydz("006", GridStr(), Szzls)) = Trim(.Fields("CName") & "")                '其他应收单科目
  891.             CxbbGrid.TextMatrix(jsqte, Sydz("007", GridStr(), Szzls)) = Trim(.Fields("ForeignCurrName") & "")      '币别
  892.             CxbbGrid.TextMatrix(jsqte, Sydz("008", GridStr(), Szzls)) = Trim(.Fields("YbYsJe") & "")               '原币应收金额
  893.             CxbbGrid.TextMatrix(jsqte, Sydz("009", GridStr(), Szzls)) = Trim(.Fields("AccRate") & "")              '汇率
  894.             CxbbGrid.TextMatrix(jsqte, Sydz("010", GridStr(), Szzls)) = Trim(.Fields("BbYsJe") & "")               '本币应收金额
  895.             CxbbGrid.TextMatrix(jsqte, Sydz("011", GridStr(), Szzls)) = Trim(.Fields("DeptCode") & "")             '部门编码
  896.             CxbbGrid.TextMatrix(jsqte, Sydz("012", GridStr(), Szzls)) = Trim(.Fields("DeptName") & "")             '部门名称
  897.             CxbbGrid.TextMatrix(jsqte, Sydz("013", GridStr(), Szzls)) = Trim(.Fields("PersonName") & "")           '经办人
  898.             CxbbGrid.TextMatrix(jsqte, Sydz("014", GridStr(), Szzls)) = Trim(.Fields("Maker") & "")                '制单
  899.             CxbbGrid.TextMatrix(jsqte, Sydz("015", GridStr(), Szzls)) = Trim(.Fields("Checker") & "")              '审核
  900.             CxbbGrid.TextMatrix(jsqte, Sydz("016", GridStr(), Szzls)) = Trim(.Fields("Digest") & "")               '摘要
  901.             '<<]
  902.             
  903.             '设置数据行高度(Fixed)
  904.             CxbbGrid.RowHeight(jsqte) = Sjhgd
  905.             
  906.             '设置处于审核状态的颜色  (审核后的单据显示红色)
  907.             If Trim(.Fields("Checker")) <> "" Then
  908.                 CxbbGrid.Cell(flexcpBackColor, jsqte, 0, , CxbbGrid.Cols - 1) = Lab_Color(1).BackColor
  909.             End If
  910.             
  911.             '汇总合计金额
  912.             YbTotal = YbTotal + .Fields("YbYsJe")
  913.             BbTotal = BbTotal + .Fields("BbYsJe")
  914.             
  915.             '动态集指针加1,同时将计数器加1(Fixed)
  916.             .MoveNext
  917.             jsqte = jsqte + 1
  918.         Loop
  919.         
  920.         '添加合计行
  921.         If YbTotal <> 0 Or BbTotal <> 0 Then
  922.            CxbbGrid.AddItem ""
  923.            CxbbGrid.TextMatrix(CxbbGrid.Rows - 1, Sydz("004", GridStr(), Szzls)) = "  合  计"
  924.            If Str_Foreign <> "" Then
  925.                 CxbbGrid.TextMatrix(CxbbGrid.Rows - 1, Sydz("008", GridStr(), Szzls)) = YbTotal
  926.            End If
  927.            CxbbGrid.TextMatrix(CxbbGrid.Rows - 1, Sydz("010", GridStr(), Szzls)) = BbTotal
  928.            CxbbGrid.Cell(flexcpBackColor, CxbbGrid.Rows - 1, 0, CxbbGrid.Rows - 1, CxbbGrid.Cols - 1) = "&H00F7F3EC"
  929.         End If
  930.         
  931.     End With
  932.     ']以上为用户自定义部分
  933. End Sub
  934. Private Sub CxbbGrid_DblClick()                                              '用户双击网格调入相应单据
  935.     Dim RecTemp As New ADODB.Recordset               '临时使用动态集
  936.     
  937.     '记录行总数与固定行数相等则退出
  938.     If CxbbGrid.Rows = CxbbGrid.FixedRows Then Exit Sub
  939.     
  940.     '非数据行退出
  941.     If CxbbGrid.Row < CxbbGrid.FixedRows Or Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0)) = 0 Then
  942.         Exit Sub
  943.     End If
  944.     Sqlstr = "SELECT OtherBillId From RP_OtherBill Where OtherBillId=" & Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0))
  945.     Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  946.     With RecTemp
  947.         If .EOF Then
  948.             Tsxx = "此其他应收单已被其他用户删除!"
  949.             Call Xtxxts(Tsxx, 0, 4)
  950.             Exit Sub
  951.         Else
  952.             '调入单据处理窗体
  953.             With ArNote_FrmOtherBill
  954.                 
  955.                 '填充查询单据标识
  956.                 XT_BillID = Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0))
  957.                 Xtcdcsfz = Str_QueryCondi
  958.                 
  959.                 '设置单据处理为列表查询(修改)状态
  960.                 Xtcdcs = "2"
  961.                 .Show 1
  962.             End With
  963.             
  964.             If Xtfhcs = "1" Then
  965.                 Tsxx = "其他应收单发生变化,是否刷新其他应收单列表?"
  966.                 yhAnswer = Xtxxts(Tsxx, 2, 2)
  967.                 If yhAnswer = 1 Then
  968.                     Xt_Wait.Show
  969.                     Xt_Wait.Refresh
  970.                     
  971.                     '加快显示速度
  972.                     CxbbGrid.Redraw = False
  973.                     '生成查询结果
  974.                     Call Sub_Query(1)
  975.    
  976.                     CxbbGrid.Redraw = True
  977.     
  978.                     Xt_Wait.Hide
  979.                 End If
  980.             End If
  981.         End If
  982.     End With
  983. End Sub
  984. Private Sub Sub_AddBill()                                              '新增单据
  985.     
  986.     With ArNote_FrmOtherBill
  987.        
  988.         '设置单据处理为填制单据状态
  989.         Xtcdcs = "1"
  990.          
  991.         .Show 1
  992.     End With
  993.        
  994.     If Xtfhcs = "1" Then
  995.         Tsxx = "其他应收单发生变化,是否刷新其他应收单列表?"
  996.         yhAnswer = Xtxxts(Tsxx, 2, 2)
  997.         
  998.         If yhAnswer = 1 Then
  999.             Xt_Wait.Show
  1000.             Xt_Wait.Refresh
  1001.             
  1002.             '加快显示速度
  1003.             CxbbGrid.Redraw = False
  1004.             
  1005.             '生成查询结果
  1006.             Call Sub_Query(1)
  1007.             
  1008.             CxbbGrid.Redraw = True
  1009.             Xt_Wait.Hide
  1010.         End If
  1011.     End If
  1012.    
  1013. End Sub
  1014. Private Sub Sub_DeleteBill()                                            '删除选中当前单据
  1015.     
  1016.     Dim YAnswer As Integer
  1017.     Dim Lng_BillID As Long           '单据标识
  1018.     
  1019.     '记录行总数与固定行数相等则退出
  1020.     If CxbbGrid.Rows = CxbbGrid.FixedRows Then Exit Sub
  1021.     '非数据行退出
  1022.     If CxbbGrid.Row < CxbbGrid.FixedRows Or Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0)) = 0 Then
  1023.         Exit Sub
  1024.     End If
  1025.   
  1026.     Tsxx = "请确认是否删除当前其他应收单?"
  1027.     yhAnswer = Xtxxts(Tsxx, 2, 2)
  1028.   
  1029.     If yhAnswer = 1 Then
  1030.   
  1031.         '1.判断当前单据是否允许删除
  1032.         If Not Fun_AllowDelete Then
  1033.             Exit Sub
  1034.         End If
  1035.   
  1036.         '2.删除单据所有内容
  1037.         Lng_BillID = Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0))
  1038.       
  1039.         On Error GoTo Swcwcl
  1040.     
  1041.         Cw_DataEnvi.DataConnect.BeginTrans
  1042.         Cw_DataEnvi.DataConnect.Execute ("Delete RP_OtherBill Where OtherBillID=" & Lng_BillID)        '删除单据内容
  1043.         Cw_DataEnvi.DataConnect.CommitTrans
  1044.       
  1045.         '重新统计合计金额
  1046.         YbTotal = YbTotal - CxbbGrid.TextMatrix(CxbbGrid.Row, Sydz("008", GridStr(), Szzls))
  1047.         BbTotal = BbTotal - CxbbGrid.TextMatrix(CxbbGrid.Row, Sydz("010", GridStr(), Szzls))
  1048.         
  1049.         '删除网格中单据数据
  1050.         CxbbGrid.RemoveItem (CxbbGrid.Row)
  1051.         
  1052.         '刷新合计行
  1053.         If YbTotal <> 0 Or BbTotal <> 0 Then
  1054.            CxbbGrid.TextMatrix(CxbbGrid.Rows - 1, Sydz("004", GridStr(), Szzls)) = "  合  计"
  1055.            If Str_Foreign <> "" Then
  1056.                 CxbbGrid.TextMatrix(CxbbGrid.Rows - 1, Sydz("008", GridStr(), Szzls)) = YbTotal
  1057.            End If
  1058.            CxbbGrid.TextMatrix(CxbbGrid.Rows - 1, Sydz("010", GridStr(), Szzls)) = BbTotal
  1059.         Else
  1060.             CxbbGrid.RemoveItem (CxbbGrid.Rows - 1)
  1061.         End If
  1062.     Else
  1063.         Exit Sub
  1064.     End If
  1065.   
  1066.     Exit Sub
  1067. Swcwcl:
  1068.     Cw_DataEnvi.DataConnect.RollbackTrans
  1069.     Tsxx = "删除单据过程中出现未知错误,程序自动恢复删除前状态!"
  1070.     Call Xtxxts(Tsxx, 0, 1)
  1071.     Exit Sub
  1072.   
  1073. End Sub
  1074. Private Function Fun_AllowDelete() As Boolean                                        '判断当前单据是否允许删除
  1075.   
  1076.     Dim RecTemp As New ADODB.Recordset     '临时使用动态集
  1077.     Dim Sqlstr As String                   '查询字符串
  1078.     Dim Lng_BillID As Long                 '单据ID
  1079.   
  1080.     Lng_BillID = Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0))
  1081.     Sqlstr = "Select Checker,SourceBillCode From RP_OtherBill Where OtherBillID=" & Lng_BillID
  1082.     Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  1083.     With RecTemp
  1084.         If Not .EOF Then
  1085.             If Trim(.Fields("Checker") & "") <> "" Or Trim(.Fields("SourceBillCode") & "") <> "" Then
  1086.                 Tsxx = "该其他应收单已审核确认或者是由应收票据生成,不能删除!"
  1087.                 Call Xtxxts(Tsxx, 0, 4)
  1088.                 Exit Function
  1089.             End If
  1090.             End If
  1091.     End With
  1092.     Fun_AllowDelete = True
  1093.   
  1094. End Function
  1095. Private Sub Sub_CheckBill()                            '审核单据
  1096.   Dim RecTemp As New ADODB.Recordset     '临时使用动态集
  1097.   Dim Lng_BillID As Long           '单据标识
  1098.   
  1099.   '非数据行退出
  1100.   If CxbbGrid.Row < CxbbGrid.FixedRows Or Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0)) = 0 Then
  1101.      Exit Sub
  1102.   End If
  1103.   
  1104.   Lng_BillID = Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0))
  1105.   
  1106.   If Fun_CheckOtherBill(Lng_BillID) Then
  1107.     
  1108.         '写入审核人(系统操作员)
  1109.         CxbbGrid.TextMatrix(CxbbGrid.Row, Sydz("015", GridStr(), Szzls)) = Xtczy           '审核人
  1110.         CxbbGrid.Cell(flexcpBackColor, CxbbGrid.Row, 0, , CxbbGrid.Cols - 1) = Lab_Color(1).BackColor
  1111.         Tsxx = "单据审核完毕!"
  1112.         Call Xtxxts(Tsxx, 0, 4)
  1113.   End If
  1114.  
  1115. End Sub
  1116. '[>>===================以下为根据实际业务需要自定义过程区域=============================<<]
  1117. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  1118.     
  1119.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  1120.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  1121.     Bbxbtgs = 1                                          '报 表 小 标 题 行 数
  1122.     Bbbwhgs = 0                                          '报 表 表 尾 行 数
  1123.     
  1124.     ReDim Bbxbt(1 To Bbxbtgs)
  1125.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  1126.     If Bbbwhgs <> 0 Then
  1127.         ReDim Bbbwh(1 To Bbbwhgs)
  1128.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  1129.     End If
  1130.     
  1131.     Bbzbt = ReportTitle
  1132.     Bbxbt(1) = ""
  1133.     bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  1134.     Call Scyxsjb(CxbbGrid)                               '生成报表数据
  1135.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  1136.     If Not bbylte Then
  1137.         Unload DY_Tybbyldy
  1138.     End If
  1139. End Sub