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

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
  3. Begin VB.Form Cask_AppertainInListQuery 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "附属物入库单列表查询条件"
  6.    ClientHeight    =   5190
  7.    ClientLeft      =   45
  8.    ClientTop       =   330
  9.    ClientWidth     =   5130
  10.    Icon            =   "包装物管理系统_单据列表_附属物入库单列表查询条件(单据式).frx":0000
  11.    KeyPreview      =   -1  'True
  12.    LinkTopic       =   "Form1"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   5190
  16.    ScaleWidth      =   5130
  17.    ShowInTaskbar   =   0   'False
  18.    StartUpPosition =   1  '所有者中心
  19.    Begin VB.CheckBox UnloadCheck 
  20.       Caption         =   "卸载窗体"
  21.       Height          =   615
  22.       Left            =   6030
  23.       TabIndex        =   21
  24.       Top             =   4500
  25.       Width           =   825
  26.    End
  27.    Begin VB.CommandButton QdCommand 
  28.       Caption         =   "确定(&O)"
  29.       Height          =   300
  30.       Left            =   2730
  31.       TabIndex        =   18
  32.       Top             =   4800
  33.       Width           =   1120
  34.    End
  35.    Begin VB.CommandButton QxCommand 
  36.       Caption         =   "取消(&C)"
  37.       Height          =   300
  38.       Left            =   3930
  39.       TabIndex        =   19
  40.       Top             =   4800
  41.       Width           =   1120
  42.    End
  43.    Begin VB.CommandButton Cmd_Clear 
  44.       Caption         =   "全清"
  45.       Height          =   300
  46.       Left            =   60
  47.       TabIndex        =   20
  48.       Top             =   4800
  49.       Width           =   1120
  50.    End
  51.    Begin TabDlg.SSTab SSTab1 
  52.       Height          =   4665
  53.       Left            =   60
  54.       TabIndex        =   22
  55.       Top             =   60
  56.       Width           =   4995
  57.       _ExtentX        =   8811
  58.       _ExtentY        =   8229
  59.       _Version        =   393216
  60.       Style           =   1
  61.       Tabs            =   2
  62.       TabHeight       =   520
  63.       TabCaption(0)   =   "基本条件"
  64.       TabPicture(0)   =   "包装物管理系统_单据列表_附属物入库单列表查询条件(单据式).frx":08CA
  65.       Tab(0).ControlEnabled=   -1  'True
  66.       Tab(0).Control(0)=   "Frame1"
  67.       Tab(0).Control(0).Enabled=   0   'False
  68.       Tab(0).ControlCount=   1
  69.       TabCaption(1)   =   "辅助条件"
  70.       TabPicture(1)   =   "包装物管理系统_单据列表_附属物入库单列表查询条件(单据式).frx":08E6
  71.       Tab(1).ControlEnabled=   0   'False
  72.       Tab(1).Control(0)=   "Frame3"
  73.       Tab(1).Control(0).Enabled=   0   'False
  74.       Tab(1).ControlCount=   1
  75.       Begin VB.Frame Frame5 
  76.          Height          =   3495
  77.          Left            =   -74910
  78.          TabIndex        =   41
  79.          Top             =   420
  80.          Width           =   5640
  81.          Begin VB.Label Label1 
  82.             AutoSize        =   -1  'True
  83.             Caption         =   "数量:"
  84.             Height          =   180
  85.             Index           =   15
  86.             Left            =   300
  87.             TabIndex        =   45
  88.             Top             =   855
  89.             Width           =   450
  90.          End
  91.          Begin VB.Label Label1 
  92.             AutoSize        =   -1  'True
  93.             Caption         =   "金额:"
  94.             Height          =   180
  95.             Index           =   16
  96.             Left            =   300
  97.             TabIndex        =   44
  98.             Top             =   405
  99.             Width           =   450
  100.          End
  101.          Begin VB.Line Line2 
  102.             Index           =   0
  103.             X1              =   2925
  104.             X2              =   3165
  105.             Y1              =   480
  106.             Y2              =   480
  107.          End
  108.          Begin VB.Line Line2 
  109.             Index           =   1
  110.             X1              =   2910
  111.             X2              =   3150
  112.             Y1              =   975
  113.             Y2              =   975
  114.          End
  115.          Begin VB.Label Label1 
  116.             AutoSize        =   -1  'True
  117.             Caption         =   "货区:"
  118.             Height          =   180
  119.             Index           =   17
  120.             Left            =   300
  121.             TabIndex        =   43
  122.             Top             =   1755
  123.             Width           =   450
  124.          End
  125.          Begin VB.Label Label1 
  126.             AutoSize        =   -1  'True
  127.             Caption         =   "部门:"
  128.             Height          =   180
  129.             Index           =   18
  130.             Left            =   300
  131.             TabIndex        =   42
  132.             Top             =   1305
  133.             Width           =   450
  134.          End
  135.       End
  136.       Begin VB.Frame Frame1 
  137.          Height          =   4215
  138.          Left            =   120
  139.          TabIndex        =   28
  140.          Top             =   330
  141.          Width           =   4755
  142.          Begin VB.CommandButton Ydcommand1 
  143.             Height          =   300
  144.             Index           =   9
  145.             Left            =   4320
  146.             Picture         =   "包装物管理系统_单据列表_附属物入库单列表查询条件(单据式).frx":0902
  147.             Style           =   1  'Graphical
  148.             TabIndex        =   58
  149.             Top             =   3270
  150.             Visible         =   0   'False
  151.             Width           =   300
  152.          End
  153.          Begin VB.CommandButton Ydcommand1 
  154.             Height          =   300
  155.             Index           =   5
  156.             Left            =   4320
  157.             Picture         =   "包装物管理系统_单据列表_附属物入库单列表查询条件(单据式).frx":0C8C
  158.             Style           =   1  'Graphical
  159.             TabIndex        =   51
  160.             Top             =   1730
  161.             Visible         =   0   'False
  162.             Width           =   300
  163.          End
  164.          Begin VB.CommandButton Ydcommand1 
  165.             Height          =   300
  166.             Index           =   8
  167.             Left            =   4320
  168.             Picture         =   "包装物管理系统_单据列表_附属物入库单列表查询条件(单据式).frx":1016
  169.             Style           =   1  'Graphical
  170.             TabIndex        =   54
  171.             Top             =   2885
  172.             Visible         =   0   'False
  173.             Width           =   300
  174.          End
  175.          Begin VB.CommandButton Ydcommand1 
  176.             Height          =   300
  177.             Index           =   7
  178.             Left            =   4320
  179.             Picture         =   "包装物管理系统_单据列表_附属物入库单列表查询条件(单据式).frx":13A0
  180.             Style           =   1  'Graphical
  181.             TabIndex        =   53
  182.             Top             =   2500
  183.             Visible         =   0   'False
  184.             Width           =   300
  185.          End
  186.          Begin VB.CommandButton Ydcommand1 
  187.             Height          =   300
  188.             Index           =   6
  189.             Left            =   4320
  190.             Picture         =   "包装物管理系统_单据列表_附属物入库单列表查询条件(单据式).frx":172A
  191.             Style           =   1  'Graphical
  192.             TabIndex        =   52
  193.             Top             =   2115
  194.             Visible         =   0   'False
  195.             Width           =   300
  196.          End
  197.          Begin VB.CommandButton Ydcommand1 
  198.             Height          =   300
  199.             Index           =   4
  200.             Left            =   4320
  201.             Picture         =   "包装物管理系统_单据列表_附属物入库单列表查询条件(单据式).frx":1AB4
  202.             Style           =   1  'Graphical
  203.             TabIndex        =   50
  204.             Top             =   1345
  205.             Visible         =   0   'False
  206.             Width           =   300
  207.          End
  208.          Begin VB.CommandButton Ydcommand1 
  209.             Height          =   300
  210.             Index           =   3
  211.             Left            =   4320
  212.             Picture         =   "包装物管理系统_单据列表_附属物入库单列表查询条件(单据式).frx":1E3E
  213.             Style           =   1  'Graphical
  214.             TabIndex        =   49
  215.             Top             =   974
  216.             Visible         =   0   'False
  217.             Width           =   300
  218.          End
  219.          Begin VB.CommandButton Ydcommand1 
  220.             Height          =   300
  221.             Index           =   1
  222.             Left            =   4290
  223.             Picture         =   "包装物管理系统_单据列表_附属物入库单列表查询条件(单据式).frx":21C8
  224.             Style           =   1  'Graphical
  225.             TabIndex        =   48
  226.             Top             =   210
  227.             Visible         =   0   'False
  228.             Width           =   300
  229.          End
  230.          Begin VB.TextBox LrText 
  231.             Height          =   300
  232.             Index           =   8
  233.             Left            =   990
  234.             TabIndex        =   8
  235.             Text            =   "8"
  236.             Top             =   2884
  237.             Width           =   3345
  238.          End
  239.          Begin VB.TextBox LrText 
  240.             Height          =   300
  241.             Index           =   5
  242.             Left            =   990
  243.             TabIndex        =   5
  244.             Text            =   "5"
  245.             Top             =   1738
  246.             Width           =   3345
  247.          End
  248.          Begin VB.TextBox LrText 
  249.             Height          =   300
  250.             Index           =   6
  251.             Left            =   990
  252.             TabIndex        =   6
  253.             Text            =   "6"
  254.             Top             =   2120
  255.             Width           =   3345
  256.          End
  257.          Begin VB.TextBox LrText 
  258.             Height          =   300
  259.             Index           =   7
  260.             Left            =   990
  261.             TabIndex        =   7
  262.             Text            =   "7"
  263.             Top             =   2502
  264.             Width           =   3345
  265.          End
  266.          Begin VB.CommandButton Ydcommand1 
  267.             Height          =   300
  268.             Index           =   0
  269.             Left            =   2340
  270.             Picture         =   "包装物管理系统_单据列表_附属物入库单列表查询条件(单据式).frx":2552
  271.             Style           =   1  'Graphical
  272.             TabIndex        =   33
  273.             Top             =   210
  274.             Visible         =   0   'False
  275.             Width           =   300
  276.          End
  277.          Begin VB.TextBox LrText 
  278.             Height          =   300
  279.             Index           =   4
  280.             Left            =   990
  281.             TabIndex        =   4
  282.             Text            =   "4"
  283.             Top             =   1356
  284.             Width           =   3345
  285.          End
  286.          Begin VB.TextBox LrText 
  287.             Height          =   300
  288.             Index           =   3
  289.             Left            =   990
  290.             TabIndex        =   3
  291.             Text            =   "3"
  292.             Top             =   974
  293.             Width           =   3345
  294.          End
  295.          Begin VB.Frame Frame2 
  296.             Caption         =   "审核状态"
  297.             Height          =   555
  298.             Left            =   165
  299.             TabIndex        =   29
  300.             Top             =   3570
  301.             Width           =   4455
  302.             Begin VB.OptionButton Opt_Check 
  303.                Caption         =   "全部"
  304.                Height          =   195
  305.                Index           =   0
  306.                Left            =   180
  307.                TabIndex        =   32
  308.                Top             =   240
  309.                Value           =   -1  'True
  310.                Width           =   855
  311.             End
  312.             Begin VB.OptionButton Opt_Check 
  313.                Caption         =   "未审核"
  314.                Height          =   195
  315.                Index           =   1
  316.                Left            =   1665
  317.                TabIndex        =   31
  318.                Top             =   270
  319.                Width           =   915
  320.             End
  321.             Begin VB.OptionButton Opt_Check 
  322.                Caption         =   "已审核"
  323.                Height          =   195
  324.                Index           =   2
  325.                Left            =   3210
  326.                TabIndex        =   30
  327.                Top             =   270
  328.                Width           =   1005
  329.             End
  330.          End
  331.          Begin VB.TextBox LrText 
  332.             Height          =   300
  333.             Index           =   1
  334.             Left            =   2940
  335.             TabIndex        =   1
  336.             Text            =   "1"
  337.             Top             =   210
  338.             Width           =   1365
  339.          End
  340.          Begin VB.TextBox LrText 
  341.             Height          =   300
  342.             Index           =   0
  343.             Left            =   990
  344.             TabIndex        =   0
  345.             Text            =   "0"
  346.             Top             =   210
  347.             Width           =   1365
  348.          End
  349.          Begin VB.TextBox LrText 
  350.             Height          =   300
  351.             Index           =   2
  352.             Left            =   990
  353.             TabIndex        =   2
  354.             Text            =   "2"
  355.             Top             =   592
  356.             Width           =   3615
  357.          End
  358.          Begin VB.TextBox LrText 
  359.             Height          =   300
  360.             Index           =   9
  361.             Left            =   990
  362.             TabIndex        =   9
  363.             Text            =   "9"
  364.             Top             =   3270
  365.             Width           =   3345
  366.          End
  367.          Begin VB.Line Line3 
  368.             Index           =   0
  369.             X1              =   2700
  370.             X2              =   2880
  371.             Y1              =   330
  372.             Y2              =   330
  373.          End
  374.          Begin VB.Label Label1 
  375.             AutoSize        =   -1  'True
  376.             Caption         =   "包装物:"
  377.             Height          =   180
  378.             Index           =   13
  379.             Left            =   150
  380.             TabIndex        =   59
  381.             Top             =   1020
  382.             Width           =   630
  383.          End
  384.          Begin VB.Label Label1 
  385.             AutoSize        =   -1  'True
  386.             Caption         =   "日期:"
  387.             Height          =   180
  388.             Index           =   10
  389.             Left            =   150
  390.             TabIndex        =   46
  391.             Top             =   300
  392.             Width           =   450
  393.          End
  394.          Begin VB.Label Label1 
  395.             AutoSize        =   -1  'True
  396.             Caption         =   "部门:"
  397.             Height          =   180
  398.             Index           =   3
  399.             Left            =   150
  400.             TabIndex        =   40
  401.             Top             =   2535
  402.             Width           =   450
  403.          End
  404.          Begin VB.Label Label1 
  405.             AutoSize        =   -1  'True
  406.             Caption         =   "供应商:"
  407.             Height          =   180
  408.             Index           =   1
  409.             Left            =   150
  410.             TabIndex        =   39
  411.             Top             =   2145
  412.             Width           =   630
  413.          End
  414.          Begin VB.Label Label1 
  415.             AutoSize        =   -1  'True
  416.             Caption         =   "业务类型:"
  417.             Height          =   180
  418.             Index           =   2
  419.             Left            =   150
  420.             TabIndex        =   38
  421.             Top             =   1770
  422.             Width           =   810
  423.          End
  424.          Begin VB.Label Label1 
  425.             AutoSize        =   -1  'True
  426.             Caption         =   "仓库:"
  427.             Height          =   180
  428.             Index           =   11
  429.             Left            =   150
  430.             TabIndex        =   37
  431.             Top             =   1380
  432.             Width           =   450
  433.          End
  434.          Begin VB.Label Label1 
  435.             AutoSize        =   -1  'True
  436.             Caption         =   "单据号:"
  437.             Height          =   180
  438.             Index           =   0
  439.             Left            =   150
  440.             TabIndex        =   36
  441.             Top             =   660
  442.             Width           =   630
  443.          End
  444.          Begin VB.Label Label1 
  445.             AutoSize        =   -1  'True
  446.             Caption         =   "附属物:"
  447.             Height          =   180
  448.             Index           =   7
  449.             Left            =   150
  450.             TabIndex        =   35
  451.             Top             =   2895
  452.             Width           =   630
  453.          End
  454.          Begin VB.Label Label1 
  455.             AutoSize        =   -1  'True
  456.             Caption         =   "状态:"
  457.             Height          =   180
  458.             Index           =   8
  459.             Left            =   150
  460.             TabIndex        =   34
  461.             Top             =   3270
  462.             Width           =   450
  463.          End
  464.       End
  465.       Begin VB.Frame Frame3 
  466.          Height          =   4215
  467.          Left            =   -74880
  468.          TabIndex        =   23
  469.          Top             =   330
  470.          Width           =   4755
  471.          Begin VB.TextBox LrText 
  472.             Height          =   300
  473.             Index           =   17
  474.             Left            =   3045
  475.             TabIndex        =   17
  476.             Text            =   "17"
  477.             Top             =   2169
  478.             Width           =   1545
  479.          End
  480.          Begin VB.TextBox LrText 
  481.             Height          =   300
  482.             Index           =   16
  483.             Left            =   1170
  484.             TabIndex        =   16
  485.             Text            =   "16"
  486.             Top             =   2169
  487.             Width           =   1545
  488.          End
  489.          Begin VB.TextBox LrText 
  490.             Height          =   300
  491.             Index           =   15
  492.             Left            =   3045
  493.             TabIndex        =   15
  494.             Text            =   "15"
  495.             Top             =   1779
  496.             Width           =   1545
  497.          End
  498.          Begin VB.CommandButton Ydcommand1 
  499.             Height          =   300
  500.             Index           =   13
  501.             Left            =   4290
  502.             Picture         =   "包装物管理系统_单据列表_附属物入库单列表查询条件(单据式).frx":28DC
  503.             Style           =   1  'Graphical
  504.             TabIndex        =   60
  505.             Top             =   1380
  506.             Visible         =   0   'False
  507.             Width           =   300
  508.          End
  509.          Begin VB.CommandButton Ydcommand1 
  510.             Height          =   300
  511.             Index           =   12
  512.             Left            =   4290
  513.             Picture         =   "包装物管理系统_单据列表_附属物入库单列表查询条件(单据式).frx":2C66
  514.             Style           =   1  'Graphical
  515.             TabIndex        =   57
  516.             Top             =   990
  517.             Visible         =   0   'False
  518.             Width           =   300
  519.          End
  520.          Begin VB.CommandButton Ydcommand1 
  521.             Height          =   300
  522.             Index           =   11
  523.             Left            =   4290
  524.             Picture         =   "包装物管理系统_单据列表_附属物入库单列表查询条件(单据式).frx":2FF0
  525.             Style           =   1  'Graphical
  526.             TabIndex        =   56
  527.             Top             =   600
  528.             Visible         =   0   'False
  529.             Width           =   300
  530.          End
  531.          Begin VB.CommandButton Ydcommand1 
  532.             Height          =   300
  533.             Index           =   10
  534.             Left            =   4290
  535.             Picture         =   "包装物管理系统_单据列表_附属物入库单列表查询条件(单据式).frx":337A
  536.             Style           =   1  'Graphical
  537.             TabIndex        =   55
  538.             Top             =   210
  539.             Visible         =   0   'False
  540.             Width           =   300
  541.          End
  542.          Begin VB.TextBox LrText 
  543.             Height          =   300
  544.             Index           =   14
  545.             Left            =   1170
  546.             TabIndex        =   14
  547.             Text            =   "14"
  548.             Top             =   1779
  549.             Width           =   1545
  550.          End
  551.          Begin VB.TextBox LrText 
  552.             Height          =   300
  553.             Index           =   13
  554.             Left            =   1170
  555.             TabIndex        =   13
  556.             Text            =   "13"
  557.             Top             =   1380
  558.             Width           =   3135
  559.          End
  560.          Begin VB.TextBox LrText 
  561.             Height          =   300
  562.             Index           =   12
  563.             Left            =   1170
  564.             TabIndex        =   12
  565.             Text            =   "12"
  566.             Top             =   990
  567.             Width           =   3135
  568.          End
  569.          Begin VB.TextBox LrText 
  570.             Height          =   300
  571.             Index           =   10
  572.             Left            =   1170
  573.             TabIndex        =   10
  574.             Text            =   "10"
  575.             Top             =   210
  576.             Width           =   3135
  577.          End
  578.          Begin VB.TextBox LrText 
  579.             Height          =   300
  580.             Index           =   11
  581.             Left            =   1170
  582.             TabIndex        =   11
  583.             Text            =   "11"
  584.             Top             =   600
  585.             Width           =   3135
  586.          End
  587.          Begin VB.Line Line3 
  588.             Index           =   2
  589.             X1              =   2790
  590.             X2              =   2970
  591.             Y1              =   2310
  592.             Y2              =   2310
  593.          End
  594.          Begin VB.Line Line3 
  595.             Index           =   1
  596.             X1              =   2790
  597.             X2              =   2970
  598.             Y1              =   1920
  599.             Y2              =   1920
  600.          End
  601.          Begin VB.Label Label1 
  602.             AutoSize        =   -1  'True
  603.             Caption         =   "附属物数量:"
  604.             Height          =   180
  605.             Index           =   14
  606.             Left            =   150
  607.             TabIndex        =   61
  608.             Top             =   2190
  609.             Width           =   990
  610.          End
  611.          Begin VB.Label Label1 
  612.             AutoSize        =   -1  'True
  613.             Caption         =   "运输方式:"
  614.             Height          =   180
  615.             Index           =   12
  616.             Left            =   150
  617.             TabIndex        =   47
  618.             Top             =   270
  619.             Width           =   810
  620.          End
  621.          Begin VB.Label Label1 
  622.             AutoSize        =   -1  'True
  623.             Caption         =   "制单人:"
  624.             Height          =   180
  625.             Index           =   6
  626.             Left            =   150
  627.             TabIndex        =   27
  628.             Top             =   1422
  629.             Width           =   630
  630.          End
  631.          Begin VB.Label Label1 
  632.             AutoSize        =   -1  'True
  633.             Caption         =   "验收人:"
  634.             Height          =   180
  635.             Index           =   5
  636.             Left            =   150
  637.             TabIndex        =   26
  638.             Top             =   1038
  639.             Width           =   630
  640.          End
  641.          Begin VB.Label Label1 
  642.             AutoSize        =   -1  'True
  643.             Caption         =   "业务员:"
  644.             Height          =   180
  645.             Index           =   4
  646.             Left            =   150
  647.             TabIndex        =   25
  648.             Top             =   654
  649.             Width           =   630
  650.          End
  651.          Begin VB.Label Label1 
  652.             AutoSize        =   -1  'True
  653.             Caption         =   "包装物数量:"
  654.             Height          =   180
  655.             Index           =   9
  656.             Left            =   150
  657.             TabIndex        =   24
  658.             Top             =   1806
  659.             Width           =   990
  660.          End
  661.       End
  662.    End
  663. End
  664. Attribute VB_Name = "Cask_AppertainInListQuery"
  665. Attribute VB_GlobalNameSpace = False
  666. Attribute VB_Creatable = False
  667. Attribute VB_PredeclaredId = True
  668. Attribute VB_Exposed = False
  669. '******************************************************************
  670. '*    模 块 名 称 :附属物入库单列表查询条件
  671. '*    功 能 描 述 :
  672. '*    程序员姓名  :邹力
  673. '*    最后修改人  :
  674. '*    最后修改时间:2001/12/17
  675. '*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
  676. '******************************************************************
  677. Dim Tsxx As String                       '系统信息提示
  678. '以下为固定使用变量(文本框)
  679. Dim Textvar() As Variant                 '存储变体型文本框信息
  680. Dim Textboolean() As Boolean             '存储布尔型文本框信息
  681. Dim Textint() As Integer                 '存储整型文本框信息
  682. Dim Textstr() As String                  '存储字符型文本框信息
  683. Dim Max_Text_Index As Integer            '最大录入文本框索引值
  684. Dim TextGroupCode As String              '文本框录入分组编码
  685. Dim TextValiLock As Boolean              '文本框失去焦点是否进行有效性控制判断
  686. Dim TextValiJudgeLock() As Boolean       '文本框录入有效性判断控制锁
  687. Dim CurTextIndex As Integer              '当前文本框索引值
  688. Dim TextChangeLock As Boolean            '文本框内容变换控制锁
  689. Dim Bln_Cancel As Boolean                '取消按钮信息传递
  690. Private Sub Form_KeyPress(KeyAscii As Integer)   '控 制 焦 点 转 移(Fixed)
  691.     Dim jdzygs As Integer                         '控件焦点转移个数
  692.     jdzygs = 30
  693.     Select Case KeyAscii
  694.         Case vbKeyReturn
  695.             If Kjjdzy(jdzygs) Then
  696.                 KeyAscii = 0
  697.             End If
  698.         Case 39           '屏蔽"'"
  699.             KeyAscii = 0
  700.     End Select
  701. End Sub
  702. Private Sub Form_Load()
  703.    
  704.     '以下为文本框处理程序(Fixed)
  705.     TextGroupCode = "Cask_AppertainInList"
  706.     Call Drwbkxx(TextGroupCode, Textvar(), Textboolean(), Textint(), Textstr())  '读入文本框录入信息
  707.     Call Wbkcsh
  708.    
  709.     '[>>初始化查询条件默认值
  710.     LrText(0).Text = Format(Xtrq, "yyyy-mm-dd")
  711.     LrText(1).Text = Format(Xtrq, "yyyy-mm-dd")
  712.     '<<]
  713.    
  714. End Sub
  715. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)          '查询条件窗体卸载
  716.     '查询条件窗体卸载时判断是否因为结果窗体卸载,如是则卸载,否则隐藏
  717.     If UnloadCheck.Value <> 1 Then
  718.         Cancel = 1
  719.         Me.Hide
  720.     End If
  721.     
  722. End Sub
  723. Private Sub QdCommand_Click()                                   '确 定
  724.     '录入条件有效性判断(Fixed)
  725.     If Not Lrtjyxxpd Then
  726.         Exit Sub
  727.     End If
  728.     Me.Hide
  729.         
  730.     '[>>激活查询过程结果窗体
  731.     
  732.     Cask_AppertainInList.Timer1.Enabled = True
  733.     Cask_AppertainInList.SetFocus
  734.     
  735.     '<<]
  736. End Sub
  737. Private Sub QxCommand_Click()                                    '取消(Fixed)
  738.     Me.Hide
  739. End Sub
  740. Private Function Lrtjyxxpd() As Boolean                          '用户录入条件有效性判断
  741.     Dim Jsqte As Integer
  742.     Lrtjyxxpd = False
  743.  
  744.     '对需要进行事后判断的文本框录入内容进行有效性判断 (Fixed)
  745.     For Jsqte = 0 To Max_Text_Index
  746.         If Textint(Jsqte, 9) = 0 Or Textint(Jsqte, 9) = 2 Then
  747.             If Not TextYxxpd(Jsqte) Then
  748.                 Exit Function
  749.             End If
  750.         End If
  751.     Next Jsqte
  752.    
  753.     '[>>以下为依据实际情况自定义部分
  754.  
  755.     '查询日期范围应由小到大
  756.     If LrText(0).Text > LrText(1).Text And Trim(LrText(1).Text) <> "" Then
  757.         Tsxx = "查询日期范围应由小到大!"
  758.         Call Xtxxts(Tsxx, 0, 4)
  759.         SSTab1.Tab = 0
  760.         LrText(0).SetFocus
  761.         Exit Function
  762.     End If
  763.     If Val(LrText(14).Text) > Val(LrText(15).Text) And Trim(LrText(15).Text) <> "" Then
  764.         Tsxx = "查询包装物数量范围应由小到大!"
  765.         Call Xtxxts(Tsxx, 0, 4)
  766.         SSTab1.Tab = 1
  767.         LrText(13).SetFocus
  768.         Exit Function
  769.     End If
  770.     
  771.     If Val(LrText(16).Text) > Val(LrText(17).Text) And Trim(LrText(17).Text) <> "" Then
  772.         Tsxx = "查询附属物数量范围应由小到大!"
  773.         Call Xtxxts(Tsxx, 0, 4)
  774.         SSTab1.Tab = 1
  775.         LrText(13).SetFocus
  776.         Exit Function
  777.     End If
  778.     '<<]以上为依据实际情况自定义部分
  779.  
  780.     Lrtjyxxpd = True
  781. End Function
  782. Private Sub Cmd_Clear_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)    '将用户输入条件全部清除(可选)
  783.     '清除文本框(Fixed)
  784.     For Jsqte = 0 To Max_Text_Index
  785.         LrText(Jsqte).Tag = ""
  786.         LrText(Jsqte).Text = ""
  787.     Next Jsqte
  788.    Opt_Check(0).Value = True
  789.     '[>>
  790.     '此处可以写入其他清除条件程序
  791.     '<<]
  792.   
  793. End Sub
  794. '*************以下为文本框录入处理程序(固定不变部分)*************'
  795. Private Sub Wbklrwbcl(Index As Integer)    '文本框录入事后处理程序
  796.   
  797.     '以下为依据实际情况自定义部分[
  798.     '在此填写文本框录入事后处理程序
  799.     ']以上为依据实际情况自定义部分
  800.   
  801. End Sub
  802. Private Sub LrText_Change(Index As Integer)
  803.    
  804.     '屏蔽程序改变控制
  805.     If TextChangeLock Then
  806.         Exit Sub
  807.     End If
  808.     
  809.     TextValiJudgeLock(Index) = False    '打开有效性判断锁
  810.     
  811.     '限制字段录入长度
  812.           
  813.     TextChangeLock = True  '加锁(防止执行Lrtext_Change)
  814.     Call TextChangeLimit(LrText(Index), Textint(Index, 1))  '去掉无效字符
  815.     
  816.     Select Case Textint(Index, 1)
  817.         Case 8, 11      '金额型
  818.             Call Sjgskz(LrText(Index), Xtjezws - Xtjexsws - 1, Xtjexsws)
  819.         Case 9, 12      '数量型
  820.             Call Sjgskz(LrText(Index), Xtslzws - Xtslxsws - 1, Xtslxsws)
  821.         Case 10          '单价型
  822.             Call Sjgskz(LrText(Index), Xtdjzws - Xtdjxsws - 1, Xtdjxsws)
  823.         Case Else        '其他小数类型控制
  824.             If Textint(Index, 6) <> 0 Or Textint(Index, 7) <> 0 Then
  825.                 Call Sjgskz(LrText(Index), Textint(Index, 6), Textint(Index, 7))
  826.             End If
  827.     End Select
  828.         
  829.     TextChangeLock = False '解锁
  830. End Sub
  831. Private Sub LrText_GotFocus(Index As Integer)                                                 '文本框得到焦点,显示相应信息
  832.     Call TextShow(Index)
  833.     CurTextIndex = Index
  834.     LrText(Index).SelStart = Len(LrText(Index))
  835. End Sub
  836. Private Sub LrText_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)            '字段按F2键提供帮助
  837.     
  838.     Select Case KeyCode
  839.         Case vbKeyF2
  840.             Call Text_Help(Index)
  841.     End Select
  842. End Sub
  843. Private Sub LrText_KeyPress(Index As Integer, KeyAscii As Integer)                            '文本框录入事中控制
  844.     Call InputFieldLimit(LrText(Index), Textint(Index, 1), KeyAscii)
  845. End Sub
  846. Private Sub LrText_LostFocus(Index As Integer)                                                '文本框失去焦点
  847.     '显示相应信息但不能进行有效性判断
  848.   
  849. End Sub
  850. Private Sub Ydcommand1_MouseDown(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)     '按钮提供帮助
  851.     Call Text_Help(Index)
  852. End Sub
  853. Private Sub Text_Help(Index As Integer)                                                       '录入字段帮助
  854.     If Not Textboolean(Index, 1) Then
  855.         Exit Sub
  856.     End If
  857.      
  858.     '调用帮助
  859.     Call Drbmhelp(Textint(Index, 2), Textstr(Index, 4), Trim(LrText(Index).Text))
  860.   
  861.     '根据设置选择显示编码和名称,并进行存储
  862.     If Len(Xtfhcs) <> 0 Then
  863.         If Textint(Index, 3) = 1 Then
  864.             LrText(Index).Text = Xtfhcsfz
  865.             LrText(Index).Tag = Xtfhcs
  866.         Else
  867.             LrText(Index).Text = Xtfhcs
  868.             LrText(Index).Tag = Xtfhcsfz
  869.         End If
  870.     End If
  871.    
  872.     LrText(Index).SetFocus
  873. End Sub
  874. Private Sub TextShow(Index As Integer)        '文本框得到焦点,显示相应信息
  875.     '填写文本框得到焦点,进行相应信息处理程序
  876.    
  877. End Sub
  878. Private Sub Wbkcsh()                          '录入文本框初始化
  879.     
  880.     Dim Jsqte As Integer
  881.   
  882.     '最大录入文本框索引值
  883.     Max_Text_Index = Textvar(1)
  884.   
  885.     ReDim TextValiJudgeLock(Max_Text_Index)
  886.     For Jsqte = 0 To Max_Text_Index
  887.         If Len(Trim(Textstr(Jsqte, 1))) <> 0 Then
  888.             If Textboolean(Jsqte, 1) Then
  889.                 If Jsqte <> 0 And Not Textboolean(Jsqte, 3) Then
  890.                     Load Ydcommand1(Jsqte)
  891.                 End If
  892.                 Ydcommand1(Jsqte).Visible = True
  893.                 Ydcommand1(Jsqte).Move LrText(Jsqte).Left + LrText(Jsqte).Width, LrText(Jsqte).Top
  894.             End If
  895.             TextChangeLock = True
  896.             LrText(Jsqte).Text = ""
  897.             LrText(Jsqte).Tag = ""
  898.             If Textint(Jsqte, 5) <> 0 Then
  899.                 LrText(Jsqte).MaxLength = Textint(Jsqte, 5)
  900.             End If
  901.             TextChangeLock = False
  902.         End If
  903.         TextValiJudgeLock(Jsqte) = True
  904.     Next Jsqte
  905. End Sub
  906. Private Function TextYxxpd(Index As Integer) As Boolean           '文本框有效性判断
  907.     
  908.     Dim Sqlstr As String
  909.     Dim Findrec As ADODB.Recordset
  910.   
  911.     '文本框内容未曾改变不进行有效性判断
  912.     If TextValiJudgeLock(Index) Then
  913.         TextYxxpd = True
  914.         Exit Function
  915.     End If
  916.   
  917.     '文本框内容为空认为有效,并清空其Tag值
  918.     If Trim(LrText(Index)) = "" Then
  919.         LrText(Index).Tag = ""
  920.         Call Wbklrwbcl(Index)
  921.         TextValiJudgeLock(Index) = True
  922.         TextYxxpd = True
  923.         Exit Function
  924.     End If
  925.   
  926.     '可在此加入不做有效性判断的理由
  927.   
  928.     Select Case Textint(Index, 4)
  929.         Case 1      '编码型
  930.             Sqlstr = Trim(Textstr(Index, 5))
  931.             Sqlstr = Replace(Sqlstr, "@", "'" + Trim(LrText(Index).Text) + "'")
  932.             Set Findrec = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  933.             If Findrec.EOF Then
  934.                 Call Xtxxts(Trim(Textstr(Index, 6)), 0, 1)
  935.                 LrText(Index).SetFocus
  936.                 Exit Function
  937.             Else
  938.                 Select Case Textint(Index, 3)
  939.                     Case 0
  940.                         If Len(Trim(Textstr(Index, 2))) <> 0 Then
  941.                             LrText(Index).Text = Trim(Findrec.Fields(Trim(Textstr(Index, 2))))
  942.                         End If
  943.                         If Len(Trim(Textstr(Index, 3) & "")) <> 0 Then
  944.                             LrText(Index).Tag = Trim(Findrec.Fields(Trim(Textstr(Index, 3))))
  945.                         End If
  946.                     Case 1
  947.                         If Len(Trim(Textstr(Index, 3) & "")) <> 0 Then
  948.                             LrText(Index).Text = Trim(Findrec.Fields(Trim(Textstr(Index, 3))))
  949.                         End If
  950.                         If Len(Trim(Textstr(Index, 2))) <> 0 Then
  951.                             LrText(Index).Tag = Trim(Findrec.Fields(Trim(Textstr(Index, 2))))
  952.                         End If
  953.                 End Select
  954.             End If
  955.         Case 2      '日期型
  956.             If IsDate(LrText(Index).Text) Then
  957.                 LrText(Index).Text = Format(LrText(Index).Text, "yyyy-mm-dd")
  958.                 If Val(Mid(LrText(Index), 1, 4)) < 1900 Then
  959.                     LrText(Index).Text = "1900" + Mid(LrText(Index), 5, 6)
  960.                 End If
  961.             Else
  962.                 Tsxx = "非法公历日期!(格式:" + Format(Date, "yyyy-mm-dd") + ")"
  963.                 Call Xtxxts(Tsxx, 0, 1)
  964.                 LrText(Index).SetFocus
  965.                 Exit Function
  966.             End If
  967.         Case 3      '其他类型
  968.     End Select
  969.     
  970.     '如果有效则加锁,用户不改变内容则不再进行有效性判断
  971.     TextValiJudgeLock(Index) = True
  972.     '调用文本框事后处理程序
  973.     Call Wbklrwbcl(Index)
  974.    
  975.     '有效性判断通过则返回True
  976.     TextYxxpd = True
  977.    
  978. End Function