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

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "tabctl32.ocx"
  3. Begin VB.Form LBCX_SellOutBillListFind 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "销售出库单列表查询条件"
  6.    ClientHeight    =   5160
  7.    ClientLeft      =   45
  8.    ClientTop       =   330
  9.    ClientWidth     =   6165
  10.    HelpContextID   =   13030402
  11.    Icon            =   "单据列表查询_销售出库单查询.frx":0000
  12.    KeyPreview      =   -1  'True
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   5160
  17.    ScaleWidth      =   6165
  18.    ShowInTaskbar   =   0   'False
  19.    StartUpPosition =   2  'CenterScreen
  20.    Begin VB.CheckBox UnloadCheck 
  21.       Caption         =   "卸载窗体"
  22.       Height          =   615
  23.       Left            =   8580
  24.       TabIndex        =   22
  25.       Top             =   1920
  26.       Visible         =   0   'False
  27.       Width           =   825
  28.    End
  29.    Begin VB.CheckBox Chk_Sum 
  30.       Caption         =   "每张单据输出合计"
  31.       Height          =   240
  32.       Left            =   135
  33.       TabIndex        =   21
  34.       Top             =   4800
  35.       Value           =   1  'Checked
  36.       Width           =   1905
  37.    End
  38.    Begin VB.CommandButton Cmd_Clear 
  39.       Caption         =   "全清"
  40.       Height          =   300
  41.       Left            =   2430
  42.       TabIndex        =   20
  43.       Top             =   4755
  44.       Width           =   1120
  45.    End
  46.    Begin VB.CommandButton QxCommand 
  47.       Caption         =   "取消(&C)"
  48.       Height          =   300
  49.       Left            =   4935
  50.       TabIndex        =   19
  51.       Top             =   4755
  52.       Width           =   1120
  53.    End
  54.    Begin VB.CommandButton QdCommand 
  55.       Caption         =   "确定(&O)"
  56.       Height          =   300
  57.       Left            =   3720
  58.       TabIndex        =   18
  59.       Top             =   4755
  60.       Width           =   1120
  61.    End
  62.    Begin TabDlg.SSTab Tab_SSTab 
  63.       Height          =   4560
  64.       Left            =   90
  65.       TabIndex        =   23
  66.       Top             =   90
  67.       Width           =   5985
  68.       _ExtentX        =   10557
  69.       _ExtentY        =   8043
  70.       _Version        =   393216
  71.       Style           =   1
  72.       Tabs            =   2
  73.       TabHeight       =   520
  74.       TabCaption(0)   =   "基本条件"
  75.       TabPicture(0)   =   "单据列表查询_销售出库单查询.frx":1042
  76.       Tab(0).ControlEnabled=   -1  'True
  77.       Tab(0).Control(0)=   "Frame1(0)"
  78.       Tab(0).Control(0).Enabled=   0   'False
  79.       Tab(0).ControlCount=   1
  80.       TabCaption(1)   =   "辅助条件"
  81.       TabPicture(1)   =   "单据列表查询_销售出库单查询.frx":105E
  82.       Tab(1).ControlEnabled=   0   'False
  83.       Tab(1).Control(0)=   "Frame2"
  84.       Tab(1).ControlCount=   1
  85.       Begin VB.Frame Frame2 
  86.          Height          =   3915
  87.          Left            =   -74880
  88.          TabIndex        =   64
  89.          Top             =   420
  90.          Width           =   5715
  91.          Begin VB.CommandButton Ydcommand1 
  92.             Height          =   300
  93.             Index           =   16
  94.             Left            =   5250
  95.             Picture         =   "单据列表查询_销售出库单查询.frx":107A
  96.             Style           =   1  'Graphical
  97.             TabIndex        =   67
  98.             Top             =   1320
  99.             Width           =   300
  100.          End
  101.          Begin VB.TextBox lrText 
  102.             Height          =   300
  103.             Index           =   16
  104.             Left            =   810
  105.             TabIndex        =   16
  106.             Text            =   "16"
  107.             Top             =   1320
  108.             Width           =   4455
  109.          End
  110.          Begin VB.TextBox lrText 
  111.             Height          =   300
  112.             Index           =   13
  113.             Left            =   810
  114.             TabIndex        =   13
  115.             Text            =   "13"
  116.             Top             =   600
  117.             Width           =   2190
  118.          End
  119.          Begin VB.TextBox lrText 
  120.             Height          =   300
  121.             Index           =   14
  122.             Left            =   3420
  123.             TabIndex        =   14
  124.             Text            =   "14"
  125.             Top             =   600
  126.             Width           =   2130
  127.          End
  128.          Begin VB.TextBox lrText 
  129.             Height          =   300
  130.             Index           =   12
  131.             Left            =   3420
  132.             TabIndex        =   12
  133.             Text            =   "12"
  134.             Top             =   240
  135.             Width           =   2130
  136.          End
  137.          Begin VB.TextBox lrText 
  138.             Height          =   300
  139.             Index           =   11
  140.             Left            =   810
  141.             TabIndex        =   11
  142.             Text            =   "11"
  143.             Top             =   240
  144.             Width           =   2190
  145.          End
  146.          Begin VB.TextBox lrText 
  147.             Height          =   300
  148.             Index           =   15
  149.             Left            =   810
  150.             TabIndex        =   15
  151.             Text            =   "15"
  152.             Top             =   960
  153.             Width           =   4455
  154.          End
  155.          Begin VB.TextBox lrText 
  156.             Height          =   300
  157.             Index           =   17
  158.             Left            =   810
  159.             TabIndex        =   17
  160.             Text            =   "17"
  161.             Top             =   1680
  162.             Width           =   4455
  163.          End
  164.          Begin VB.CommandButton Ydcommand1 
  165.             Height          =   300
  166.             Index           =   17
  167.             Left            =   5250
  168.             Picture         =   "单据列表查询_销售出库单查询.frx":1404
  169.             Style           =   1  'Graphical
  170.             TabIndex        =   66
  171.             Top             =   1680
  172.             Width           =   300
  173.          End
  174.          Begin VB.CommandButton Ydcommand1 
  175.             Height          =   300
  176.             Index           =   15
  177.             Left            =   5250
  178.             Picture         =   "单据列表查询_销售出库单查询.frx":178E
  179.             Style           =   1  'Graphical
  180.             TabIndex        =   65
  181.             Top             =   960
  182.             Width           =   300
  183.          End
  184.          Begin VB.Label Label1 
  185.             AutoSize        =   -1  'True
  186.             Caption         =   "审核人:"
  187.             Height          =   180
  188.             Index           =   0
  189.             Left            =   120
  190.             TabIndex        =   72
  191.             Top             =   1380
  192.             Width           =   630
  193.          End
  194.          Begin VB.Label Label1 
  195.             AutoSize        =   -1  'True
  196.             Caption         =   "记帐人:"
  197.             Height          =   180
  198.             Index           =   2
  199.             Left            =   135
  200.             TabIndex        =   71
  201.             Top             =   1740
  202.             Width           =   630
  203.          End
  204.          Begin VB.Label Label1 
  205.             AutoSize        =   -1  'True
  206.             Caption         =   "制单人:"
  207.             Height          =   180
  208.             Index           =   11
  209.             Left            =   135
  210.             TabIndex        =   70
  211.             Top             =   1020
  212.             Width           =   630
  213.          End
  214.          Begin VB.Line Line2 
  215.             Index           =   1
  216.             X1              =   3120
  217.             X2              =   3300
  218.             Y1              =   750
  219.             Y2              =   750
  220.          End
  221.          Begin VB.Label Label1 
  222.             AutoSize        =   -1  'True
  223.             Caption         =   "金额:"
  224.             Height          =   180
  225.             Index           =   22
  226.             Left            =   135
  227.             TabIndex        =   69
  228.             Top             =   660
  229.             Width           =   450
  230.          End
  231.          Begin VB.Label Label1 
  232.             AutoSize        =   -1  'True
  233.             Caption         =   "数量:"
  234.             Height          =   180
  235.             Index           =   23
  236.             Left            =   135
  237.             TabIndex        =   68
  238.             Top             =   300
  239.             Width           =   450
  240.          End
  241.          Begin VB.Line Line2 
  242.             Index           =   4
  243.             X1              =   3120
  244.             X2              =   3285
  245.             Y1              =   405
  246.             Y2              =   405
  247.          End
  248.       End
  249.       Begin VB.Frame Frame1 
  250.          Height          =   3915
  251.          Index           =   0
  252.          Left            =   120
  253.          TabIndex        =   43
  254.          Top             =   420
  255.          Width           =   5715
  256.          Begin VB.TextBox lrText 
  257.             Height          =   300
  258.             Index           =   8
  259.             Left            =   1005
  260.             TabIndex        =   8
  261.             Text            =   "8"
  262.             Top             =   2040
  263.             Width           =   4545
  264.          End
  265.          Begin VB.Frame Frame1 
  266.             Caption         =   "记帐状态"
  267.             Height          =   585
  268.             Index           =   1
  269.             Left            =   165
  270.             TabIndex        =   52
  271.             Top             =   3165
  272.             Width           =   5355
  273.             Begin VB.OptionButton Opt_Check 
  274.                Caption         =   "全部"
  275.                Height          =   195
  276.                Index           =   0
  277.                Left            =   330
  278.                TabIndex        =   55
  279.                Top             =   270
  280.                Value           =   -1  'True
  281.                Width           =   855
  282.             End
  283.             Begin VB.OptionButton Opt_Check 
  284.                Caption         =   "已记帐"
  285.                Height          =   195
  286.                Index           =   1
  287.                Left            =   2160
  288.                TabIndex        =   54
  289.                Top             =   270
  290.                Width           =   975
  291.             End
  292.             Begin VB.OptionButton Opt_Check 
  293.                Caption         =   "未记帐"
  294.                Height          =   195
  295.                Index           =   2
  296.                Left            =   4095
  297.                TabIndex        =   53
  298.                Top             =   270
  299.                Width           =   915
  300.             End
  301.          End
  302.          Begin VB.CommandButton Ydcommand1 
  303.             Height          =   300
  304.             Index           =   10
  305.             Left            =   5250
  306.             Picture         =   "单据列表查询_销售出库单查询.frx":1B18
  307.             Style           =   1  'Graphical
  308.             TabIndex        =   51
  309.             Top             =   2775
  310.             Width           =   300
  311.          End
  312.          Begin VB.TextBox lrText 
  313.             Height          =   300
  314.             Index           =   10
  315.             Left            =   1005
  316.             TabIndex        =   10
  317.             Text            =   "10"
  318.             Top             =   2760
  319.             Width           =   4245
  320.          End
  321.          Begin VB.CommandButton Ydcommand1 
  322.             Height          =   300
  323.             Index           =   7
  324.             Left            =   5250
  325.             Picture         =   "单据列表查询_销售出库单查询.frx":1EA2
  326.             Style           =   1  'Graphical
  327.             TabIndex        =   50
  328.             Top             =   1680
  329.             Width           =   300
  330.          End
  331.          Begin VB.CommandButton Ydcommand1 
  332.             Height          =   300
  333.             Index           =   6
  334.             Left            =   2715
  335.             Picture         =   "单据列表查询_销售出库单查询.frx":222C
  336.             Style           =   1  'Graphical
  337.             TabIndex        =   49
  338.             Top             =   1680
  339.             Width           =   300
  340.          End
  341.          Begin VB.TextBox lrText 
  342.             Height          =   300
  343.             Index           =   1
  344.             Left            =   1005
  345.             TabIndex        =   1
  346.             Text            =   "1"
  347.             Top             =   600
  348.             Width           =   2025
  349.          End
  350.          Begin VB.TextBox lrText 
  351.             Height          =   300
  352.             Index           =   2
  353.             Left            =   3480
  354.             TabIndex        =   2
  355.             Text            =   "2"
  356.             Top             =   600
  357.             Width           =   2055
  358.          End
  359.          Begin VB.TextBox lrText 
  360.             Height          =   300
  361.             Index           =   0
  362.             Left            =   1005
  363.             TabIndex        =   0
  364.             Text            =   "0"
  365.             Top             =   240
  366.             Width           =   4230
  367.          End
  368.          Begin VB.TextBox lrText 
  369.             Height          =   300
  370.             Index           =   4
  371.             Left            =   3480
  372.             TabIndex        =   4
  373.             Text            =   "4"
  374.             Top             =   960
  375.             Width           =   1785
  376.          End
  377.          Begin VB.TextBox lrText 
  378.             Height          =   300
  379.             Index           =   3
  380.             Left            =   1005
  381.             TabIndex        =   3
  382.             Text            =   "3"
  383.             Top             =   960
  384.             Width           =   1725
  385.          End
  386.          Begin VB.TextBox lrText 
  387.             BackColor       =   &H00FFFFFF&
  388.             Height          =   300
  389.             Index           =   7
  390.             Left            =   3495
  391.             TabIndex        =   7
  392.             Text            =   "7"
  393.             Top             =   1680
  394.             Width           =   1755
  395.          End
  396.          Begin VB.TextBox lrText 
  397.             Height          =   300
  398.             Index           =   6
  399.             Left            =   1005
  400.             TabIndex        =   6
  401.             Text            =   "6"
  402.             Top             =   1680
  403.             Width           =   1725
  404.          End
  405.          Begin VB.TextBox lrText 
  406.             BackColor       =   &H00FFFFFF&
  407.             Height          =   300
  408.             Index           =   9
  409.             Left            =   1005
  410.             TabIndex        =   9
  411.             Text            =   "9"
  412.             Top             =   2400
  413.             Width           =   4245
  414.          End
  415.          Begin VB.CommandButton Ydcommand1 
  416.             Height          =   300
  417.             Index           =   0
  418.             Left            =   5250
  419.             Picture         =   "单据列表查询_销售出库单查询.frx":25B6
  420.             Style           =   1  'Graphical
  421.             TabIndex        =   48
  422.             Top             =   240
  423.             Width           =   300
  424.          End
  425.          Begin VB.CommandButton Ydcommand1 
  426.             Height          =   300
  427.             Index           =   3
  428.             Left            =   2715
  429.             Picture         =   "单据列表查询_销售出库单查询.frx":2940
  430.             Style           =   1  'Graphical
  431.             TabIndex        =   47
  432.             Top             =   960
  433.             Width           =   300
  434.          End
  435.          Begin VB.CommandButton Ydcommand1 
  436.             Height          =   300
  437.             Index           =   4
  438.             Left            =   5250
  439.             Picture         =   "单据列表查询_销售出库单查询.frx":2CCA
  440.             Style           =   1  'Graphical
  441.             TabIndex        =   46
  442.             Top             =   960
  443.             Width           =   300
  444.          End
  445.          Begin VB.CommandButton Ydcommand1 
  446.             Height          =   300
  447.             Index           =   9
  448.             Left            =   5250
  449.             Picture         =   "单据列表查询_销售出库单查询.frx":3054
  450.             Style           =   1  'Graphical
  451.             TabIndex        =   45
  452.             Top             =   2400
  453.             Width           =   300
  454.          End
  455.          Begin VB.TextBox lrText 
  456.             Height          =   300
  457.             Index           =   5
  458.             Left            =   1005
  459.             TabIndex        =   5
  460.             Text            =   "5"
  461.             Top             =   1320
  462.             Width           =   4245
  463.          End
  464.          Begin VB.CommandButton Ydcommand1 
  465.             Height          =   300
  466.             Index           =   5
  467.             Left            =   5250
  468.             Picture         =   "单据列表查询_销售出库单查询.frx":33DE
  469.             Style           =   1  'Graphical
  470.             TabIndex        =   44
  471.             Top             =   1320
  472.             Width           =   300
  473.          End
  474.          Begin VB.Label Label1 
  475.             AutoSize        =   -1  'True
  476.             Caption         =   "存货编码:"
  477.             Height          =   195
  478.             Index           =   5
  479.             Left            =   150
  480.             TabIndex        =   63
  481.             Top             =   1740
  482.             Width           =   765
  483.          End
  484.          Begin VB.Line Line2 
  485.             Index           =   0
  486.             X1              =   3165
  487.             X2              =   3330
  488.             Y1              =   1815
  489.             Y2              =   1815
  490.          End
  491.          Begin VB.Label Label1 
  492.             AutoSize        =   -1  'True
  493.             Caption         =   "发货单号:"
  494.             Height          =   195
  495.             Index           =   3
  496.             Left            =   150
  497.             TabIndex        =   62
  498.             Top             =   2100
  499.             Width           =   765
  500.          End
  501.          Begin VB.Line Line1 
  502.             Index           =   0
  503.             X1              =   3165
  504.             X2              =   3330
  505.             Y1              =   750
  506.             Y2              =   750
  507.          End
  508.          Begin VB.Label Label1 
  509.             AutoSize        =   -1  'True
  510.             Caption         =   "单据号:"
  511.             Height          =   180
  512.             Index           =   4
  513.             Left            =   150
  514.             TabIndex        =   61
  515.             Top             =   660
  516.             Width           =   630
  517.          End
  518.          Begin VB.Label Label1 
  519.             AutoSize        =   -1  'True
  520.             Caption         =   "仓库:"
  521.             Height          =   180
  522.             Index           =   6
  523.             Left            =   150
  524.             TabIndex        =   60
  525.             Top             =   300
  526.             Width           =   450
  527.          End
  528.          Begin VB.Label Label1 
  529.             AutoSize        =   -1  'True
  530.             Caption         =   "出库日期:"
  531.             Height          =   195
  532.             Index           =   7
  533.             Left            =   150
  534.             TabIndex        =   59
  535.             Top             =   1020
  536.             Width           =   765
  537.          End
  538.          Begin VB.Line Line1 
  539.             Index           =   1
  540.             X1              =   3165
  541.             X2              =   3330
  542.             Y1              =   1110
  543.             Y2              =   1110
  544.          End
  545.          Begin VB.Label Label1 
  546.             AutoSize        =   -1  'True
  547.             Caption         =   "出库类别:"
  548.             Height          =   195
  549.             Index           =   8
  550.             Left            =   150
  551.             TabIndex        =   58
  552.             Top             =   2850
  553.             Width           =   765
  554.          End
  555.          Begin VB.Label Label2 
  556.             Caption         =   "存货分类:"
  557.             Height          =   225
  558.             Left            =   165
  559.             TabIndex        =   57
  560.             Top             =   1380
  561.             Width           =   765
  562.          End
  563.          Begin VB.Label Label3 
  564.             Caption         =   "客户:"
  565.             Height          =   225
  566.             Left            =   150
  567.             TabIndex        =   56
  568.             Top             =   2460
  569.             Width           =   855
  570.          End
  571.       End
  572.       Begin VB.TextBox Txt_LrText 
  573.          Height          =   300
  574.          Index           =   19
  575.          Left            =   -73920
  576.          TabIndex        =   33
  577.          Text            =   "19"
  578.          Top             =   3330
  579.          Width           =   3735
  580.       End
  581.       Begin VB.TextBox Txt_LrText 
  582.          Height          =   300
  583.          Index           =   18
  584.          Left            =   -73920
  585.          TabIndex        =   32
  586.          Text            =   "18"
  587.          Top             =   2940
  588.          Width           =   3735
  589.       End
  590.       Begin VB.TextBox Txt_LrText 
  591.          Height          =   300
  592.          Index           =   17
  593.          Left            =   -73920
  594.          TabIndex        =   31
  595.          Text            =   "17"
  596.          Top             =   2550
  597.          Width           =   3735
  598.       End
  599.       Begin VB.TextBox Txt_LrText 
  600.          Height          =   300
  601.          Index           =   16
  602.          Left            =   -73920
  603.          TabIndex        =   30
  604.          Text            =   "16"
  605.          Top             =   2160
  606.          Width           =   3735
  607.       End
  608.       Begin VB.TextBox Txt_LrText 
  609.          Height          =   300
  610.          Index           =   11
  611.          Left            =   -73920
  612.          TabIndex        =   29
  613.          Text            =   "11"
  614.          Top             =   990
  615.          Width           =   1875
  616.       End
  617.       Begin VB.TextBox Txt_LrText 
  618.          Height          =   300
  619.          Index           =   12
  620.          Left            =   -71745
  621.          TabIndex        =   28
  622.          Text            =   "12"
  623.          Top             =   990
  624.          Width           =   1830
  625.       End
  626.       Begin VB.TextBox Txt_LrText 
  627.          Height          =   300
  628.          Index           =   14
  629.          Left            =   -71745
  630.          TabIndex        =   27
  631.          Text            =   "14"
  632.          Top             =   1380
  633.          Width           =   1830
  634.       End
  635.       Begin VB.TextBox Txt_LrText 
  636.          Height          =   300
  637.          Index           =   15
  638.          Left            =   -73920
  639.          TabIndex        =   26
  640.          Text            =   "15"
  641.          Top             =   1770
  642.          Width           =   3735
  643.       End
  644.       Begin VB.TextBox Txt_LrText 
  645.          Height          =   300
  646.          Index           =   13
  647.          Left            =   -73920
  648.          TabIndex        =   25
  649.          Text            =   "13"
  650.          Top             =   1380
  651.          Width           =   1860
  652.       End
  653.       Begin VB.TextBox Txt_LrText 
  654.          Height          =   300
  655.          Index           =   10
  656.          Left            =   -73920
  657.          TabIndex        =   24
  658.          Text            =   "10"
  659.          Top             =   600
  660.          Width           =   3735
  661.       End
  662.       Begin VB.Line Line2 
  663.          Index           =   3
  664.          X1              =   -72045
  665.          X2              =   -71775
  666.          Y1              =   1515
  667.          Y2              =   1515
  668.       End
  669.       Begin VB.Label Label1 
  670.          AutoSize        =   -1  'True
  671.          Caption         =   "数量:"
  672.          Height          =   180
  673.          Index           =   17
  674.          Left            =   -74805
  675.          TabIndex        =   42
  676.          Top             =   1050
  677.          Width           =   450
  678.       End
  679.       Begin VB.Label Label1 
  680.          AutoSize        =   -1  'True
  681.          Caption         =   "金额:"
  682.          Height          =   180
  683.          Index           =   16
  684.          Left            =   -74805
  685.          TabIndex        =   41
  686.          Top             =   1440
  687.          Width           =   450
  688.       End
  689.       Begin VB.Line Line2 
  690.          Index           =   2
  691.          X1              =   -72060
  692.          X2              =   -71760
  693.          Y1              =   1125
  694.          Y2              =   1125
  695.       End
  696.       Begin VB.Label Label1 
  697.          AutoSize        =   -1  'True
  698.          Caption         =   "验收员:"
  699.          Height          =   180
  700.          Index           =   15
  701.          Left            =   -74805
  702.          TabIndex        =   40
  703.          Top             =   2250
  704.          Width           =   630
  705.       End
  706.       Begin VB.Label Label1 
  707.          AutoSize        =   -1  'True
  708.          Caption         =   "保管员:"
  709.          Height          =   180
  710.          Index           =   9
  711.          Left            =   -74805
  712.          TabIndex        =   39
  713.          Top             =   2640
  714.          Width           =   630
  715.       End
  716.       Begin VB.Label Label1 
  717.          AutoSize        =   -1  'True
  718.          Caption         =   "业务员:"
  719.          Height          =   180
  720.          Index           =   10
  721.          Left            =   -74805
  722.          TabIndex        =   38
  723.          Top             =   1860
  724.          Width           =   630
  725.       End
  726.       Begin VB.Label Label1 
  727.          AutoSize        =   -1  'True
  728.          Caption         =   "制单人:"
  729.          Height          =   180
  730.          Index           =   18
  731.          Left            =   -74805
  732.          TabIndex        =   37
  733.          Top             =   3030
  734.          Width           =   630
  735.       End
  736.       Begin VB.Label Label1 
  737.          AutoSize        =   -1  'True
  738.          Caption         =   "记帐人:"
  739.          Height          =   180
  740.          Index           =   19
  741.          Left            =   -74805
  742.          TabIndex        =   36
  743.          Top             =   3390
  744.          Width           =   630
  745.       End
  746.       Begin VB.Label Label1 
  747.          AutoSize        =   -1  'True
  748.          Caption         =   "采购类型:"
  749.          Height          =   180
  750.          Index           =   13
  751.          Left            =   -74805
  752.          TabIndex        =   35
  753.          Top             =   645
  754.          Width           =   810
  755.       End
  756.       Begin VB.Label Label1 
  757.          AutoSize        =   -1  'True
  758.          Caption         =   "审核人:"
  759.          Height          =   180
  760.          Index           =   14
  761.          Left            =   -74820
  762.          TabIndex        =   34
  763.          Top             =   3810
  764.          Width           =   630
  765.       End
  766.    End
  767. End
  768. Attribute VB_Name = "LBCX_SellOutBillListFind"
  769. Attribute VB_GlobalNameSpace = False
  770. Attribute VB_Creatable = False
  771. Attribute VB_PredeclaredId = True
  772. Attribute VB_Exposed = False
  773. '******************************************************************
  774. '*    模 块 名 称 :销售出库单列表查询条件
  775. '*    功 能 描 述 :
  776. '*    程序员姓名  :杨波
  777. '*    最后修改人  :杨波
  778. '*    最后修改时间:2001/11/26
  779. '*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
  780. '******************************************************************
  781. Dim Tsxx As String                       '系统信息提示
  782. '以下为固定使用变量(文本框)
  783. Dim Textvar() As Variant                 '存储变体型文本框信息
  784. Dim Textboolean() As Boolean             '存储布尔型文本框信息
  785. Dim Textint() As Integer                 '存储整型文本框信息
  786. Dim Textstr() As String                  '存储字符型文本框信息
  787. Dim Max_Text_Index As Integer            '最大录入文本框索引值
  788. Dim TextGroupCode As String              '文本框录入分组编码
  789. Dim TextValiLock As Boolean              '文本框失去焦点是否进行有效性控制判断
  790. Dim TextValiJudgeLock() As Boolean       '文本框录入有效性判断控制锁
  791. Dim CurTextIndex As Integer              '当前文本框索引值
  792. Dim TextChangeLock As Boolean            '文本框内容变换控制锁
  793. Dim Bln_Cancel As Boolean                '取消按钮信息传递
  794. Dim SaveTxt() As String                  '保留文本框值
  795. Dim SaveTxttag() As String               '保留文本框的tag值
  796. Private Sub Form_KeyPress(KeyAscii As Integer)   '控 制 焦 点 转 移(Fixed)
  797.     Dim jdzygs As Integer                         '控件焦点转移个数
  798.     jdzygs = 24
  799.     Select Case KeyAscii
  800.         Case vbKeyReturn
  801.             If Kjjdzy(jdzygs) Then
  802.                 KeyAscii = 0
  803.             End If
  804.         Case 39           '屏蔽"'"
  805.             KeyAscii = 0
  806.     End Select
  807. End Sub
  808. Private Sub Form_Load()
  809.    
  810.     '以下为文本框处理程序(Fixed)
  811.     TextGroupCode = "Chhs_SellOutListFind"
  812.     Call Drwbkxx(TextGroupCode, Textvar(), Textboolean(), Textint(), Textstr())  '读入文本框录入信息
  813.     Call Wbkcsh
  814.     
  815.     Tab_SSTab.Tab = 0
  816.     
  817.     '[>>初始化查询条件默认值
  818.     LrText(3).Text = Format(Xtrq, "yyyy-mm-dd")
  819.     LrText(4).Text = Format(Xtrq, "yyyy-mm-dd")
  820.     '<<]
  821.     
  822.     '限制变量个数
  823.     ReDim SaveTxt(LrText.count)
  824.     ReDim SaveTxttag(LrText.count)
  825.     
  826.     SaveTxt(3) = Format(Xtrq, "yyyy-mm-dd")
  827.     SaveTxt(4) = Format(Xtrq, "yyyy-mm-dd")
  828.     
  829. End Sub
  830. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)          '查询条件窗体卸载
  831.     
  832.     '恢复保留值
  833.     For Jsqte = 0 To LrText.count - 1
  834.         LrText(Jsqte) = SaveTxt(Jsqte)
  835.         LrText(Jsqte).Tag = SaveTxttag(Jsqte)
  836.     Next Jsqte
  837.     
  838.     '查询条件窗体卸载时判断是否因为结果窗体卸载,如是则卸载,否则隐藏
  839.     If UnloadCheck.Value <> 1 Then
  840.         Cancel = 1
  841.         Me.Hide
  842.     End If
  843.     
  844. End Sub
  845. Private Sub QdCommand_Click()                                   '确 定
  846.     '录入条件有效性判断(Fixed)
  847.     If Not Lrtjyxxpd Then
  848.         Exit Sub
  849.     End If
  850.     Me.Hide
  851.     
  852.     '保留当前值
  853.     For Jsqte = 0 To LrText.count - 1
  854.         SaveTxt(Jsqte) = LrText(Jsqte)
  855.         SaveTxttag(Jsqte) = LrText(Jsqte).Tag
  856.     Next Jsqte
  857.         
  858.     '[>>激活查询过程结果窗体
  859.     
  860.     LB_SellOutBillList.Timer1.Enabled = True
  861.     LB_SellOutBillList.SetFocus
  862.     
  863.     '<<]
  864. End Sub
  865. Private Sub QxCommand_Click()                                    '取消(Fixed)
  866.     '恢复保留值
  867.     For Jsqte = 0 To LrText.count - 1
  868.        LrText(Jsqte) = SaveTxt(Jsqte)
  869.        LrText(Jsqte).Tag = SaveTxttag(Jsqte)
  870.     Next Jsqte
  871.     
  872.     If LB_SellOutBillList.CxbbGrid.Rows = LB_SellOutBillList.CxbbGrid.FixedRows Then
  873.         LB_SellOutBillList.SzToolbar.Buttons("Bill").Enabled = False
  874.         LB_SellOutBillList.SzToolbar.Buttons("sc").Enabled = False
  875.     End If
  876.     
  877.     Me.Hide
  878.     
  879. End Sub
  880. Private Function Lrtjyxxpd() As Boolean                          '用户录入条件有效性判断
  881.     Dim Jsqte As Integer
  882.     Lrtjyxxpd = False
  883.  
  884.     '对需要进行事后判断的文本框录入内容进行有效性判断 (Fixed)
  885.     For Jsqte = 0 To Max_Text_Index
  886.         If Textint(Jsqte, 9) = 0 Or Textint(Jsqte, 9) = 2 Then
  887.             If Not TextYxxpd(Jsqte) Then
  888.                 Exit Function
  889.             End If
  890.         End If
  891.     Next Jsqte
  892.    
  893.     '[>>以下为依据实际情况自定义部分
  894.  
  895.     '查询日期范围应由小到大
  896.     
  897.     '单据号由小到大
  898.     If Trim(LrText(1).Text) > Trim(LrText(2).Text) And Trim(LrText(2).Text) <> "" Then
  899.         Tsxx = "查询单据号范围应由小到大!"
  900.         Call Xtxxts(Tsxx, 0, 4)
  901.         LrText(1).SetFocus
  902.         Exit Function
  903.     End If
  904.     
  905.     '入库日期由小到大
  906.     If LrText(3).Text > LrText(4).Text And Trim(LrText(4).Text) <> "" Then
  907.         Tsxx = "查询入库日期范围应由小到大!"
  908.         Call Xtxxts(Tsxx, 0, 4)
  909.         LrText(3).SetFocus
  910.         Exit Function
  911.     End If
  912.     
  913.     '查询存货范围应由小到大
  914.     If Trim(LrText(6).Text) > Trim(LrText(7).Text) And Trim(LrText(7).Text) <> "" Then
  915.         Tsxx = "查询存货范围应由小到大!"
  916.         Call Xtxxts(Tsxx, 0, 4)
  917.         LrText(6).SetFocus
  918.         Exit Function
  919.     End If
  920.     
  921.     '查询数量范围应由小到大
  922.     If Val(LrText(11).Text) > Val(LrText(12).Text) And Trim(LrText(12).Text) <> "" Then
  923.         Tsxx = "查询数量范围应由小到大!"
  924.         Call Xtxxts(Tsxx, 0, 4)
  925.         LrText(11).SetFocus
  926.         Exit Function
  927.     End If
  928.   
  929.     '查询金额范围应由小到大
  930.     If Val(LrText(13).Text) > Val(LrText(14).Text) And Trim(LrText(14).Text) <> "" Then
  931.         Tsxx = "查询金额范围应由小到大!"
  932.         Call Xtxxts(Tsxx, 0, 4)
  933.         LrText(13).SetFocus
  934.         Exit Function
  935.     End If
  936.   
  937.     '<<]以上为依据实际情况自定义部分
  938.  
  939.     Lrtjyxxpd = True
  940. End Function
  941. Private Sub Cmd_Clear_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)    '将用户输入条件全部清除(可选)
  942.     '清除文本框(Fixed)
  943.     For Jsqte = 0 To Max_Text_Index
  944.         LrText(Jsqte).Tag = ""
  945.         LrText(Jsqte).Text = ""
  946.     Next Jsqte
  947.   
  948.     '[>>
  949.     '此处可以写入其他清除条件程序
  950.     Opt_Check(0).Value = True
  951.     '<<]
  952.   
  953. End Sub
  954. '*************以下为文本框录入处理程序(固定不变部分)*************'
  955. Private Sub Wbklrwbcl(Index As Integer)    '文本框录入事后处理程序
  956.   
  957.     '以下为依据实际情况自定义部分[
  958.     '在此填写文本框录入事后处理程序
  959.     ']以上为依据实际情况自定义部分
  960.   
  961. End Sub
  962. Private Sub LrText_Change(Index As Integer)
  963.    
  964.     '屏蔽程序改变控制
  965.     If TextChangeLock Then
  966.         Exit Sub
  967.     End If
  968.     
  969.     TextValiJudgeLock(Index) = False    '打开有效性判断锁
  970.     
  971.     '限制字段录入长度
  972.           
  973.     TextChangeLock = True  '加锁(防止执行Lrtext_Change)
  974.     
  975.     Call TextChangeLimit(LrText(Index), Textint(Index, 1))  '去掉无效字符
  976.         
  977.     Select Case Textint(Index, 1)
  978.         Case 8, 11      '金额型
  979.             Call Sjgskz(LrText(Index), Xtjezws - Xtjexsws - 1, Xtjexsws)
  980.         Case 9, 12      '数量型
  981.             Call Sjgskz(LrText(Index), Xtslzws - Xtslxsws - 1, Xtslxsws)
  982.         Case 10          '单价型
  983.             Call Sjgskz(LrText(Index), Xtdjzws - Xtdjxsws - 1, Xtdjxsws)
  984.         Case Else        '其他小数类型控制
  985.             If Textint(Index, 6) <> 0 Or Textint(Index, 7) <> 0 Then
  986.                 Call Sjgskz(LrText(Index), Textint(Index, 6), Textint(Index, 7))
  987.             End If
  988.     End Select
  989.         
  990.     TextChangeLock = False '解锁
  991. End Sub
  992. Private Sub LrText_GotFocus(Index As Integer)                                                 '文本框得到焦点,显示相应信息
  993.     Call TextShow(Index)
  994.     CurTextIndex = Index
  995.     LrText(Index).SelStart = Len(LrText(Index))
  996. End Sub
  997. Private Sub LrText_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)            '字段按F2键提供帮助
  998.     
  999.     Select Case KeyCode
  1000.         Case vbKeyF2
  1001.             Call Text_Help(Index)
  1002.     End Select
  1003. End Sub
  1004. Private Sub LrText_KeyPress(Index As Integer, KeyAscii As Integer)                            '文本框录入事中控制
  1005.     Call InputFieldLimit(LrText(Index), Textint(Index, 1), KeyAscii)
  1006. End Sub
  1007. Private Sub LrText_LostFocus(Index As Integer)                                                '文本框失去焦点
  1008.     '显示相应信息但不能进行有效性判断
  1009.   
  1010. End Sub
  1011. Private Sub Ydcommand1_MouseDown(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)     '按钮提供帮助
  1012.     Call Text_Help(Index)
  1013. End Sub
  1014. Private Sub Text_Help(Index As Integer)                                                       '录入字段帮助
  1015.     If Not Textboolean(Index, 1) Then
  1016.         Exit Sub
  1017.     End If
  1018.      
  1019.     '调用帮助
  1020.     Call Drbmhelp(Textint(Index, 2), Textstr(Index, 4), Trim(LrText(Index).Text))
  1021.   
  1022.     '根据设置选择显示编码和名称,并进行存储
  1023.     If Len(Xtfhcs) <> 0 Then
  1024.         If Textint(Index, 3) = 1 Then
  1025.             LrText(Index).Text = Xtfhcsfz
  1026.             LrText(Index).Tag = Xtfhcs
  1027.         Else
  1028.             LrText(Index).Text = Xtfhcs
  1029.             LrText(Index).Tag = Xtfhcsfz
  1030.         End If
  1031.     End If
  1032.    
  1033.     LrText(Index).SetFocus
  1034. End Sub
  1035. Private Sub TextShow(Index As Integer)        '文本框得到焦点,显示相应信息
  1036.     '填写文本框得到焦点,进行相应信息处理程序
  1037.    
  1038. End Sub
  1039. Private Sub Wbkcsh()                          '录入文本框初始化
  1040.     
  1041.     Dim Jsqte As Integer
  1042.   
  1043.     '最大录入文本框索引值
  1044.     Max_Text_Index = Textvar(1)
  1045.   
  1046.     ReDim TextValiJudgeLock(Max_Text_Index)
  1047.     For Jsqte = 0 To Max_Text_Index
  1048.         If Len(Trim(Textstr(Jsqte, 1))) <> 0 Then
  1049.             If Textboolean(Jsqte, 1) Then
  1050.                 If Jsqte <> 0 And Not Textboolean(Jsqte, 3) Then
  1051.                     Load Ydcommand1(Jsqte)
  1052.                 End If
  1053.                 Ydcommand1(Jsqte).Visible = True
  1054.                 Ydcommand1(Jsqte).Move LrText(Jsqte).Left + LrText(Jsqte).Width, LrText(Jsqte).Top
  1055.             End If
  1056.             TextChangeLock = True
  1057.             LrText(Jsqte).Text = ""
  1058.             LrText(Jsqte).Tag = ""
  1059.             If Textint(Jsqte, 5) <> 0 Then
  1060.                 LrText(Jsqte).MaxLength = Textint(Jsqte, 5)
  1061.             End If
  1062.             TextChangeLock = False
  1063.         End If
  1064.         TextValiJudgeLock(Jsqte) = True
  1065.     Next Jsqte
  1066. End Sub
  1067. Private Function TextYxxpd(Index As Integer) As Boolean           '文本框有效性判断
  1068.     
  1069.     Dim SqlStr As String
  1070.     Dim Findrec As ADODB.Recordset
  1071.   
  1072.     '文本框内容未曾改变不进行有效性判断
  1073.     If TextValiJudgeLock(Index) Then
  1074.         TextYxxpd = True
  1075.         Exit Function
  1076.     End If
  1077.   
  1078.     '文本框内容为空认为有效,并清空其Tag值
  1079.     If Trim(LrText(Index)) = "" Then
  1080.         LrText(Index).Tag = ""
  1081.         Call Wbklrwbcl(Index)
  1082.         TextValiJudgeLock(Index) = True
  1083.         TextYxxpd = True
  1084.         Exit Function
  1085.     End If
  1086.   
  1087.     '可在此加入不做有效性判断的理由
  1088.   
  1089.     Select Case Textint(Index, 4)
  1090.         Case 1      '编码型
  1091.             SqlStr = Trim(Textstr(Index, 5))
  1092.             SqlStr = Replace(SqlStr, "@", "'" + Trim(LrText(Index).Text) + "'")
  1093.             SqlStr = Replace(SqlStr, "$$", "'" + Trim(Xtczybm) + "'")
  1094.             Set Findrec = Cw_DataEnvi.DataConnect.Execute(SqlStr)
  1095.             If Findrec.EOF Then
  1096.                 Call Xtxxts(Trim(Textstr(Index, 6)), 0, 1)
  1097.                 LrText(Index).SetFocus
  1098.                 Exit Function
  1099.             Else
  1100.                 Select Case Textint(Index, 3)
  1101.                     Case 0
  1102.                         If Len(Trim(Textstr(Index, 2))) <> 0 Then
  1103.                             LrText(Index).Text = Trim(Findrec.Fields(Trim(Textstr(Index, 2))))
  1104.                         End If
  1105.                         If Len(Trim(Textstr(Index, 3) & "")) <> 0 Then
  1106.                             LrText(Index).Tag = Trim(Findrec.Fields(Trim(Textstr(Index, 3))))
  1107.                         End If
  1108.                     Case 1
  1109.                         If Len(Trim(Textstr(Index, 3) & "")) <> 0 Then
  1110.                             LrText(Index).Text = Trim(Findrec.Fields(Trim(Textstr(Index, 3))))
  1111.                         End If
  1112.                         If Len(Trim(Textstr(Index, 2))) <> 0 Then
  1113.                             LrText(Index).Tag = Trim(Findrec.Fields(Trim(Textstr(Index, 2))))
  1114.                         End If
  1115.                 End Select
  1116.             End If
  1117.         Case 2      '日期型
  1118.             If IsDate(LrText(Index).Text) Then
  1119.                 LrText(Index).Text = Format(LrText(Index).Text, "yyyy-mm-dd")
  1120.                 If Val(Mid(LrText(Index), 1, 4)) < 1900 Then
  1121.                     LrText(Index).Text = "1900" + Mid(LrText(Index), 5, 6)
  1122.                 End If
  1123.             Else
  1124.                 Tsxx = "非法公历日期!(格式:" + Format(Date, "yyyy-mm-dd") + ")"
  1125.                 Call Xtxxts(Tsxx, 0, 1)
  1126.                 LrText(Index).SetFocus
  1127.                 Exit Function
  1128.             End If
  1129.         Case 3      '其他类型
  1130.     End Select
  1131.     
  1132.     '如果有效则加锁,用户不改变内容则不再进行有效性判断
  1133.     TextValiJudgeLock(Index) = True
  1134.     '调用文本框事后处理程序
  1135.     Call Wbklrwbcl(Index)
  1136.    
  1137.     '有效性判断通过则返回True
  1138.     TextYxxpd = True
  1139.    
  1140. End Function