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