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

企业管理

开发平台:

Visual Basic

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