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