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

企业管理

开发平台:

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