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

企业管理

开发平台:

Visual Basic

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