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

企业管理

开发平台:

Visual Basic

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