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

企业管理

开发平台:

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