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

企业管理

开发平台:

Visual Basic

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