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

企业管理

开发平台:

Visual Basic

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