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

企业管理

开发平台:

Visual Basic

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