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

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Object = "{D76D7128-4A96-11D3-BD95-D296DC2DD072}#1.0#0"; "VSOCX7.OCX"
  3. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  4. Begin VB.Form SFC_OutputList 
  5.    Caption         =   "产品产量列表"
  6.    ClientHeight    =   7590
  7.    ClientLeft      =   60
  8.    ClientTop       =   345
  9.    ClientWidth     =   10515
  10.    Icon            =   "车间控制_产品产量列表.frx":0000
  11.    KeyPreview      =   -1  'True
  12.    LinkTopic       =   "Form1"
  13.    MDIChild        =   -1  'True
  14.    ScaleHeight     =   7590
  15.    ScaleWidth      =   10515
  16.    Begin VB.PictureBox Pic_Title 
  17.       BackColor       =   &H00FFFFFF&
  18.       Height          =   825
  19.       Left            =   0
  20.       Picture         =   "车间控制_产品产量列表.frx":1042
  21.       ScaleHeight     =   765
  22.       ScaleWidth      =   11715
  23.       TabIndex        =   0
  24.       Top             =   570
  25.       Width           =   11775
  26.       Begin VB.Label Lab_Title 
  27.          BackColor       =   &H80000018&
  28.          BackStyle       =   0  'Transparent
  29.          Caption         =   "产品产量列表"
  30.          BeginProperty Font 
  31.             Name            =   "宋体"
  32.             Size            =   12
  33.             Charset         =   134
  34.             Weight          =   700
  35.             Underline       =   0   'False
  36.             Italic          =   0   'False
  37.             Strikethrough   =   0   'False
  38.          EndProperty
  39.          ForeColor       =   &H00000000&
  40.          Height          =   300
  41.          Index           =   10
  42.          Left            =   480
  43.          TabIndex        =   1
  44.          Top             =   240
  45.          Width           =   2595
  46.       End
  47.    End
  48.    Begin VB.Timer Timer1 
  49.       Enabled         =   0   'False
  50.       Interval        =   1
  51.       Left            =   2880
  52.       Top             =   3240
  53.    End
  54.    Begin VSFlex8Ctl.VSFlexGrid CxbbGrid 
  55.       Height          =   7545
  56.       Left            =   0
  57.       TabIndex        =   2
  58.       Top             =   1440
  59.       Width           =   11775
  60.       _ExtentX        =   20770
  61.       _ExtentY        =   13309
  62.       Appearance      =   1
  63.       BorderStyle     =   1
  64.       Enabled         =   -1  'True
  65.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  66.          Name            =   "宋体"
  67.          Size            =   9
  68.          Charset         =   134
  69.          Weight          =   400
  70.          Underline       =   0   'False
  71.          Italic          =   0   'False
  72.          Strikethrough   =   0   'False
  73.       EndProperty
  74.       MousePointer    =   0
  75.       BackColor       =   16777215
  76.       ForeColor       =   -2147483640
  77.       BackColorFixed  =   13826538
  78.       ForeColorFixed  =   -2147483630
  79.       BackColorSel    =   -2147483635
  80.       ForeColorSel    =   -2147483634
  81.       BackColorBkg    =   -2147483636
  82.       BackColorAlternate=   16777215
  83.       GridColor       =   -2147483633
  84.       GridColorFixed  =   -2147483632
  85.       TreeColor       =   -2147483632
  86.       FloodColor      =   192
  87.       SheetBorder     =   -2147483642
  88.       FocusRect       =   1
  89.       HighLight       =   1
  90.       AllowSelection  =   -1  'True
  91.       AllowBigSelection=   -1  'True
  92.       AllowUserResizing=   0
  93.       SelectionMode   =   0
  94.       GridLines       =   1
  95.       GridLinesFixed  =   2
  96.       GridLineWidth   =   1
  97.       Rows            =   50
  98.       Cols            =   10
  99.       FixedRows       =   1
  100.       FixedCols       =   1
  101.       RowHeightMin    =   0
  102.       RowHeightMax    =   0
  103.       ColWidthMin     =   0
  104.       ColWidthMax     =   0
  105.       ExtendLastCol   =   0   'False
  106.       FormatString    =   ""
  107.       ScrollTrack     =   0   'False
  108.       ScrollBars      =   3
  109.       ScrollTips      =   0   'False
  110.       MergeCells      =   0
  111.       MergeCompare    =   0
  112.       AutoResize      =   -1  'True
  113.       AutoSizeMode    =   0
  114.       AutoSearch      =   0
  115.       MultiTotals     =   -1  'True
  116.       SubtotalPosition=   1
  117.       OutlineBar      =   0
  118.       OutlineCol      =   0
  119.       Ellipsis        =   0
  120.       ExplorerBar     =   0
  121.       PicturesOver    =   0   'False
  122.       FillStyle       =   0
  123.       RightToLeft     =   0   'False
  124.       PictureType     =   0
  125.       TabBehavior     =   0
  126.       OwnerDraw       =   0
  127.       Editable        =   0   'False
  128.       ShowComboButton =   -1  'True
  129.       WordWrap        =   0   'False
  130.       TextStyle       =   0
  131.       TextStyleFixed  =   0
  132.       OleDragMode     =   0
  133.       OleDropMode     =   0
  134.       DataMode        =   0
  135.       VirtualData     =   -1  'True
  136.       Begin MSComctlLib.ImageList ImageList2 
  137.          Left            =   0
  138.          Top             =   0
  139.          _ExtentX        =   1005
  140.          _ExtentY        =   1005
  141.          BackColor       =   -2147483643
  142.          ImageWidth      =   16
  143.          ImageHeight     =   16
  144.          MaskColor       =   12632256
  145.          _Version        =   393216
  146.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  147.             NumListImages   =   40
  148.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  149.                Picture         =   "车间控制_产品产量列表.frx":1DF82
  150.                Key             =   "sz"
  151.             EndProperty
  152.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  153.                Picture         =   "车间控制_产品产量列表.frx":1E31C
  154.                Key             =   "dy"
  155.             EndProperty
  156.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  157.                Picture         =   "车间控制_产品产量列表.frx":1E6B6
  158.                Key             =   "yl"
  159.             EndProperty
  160.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  161.                Picture         =   "车间控制_产品产量列表.frx":1EA50
  162.                Key             =   "xg"
  163.             EndProperty
  164.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  165.                Picture         =   "车间控制_产品产量列表.frx":1EDEA
  166.                Key             =   "zh"
  167.             EndProperty
  168.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  169.                Picture         =   "车间控制_产品产量列表.frx":1F184
  170.                Key             =   "sh"
  171.             EndProperty
  172.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  173.                Picture         =   "车间控制_产品产量列表.frx":1F51E
  174.                Key             =   "bc"
  175.             EndProperty
  176.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  177.                Picture         =   "车间控制_产品产量列表.frx":1F8B8
  178.                Key             =   "fq"
  179.             EndProperty
  180.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  181.                Picture         =   "车间控制_产品产量列表.frx":1FC52
  182.                Key             =   "bz"
  183.             EndProperty
  184.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  185.                Picture         =   "车间控制_产品产量列表.frx":1FFEC
  186.                Key             =   "tc"
  187.             EndProperty
  188.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  189.                Picture         =   "车间控制_产品产量列表.frx":20386
  190.                Key             =   "bcgs"
  191.             EndProperty
  192.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  193.                Picture         =   "车间控制_产品产量列表.frx":20720
  194.                Key             =   "mrlk"
  195.             EndProperty
  196.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  197.                Picture         =   "车间控制_产品产量列表.frx":20ABA
  198.                Key             =   "xsxm"
  199.             EndProperty
  200.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  201.                Picture         =   "车间控制_产品产量列表.frx":20E54
  202.                Key             =   "first"
  203.             EndProperty
  204.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  205.                Picture         =   "车间控制_产品产量列表.frx":211EE
  206.                Key             =   "prev"
  207.             EndProperty
  208.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  209.                Picture         =   "车间控制_产品产量列表.frx":21588
  210.                Key             =   "next"
  211.             EndProperty
  212.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  213.                Picture         =   "车间控制_产品产量列表.frx":21922
  214.                Key             =   "last"
  215.             EndProperty
  216.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  217.                Picture         =   "车间控制_产品产量列表.frx":21CBC
  218.                Key             =   "xx"
  219.             EndProperty
  220.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  221.                Picture         =   "车间控制_产品产量列表.frx":22056
  222.                Key             =   "define"
  223.             EndProperty
  224.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  225.                Picture         =   "车间控制_产品产量列表.frx":223F0
  226.                Key             =   "exec"
  227.             EndProperty
  228.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  229.                Picture         =   "车间控制_产品产量列表.frx":2278A
  230.                Key             =   "xz"
  231.             EndProperty
  232.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  233.                Picture         =   "车间控制_产品产量列表.frx":22B24
  234.                Key             =   "sc"
  235.             EndProperty
  236.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  237.                Picture         =   "车间控制_产品产量列表.frx":22EBE
  238.                Key             =   "sx"
  239.             EndProperty
  240.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  241.                Picture         =   "车间控制_产品产量列表.frx":23258
  242.                Key             =   "cx"
  243.             EndProperty
  244.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  245.                Picture         =   "车间控制_产品产量列表.frx":235F2
  246.                Key             =   "zd"
  247.             EndProperty
  248.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  249.                Picture         =   "车间控制_产品产量列表.frx":2398C
  250.                Key             =   "dz"
  251.             EndProperty
  252.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  253.                Picture         =   "车间控制_产品产量列表.frx":23D26
  254.                Key             =   "ph"
  255.             EndProperty
  256.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  257.                Picture         =   "车间控制_产品产量列表.frx":240C0
  258.                Key             =   "fz"
  259.             EndProperty
  260.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  261.                Picture         =   "车间控制_产品产量列表.frx":2445A
  262.                Key             =   "dw"
  263.             EndProperty
  264.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  265.                Picture         =   "车间控制_产品产量列表.frx":247F4
  266.                Key             =   "hf"
  267.             EndProperty
  268.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  269.                Picture         =   "车间控制_产品产量列表.frx":24B8E
  270.                Key             =   "pz"
  271.             EndProperty
  272.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  273.                Picture         =   "车间控制_产品产量列表.frx":24F28
  274.                Key             =   "check"
  275.             EndProperty
  276.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  277.                Picture         =   "车间控制_产品产量列表.frx":252C2
  278.                Key             =   "qs"
  279.             EndProperty
  280.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  281.                Picture         =   "车间控制_产品产量列表.frx":2565C
  282.                Key             =   "fullcheck"
  283.             EndProperty
  284.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  285.                Picture         =   "车间控制_产品产量列表.frx":259F6
  286.                Key             =   "qq"
  287.             EndProperty
  288.             BeginProperty ListImage36 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  289.                Picture         =   "车间控制_产品产量列表.frx":25D90
  290.                Key             =   "bcw"
  291.             EndProperty
  292.             BeginProperty ListImage37 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  293.                Picture         =   "车间控制_产品产量列表.frx":2612A
  294.                Key             =   "ye"
  295.             EndProperty
  296.             BeginProperty ListImage38 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  297.                Picture         =   "车间控制_产品产量列表.frx":264C4
  298.                Key             =   ""
  299.             EndProperty
  300.             BeginProperty ListImage39 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  301.                Picture         =   "车间控制_产品产量列表.frx":2685E
  302.                Key             =   "frist"
  303.             EndProperty
  304.             BeginProperty ListImage40 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  305.                Picture         =   "车间控制_产品产量列表.frx":26BF8
  306.                Key             =   "dj"
  307.             EndProperty
  308.          EndProperty
  309.       End
  310.    End
  311.    Begin MSComctlLib.Toolbar SzToolbar 
  312.       Align           =   1  'Align Top
  313.       Height          =   570
  314.       Left            =   0
  315.       TabIndex        =   3
  316.       Top             =   0
  317.       Width           =   10515
  318.       _ExtentX        =   18547
  319.       _ExtentY        =   1005
  320.       ButtonWidth     =   820
  321.       ButtonHeight    =   953
  322.       AllowCustomize  =   0   'False
  323.       Appearance      =   1
  324.       Style           =   1
  325.       ImageList       =   "ImageList1"
  326.       _Version        =   393216
  327.       BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  328.          NumButtons      =   14
  329.          BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  330.             Caption         =   "设置"
  331.             Key             =   "ymsz"
  332.             ImageKey        =   "sz"
  333.          EndProperty
  334.          BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  335.             Caption         =   "打印"
  336.             Key             =   "dy"
  337.             ImageKey        =   "dy"
  338.          EndProperty
  339.          BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  340.             Caption         =   "预览"
  341.             Key             =   "yl"
  342.             ImageKey        =   "yl"
  343.          EndProperty
  344.          BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  345.             Style           =   3
  346.          EndProperty
  347.          BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  348.             Caption         =   "查询"
  349.             Key             =   "cx"
  350.             ImageKey        =   "cx"
  351.          EndProperty
  352.          BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  353.             Style           =   3
  354.          EndProperty
  355.          BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  356.             Caption         =   "新增"
  357.             Key             =   "xz"
  358.             ImageKey        =   "xz"
  359.          EndProperty
  360.          BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  361.             Caption         =   "单据"
  362.             Key             =   "Bill"
  363.             ImageKey        =   "pz"
  364.          EndProperty
  365.          BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  366.             Caption         =   "删除"
  367.             Key             =   "sc"
  368.             ImageKey        =   "sc"
  369.          EndProperty
  370.          BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  371.             Style           =   3
  372.          EndProperty
  373.          BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  374.             Enabled         =   0   'False
  375.             Object.Visible         =   0   'False
  376.             Caption         =   "审核"
  377.             Key             =   "shhe"
  378.             ImageKey        =   "check"
  379.          EndProperty
  380.          BeginProperty Button12 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  381.             Enabled         =   0   'False
  382.             Object.Visible         =   0   'False
  383.             Style           =   3
  384.          EndProperty
  385.          BeginProperty Button13 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  386.             Caption         =   "帮助"
  387.             Key             =   "bz"
  388.             ImageKey        =   "bz"
  389.          EndProperty
  390.          BeginProperty Button14 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  391.             Caption         =   "退出"
  392.             Key             =   "fh"
  393.             ImageKey        =   "tc"
  394.          EndProperty
  395.       EndProperty
  396.       BorderStyle     =   1
  397.       Begin MSComctlLib.Toolbar GsToolbar 
  398.          Height          =   540
  399.          Left            =   8760
  400.          TabIndex        =   4
  401.          Top             =   0
  402.          Width           =   2475
  403.          _ExtentX        =   4366
  404.          _ExtentY        =   953
  405.          ButtonWidth     =   1455
  406.          ButtonHeight    =   953
  407.          AllowCustomize  =   0   'False
  408.          Appearance      =   1
  409.          Style           =   1
  410.          ImageList       =   "ImageList1"
  411.          _Version        =   393216
  412.          BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
  413.             NumButtons      =   3
  414.             BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  415.                Caption         =   "保存格式"
  416.                Key             =   "bcgs"
  417.                ImageKey        =   "bcgs"
  418.             EndProperty
  419.             BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  420.                Caption         =   "默认列宽"
  421.                Key             =   "hfmrgs"
  422.                ImageKey        =   "mrlk"
  423.             EndProperty
  424.             BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
  425.                Caption         =   "显示项目"
  426.                Key             =   "szxsxm"
  427.                ImageKey        =   "xsxm"
  428.             EndProperty
  429.          EndProperty
  430.       End
  431.       Begin MSComctlLib.ImageList ImageList1 
  432.          Left            =   6990
  433.          Top             =   30
  434.          _ExtentX        =   1005
  435.          _ExtentY        =   1005
  436.          BackColor       =   -2147483643
  437.          ImageWidth      =   16
  438.          ImageHeight     =   16
  439.          MaskColor       =   12632256
  440.          _Version        =   393216
  441.          BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
  442.             NumListImages   =   32
  443.             BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  444.                Picture         =   "车间控制_产品产量列表.frx":26F92
  445.                Key             =   "sz"
  446.             EndProperty
  447.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  448.                Picture         =   "车间控制_产品产量列表.frx":2732C
  449.                Key             =   "dy"
  450.             EndProperty
  451.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  452.                Picture         =   "车间控制_产品产量列表.frx":276C6
  453.                Key             =   "yl"
  454.             EndProperty
  455.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  456.                Picture         =   "车间控制_产品产量列表.frx":27A60
  457.                Key             =   "xg"
  458.             EndProperty
  459.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  460.                Picture         =   "车间控制_产品产量列表.frx":27DFA
  461.                Key             =   "zh"
  462.             EndProperty
  463.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  464.                Picture         =   "车间控制_产品产量列表.frx":28194
  465.                Key             =   "sh"
  466.             EndProperty
  467.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  468.                Picture         =   "车间控制_产品产量列表.frx":2852E
  469.                Key             =   "bc"
  470.             EndProperty
  471.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  472.                Picture         =   "车间控制_产品产量列表.frx":288C8
  473.                Key             =   "fq"
  474.             EndProperty
  475.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  476.                Picture         =   "车间控制_产品产量列表.frx":28C62
  477.                Key             =   "bz"
  478.             EndProperty
  479.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  480.                Picture         =   "车间控制_产品产量列表.frx":28FFC
  481.                Key             =   "tc"
  482.             EndProperty
  483.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  484.                Picture         =   "车间控制_产品产量列表.frx":29396
  485.                Key             =   "bcgs"
  486.             EndProperty
  487.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  488.                Picture         =   "车间控制_产品产量列表.frx":29730
  489.                Key             =   "mrlk"
  490.             EndProperty
  491.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  492.                Picture         =   "车间控制_产品产量列表.frx":29ACA
  493.                Key             =   "xsxm"
  494.             EndProperty
  495.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  496.                Picture         =   "车间控制_产品产量列表.frx":29E64
  497.                Key             =   "first"
  498.             EndProperty
  499.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  500.                Picture         =   "车间控制_产品产量列表.frx":2A1FE
  501.                Key             =   "prev"
  502.             EndProperty
  503.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  504.                Picture         =   "车间控制_产品产量列表.frx":2A598
  505.                Key             =   "next"
  506.             EndProperty
  507.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  508.                Picture         =   "车间控制_产品产量列表.frx":2A932
  509.                Key             =   "last"
  510.             EndProperty
  511.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  512.                Picture         =   "车间控制_产品产量列表.frx":2ACCC
  513.                Key             =   "xx"
  514.             EndProperty
  515.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  516.                Picture         =   "车间控制_产品产量列表.frx":2B066
  517.                Key             =   "define"
  518.             EndProperty
  519.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  520.                Picture         =   "车间控制_产品产量列表.frx":2B400
  521.                Key             =   "exec"
  522.             EndProperty
  523.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  524.                Picture         =   "车间控制_产品产量列表.frx":2B79A
  525.                Key             =   "xz"
  526.             EndProperty
  527.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  528.                Picture         =   "车间控制_产品产量列表.frx":2BB34
  529.                Key             =   "sc"
  530.             EndProperty
  531.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  532.                Picture         =   "车间控制_产品产量列表.frx":2BECE
  533.                Key             =   "sx"
  534.             EndProperty
  535.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  536.                Picture         =   "车间控制_产品产量列表.frx":2C268
  537.                Key             =   "cx"
  538.             EndProperty
  539.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  540.                Picture         =   "车间控制_产品产量列表.frx":2C602
  541.                Key             =   "zd"
  542.             EndProperty
  543.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  544.                Picture         =   "车间控制_产品产量列表.frx":2C99C
  545.                Key             =   "dz"
  546.             EndProperty
  547.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  548.                Picture         =   "车间控制_产品产量列表.frx":2CD36
  549.                Key             =   "ph"
  550.             EndProperty
  551.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  552.                Picture         =   "车间控制_产品产量列表.frx":2D0D0
  553.                Key             =   "fz"
  554.             EndProperty
  555.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  556.                Picture         =   "车间控制_产品产量列表.frx":2D46A
  557.                Key             =   "dw"
  558.             EndProperty
  559.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  560.                Picture         =   "车间控制_产品产量列表.frx":2D804
  561.                Key             =   "hf"
  562.             EndProperty
  563.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  564.                Picture         =   "车间控制_产品产量列表.frx":2DB9E
  565.                Key             =   "pz"
  566.             EndProperty
  567.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  568.                Picture         =   "车间控制_产品产量列表.frx":2DF38
  569.                Key             =   "check"
  570.             EndProperty
  571.          EndProperty
  572.       End
  573.    End
  574. End
  575. Attribute VB_Name = "SFC_OutputList"
  576. Attribute VB_GlobalNameSpace = False
  577. Attribute VB_Creatable = False
  578. Attribute VB_PredeclaredId = True
  579. Attribute VB_Exposed = False
  580. '******************************************************************
  581. '*    模 块 名 称 :车间控制-产品产量日报列表
  582. '*    功 能 描 述 :产品产量日报列表
  583. '*    程序员姓名  :乔进
  584. '*    最后修改人  :乔进
  585. '*    最后修改时间:2001/12/11
  586. '*    备        注:程序中所有依实际情况自定义部分均用[>>  <<]括起
  587. '******************************************************************
  588. Dim ReportTitle As String                '报表主标题
  589. Dim Str_QueryCondi As String             '用户录入查询条件
  590. Dim Rec_BillID As New ADODB.Recordset    '用户查询单据ID动态集
  591. '以下为固定使用变量
  592. Dim Dyymctbl As New DY_Dyymsz            '打印页面窗体变量
  593. Dim GridCode As String                   '显示网格网格代码
  594. Dim GridInf() As Variant                 '整个网格设置信息
  595. Dim Tsxx As String                       '系统提示信息
  596. Dim Qslz As Long                         '网格隐藏(非操作显示)列数
  597. Dim Sjhgd As Double                      '网格数据行高度
  598. Dim Sfxshjwg As Boolean                  '是否显示合计网格
  599. Dim GridBoolean() As Boolean             '网格列信息(布尔型)
  600. Dim GridStr()  As String                 '网格列信息(字符型)
  601. Dim GridInt() As Integer                 '网格列信息(整型)
  602. Dim Szzls As Integer                     '数组总列数(网格列数-1)
  603. Private Sub Form_Resize()                '根据窗体大小来调整网格,标题栏大小(Fixed)
  604.     On Error Resume Next
  605.     With CxbbGrid
  606.         .Width = Me.Width - 160
  607.         .Height = Me.Height - .Top - 400
  608.     End With
  609.     With Pic_Title
  610.         .Width = Me.Width - 160
  611.     End With
  612.     
  613.     GsToolbar.Left = Me.Width - GsToolbar.Width - 140
  614. End Sub
  615. Private Sub Form_Load()                                                   '窗体装入
  616.   
  617.     '调入打印页面设置窗体
  618.     ReportTitle = "产品产量列表"
  619.     XtReportCode = "MRP_SFCOutputList"
  620.     Load Dyymctbl
  621.       
  622.     '调整标题栏及网格、格式工具条位置(Fixed)
  623.     Pic_Title.Left = 40
  624.     Pic_Title.Top = SzToolbar.Top + SzToolbar.Height - 10
  625.     CxbbGrid.Left = Pic_Title.Left
  626.     CxbbGrid.Top = Pic_Title.Top + Pic_Title.Height + 20
  627.      
  628.     '调 入 网 格(Fixed)
  629.     GridCode = "MRP_SFCOutputList"
  630.     Call BzWgcsh(CxbbGrid, GridCode, GridInf(), GridBoolean(), GridInt(), GridStr())
  631.       
  632.     Qslz = GridInf(1)
  633.     Sjhgd = GridInf(2)
  634.     Sfxshjwg = GridInf(7)
  635.     Szzls = CxbbGrid.Cols - 1
  636. End Sub
  637. Private Sub Form_Unload(Cancel As Integer)                                  '窗体卸载
  638.     '卸载条件窗体
  639.     SFC_OutputQuery.UnloadCheck.Value = 1
  640.     Unload SFC_OutputQuery
  641.     
  642.     '卸载打印页面设置窗体
  643.     Unload Dyymctbl
  644.     Security_Log "MRP_ProductReportList", Xtczybm, 2, False  '用户退出时写上机日志
  645. End Sub
  646. Private Sub CxbbGrid_BeforeMoveColumn(ByVal Col As Long, Position As Long)           '网格列发生移动时自动交换网格索引信息
  647.     Call FnBln_RefreshArray(Col, Position, GridStr(), GridInf())
  648. End Sub
  649. Private Sub GsToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)                '网格格式调整(Fixed)
  650.   
  651.     Select Case Button.Key
  652.         Case "bcgs"                                          '保存表格格式
  653.             Call Bcwggs(CxbbGrid, GridCode, GridStr())
  654.         Case "hfmrgs"                                        '恢复默认格式
  655.             Call Hfmrgs(CxbbGrid, GridCode, GridStr())
  656.         Case "szxsxm"                                        '设置显示项目
  657.             Call Szxsxm(CxbbGrid, GridCode)
  658.     End Select
  659. End Sub
  660. Private Sub SzToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
  661.     
  662.     Select Case Button.Key
  663.         Case "ymsz"                                          '页面设置
  664.             Dyymctbl.Show 1
  665.         Case "yl"                                            '预 览
  666.             Call bbyl(True)
  667.         Case "dy"                                            '打 印
  668.             Call bbyl(False)
  669.         Case "cx"                                            '查 询
  670.             SFC_OutputQuery.Show 1
  671.             
  672.         Case "Bill"                                          '单 据
  673.             If Not Security_Log("MRP_ProductDataReport_Edit", Xtczybm, 1) Then
  674.                 Exit Sub
  675.             End If
  676.             Call CxbbGrid_DblClick
  677.         Case "xz"                                            '新 增
  678.             If Not Security_Log("MRP_ProductDataReport_Edit", Xtczybm, 1) Then
  679.                 Exit Sub
  680.             End If
  681.             Xtcdcs = "1"
  682.             Call Sub_AddBill
  683.         Case "sc"                                            '删 除
  684.             If Not Security_Log("MRP_ProductDataReport_Edit", Xtczybm, 1) Then
  685.                 Exit Sub
  686.             End If
  687.             Call Sub_DeleteBill
  688.         Case "bz"                                            '帮 助
  689.             Call F1bz
  690.         Case "fh"                                            '退 出
  691.            Unload Me
  692.     End Select
  693. End Sub
  694. Private Sub Timer1_Timer()                                 '在窗体激活后调入查询程序
  695.     
  696.     Timer1.Enabled = False
  697.     Xt_Wait.Show
  698.     Xt_Wait.Refresh
  699.    
  700.     '加快显示速度
  701.     CxbbGrid.Redraw = False
  702.  
  703.     '生成查询结果
  704.     Call Sub_Query(0)
  705.    
  706.     CxbbGrid.Redraw = True
  707.     
  708.     Xt_Wait.Hide
  709. End Sub
  710. Private Sub Sub_Query(Int_QueryType As Integer)                                     '生成查询结果(Define)
  711.     
  712.     '过程参数:Int_QueryType 0-"点确定按钮"查询  1-"刷新"查询
  713.     Dim Rec_Query As New ADODB.Recordset        '查询结果动态集
  714.     Dim Coljsq As Long                          '网格列计数器
  715.     Dim jsqte As Long                        '临时动态计数器
  716.     Dim iYear As Integer, iMonth As Integer
  717.     '以下为自定义部分[
  718.  
  719.     If Int_QueryType = 0 Then   '0-"点确定按钮"查询
  720.         With SFC_OutputQuery
  721.          
  722.             '生成查询条件
  723.             Str_QueryCondi = " where BillCode=0 "
  724.             For jsqte = 1 To 8
  725.                 Select Case jsqte
  726.                     Case 1  '起始日期
  727.                         If Trim(.LrText(0).Text) <> "" Then
  728.                             
  729.                             Str_QueryCondi = Str_QueryCondi & "  And  a.ProDate>='" & Format(Trim(.LrText(0)), "yyyy-mm-dd") & "' "
  730.                         End If
  731.                     Case 2  '截止日期
  732.                         If Trim(.LrText(1).Text) <> "" Then
  733.                             Str_QueryCondi = Str_QueryCondi & " And  a.ProDate<='" & Format(Trim(.LrText(1)), "yyyy-mm-dd") & "' "
  734.                         End If
  735.                     Case 3  '生产部门
  736.                         If Trim(.LrText(2).Text) <> "" Then
  737.                             Str_QueryCondi = Str_QueryCondi & " And a.DeptCode = '" & Trim(.LrText(2).Tag) & "'"
  738.                         End If
  739.                     Case 4
  740.                         If Trim(.LrText(3).Text) <> "" Then
  741.                             Str_QueryCondi = Str_QueryCondi & " And a.MNumber = '" & Trim(.LrText(3).Text) & "'"
  742.                         End If
  743.                     
  744.                 End Select
  745.             Next jsqte
  746.         End With
  747.     Else
  748.         '1-"刷新"查询
  749.         If Str_QueryCondi = "" Then
  750.             Str_QueryCondi = " where 1=1 "
  751.         End If
  752.     End If
  753.     
  754.     Sqlstr = "Select * From MRP_V_ProductDayOutput a " & Str_QueryCondi & ""
  755.     Sqlstr = Sqlstr + "  Order by  ProDate  , ProDailyMainID  , ProDailySubID "
  756.     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  757.     With Rec_Query
  758.         CxbbGrid.Rows = CxbbGrid.FixedRows
  759.         jsqte = CxbbGrid.FixedRows
  760.         Do While Not .EOF
  761.             CxbbGrid.AddItem ""
  762.             '[>>自定义填充内容
  763.             CxbbGrid.TextMatrix(jsqte, 0) = .Fields("ProDailyMainID")                                                           'ID(主要用来查询定位用)
  764.             CxbbGrid.TextMatrix(jsqte, Sydz("001", GridStr(), Szzls)) = Format(Trim(Rec_Query!ProDate), "yyyy-mm-dd")           '生产日期
  765.             CxbbGrid.TextMatrix(jsqte, Sydz("002", GridStr(), Szzls)) = Trim(Rec_Query!DeptName & "")                           '部门名称
  766.             CxbbGrid.TextMatrix(jsqte, Sydz("003", GridStr(), Szzls)) = Trim(Rec_Query!MNumber & "")                            '物料编码
  767.             CxbbGrid.TextMatrix(jsqte, Sydz("004", GridStr(), Szzls)) = Trim(Rec_Query!Mname & "")                              '物料名称
  768.             CxbbGrid.TextMatrix(jsqte, Sydz("005", GridStr(), Szzls)) = Trim(Rec_Query!Model & "")                              '规格型号
  769.             CxbbGrid.TextMatrix(jsqte, Sydz("006", GridStr(), Szzls)) = Trim(Rec_Query!PrimaryUnitName & "")                    '单位
  770.             CxbbGrid.TextMatrix(jsqte, Sydz("007", GridStr(), Szzls)) = Trim(Rec_Query!DayNumber & "")                          '日产量
  771.             CxbbGrid.TextMatrix(jsqte, Sydz("008", GridStr(), Szzls)) = Trim(Rec_Query!Maker & "")                              '制单人
  772.             CxbbGrid.TextMatrix(jsqte, Sydz("009", GridStr(), Szzls)) = Format(Trim(Rec_Query!MakeDate & ""), "yyyy-mm-dd")     '制单日期
  773.             CxbbGrid.TextMatrix(jsqte, Sydz("010", GridStr(), Szzls)) = Trim(Rec_Query!Remark & "")                             '备注
  774.              
  775.              '<<]
  776.             '设置数据行高度(Fixed)
  777.             CxbbGrid.RowHeight(jsqte) = Sjhgd
  778.      
  779.             '动态集指针加1,同时将计数器加1(Fixed)
  780.             .MoveNext
  781.             jsqte = jsqte + 1
  782.         Loop
  783.     End With
  784.     ']以上为用户自定义部分
  785. End Sub
  786. Private Sub CxbbGrid_DblClick()                                              '用户双击网格调入相应单据
  787.     
  788.     Dim RecTemp As New ADODB.Recordset               '临时使用动态集
  789.     '非数据行退出
  790.     If CxbbGrid.Row < CxbbGrid.FixedRows Or Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0)) = 0 Then
  791.         Exit Sub
  792.     End If
  793.     
  794.     Sqlstr = "Select ProDailyMainID From MRP_ProductDailyMain Where   ProDailyMainID='" & Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0)) & "' "
  795.     Set RecTemp = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  796.     With RecTemp
  797.         If .EOF Then
  798.             Tsxx = "没有找到当前日报,可能已被其他用户删除!"
  799.             Call Xtxxts(Tsxx, 0, 4)
  800.             Exit Sub
  801.         Else
  802.             '调入单据处理窗体
  803.             With SFC_OutputNote
  804.                 
  805.                 '填充查询单据标识
  806.                 XT_BillID = CxbbGrid.TextMatrix(CxbbGrid.Row, 0)
  807.                 Xtcdcsfz = Str_QueryCondi
  808.                 
  809.                 '设置单据处理为列表查询(修改)状态
  810.                 Xtcdcs = "2"
  811.                 .Show 1
  812.             End With
  813.             If Xtfhcs = "1" Then
  814.                 Tsxx = "日报发生变化,是否刷新日报列表?"
  815.                 yhAnswer = Xtxxts(Tsxx, 2, 2)
  816.                 If yhAnswer = 1 Then
  817.                     Xt_Wait.Show
  818.                     Xt_Wait.Refresh
  819.    
  820.                     '加快显示速度
  821.                     CxbbGrid.Redraw = False
  822.  
  823.                     '生成查询结果
  824.                     Call Sub_Query(1)
  825.    
  826.                     CxbbGrid.Redraw = True
  827.                     Xt_Wait.Hide
  828.                 End If
  829.             End If
  830.         End If
  831.     End With
  832. End Sub
  833. Private Sub Sub_AddBill()                                              '新增单据
  834.    
  835.     With SFC_OutputNote
  836.    
  837.         '设置单据处理为填制单据状态
  838.         Xtcdcs = "1"
  839.         .Show 1
  840.     End With
  841.        
  842.     If Xtfhcs = "1" Then
  843.         Tsxx = "日报列表发生变化,是否刷新日报列表?"
  844.         yhAnswer = Xtxxts(Tsxx, 2, 2)
  845.         If yhAnswer = 1 Then
  846.             Xt_Wait.Show
  847.             Xt_Wait.Refresh
  848.    
  849.             '加快显示速度
  850.             CxbbGrid.Redraw = False
  851.  
  852.             '生成查询结果
  853.             Call Sub_Query(1)
  854.    
  855.             CxbbGrid.Redraw = True
  856.             Xt_Wait.Hide
  857.         End If
  858.     End If
  859.    
  860. End Sub
  861. Private Sub Sub_DeleteBill()                                            '删除选中当前单据
  862.     
  863.     Dim YAnswer As Integer
  864.     Dim Lng_BillID As Long           '单据标识
  865.   
  866.     '非数据行退出
  867.     If CxbbGrid.Row < CxbbGrid.FixedRows Or Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0)) = 0 Then
  868.         Exit Sub
  869.     End If
  870.   
  871.     Tsxx = "请确认是否删除当前日报?"
  872.     yhAnswer = Xtxxts(Tsxx, 2, 2)
  873.   
  874.     If yhAnswer = 1 Then
  875.         '1.判断当前订单是否允许删除
  876.   
  877.         '2.删除单据所有内容
  878.         Lng_BillID = Val(CxbbGrid.TextMatrix(CxbbGrid.Row, 0))
  879.         On Error GoTo Swcwcl
  880.         Cw_DataEnvi.DataConnect.BeginTrans
  881.         Cw_DataEnvi.DataConnect.Execute ("Delete MRP_ProductDailySub Where ProDailyMainID=" & Lng_BillID)          '删除单据主表内容
  882.         Cw_DataEnvi.DataConnect.Execute ("Delete MRP_ProductDailyMain Where ProDailyMainID=" & Lng_BillID)         '删除单据子表内容
  883.         Cw_DataEnvi.DataConnect.CommitTrans
  884.              
  885.         '删除网格中单据数据
  886.         jsqte = CxbbGrid.Rows - 1
  887.         Do While jsqte >= CxbbGrid.FixedRows
  888.             If Trim(CxbbGrid.TextMatrix(jsqte, Sydz(0, GridStr(), Szzls))) = Lng_BillID Then
  889.                 CxbbGrid.RemoveItem (CxbbGrid.Row)
  890.                 jsqte = jsqte - 1
  891.             Else
  892.                 jsqte = jsqte - 1
  893.             End If
  894.         Loop
  895.         Exit Sub
  896.         
  897.     Else
  898.         Exit Sub
  899.     End If
  900.     Exit Sub
  901. Swcwcl:
  902.     Cw_DataEnvi.DataConnect.RollbackTrans
  903.     Tsxx = "删除过程中出现未知错误,程序自动恢复删除前状态!"
  904.     Call Xtxxts(Tsxx, 0, 1)
  905.     Exit Sub
  906.   
  907. End Sub
  908.  
  909. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  910.     
  911.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  912.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  913.     Bbxbtgs = 1                                          '报 表 小 标 题 行 数
  914.     Bbbwhgs = 0                                          '报 表 表 尾 行 数
  915.     ReDim Bbxbt(1 To Bbxbtgs)
  916.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  917.     If Bbbwhgs <> 0 Then
  918.         ReDim Bbbwh(1 To Bbbwhgs)
  919.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  920.     End If
  921.     Bbzbt = ReportTitle
  922.     Bbxbt(1) = ""
  923.     bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  924.     Call Scyxsjb(CxbbGrid)                               '生成报表数据
  925.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  926.     If Not bbylte Then
  927.         Unload DY_Tybbyldy
  928.     End If
  929. End Sub
  930.