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

企业管理

开发平台:

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