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

企业管理

开发平台:

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