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

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
  3. Begin VB.Form Cask_IssueListQuery 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "出库单列表查询条件"
  6.    ClientHeight    =   4875
  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     =   4875
  16.    ScaleWidth      =   5130
  17.    ShowInTaskbar   =   0   'False
  18.    StartUpPosition =   1  '所有者中心
  19.    Begin VB.CheckBox UnloadCheck 
  20.       Caption         =   "卸载窗体"
  21.       Height          =   615
  22.       Left            =   5910
  23.       TabIndex        =   17
  24.       Top             =   5970
  25.       Width           =   825
  26.    End
  27.    Begin VB.CommandButton QdCommand 
  28.       Caption         =   "确定(&O)"
  29.       Height          =   300
  30.       Left            =   2730
  31.       TabIndex        =   14
  32.       Top             =   4500
  33.       Width           =   1120
  34.    End
  35.    Begin VB.CommandButton QxCommand 
  36.       Caption         =   "取消(&C)"
  37.       Height          =   300
  38.       Left            =   3930
  39.       TabIndex        =   15
  40.       Top             =   4500
  41.       Width           =   1120
  42.    End
  43.    Begin VB.CommandButton Cmd_Clear 
  44.       Caption         =   "全清"
  45.       Height          =   300
  46.       Left            =   60
  47.       TabIndex        =   16
  48.       Top             =   4500
  49.       Width           =   1120
  50.    End
  51.    Begin TabDlg.SSTab SSTab1 
  52.       Height          =   4365
  53.       Left            =   60
  54.       TabIndex        =   18
  55.       Top             =   60
  56.       Width           =   4995
  57.       _ExtentX        =   8811
  58.       _ExtentY        =   7699
  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        =   36
  79.          Top             =   420
  80.          Width           =   5640
  81.          Begin VB.TextBox LrText 
  82.             Height          =   300
  83.             Index           =   17
  84.             Left            =   840
  85.             TabIndex        =   44
  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        =   43
  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        =   42
  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        =   41
  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        =   40
  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        =   39
  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        =   38
  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        =   37
  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        =   48
  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        =   47
  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        =   46
  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        =   45
  208.             Top             =   1305
  209.             Width           =   450
  210.          End
  211.       End
  212.       Begin VB.Frame Frame1 
  213.          Height          =   3915
  214.          Left            =   120
  215.          TabIndex        =   23
  216.          Top             =   330
  217.          Width           =   4755
  218.          Begin VB.CommandButton Ydcommand1 
  219.             Height          =   300
  220.             Index           =   8
  221.             Left            =   4320
  222.             Picture         =   "包装物管理系统_单据列表_出库单列表查询条件(单据式).frx":1016
  223.             Style           =   1  'Graphical
  224.             TabIndex        =   57
  225.             Top             =   2940
  226.             Visible         =   0   'False
  227.             Width           =   300
  228.          End
  229.          Begin VB.CommandButton Ydcommand1 
  230.             Height          =   300
  231.             Index           =   7
  232.             Left            =   4320
  233.             Picture         =   "包装物管理系统_单据列表_出库单列表查询条件(单据式).frx":13A0
  234.             Style           =   1  'Graphical
  235.             TabIndex        =   56
  236.             Top             =   2550
  237.             Visible         =   0   'False
  238.             Width           =   300
  239.          End
  240.          Begin VB.CommandButton Ydcommand1 
  241.             Height          =   300
  242.             Index           =   6
  243.             Left            =   4320
  244.             Picture         =   "包装物管理系统_单据列表_出库单列表查询条件(单据式).frx":172A
  245.             Style           =   1  'Graphical
  246.             TabIndex        =   55
  247.             Top             =   2160
  248.             Visible         =   0   'False
  249.             Width           =   300
  250.          End
  251.          Begin VB.CommandButton Ydcommand1 
  252.             Height          =   300
  253.             Index           =   5
  254.             Left            =   4320
  255.             Picture         =   "包装物管理系统_单据列表_出库单列表查询条件(单据式).frx":1AB4
  256.             Style           =   1  'Graphical
  257.             TabIndex        =   54
  258.             Top             =   1770
  259.             Visible         =   0   'False
  260.             Width           =   300
  261.          End
  262.          Begin VB.CommandButton Ydcommand1 
  263.             Height          =   300
  264.             Index           =   4
  265.             Left            =   4320
  266.             Picture         =   "包装物管理系统_单据列表_出库单列表查询条件(单据式).frx":1E3E
  267.             Style           =   1  'Graphical
  268.             TabIndex        =   53
  269.             Top             =   1380
  270.             Visible         =   0   'False
  271.             Width           =   300
  272.          End
  273.          Begin VB.CommandButton Ydcommand1 
  274.             Height          =   300
  275.             Index           =   3
  276.             Left            =   4320
  277.             Picture         =   "包装物管理系统_单据列表_出库单列表查询条件(单据式).frx":21C8
  278.             Style           =   1  'Graphical
  279.             TabIndex        =   52
  280.             Top             =   990
  281.             Visible         =   0   'False
  282.             Width           =   300
  283.          End
  284.          Begin VB.CommandButton Ydcommand1 
  285.             Height          =   300
  286.             Index           =   1
  287.             Left            =   4320
  288.             Picture         =   "包装物管理系统_单据列表_出库单列表查询条件(单据式).frx":2552
  289.             Style           =   1  'Graphical
  290.             TabIndex        =   51
  291.             Top             =   210
  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           =   3345
  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           =   3345
  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           =   3345
  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           =   3345
  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        =   28
  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           =   3345
  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           =   3345
  359.          End
  360.          Begin VB.Frame Frame2 
  361.             Caption         =   "审核状态"
  362.             Height          =   585
  363.             Left            =   150
  364.             TabIndex        =   24
  365.             Top             =   3240
  366.             Width           =   4485
  367.             Begin VB.OptionButton Opt_Check 
  368.                Caption         =   "全部"
  369.                Height          =   195
  370.                Index           =   0
  371.                Left            =   180
  372.                TabIndex        =   27
  373.                Top             =   270
  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            =   1635
  382.                TabIndex        =   26
  383.                Top             =   270
  384.                Width           =   915
  385.             End
  386.             Begin VB.OptionButton Opt_Check 
  387.                Caption         =   "已审核"
  388.                Height          =   195
  389.                Index           =   2
  390.                Left            =   3210
  391.                TabIndex        =   25
  392.                Top             =   270
  393.                Width           =   1005
  394.             End
  395.          End
  396.          Begin VB.TextBox LrText 
  397.             Height          =   300
  398.             Index           =   1
  399.             Left            =   2970
  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           =   3640
  422.          End
  423.          Begin VB.Line Line3 
  424.             X1              =   2700
  425.             X2              =   2880
  426.             Y1              =   330
  427.             Y2              =   330
  428.          End
  429.          Begin VB.Label Label1 
  430.             AutoSize        =   -1  'True
  431.             Caption         =   "日期:"
  432.             Height          =   180
  433.             Index           =   10
  434.             Left            =   150
  435.             TabIndex        =   49
  436.             Top             =   270
  437.             Width           =   450
  438.          End
  439.          Begin VB.Label Label1 
  440.             AutoSize        =   -1  'True
  441.             Caption         =   "部门:"
  442.             Height          =   180
  443.             Index           =   3
  444.             Left            =   150
  445.             TabIndex        =   35
  446.             Top             =   2220
  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        =   34
  456.             Top             =   1845
  457.             Width           =   450
  458.          End
  459.          Begin VB.Label Label1 
  460.             Caption         =   "业务类型:"
  461.             Height          =   255
  462.             Index           =   2
  463.             Left            =   150
  464.             TabIndex        =   33
  465.             Top             =   1395
  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        =   32
  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        =   31
  485.             Top             =   645
  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        =   30
  495.             Top             =   2595
  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        =   29
  505.             Top             =   2970
  506.             Width           =   450
  507.          End
  508.       End
  509.       Begin VB.Frame Frame3 
  510.          Height          =   3915
  511.          Left            =   -74880
  512.          TabIndex        =   19
  513.          Top             =   330
  514.          Width           =   4755
  515.          Begin VB.CommandButton Ydcommand1 
  516.             Height          =   300
  517.             Index           =   11
  518.             Left            =   4335
  519.             Picture         =   "包装物管理系统_单据列表_出库单列表查询条件(单据式).frx":2C66
  520.             Style           =   1  'Graphical
  521.             TabIndex        =   60
  522.             Top             =   990
  523.             Visible         =   0   'False
  524.             Width           =   300
  525.          End
  526.          Begin VB.CommandButton Ydcommand1 
  527.             Height          =   300
  528.             Index           =   10
  529.             Left            =   4335
  530.             Picture         =   "包装物管理系统_单据列表_出库单列表查询条件(单据式).frx":2FF0
  531.             Style           =   1  'Graphical
  532.             TabIndex        =   59
  533.             Top             =   600
  534.             Visible         =   0   'False
  535.             Width           =   300
  536.          End
  537.          Begin VB.CommandButton Ydcommand1 
  538.             Height          =   300
  539.             Index           =   9
  540.             Left            =   4335
  541.             Picture         =   "包装物管理系统_单据列表_出库单列表查询条件(单据式).frx":337A
  542.             Style           =   1  'Graphical
  543.             TabIndex        =   58
  544.             Top             =   210
  545.             Visible         =   0   'False
  546.             Width           =   300
  547.          End
  548.          Begin VB.TextBox LrText 
  549.             Height          =   300
  550.             Index           =   13
  551.             Left            =   3030
  552.             TabIndex        =   13
  553.             Text            =   "13"
  554.             Top             =   1380
  555.             Width           =   1605
  556.          End
  557.          Begin VB.TextBox LrText 
  558.             Height          =   300
  559.             Index           =   12
  560.             Left            =   990
  561.             TabIndex        =   12
  562.             Text            =   "12"
  563.             Top             =   1380
  564.             Width           =   1605
  565.          End
  566.          Begin VB.TextBox LrText 
  567.             Height          =   300
  568.             Index           =   11
  569.             Left            =   990
  570.             TabIndex        =   11
  571.             Text            =   "11"
  572.             Top             =   990
  573.             Width           =   3345
  574.          End
  575.          Begin VB.TextBox LrText 
  576.             Height          =   300
  577.             Index           =   9
  578.             Left            =   990
  579.             TabIndex        =   9
  580.             Text            =   "9"
  581.             Top             =   210
  582.             Width           =   3345
  583.          End
  584.          Begin VB.TextBox LrText 
  585.             Height          =   300
  586.             Index           =   10
  587.             Left            =   990
  588.             TabIndex        =   10
  589.             Text            =   "10"
  590.             Top             =   600
  591.             Width           =   3345
  592.          End
  593.          Begin VB.Line Line1 
  594.             X1              =   2730
  595.             X2              =   2910
  596.             Y1              =   1500
  597.             Y2              =   1500
  598.          End
  599.          Begin VB.Label Label1 
  600.             AutoSize        =   -1  'True
  601.             Caption         =   "运输方式:"
  602.             Height          =   180
  603.             Index           =   12
  604.             Left            =   150
  605.             TabIndex        =   50
  606.             Top             =   240
  607.             Width           =   810
  608.          End
  609.          Begin VB.Label Label1 
  610.             AutoSize        =   -1  'True
  611.             Caption         =   "制单人:"
  612.             Height          =   180
  613.             Index           =   6
  614.             Left            =   150
  615.             TabIndex        =   22
  616.             Top             =   1005
  617.             Width           =   630
  618.          End
  619.          Begin VB.Label Label1 
  620.             AutoSize        =   -1  'True
  621.             Caption         =   "经手人:"
  622.             Height          =   180
  623.             Index           =   4
  624.             Left            =   150
  625.             TabIndex        =   21
  626.             Top             =   630
  627.             Width           =   630
  628.          End
  629.          Begin VB.Label Label1 
  630.             AutoSize        =   -1  'True
  631.             Caption         =   "数量:"
  632.             Height          =   180
  633.             Index           =   9
  634.             Left            =   150
  635.             TabIndex        =   20
  636.             Top             =   1380
  637.             Width           =   450
  638.          End
  639.       End
  640.    End
  641. End
  642. Attribute VB_Name = "Cask_IssueListQuery"
  643. Attribute VB_GlobalNameSpace = False
  644. Attribute VB_Creatable = False
  645. Attribute VB_PredeclaredId = True
  646. Attribute VB_Exposed = False
  647. '******************************************************************
  648. '*    模 块 名 称 :出库单列表查询条件
  649. '*    功 能 描 述 :
  650. '*    程序员姓名  :邹力
  651. '*    最后修改人  :
  652. '*    最后修改时间:2001/12/07
  653. '*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
  654. '******************************************************************
  655. Dim Tsxx As String                       '系统信息提示
  656. '以下为固定使用变量(文本框)
  657. Dim Textvar() As Variant                 '存储变体型文本框信息
  658. Dim Textboolean() As Boolean             '存储布尔型文本框信息
  659. Dim Textint() As Integer                 '存储整型文本框信息
  660. Dim Textstr() As String                  '存储字符型文本框信息
  661. Dim Max_Text_Index As Integer            '最大录入文本框索引值
  662. Dim TextGroupCode As String              '文本框录入分组编码
  663. Dim TextValiLock As Boolean              '文本框失去焦点是否进行有效性控制判断
  664. Dim TextValiJudgeLock() As Boolean       '文本框录入有效性判断控制锁
  665. Dim CurTextIndex As Integer              '当前文本框索引值
  666. Dim TextChangeLock As Boolean            '文本框内容变换控制锁
  667. Dim Bln_Cancel As Boolean                '取消按钮信息传递
  668. Private Sub Form_KeyPress(KeyAscii As Integer)   '控 制 焦 点 转 移(Fixed)
  669.     Dim jdzygs As Integer                         '控件焦点转移个数
  670.     jdzygs = 30
  671.     Select Case KeyAscii
  672.         Case vbKeyReturn
  673.             If Kjjdzy(jdzygs) Then
  674.                 KeyAscii = 0
  675.             End If
  676.         Case 39           '屏蔽"'"
  677.             KeyAscii = 0
  678.     End Select
  679. End Sub
  680. Private Sub Form_Load()
  681.    
  682.     '以下为文本框处理程序(Fixed)
  683.     TextGroupCode = "Cask_IssueList"
  684.     Call Drwbkxx(TextGroupCode, Textvar(), Textboolean(), Textint(), Textstr())  '读入文本框录入信息
  685.     Call Wbkcsh
  686.    
  687.     '[>>初始化查询条件默认值
  688.     LrText(0).Text = Format(Xtrq, "yyyy-mm-dd")
  689.     LrText(1).Text = Format(Xtrq, "yyyy-mm-dd")
  690.     '<<]
  691.    
  692. End Sub
  693. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)          '查询条件窗体卸载
  694.     '查询条件窗体卸载时判断是否因为结果窗体卸载,如是则卸载,否则隐藏
  695.     If UnloadCheck.Value <> 1 Then
  696.         Cancel = 1
  697.         Me.Hide
  698.     End If
  699.     
  700. End Sub
  701. Private Sub QdCommand_Click()                                   '确 定
  702.     '录入条件有效性判断(Fixed)
  703.     If Not Lrtjyxxpd Then
  704.         Exit Sub
  705.     End If
  706.     Me.Hide
  707.         
  708.     '[>>激活查询过程结果窗体
  709.     
  710.     Cask_IssueList.Timer1.Enabled = True
  711.     Cask_IssueList.SetFocus
  712.     
  713.     '<<]
  714. End Sub
  715. Private Sub QxCommand_Click()                                    '取消(Fixed)
  716.     Me.Hide
  717. End Sub
  718. Private Function Lrtjyxxpd() As Boolean                          '用户录入条件有效性判断
  719.     Dim Jsqte As Integer
  720.     Lrtjyxxpd = False
  721.  
  722.     '对需要进行事后判断的文本框录入内容进行有效性判断 (Fixed)
  723.     For Jsqte = 0 To Max_Text_Index
  724.         If Textint(Jsqte, 9) = 0 Or Textint(Jsqte, 9) = 2 Then
  725.             If Not TextYxxpd(Jsqte) Then
  726.                 Exit Function
  727.             End If
  728.         End If
  729.     Next Jsqte
  730.    
  731.     '[>>以下为依据实际情况自定义部分
  732.  
  733.     '查询日期范围应由小到大
  734.     If LrText(0).Text > LrText(1).Text And Trim(LrText(1).Text) <> "" Then
  735.         Tsxx = "查询日期范围应由小到大!"
  736.         Call Xtxxts(Tsxx, 0, 4)
  737.         SSTab1.Tab = 0
  738.         LrText(0).SetFocus
  739.         Exit Function
  740.     End If
  741.     If Val(LrText(12).Text) > Val(LrText(13).Text) And Trim(LrText(13).Text) <> "" Then
  742.         Tsxx = "查询数量范围应由小到大!"
  743.         Call Xtxxts(Tsxx, 0, 4)
  744.         SSTab1.Tab = 1
  745.         LrText(12).SetFocus
  746.         Exit Function
  747.     End If
  748.     '<<]以上为依据实际情况自定义部分
  749.  
  750.     Lrtjyxxpd = True
  751. End Function
  752. Private Sub Cmd_Clear_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)    '将用户输入条件全部清除(可选)
  753.     '清除文本框(Fixed)
  754.     For Jsqte = 0 To Max_Text_Index
  755.         LrText(Jsqte).Tag = ""
  756.         LrText(Jsqte).Text = ""
  757.     Next Jsqte
  758.     Opt_Check(0).Value = True
  759.     '[>>
  760.     '此处可以写入其他清除条件程序
  761.     '<<]
  762.   
  763. End Sub
  764. '*************以下为文本框录入处理程序(固定不变部分)*************'
  765. Private Sub Wbklrwbcl(Index As Integer)    '文本框录入事后处理程序
  766.   
  767.     '以下为依据实际情况自定义部分[
  768.     '在此填写文本框录入事后处理程序
  769.     ']以上为依据实际情况自定义部分
  770.   
  771. End Sub
  772. Private Sub LrText_Change(Index As Integer)
  773.    
  774.     '屏蔽程序改变控制
  775.     If TextChangeLock Then
  776.         Exit Sub
  777.     End If
  778.     
  779.     TextValiJudgeLock(Index) = False    '打开有效性判断锁
  780.     
  781.     '限制字段录入长度
  782.           
  783.     TextChangeLock = True  '加锁(防止执行Lrtext_Change)
  784.     Call TextChangeLimit(LrText(Index), Textint(Index, 1))  '去掉无效字符
  785.     
  786.     Select Case Textint(Index, 1)
  787.         Case 8, 11      '金额型
  788.             Call Sjgskz(LrText(Index), Xtjezws - Xtjexsws - 1, Xtjexsws)
  789.         Case 9, 12      '数量型
  790.             Call Sjgskz(LrText(Index), Xtslzws - Xtslxsws - 1, Xtslxsws)
  791.         Case 10          '单价型
  792.             Call Sjgskz(LrText(Index), Xtdjzws - Xtdjxsws - 1, Xtdjxsws)
  793.         Case Else        '其他小数类型控制
  794.             If Textint(Index, 6) <> 0 Or Textint(Index, 7) <> 0 Then
  795.                 Call Sjgskz(LrText(Index), Textint(Index, 6), Textint(Index, 7))
  796.             End If
  797.     End Select
  798.         
  799.     TextChangeLock = False '解锁
  800. End Sub
  801. Private Sub LrText_GotFocus(Index As Integer)                                                 '文本框得到焦点,显示相应信息
  802.     Call TextShow(Index)
  803.     CurTextIndex = Index
  804.     LrText(Index).SelStart = Len(LrText(Index))
  805. End Sub
  806. Private Sub LrText_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)            '字段按F2键提供帮助
  807.     
  808.     Select Case KeyCode
  809.         Case vbKeyF2
  810.             Call Text_Help(Index)
  811.     End Select
  812. End Sub
  813. Private Sub LrText_KeyPress(Index As Integer, KeyAscii As Integer)                            '文本框录入事中控制
  814.     Call InputFieldLimit(LrText(Index), Textint(Index, 1), KeyAscii)
  815. End Sub
  816. Private Sub LrText_LostFocus(Index As Integer)                                                '文本框失去焦点
  817.     '显示相应信息但不能进行有效性判断
  818.   
  819. End Sub
  820. Private Sub Ydcommand1_MouseDown(Index As Integer, Button As Integer, Shift As Integer, x As Single, y As Single)     '按钮提供帮助
  821.     Call Text_Help(Index)
  822. End Sub
  823. Private Sub Text_Help(Index As Integer)                                                       '录入字段帮助
  824.     If Not Textboolean(Index, 1) Then
  825.         Exit Sub
  826.     End If
  827.      
  828.     '调用帮助
  829.     Call Drbmhelp(Textint(Index, 2), Textstr(Index, 4), Trim(LrText(Index).Text))
  830.   
  831.     '根据设置选择显示编码和名称,并进行存储
  832.     If Len(Xtfhcs) <> 0 Then
  833.         If Textint(Index, 3) = 1 Then
  834.             LrText(Index).Text = Xtfhcsfz
  835.             LrText(Index).Tag = Xtfhcs
  836.         Else
  837.             LrText(Index).Text = Xtfhcs
  838.             LrText(Index).Tag = Xtfhcsfz
  839.         End If
  840.     End If
  841.    
  842.     LrText(Index).SetFocus
  843. End Sub
  844. Private Sub TextShow(Index As Integer)        '文本框得到焦点,显示相应信息
  845.     '填写文本框得到焦点,进行相应信息处理程序
  846.    
  847. End Sub
  848. Private Sub Wbkcsh()                          '录入文本框初始化
  849.     
  850.     Dim Jsqte As Integer
  851.   
  852.     '最大录入文本框索引值
  853.     Max_Text_Index = Textvar(1)
  854.   
  855.     ReDim TextValiJudgeLock(Max_Text_Index)
  856.     For Jsqte = 0 To Max_Text_Index
  857.         If Len(Trim(Textstr(Jsqte, 1))) <> 0 Then
  858.             If Textboolean(Jsqte, 1) Then
  859.                 If Jsqte <> 0 And Not Textboolean(Jsqte, 3) Then
  860.                     Load Ydcommand1(Jsqte)
  861.                 End If
  862.                 Ydcommand1(Jsqte).Visible = True
  863.                 Ydcommand1(Jsqte).Move LrText(Jsqte).Left + LrText(Jsqte).Width, LrText(Jsqte).Top
  864.             End If
  865.             TextChangeLock = True
  866.             LrText(Jsqte).Text = ""
  867.             LrText(Jsqte).Tag = ""
  868.             If Textint(Jsqte, 5) <> 0 Then
  869.                 LrText(Jsqte).MaxLength = Textint(Jsqte, 5)
  870.             End If
  871.             TextChangeLock = False
  872.         End If
  873.         TextValiJudgeLock(Jsqte) = True
  874.     Next Jsqte
  875. End Sub
  876. Private Function TextYxxpd(Index As Integer) As Boolean           '文本框有效性判断
  877.     
  878.     Dim Sqlstr As String
  879.     Dim Findrec As ADODB.Recordset
  880.   
  881.     '文本框内容未曾改变不进行有效性判断
  882.     If TextValiJudgeLock(Index) Then
  883.         TextYxxpd = True
  884.         Exit Function
  885.     End If
  886.   
  887.     '文本框内容为空认为有效,并清空其Tag值
  888.     If Trim(LrText(Index)) = "" Then
  889.         LrText(Index).Tag = ""
  890.         Call Wbklrwbcl(Index)
  891.         TextValiJudgeLock(Index) = True
  892.         TextYxxpd = True
  893.         Exit Function
  894.     End If
  895.   
  896.     '可在此加入不做有效性判断的理由
  897.   
  898.     Select Case Textint(Index, 4)
  899.         Case 1      '编码型
  900.             Sqlstr = Trim(Textstr(Index, 5))
  901.             Sqlstr = Replace(Sqlstr, "@", "'" + Trim(LrText(Index).Text) + "'")
  902.             Set Findrec = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  903.             If Findrec.EOF Then
  904.                 Call Xtxxts(Trim(Textstr(Index, 6)), 0, 1)
  905.                 LrText(Index).SetFocus
  906.                 Exit Function
  907.             Else
  908.                 Select Case Textint(Index, 3)
  909.                     Case 0
  910.                         If Len(Trim(Textstr(Index, 2))) <> 0 Then
  911.                             LrText(Index).Text = Trim(Findrec.Fields(Trim(Textstr(Index, 2))))
  912.                         End If
  913.                         If Len(Trim(Textstr(Index, 3) & "")) <> 0 Then
  914.                             LrText(Index).Tag = Trim(Findrec.Fields(Trim(Textstr(Index, 3))))
  915.                         End If
  916.                     Case 1
  917.                         If Len(Trim(Textstr(Index, 3) & "")) <> 0 Then
  918.                             LrText(Index).Text = Trim(Findrec.Fields(Trim(Textstr(Index, 3))))
  919.                         End If
  920.                         If Len(Trim(Textstr(Index, 2))) <> 0 Then
  921.                             LrText(Index).Tag = Trim(Findrec.Fields(Trim(Textstr(Index, 2))))
  922.                         End If
  923.                 End Select
  924.             End If
  925.         Case 2      '日期型
  926.             If IsDate(LrText(Index).Text) Then
  927.                 LrText(Index).Text = Format(LrText(Index).Text, "yyyy-mm-dd")
  928.                 If Val(Mid(LrText(Index), 1, 4)) < 1900 Then
  929.                     LrText(Index).Text = "1900" + Mid(LrText(Index), 5, 6)
  930.                 End If
  931.             Else
  932.                 Tsxx = "非法公历日期!(格式:" + Format(Date, "yyyy-mm-dd") + ")"
  933.                 Call Xtxxts(Tsxx, 0, 1)
  934.                 LrText(Index).SetFocus
  935.                 Exit Function
  936.             End If
  937.         Case 3      '其他类型
  938.     End Select
  939.     
  940.     '如果有效则加锁,用户不改变内容则不再进行有效性判断
  941.     TextValiJudgeLock(Index) = True
  942.     '调用文本框事后处理程序
  943.     Call Wbklrwbcl(Index)
  944.    
  945.     '有效性判断通过则返回True
  946.     TextYxxpd = True
  947.    
  948. End Function