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

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{BEEECC20-4D5F-4F8B-BFDC-5D9B6FBDE09D}#1.0#0"; "vsflex8.ocx"
  3. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  4. Begin VB.Form KF_AlertWareage 
  5.    Caption         =   "库龄分析"
  6.    ClientHeight    =   8595
  7.    ClientLeft      =   315
  8.    ClientTop       =   390
  9.    ClientWidth     =   11820
  10.    HelpContextID   =   1218006
  11.    Icon            =   "储备分析_库龄分析.frx":0000
  12.    KeyPreview      =   -1  'True
  13.    LinkTopic       =   "Form1"
  14.    MDIChild        =   -1  'True
  15.    ScaleHeight     =   8595
  16.    ScaleWidth      =   11820
  17.    WindowState     =   2  'Maximized
  18.    Begin MSComctlLib.Toolbar GsToolbar 
  19.       Height          =   525
  20.       Left            =   9330
  21.       TabIndex        =   3
  22.       Top             =   30
  23.       Width           =   2475
  24.       _ExtentX        =   4366
  25.       _ExtentY        =   926
  26.       ButtonWidth     =   1455
  27.       ButtonHeight    =   926
  28.       Appearance      =   1
  29.       Style           =   1
  30.       ImageList       =   "ImageList2"
  31.       _Version        =   393216
  32.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  33.          NumButtons      =   3
  34.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  35.             Caption         =   "保存格式"
  36.             Key             =   "bcgs"
  37.             ImageKey        =   "bcgs"
  38.          EndProperty
  39.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  40.             Caption         =   "默认列宽"
  41.             Key             =   "hfmrgs"
  42.             ImageKey        =   "mrlk"
  43.          EndProperty
  44.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  45.             Caption         =   "显示项目"
  46.             Key             =   "szxsxm"
  47.             ImageKey        =   "xsxm"
  48.          EndProperty
  49.       EndProperty
  50.    End
  51.    Begin VB.PictureBox Pic_Title 
  52.       BackColor       =   &H00FFFFFF&
  53.       Height          =   780
  54.       Left            =   0
  55.       Picture         =   "储备分析_库龄分析.frx":1042
  56.       ScaleHeight     =   720
  57.       ScaleWidth      =   11715
  58.       TabIndex        =   1
  59.       Top             =   570
  60.       Width           =   11775
  61.       Begin VB.Label Lab_Title 
  62.          BackColor       =   &H80000018&
  63.          BackStyle       =   0  'Transparent
  64.          Caption         =   "库龄分析"
  65.          BeginProperty Font 
  66.             Name            =   "宋体"
  67.             Size            =   12
  68.             Charset         =   134
  69.             Weight          =   700
  70.             Underline       =   0   'False
  71.             Italic          =   0   'False
  72.             Strikethrough   =   0   'False
  73.          EndProperty
  74.          ForeColor       =   &H00000000&
  75.          Height          =   300
  76.          Index           =   4
  77.          Left            =   480
  78.          TabIndex        =   2
  79.          Top             =   210
  80.          Width           =   2715
  81.       End
  82.    End
  83.    Begin VB.Timer Timer1 
  84.       Enabled         =   0   'False
  85.       Interval        =   1
  86.       Left            =   7620
  87.       Top             =   90
  88.    End
  89.    Begin VSFlex8Ctl.VSFlexGrid CxbbGrid 
  90.       Height          =   7635
  91.       Left            =   0
  92.       TabIndex        =   0
  93.       Top             =   1380
  94.       Width           =   11775
  95.       _cx             =   5080
  96.       _cy             =   5080
  97.       Appearance      =   1
  98.       BorderStyle     =   1
  99.       Enabled         =   -1  'True
  100.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  101.          Name            =   "宋体"
  102.          Size            =   9
  103.          Charset         =   134
  104.          Weight          =   400
  105.          Underline       =   0   'False
  106.          Italic          =   0   'False
  107.          Strikethrough   =   0   'False
  108.       EndProperty
  109.       MousePointer    =   0
  110.       BackColor       =   16777215
  111.       ForeColor       =   -2147483640
  112.       BackColorFixed  =   13826538
  113.       ForeColorFixed  =   -2147483630
  114.       BackColorSel    =   -2147483635
  115.       ForeColorSel    =   -2147483634
  116.       BackColorBkg    =   -2147483636
  117.       BackColorAlternate=   16777215
  118.       GridColor       =   -2147483633
  119.       GridColorFixed  =   -2147483632
  120.       TreeColor       =   -2147483632
  121.       FloodColor      =   192
  122.       SheetBorder     =   -2147483642
  123.       FocusRect       =   1
  124.       HighLight       =   1
  125.       AllowSelection  =   -1  'True
  126.       AllowBigSelection=   -1  'True
  127.       AllowUserResizing=   0
  128.       SelectionMode   =   0
  129.       GridLines       =   1
  130.       GridLinesFixed  =   2
  131.       GridLineWidth   =   1
  132.       Rows            =   50
  133.       Cols            =   10
  134.       FixedRows       =   1
  135.       FixedCols       =   1
  136.       RowHeightMin    =   0
  137.       RowHeightMax    =   0
  138.       ColWidthMin     =   0
  139.       ColWidthMax     =   0
  140.       ExtendLastCol   =   0   'False
  141.       FormatString    =   ""
  142.       ScrollTrack     =   0   'False
  143.       ScrollBars      =   3
  144.       ScrollTips      =   0   'False
  145.       MergeCells      =   0
  146.       MergeCompare    =   0
  147.       AutoResize      =   -1  'True
  148.       AutoSizeMode    =   0
  149.       AutoSearch      =   0
  150.       AutoSearchDelay =   2
  151.       MultiTotals     =   -1  'True
  152.       SubtotalPosition=   1
  153.       OutlineBar      =   0
  154.       OutlineCol      =   0
  155.       Ellipsis        =   0
  156.       ExplorerBar     =   0
  157.       PicturesOver    =   0   'False
  158.       FillStyle       =   0
  159.       RightToLeft     =   0   'False
  160.       PictureType     =   0
  161.       TabBehavior     =   0
  162.       OwnerDraw       =   0
  163.       Editable        =   0
  164.       ShowComboButton =   1
  165.       WordWrap        =   0   'False
  166.       TextStyle       =   0
  167.       TextStyleFixed  =   0
  168.       OleDragMode     =   0
  169.       OleDropMode     =   0
  170.       DataMode        =   0
  171.       VirtualData     =   -1  'True
  172.       DataMember      =   ""
  173.       ComboSearch     =   3
  174.       AutoSizeMouse   =   -1  'True
  175.       FrozenRows      =   0
  176.       FrozenCols      =   0
  177.       AllowUserFreezing=   0
  178.       BackColorFrozen =   0
  179.       ForeColorFrozen =   0
  180.       WallPaperAlignment=   9
  181.       AccessibleName  =   ""
  182.       AccessibleDescription=   ""
  183.       AccessibleValue =   ""
  184.       AccessibleRole  =   24
  185.       Begin MSComctlLib.ImageList ImageList2 
  186.          Left            =   0
  187.          Top             =   0
  188.          _ExtentX        =   1005
  189.          _ExtentY        =   1005
  190.          BackColor       =   -2147483643
  191.          ImageWidth      =   16
  192.          ImageHeight     =   16
  193.          MaskColor       =   12632256
  194.          _Version        =   393216
  195.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  196.             NumListImages   =   40
  197.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  198.                Picture         =   "储备分析_库龄分析.frx":1FAC4
  199.                Key             =   "sz"
  200.             EndProperty
  201.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  202.                Picture         =   "储备分析_库龄分析.frx":1FE5E
  203.                Key             =   "dy"
  204.             EndProperty
  205.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  206.                Picture         =   "储备分析_库龄分析.frx":201F8
  207.                Key             =   "yl"
  208.             EndProperty
  209.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  210.                Picture         =   "储备分析_库龄分析.frx":20592
  211.                Key             =   "xg"
  212.             EndProperty
  213.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  214.                Picture         =   "储备分析_库龄分析.frx":2092C
  215.                Key             =   "zh"
  216.             EndProperty
  217.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  218.                Picture         =   "储备分析_库龄分析.frx":20CC6
  219.                Key             =   "sh"
  220.             EndProperty
  221.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  222.                Picture         =   "储备分析_库龄分析.frx":21060
  223.                Key             =   "bc"
  224.             EndProperty
  225.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  226.                Picture         =   "储备分析_库龄分析.frx":213FA
  227.                Key             =   "fq"
  228.             EndProperty
  229.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  230.                Picture         =   "储备分析_库龄分析.frx":21794
  231.                Key             =   "bz"
  232.             EndProperty
  233.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  234.                Picture         =   "储备分析_库龄分析.frx":21B2E
  235.                Key             =   "tc"
  236.             EndProperty
  237.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  238.                Picture         =   "储备分析_库龄分析.frx":21EC8
  239.                Key             =   "bcgs"
  240.             EndProperty
  241.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  242.                Picture         =   "储备分析_库龄分析.frx":22262
  243.                Key             =   "mrlk"
  244.             EndProperty
  245.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  246.                Picture         =   "储备分析_库龄分析.frx":225FC
  247.                Key             =   "xsxm"
  248.             EndProperty
  249.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  250.                Picture         =   "储备分析_库龄分析.frx":22996
  251.                Key             =   "first"
  252.             EndProperty
  253.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  254.                Picture         =   "储备分析_库龄分析.frx":22D30
  255.                Key             =   "prev"
  256.             EndProperty
  257.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  258.                Picture         =   "储备分析_库龄分析.frx":230CA
  259.                Key             =   "next"
  260.             EndProperty
  261.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  262.                Picture         =   "储备分析_库龄分析.frx":23464
  263.                Key             =   "last"
  264.             EndProperty
  265.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  266.                Picture         =   "储备分析_库龄分析.frx":237FE
  267.                Key             =   "xx"
  268.             EndProperty
  269.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  270.                Picture         =   "储备分析_库龄分析.frx":23B98
  271.                Key             =   "define"
  272.             EndProperty
  273.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  274.                Picture         =   "储备分析_库龄分析.frx":23F32
  275.                Key             =   "exec"
  276.             EndProperty
  277.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  278.                Picture         =   "储备分析_库龄分析.frx":242CC
  279.                Key             =   "xz"
  280.             EndProperty
  281.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  282.                Picture         =   "储备分析_库龄分析.frx":24666
  283.                Key             =   "sc"
  284.             EndProperty
  285.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  286.                Picture         =   "储备分析_库龄分析.frx":24A00
  287.                Key             =   "sx"
  288.             EndProperty
  289.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  290.                Picture         =   "储备分析_库龄分析.frx":24D9A
  291.                Key             =   "cx"
  292.             EndProperty
  293.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  294.                Picture         =   "储备分析_库龄分析.frx":25134
  295.                Key             =   "zd"
  296.             EndProperty
  297.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  298.                Picture         =   "储备分析_库龄分析.frx":254CE
  299.                Key             =   "dz"
  300.             EndProperty
  301.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  302.                Picture         =   "储备分析_库龄分析.frx":25868
  303.                Key             =   "ph"
  304.             EndProperty
  305.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  306.                Picture         =   "储备分析_库龄分析.frx":25C02
  307.                Key             =   "fz"
  308.             EndProperty
  309.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  310.                Picture         =   "储备分析_库龄分析.frx":25F9C
  311.                Key             =   "dw"
  312.             EndProperty
  313.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  314.                Picture         =   "储备分析_库龄分析.frx":26336
  315.                Key             =   "hf"
  316.             EndProperty
  317.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  318.                Picture         =   "储备分析_库龄分析.frx":266D0
  319.                Key             =   "pz"
  320.             EndProperty
  321.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  322.                Picture         =   "储备分析_库龄分析.frx":26A6A
  323.                Key             =   "check"
  324.             EndProperty
  325.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  326.                Picture         =   "储备分析_库龄分析.frx":26E04
  327.                Key             =   "qs"
  328.             EndProperty
  329.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  330.                Picture         =   "储备分析_库龄分析.frx":2719E
  331.                Key             =   "fullcheck"
  332.             EndProperty
  333.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  334.                Picture         =   "储备分析_库龄分析.frx":27538
  335.                Key             =   "qq"
  336.             EndProperty
  337.             BeginProperty ListImage36 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  338.                Picture         =   "储备分析_库龄分析.frx":278D2
  339.                Key             =   "bcw"
  340.             EndProperty
  341.             BeginProperty ListImage37 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  342.                Picture         =   "储备分析_库龄分析.frx":27C6C
  343.                Key             =   "ye"
  344.             EndProperty
  345.             BeginProperty ListImage38 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  346.                Picture         =   "储备分析_库龄分析.frx":28006
  347.                Key             =   ""
  348.             EndProperty
  349.             BeginProperty ListImage39 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  350.                Picture         =   "储备分析_库龄分析.frx":283A0
  351.                Key             =   "frist"
  352.             EndProperty
  353.             BeginProperty ListImage40 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  354.                Picture         =   "储备分析_库龄分析.frx":2873A
  355.                Key             =   "dj"
  356.             EndProperty
  357.          EndProperty
  358.       End
  359.    End
  360.    Begin MSComctlLib.Toolbar SzToolbar 
  361.       Align           =   1  'Align Top
  362.       Height          =   555
  363.       Left            =   0
  364.       TabIndex        =   4
  365.       Top             =   0
  366.       Width           =   11820
  367.       _ExtentX        =   20849
  368.       _ExtentY        =   979
  369.       ButtonWidth     =   820
  370.       ButtonHeight    =   926
  371.       AllowCustomize  =   0   'False
  372.       Appearance      =   1
  373.       Style           =   1
  374.       ImageList       =   "ImageList1"
  375.       _Version        =   393216
  376.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  377.          NumButtons      =   8
  378.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  379.             Caption         =   "设置"
  380.             Key             =   "ymsz"
  381.             ImageKey        =   "sz"
  382.          EndProperty
  383.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  384.             Caption         =   "打印"
  385.             Key             =   "dy"
  386.             ImageKey        =   "dy"
  387.          EndProperty
  388.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  389.             Caption         =   "预览"
  390.             Key             =   "yl"
  391.             ImageKey        =   "yl"
  392.          EndProperty
  393.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  394.             Style           =   3
  395.          EndProperty
  396.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  397.             Caption         =   "查询"
  398.             Key             =   "cx"
  399.             ImageKey        =   "cx"
  400.          EndProperty
  401.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  402.             Style           =   3
  403.          EndProperty
  404.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  405.             Caption         =   "帮助"
  406.             Key             =   "bz"
  407.             ImageKey        =   "bz"
  408.          EndProperty
  409.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  410.             Caption         =   "退出"
  411.             Key             =   "fh"
  412.             ImageKey        =   "tc"
  413.          EndProperty
  414.       EndProperty
  415.       BorderStyle     =   1
  416.       Begin MSComctlLib.ImageList ImageList1 
  417.          Left            =   6990
  418.          Top             =   30
  419.          _ExtentX        =   1005
  420.          _ExtentY        =   1005
  421.          BackColor       =   -2147483643
  422.          ImageWidth      =   16
  423.          ImageHeight     =   16
  424.          MaskColor       =   12632256
  425.          _Version        =   393216
  426.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  427.             NumListImages   =   32
  428.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  429.                Picture         =   "储备分析_库龄分析.frx":28AD4
  430.                Key             =   "sz"
  431.             EndProperty
  432.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  433.                Picture         =   "储备分析_库龄分析.frx":28E6E
  434.                Key             =   "dy"
  435.             EndProperty
  436.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  437.                Picture         =   "储备分析_库龄分析.frx":29208
  438.                Key             =   "yl"
  439.             EndProperty
  440.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  441.                Picture         =   "储备分析_库龄分析.frx":295A2
  442.                Key             =   "xg"
  443.             EndProperty
  444.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  445.                Picture         =   "储备分析_库龄分析.frx":2993C
  446.                Key             =   "zh"
  447.             EndProperty
  448.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  449.                Picture         =   "储备分析_库龄分析.frx":29CD6
  450.                Key             =   "sh"
  451.             EndProperty
  452.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  453.                Picture         =   "储备分析_库龄分析.frx":2A070
  454.                Key             =   "bc"
  455.             EndProperty
  456.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  457.                Picture         =   "储备分析_库龄分析.frx":2A40A
  458.                Key             =   "fq"
  459.             EndProperty
  460.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  461.                Picture         =   "储备分析_库龄分析.frx":2A7A4
  462.                Key             =   "bz"
  463.             EndProperty
  464.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  465.                Picture         =   "储备分析_库龄分析.frx":2AB3E
  466.                Key             =   "tc"
  467.             EndProperty
  468.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  469.                Picture         =   "储备分析_库龄分析.frx":2AED8
  470.                Key             =   "bcgs"
  471.             EndProperty
  472.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  473.                Picture         =   "储备分析_库龄分析.frx":2B272
  474.                Key             =   "mrlk"
  475.             EndProperty
  476.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  477.                Picture         =   "储备分析_库龄分析.frx":2B60C
  478.                Key             =   "xsxm"
  479.             EndProperty
  480.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  481.                Picture         =   "储备分析_库龄分析.frx":2B9A6
  482.                Key             =   "first"
  483.             EndProperty
  484.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  485.                Picture         =   "储备分析_库龄分析.frx":2BD40
  486.                Key             =   "prev"
  487.             EndProperty
  488.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  489.                Picture         =   "储备分析_库龄分析.frx":2C0DA
  490.                Key             =   "next"
  491.             EndProperty
  492.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  493.                Picture         =   "储备分析_库龄分析.frx":2C474
  494.                Key             =   "last"
  495.             EndProperty
  496.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  497.                Picture         =   "储备分析_库龄分析.frx":2C80E
  498.                Key             =   "xx"
  499.             EndProperty
  500.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  501.                Picture         =   "储备分析_库龄分析.frx":2CBA8
  502.                Key             =   "define"
  503.             EndProperty
  504.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  505.                Picture         =   "储备分析_库龄分析.frx":2CF42
  506.                Key             =   "exec"
  507.             EndProperty
  508.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  509.                Picture         =   "储备分析_库龄分析.frx":2D2DC
  510.                Key             =   "xz"
  511.             EndProperty
  512.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  513.                Picture         =   "储备分析_库龄分析.frx":2D676
  514.                Key             =   "sc"
  515.             EndProperty
  516.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  517.                Picture         =   "储备分析_库龄分析.frx":2DA10
  518.                Key             =   "sx"
  519.             EndProperty
  520.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  521.                Picture         =   "储备分析_库龄分析.frx":2DDAA
  522.                Key             =   "cx"
  523.             EndProperty
  524.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  525.                Picture         =   "储备分析_库龄分析.frx":2E144
  526.                Key             =   "zd"
  527.             EndProperty
  528.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  529.                Picture         =   "储备分析_库龄分析.frx":2E4DE
  530.                Key             =   "dz"
  531.             EndProperty
  532.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  533.                Picture         =   "储备分析_库龄分析.frx":2E878
  534.                Key             =   "ph"
  535.             EndProperty
  536.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  537.                Picture         =   "储备分析_库龄分析.frx":2EC12
  538.                Key             =   "fz"
  539.             EndProperty
  540.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  541.                Picture         =   "储备分析_库龄分析.frx":2EFAC
  542.                Key             =   "dw"
  543.             EndProperty
  544.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  545.                Picture         =   "储备分析_库龄分析.frx":2F346
  546.                Key             =   "hf"
  547.             EndProperty
  548.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  549.                Picture         =   "储备分析_库龄分析.frx":2F6E0
  550.                Key             =   "pz"
  551.             EndProperty
  552.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  553.                Picture         =   "储备分析_库龄分析.frx":2FA7A
  554.                Key             =   "check"
  555.             EndProperty
  556.          EndProperty
  557.       End
  558.    End
  559. End
  560. Attribute VB_Name = "KF_AlertWareage"
  561. Attribute VB_GlobalNameSpace = False
  562. Attribute VB_Creatable = False
  563. Attribute VB_PredeclaredId = True
  564. Attribute VB_Exposed = False
  565. '**************************************************************************
  566. '*    模 块 名 称 :库龄
  567. '*    功 能 描 述 :
  568. '*    程序员姓名  :徐强
  569. '*    最后修改人  :徐强
  570. '*    最后修改时间:2001/12/10
  571. '*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
  572. '**************************************************************************
  573. Dim ReportTitle As String                '报表主标题
  574. Dim Str_QueryCondi As String             '用户录入查询条件
  575. Dim Rec_BillID As New ADODB.Recordset    '用户查询单据ID动态集
  576. '以下为固定使用变量
  577. Dim Dyymctbl As New DY_Dyymsz            '打印页面窗体变量
  578. Dim GridCode As String                   '显示网格网格代码
  579. Dim GridInf() As Variant                 '整个网格设置信息
  580. Dim Tsxx As String                       '系统提示信息
  581. Dim Qslz As Long                         '网格隐藏(非操作显示)列数
  582. Dim Sjhgd As Double                      '网格数据行高度
  583. Dim Sfxshjwg As Boolean                  '是否显示合计网格
  584. Dim GridBoolean() As Boolean             '网格列信息(布尔型)
  585. Dim GridStr()  As String                 '网格列信息(字符型)
  586. Dim GridInt() As Integer                 '网格列信息(整型)
  587. Dim Szzls As Integer                     '数组总列数(网格列数-1)
  588. Private Sub Form_Resize()                '根据窗体大小来调整网格,标题栏大小(Fixed)
  589.     On Error Resume Next
  590.     With CxbbGrid
  591.         .Width = Me.Width - 160
  592.         .Height = Me.Height - .Top - 400
  593.     End With
  594.     With Pic_Title
  595.         .Width = Me.Width - 160
  596.     End With
  597.     
  598.     GsToolbar.Left = Me.Width - GsToolbar.Width - 140
  599. End Sub
  600. Private Sub Form_Load()                                                   '窗体装入
  601.   
  602.     '调入打印页面设置窗体
  603.     ReportTitle = "库龄分析"
  604.     XtReportCode = "kf_alertwareage"
  605.     Load Dyymctbl
  606.       
  607.     '调整标题栏及网格、格式工具条位置(Fixed)
  608.     Pic_Title.Left = 40
  609.     Pic_Title.Top = SzToolbar.Top + SzToolbar.Height - 10
  610.     CxbbGrid.Left = Pic_Title.Left
  611.     CxbbGrid.Top = Pic_Title.Top + Pic_Title.Height + 20
  612.      
  613.     '调 入 网 格(Fixed)
  614.     GridCode = "kf_alertwareage"
  615.     Call BzWgcsh(CxbbGrid, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
  616.       
  617.     Qslz = GridInf(1)
  618.     Sjhgd = GridInf(2)
  619.     Sfxshjwg = GridInf(7)
  620.     Szzls = CxbbGrid.Cols - 1
  621. End Sub
  622. Private Sub Form_Unload(Cancel As Integer)                                  '窗体卸载
  623.     '卸载条件窗体
  624.     KF_AlertWareageQuery.UnloadCheck.Value = 1
  625.     Unload KF_AlertWareageQuery
  626.     
  627.     '卸载打印页面设置窗体
  628.     Unload Dyymctbl
  629. End Sub
  630. Private Sub CxbbGrid_BeforeMoveColumn(ByVal Col As Long, Position As Long)           '网格列发生移动时自动交换网格索引信息
  631.     Call FnBln_RefreshArray(Col, Position, GridStr(), GridInf())
  632. End Sub
  633. Private Sub GsToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)                '网格格式调整(Fixed)
  634.   
  635.     Select Case Button.Key
  636.         Case "bcgs"                                          '保存表格格式
  637.             Call Bcwggs(CxbbGrid, GridCode, GridStr())
  638.         Case "hfmrgs"                                        '恢复默认格式
  639.             Call Hfmrgs(CxbbGrid, GridCode, GridStr())
  640.         Case "szxsxm"                                        '设置显示项目
  641.             Call Szxsxm(CxbbGrid, GridCode)
  642.     End Select
  643. End Sub
  644. Private Sub SzToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
  645.     
  646.     Select Case Button.Key
  647.         Case "ymsz"                                          '页面设置
  648.             Dyymctbl.Show 1
  649.         Case "yl"                                            '预 览
  650.             Call bbyl(True)
  651.         Case "dy"                                            '打 印
  652.             Call bbyl(False)
  653.         Case "cx"                                            '查 询
  654.             KF_AlertWareageQuery.Show 1
  655.         Case "bz"                                            '帮 助
  656.             Call F1bz
  657.         Case "fh"                                            '退 出
  658.            Unload Me
  659.     End Select
  660. End Sub
  661. Private Sub Timer1_Timer()                                 '在窗体激活后调入查询程序
  662.     
  663.     Timer1.Enabled = False
  664.     Xt_Wait.Show
  665.     Xt_Wait.Refresh
  666.    
  667.     '加快显示速度
  668.     CxbbGrid.Redraw = False
  669.  
  670.     '生成查询结果
  671.     Call Sub_Query
  672.    
  673.     CxbbGrid.Redraw = True
  674.     
  675.     Xt_Wait.Hide
  676. End Sub
  677. Private Sub Sub_Query()                                    '生成查询结果
  678.    Dim Rec_Query As New ADODB.Recordset        '查询结果动态集
  679.    Dim Rec_nowquan As New ADODB.Recordset
  680.    Dim Str_QueryCondi As String                '用户录入查询条件
  681.    Dim Sqlstr As String                        '查询字符串
  682.    Dim Coljsq As Long                          '网格列计数器
  683.    Dim jsqte As Integer                        '临时动态计数器
  684.    Dim Int_VouchID%                            '记录上一张凭证标识
  685.    
  686.  '以下为用户自定义部分[
  687.  With KF_AlertWareageQuery
  688.      
  689.      '显示查询会计期间
  690.      Str_QueryCondi = "select * from KF_V_AlertWareAge where 1=1 "
  691.      For jsqte = 1 To 4
  692.      
  693.         Select Case jsqte
  694.           Case 1   '仓库
  695.              If Trim(.LrText(1).Text) <> "" Then
  696.                 Str_QueryCondi = Str_QueryCondi & " and whcode='" & Trim(.LrText(1).Tag) & "'"
  697.              Else
  698.              End If
  699.              
  700.           Case 2   '物料分类
  701.              If Trim(.LrText(2).Text) <> "" Then
  702.                   Str_QueryCondi = Str_QueryCondi & " and invsortcode like '" & Trim(.LrText(2).Tag) & "%'"
  703.              End If
  704.              
  705.           Case 3   '物料名称
  706.              If Trim(.LrText(3).Text) <> "" Then
  707.                   Str_QueryCondi = Str_QueryCondi & " and mnumber='" & Trim(.LrText(3).Tag) & "'"
  708.              End If
  709.              
  710.           Case 4   '批次
  711.              If Trim(.LrText(4).Text) <> "" Then
  712.                 Str_QueryCondi = Str_QueryCondi & " and batchnum='" & Trim(.LrText(4).Text) & "'"
  713.              End If
  714.             
  715.         End Select
  716.     Next jsqte
  717.  End With
  718.  
  719.  Str_QueryCondi = Str_QueryCondi & "order by billnum"
  720.  Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(Str_QueryCondi)
  721.  With Rec_Query
  722.       CxbbGrid.Rows = CxbbGrid.FixedRows
  723.       CxbbGrid.Rows = CxbbGrid.FixedRows + .RecordCount
  724.       jsqte = CxbbGrid.FixedRows
  725.       CxbbGrid.ExplorerBar = flexExMove
  726.       Do While Not .EOF
  727.          If jsqte >= CxbbGrid.Rows Then
  728.             CxbbGrid.AddItem ""
  729.          End If
  730.          
  731.             CxbbGrid.TextMatrix(jsqte, Sydz("001", GridStr(), Szzls)) = Format(.Fields("billdate"), "yyyy-mm-dd")      '入库日期
  732.             CxbbGrid.TextMatrix(jsqte, Sydz("002", GridStr(), Szzls)) = Trim(.Fields("billnum"))                       '单据号
  733.             CxbbGrid.TextMatrix(jsqte, Sydz("003", GridStr(), Szzls)) = Trim(.Fields("whname") & "")                   '仓库
  734.             CxbbGrid.TextMatrix(jsqte, Sydz("004", GridStr(), Szzls)) = Trim(.Fields("mnumber"))                       '物料编码
  735.             CxbbGrid.TextMatrix(jsqte, Sydz("005", GridStr(), Szzls)) = Trim(.Fields("mname") & "")                    '物料名称
  736.             CxbbGrid.TextMatrix(jsqte, Sydz("006", GridStr(), Szzls)) = Trim(.Fields("model") & "")                    '规格型号
  737.             CxbbGrid.TextMatrix(jsqte, Sydz("007", GridStr(), Szzls)) = Trim(.Fields("primaryunitname") & "")          '计量单位
  738.             CxbbGrid.TextMatrix(jsqte, Sydz("008", GridStr(), Szzls)) = Trim(.Fields("batchnum") & "")                 '批号
  739.             CxbbGrid.TextMatrix(jsqte, Sydz("009", GridStr(), Szzls)) = Trim(.Fields("endquan") & "")                  '结存数量
  740.             CxbbGrid.TextMatrix(jsqte, Sydz("010", GridStr(), Szzls)) = CDate(Trim(KF_AlertWareageQuery.LrText(0))) - CDate(.Fields("billdate")) + 1 '库龄
  741.             CxbbGrid.TextMatrix(jsqte, Sydz("011", GridStr(), Szzls)) = Trim(.Fields("suppliername") & "")             '供应商
  742.            
  743.          CxbbGrid.RowHeight(jsqte) = Sjhgd
  744.         jsqte = jsqte + 1
  745.         .MoveNext
  746.     Loop
  747.  
  748.  End With
  749.  ']以上为用户自定义部分
  750.    
  751. End Sub
  752. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  753.     
  754.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  755.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  756.     Bbxbtgs = 1                                          '报 表 小 标 题 行 数
  757.     Bbbwhgs = 0                                          '报 表 表 尾 行 数
  758.     ReDim Bbxbt(1 To Bbxbtgs)
  759.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  760.     If Bbbwhgs <> 0 Then
  761.         ReDim Bbbwh(1 To Bbbwhgs)
  762.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  763.     End If
  764.     Bbzbt = ReportTitle
  765.     Bbxbt(1) = ""
  766.     bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  767.     Call Scyxsjb(CxbbGrid)                               '生成报表数据
  768.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  769.     If Not bbylte Then
  770.         Unload DY_Tybbyldy
  771.     End If
  772. End Sub