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