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

企业管理

开发平台:

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_DepExecute 
  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           =   2715
  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_DepExecute"
  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_DepExecute"
  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_DepExecute"
  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_DepExecuteQuery.UnloadCheck.Value = 1
  711.     Unload Xs_P_DepExecuteQuery
  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_DepExecuteQuery.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_DepExecuteQuery
  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 3
  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.                 End Select
  793.             Next Jsqte
  794.         End With
  795.     Else
  796.         '1-"刷新"查询
  797.         If Str_QueryCondi = "" Then
  798.             Str_QueryCondi = " where 1=2 "
  799.         End If
  800.     End If
  801.  
  802.     Sqlstr = "SELECT  DeptCode ,DeptName ,Sum(PlanMoney) as PlanMoney,Sum(PlanMoneyMin) as PlanMoneyMin, Sum(NowValue) as NowValue " & _
  803.             " From Xs_V_DeptPlanExe " & Str_QueryCondi & " Group By DeptCode ,DeptName Order By DeptCode"
  804.     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  805.     With Rec_Query
  806.         CxbbGrid.Rows = CxbbGrid.FixedRows
  807.         Jsqte = CxbbGrid.FixedRows
  808.         Do While Not .EOF
  809.             CxbbGrid.AddItem ""
  810.             '[>>自定义填充内容
  811.             CxbbGrid.TextMatrix(Jsqte, Sydz("001", GridStr(), Szzls)) = Trim(.Fields("DeptCode"))                                               '部门编码
  812.             CxbbGrid.TextMatrix(Jsqte, Sydz("002", GridStr(), Szzls)) = Trim(.Fields("DeptName") & "")                                          '部门名称
  813.             If Val(.Fields("PlanMoney") & "") <> 0 Then
  814.                 CxbbGrid.TextMatrix(Jsqte, Sydz("003", GridStr(), Szzls)) = Val(.Fields("PlanMoney") & "")                                          '计划额
  815.             End If
  816.             If Val(.Fields("PlanMoneyMin") & "") <> 0 Then
  817.                 CxbbGrid.TextMatrix(Jsqte, Sydz("004", GridStr(), Szzls)) = Val(.Fields("PlanMoneyMin") & "")                                       '销售定额
  818.             End If
  819.             If Val(.Fields("NowValue") & "") <> 0 Then
  820.                 CxbbGrid.TextMatrix(Jsqte, Sydz("005", GridStr(), Szzls)) = Val(.Fields("NowValue") & "")                                           '销售额
  821.             End If
  822.             If Val(.Fields("NowValue") & "") - Val(.Fields("PlanMoney") & "") <> 0 Then
  823.                 CxbbGrid.TextMatrix(Jsqte, Sydz("006", GridStr(), Szzls)) = Val(.Fields("NowValue") & "") - Val(.Fields("PlanMoney") & "")          '较计划额
  824.             End If
  825.             If Val(.Fields("NowValue") & "") - Val(.Fields("PlanMoneyMin") & "") <> 0 Then
  826.                 CxbbGrid.TextMatrix(Jsqte, Sydz("007", GridStr(), Szzls)) = Val(.Fields("NowValue") & "") - Val(.Fields("PlanMoneyMin") & "")       '较销售定额
  827.             End If
  828.             If Trim(.Fields("PlanMoney") & "") <> 0 And Val(.Fields("NowValue") & "") <> 0 Then
  829.                 CxbbGrid.TextMatrix(Jsqte, Sydz("008", GridStr(), Szzls)) = Val(.Fields("NowValue") & "") / Val(.Fields("PlanMoney") & "") * 100
  830.             End If
  831.             If Trim(.Fields("PlanMoneyMin") & "") <> 0 And Val(.Fields("NowValue") & "") <> 0 Then
  832.                 CxbbGrid.TextMatrix(Jsqte, Sydz("009", GridStr(), Szzls)) = Val(.Fields("NowValue") & "") / Val(.Fields("PlanMoneyMin") & "") * 100
  833.             End If
  834.             
  835.             '<<]
  836.             '设置数据行高度(Fixed)
  837.             CxbbGrid.RowHeight(Jsqte) = Sjhgd
  838.      
  839.             '动态集指针加1,同时将计数器加1(Fixed)
  840.             .MoveNext
  841.             Jsqte = Jsqte + 1
  842.         Loop
  843.     End With
  844.     '合计
  845.     CxbbGrid.AddItem ""
  846.     CxbbGrid.TextMatrix(CxbbGrid.Rows - 1, Sydz("001", GridStr(), Szzls)) = "合计"
  847.     For Coljsq = Qslz To CxbbGrid.Cols - 1
  848.         Call Sjhj(Coljsq)
  849.     Next Coljsq
  850.     ']以上为用户自定义部分
  851. End Sub
  852. Private Sub Sjhj(Hjwgl As Long)                                         '网格列数据合计
  853.     
  854.     Dim Hjjg As Double
  855.     If Not GridBoolean(Hjwgl, 4) Then
  856.         Exit Sub
  857.     End If
  858.     With CxbbGrid
  859.         Hjjg = 0
  860.         For Jsqte = .FixedRows To .Rows - 2
  861.                 If Trim(.TextMatrix(Jsqte, Hjwgl)) <> "" Then
  862.                     Hjjg = Hjjg + Val(.TextMatrix(Jsqte, Hjwgl))
  863.                 End If
  864.         Next Jsqte
  865.         If GridBoolean(Hjwgl, 5) And Hjjg = 0 Then
  866.             CxbbGrid.TextMatrix(.Rows - 1, Hjwgl) = ""
  867.         Else
  868.             CxbbGrid.TextMatrix(.Rows - 1, Hjwgl) = Hjjg
  869.         End If
  870.     End With
  871. End Sub
  872. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  873.     
  874.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  875.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  876.     Bbxbtgs = 1                                          '报 表 小 标 题 行 数
  877.     Bbbwhgs = 0                                          '报 表 表 尾 行 数
  878.     ReDim Bbxbt(1 To Bbxbtgs)
  879.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  880.     If Bbbwhgs <> 0 Then
  881.         ReDim Bbbwh(1 To Bbbwhgs)
  882.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  883.     End If
  884.     Bbzbt = ReportTitle
  885.     Bbxbt(1) = ""
  886.     bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  887.     Call Scyxsjb(CxbbGrid)                               '生成报表数据
  888.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  889.     If Not bbylte Then
  890.         Unload DY_Tybbyldy
  891.     End If
  892. End Sub