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

企业管理

开发平台:

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_CusExecute 
  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":1FAC4
  262.                Key             =   "sz"
  263.             EndProperty
  264.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  265.                Picture         =   "客户销售计划执行情况.frx":1FE5E
  266.                Key             =   "dy"
  267.             EndProperty
  268.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  269.                Picture         =   "客户销售计划执行情况.frx":201F8
  270.                Key             =   "yl"
  271.             EndProperty
  272.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  273.                Picture         =   "客户销售计划执行情况.frx":20592
  274.                Key             =   "xg"
  275.             EndProperty
  276.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  277.                Picture         =   "客户销售计划执行情况.frx":2092C
  278.                Key             =   "zh"
  279.             EndProperty
  280.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  281.                Picture         =   "客户销售计划执行情况.frx":20CC6
  282.                Key             =   "sh"
  283.             EndProperty
  284.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  285.                Picture         =   "客户销售计划执行情况.frx":21060
  286.                Key             =   "bc"
  287.             EndProperty
  288.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  289.                Picture         =   "客户销售计划执行情况.frx":213FA
  290.                Key             =   "fq"
  291.             EndProperty
  292.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  293.                Picture         =   "客户销售计划执行情况.frx":21794
  294.                Key             =   "bz"
  295.             EndProperty
  296.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  297.                Picture         =   "客户销售计划执行情况.frx":21B2E
  298.                Key             =   "tc"
  299.             EndProperty
  300.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  301.                Picture         =   "客户销售计划执行情况.frx":21EC8
  302.                Key             =   "bcgs"
  303.             EndProperty
  304.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  305.                Picture         =   "客户销售计划执行情况.frx":22262
  306.                Key             =   "mrlk"
  307.             EndProperty
  308.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  309.                Picture         =   "客户销售计划执行情况.frx":225FC
  310.                Key             =   "xsxm"
  311.             EndProperty
  312.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  313.                Picture         =   "客户销售计划执行情况.frx":22996
  314.                Key             =   "first"
  315.             EndProperty
  316.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  317.                Picture         =   "客户销售计划执行情况.frx":22D30
  318.                Key             =   "prev"
  319.             EndProperty
  320.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  321.                Picture         =   "客户销售计划执行情况.frx":230CA
  322.                Key             =   "next"
  323.             EndProperty
  324.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  325.                Picture         =   "客户销售计划执行情况.frx":23464
  326.                Key             =   "last"
  327.             EndProperty
  328.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  329.                Picture         =   "客户销售计划执行情况.frx":237FE
  330.                Key             =   "xx"
  331.             EndProperty
  332.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  333.                Picture         =   "客户销售计划执行情况.frx":23B98
  334.                Key             =   "define"
  335.             EndProperty
  336.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  337.                Picture         =   "客户销售计划执行情况.frx":23F32
  338.                Key             =   "exec"
  339.             EndProperty
  340.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  341.                Picture         =   "客户销售计划执行情况.frx":242CC
  342.                Key             =   "xz"
  343.             EndProperty
  344.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  345.                Picture         =   "客户销售计划执行情况.frx":24666
  346.                Key             =   "sc"
  347.             EndProperty
  348.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  349.                Picture         =   "客户销售计划执行情况.frx":24A00
  350.                Key             =   "sx"
  351.             EndProperty
  352.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  353.                Picture         =   "客户销售计划执行情况.frx":24D9A
  354.                Key             =   "cx"
  355.             EndProperty
  356.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  357.                Picture         =   "客户销售计划执行情况.frx":25134
  358.                Key             =   "zd"
  359.             EndProperty
  360.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  361.                Picture         =   "客户销售计划执行情况.frx":254CE
  362.                Key             =   "dz"
  363.             EndProperty
  364.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  365.                Picture         =   "客户销售计划执行情况.frx":25868
  366.                Key             =   "ph"
  367.             EndProperty
  368.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  369.                Picture         =   "客户销售计划执行情况.frx":25C02
  370.                Key             =   "fz"
  371.             EndProperty
  372.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  373.                Picture         =   "客户销售计划执行情况.frx":25F9C
  374.                Key             =   "dw"
  375.             EndProperty
  376.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  377.                Picture         =   "客户销售计划执行情况.frx":26336
  378.                Key             =   "hf"
  379.             EndProperty
  380.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  381.                Picture         =   "客户销售计划执行情况.frx":266D0
  382.                Key             =   "pz"
  383.             EndProperty
  384.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  385.                Picture         =   "客户销售计划执行情况.frx":26A6A
  386.                Key             =   "check"
  387.             EndProperty
  388.             BeginProperty ListImage33 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  389.                Picture         =   "客户销售计划执行情况.frx":26E04
  390.                Key             =   "qs"
  391.             EndProperty
  392.             BeginProperty ListImage34 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  393.                Picture         =   "客户销售计划执行情况.frx":2719E
  394.                Key             =   "fullcheck"
  395.             EndProperty
  396.             BeginProperty ListImage35 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  397.                Picture         =   "客户销售计划执行情况.frx":27538
  398.                Key             =   "qq"
  399.             EndProperty
  400.             BeginProperty ListImage36 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  401.                Picture         =   "客户销售计划执行情况.frx":278D2
  402.                Key             =   "bcw"
  403.             EndProperty
  404.             BeginProperty ListImage37 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  405.                Picture         =   "客户销售计划执行情况.frx":27C6C
  406.                Key             =   "ye"
  407.             EndProperty
  408.             BeginProperty ListImage38 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  409.                Picture         =   "客户销售计划执行情况.frx":28006
  410.                Key             =   ""
  411.             EndProperty
  412.             BeginProperty ListImage39 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  413.                Picture         =   "客户销售计划执行情况.frx":283A0
  414.                Key             =   "frist"
  415.             EndProperty
  416.             BeginProperty ListImage40 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  417.                Picture         =   "客户销售计划执行情况.frx":2873A
  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":28AD4
  515.                Key             =   "sz"
  516.             EndProperty
  517.             BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  518.                Picture         =   "客户销售计划执行情况.frx":28E6E
  519.                Key             =   "dy"
  520.             EndProperty
  521.             BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  522.                Picture         =   "客户销售计划执行情况.frx":29208
  523.                Key             =   "yl"
  524.             EndProperty
  525.             BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  526.                Picture         =   "客户销售计划执行情况.frx":295A2
  527.                Key             =   "xg"
  528.             EndProperty
  529.             BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  530.                Picture         =   "客户销售计划执行情况.frx":2993C
  531.                Key             =   "zh"
  532.             EndProperty
  533.             BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  534.                Picture         =   "客户销售计划执行情况.frx":29CD6
  535.                Key             =   "sh"
  536.             EndProperty
  537.             BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  538.                Picture         =   "客户销售计划执行情况.frx":2A070
  539.                Key             =   "bc"
  540.             EndProperty
  541.             BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  542.                Picture         =   "客户销售计划执行情况.frx":2A40A
  543.                Key             =   "fq"
  544.             EndProperty
  545.             BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  546.                Picture         =   "客户销售计划执行情况.frx":2A7A4
  547.                Key             =   "bz"
  548.             EndProperty
  549.             BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  550.                Picture         =   "客户销售计划执行情况.frx":2AB3E
  551.                Key             =   "tc"
  552.             EndProperty
  553.             BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  554.                Picture         =   "客户销售计划执行情况.frx":2AED8
  555.                Key             =   "bcgs"
  556.             EndProperty
  557.             BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  558.                Picture         =   "客户销售计划执行情况.frx":2B272
  559.                Key             =   "mrlk"
  560.             EndProperty
  561.             BeginProperty ListImage13 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  562.                Picture         =   "客户销售计划执行情况.frx":2B60C
  563.                Key             =   "xsxm"
  564.             EndProperty
  565.             BeginProperty ListImage14 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  566.                Picture         =   "客户销售计划执行情况.frx":2B9A6
  567.                Key             =   "first"
  568.             EndProperty
  569.             BeginProperty ListImage15 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  570.                Picture         =   "客户销售计划执行情况.frx":2BD40
  571.                Key             =   "prev"
  572.             EndProperty
  573.             BeginProperty ListImage16 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  574.                Picture         =   "客户销售计划执行情况.frx":2C0DA
  575.                Key             =   "next"
  576.             EndProperty
  577.             BeginProperty ListImage17 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  578.                Picture         =   "客户销售计划执行情况.frx":2C474
  579.                Key             =   "last"
  580.             EndProperty
  581.             BeginProperty ListImage18 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  582.                Picture         =   "客户销售计划执行情况.frx":2C80E
  583.                Key             =   "xx"
  584.             EndProperty
  585.             BeginProperty ListImage19 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  586.                Picture         =   "客户销售计划执行情况.frx":2CBA8
  587.                Key             =   "define"
  588.             EndProperty
  589.             BeginProperty ListImage20 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  590.                Picture         =   "客户销售计划执行情况.frx":2CF42
  591.                Key             =   "exec"
  592.             EndProperty
  593.             BeginProperty ListImage21 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  594.                Picture         =   "客户销售计划执行情况.frx":2D2DC
  595.                Key             =   "xz"
  596.             EndProperty
  597.             BeginProperty ListImage22 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  598.                Picture         =   "客户销售计划执行情况.frx":2D676
  599.                Key             =   "sc"
  600.             EndProperty
  601.             BeginProperty ListImage23 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  602.                Picture         =   "客户销售计划执行情况.frx":2DA10
  603.                Key             =   "sx"
  604.             EndProperty
  605.             BeginProperty ListImage24 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  606.                Picture         =   "客户销售计划执行情况.frx":2DDAA
  607.                Key             =   "cx"
  608.             EndProperty
  609.             BeginProperty ListImage25 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  610.                Picture         =   "客户销售计划执行情况.frx":2E144
  611.                Key             =   "zd"
  612.             EndProperty
  613.             BeginProperty ListImage26 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  614.                Picture         =   "客户销售计划执行情况.frx":2E4DE
  615.                Key             =   "dz"
  616.             EndProperty
  617.             BeginProperty ListImage27 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  618.                Picture         =   "客户销售计划执行情况.frx":2E878
  619.                Key             =   "ph"
  620.             EndProperty
  621.             BeginProperty ListImage28 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  622.                Picture         =   "客户销售计划执行情况.frx":2EC12
  623.                Key             =   "fz"
  624.             EndProperty
  625.             BeginProperty ListImage29 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  626.                Picture         =   "客户销售计划执行情况.frx":2EFAC
  627.                Key             =   "dw"
  628.             EndProperty
  629.             BeginProperty ListImage30 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  630.                Picture         =   "客户销售计划执行情况.frx":2F346
  631.                Key             =   "hf"
  632.             EndProperty
  633.             BeginProperty ListImage31 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  634.                Picture         =   "客户销售计划执行情况.frx":2F6E0
  635.                Key             =   "pz"
  636.             EndProperty
  637.             BeginProperty ListImage32 {2C247F27-8591-11D1-B16A-00C0F0283628} 
  638.                Picture         =   "客户销售计划执行情况.frx":2FA7A
  639.                Key             =   "check"
  640.             EndProperty
  641.          EndProperty
  642.       End
  643.    End
  644. End
  645. Attribute VB_Name = "Xs_P_CusExecute"
  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_CusExecute"
  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_CusExecute"
  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_CusExecuteQuery.UnloadCheck.Value = 1
  711.     Unload Xs_P_CusExecuteQuery
  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_CusExecuteQuery.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_CusExecuteQuery
  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 CusCode = '" & Trim(.LrText(2).Tag) & "'"
  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,CusCode ,CusName,Sum(PlanMoney) as PlanMoney,Sum(PlanMoneyMin) as PlanMoneyMin," & _
  807.             " Sum(NowValue) As NowValue From Xs_V_CusPlanExe " & Str_QueryCondi & _
  808.             " Group by DeptCode ,DeptName,CusCode ,CusName Order By DeptCode,CusCode"
  809.     Set Rec_Query = Cw_DataEnvi.DataConnect.Execute(Sqlstr)
  810.     With Rec_Query
  811.         CxbbGrid.Rows = CxbbGrid.FixedRows
  812.         Jsqte = CxbbGrid.FixedRows
  813.             Do While Not .EOF
  814.                 If Val(.Fields("PlanMoney") & "") <> 0 Or Val(.Fields("PlanMoneyMin") & "") <> 0 Then
  815.                     CxbbGrid.AddItem ""
  816.                     '[>>自定义填充内容
  817.                     CxbbGrid.TextMatrix(Jsqte, Sydz("001", GridStr(), Szzls)) = Trim(.Fields("DeptCode"))                                               '部门编码
  818.                     CxbbGrid.TextMatrix(Jsqte, Sydz("002", GridStr(), Szzls)) = Trim(.Fields("DeptName") & "")                                          '部门名称
  819.                     CxbbGrid.TextMatrix(Jsqte, Sydz("003", GridStr(), Szzls)) = Trim(.Fields("CusCode") & "")                                           '客户编码
  820.                     CxbbGrid.TextMatrix(Jsqte, Sydz("004", GridStr(), Szzls)) = Trim(.Fields("CusName") & "")                                           '客户名称
  821.                     If Val(.Fields("PlanMoney") & "") <> 0 Then
  822.                         CxbbGrid.TextMatrix(Jsqte, Sydz("005", GridStr(), Szzls)) = Val(.Fields("PlanMoney") & "")                                          '计划额
  823.                     End If
  824.                     If Val(.Fields("PlanMoneyMin") & "") <> 0 Then
  825.                         CxbbGrid.TextMatrix(Jsqte, Sydz("006", GridStr(), Szzls)) = Val(.Fields("PlanMoneyMin") & "")                                       '销售定额
  826.                     End If
  827.                     If Val(.Fields("NowValue") & "") <> 0 Then
  828.                         CxbbGrid.TextMatrix(Jsqte, Sydz("007", GridStr(), Szzls)) = Val(.Fields("NowValue") & "")                                           '销售额
  829.                     End If
  830.                     If Val(.Fields("NowValue") & "") - Val(.Fields("PlanMoney") & "") <> 0 Then
  831.                         CxbbGrid.TextMatrix(Jsqte, Sydz("008", GridStr(), Szzls)) = Val(.Fields("NowValue") & "") - Val(.Fields("PlanMoney") & "")          '较计划额
  832.                     End If
  833.                     If Val(.Fields("NowValue") & "") - Val(.Fields("PlanMoneyMin") & "") <> 0 Then
  834.                         CxbbGrid.TextMatrix(Jsqte, Sydz("009", GridStr(), Szzls)) = Val(.Fields("NowValue") & "") - Val(.Fields("PlanMoneyMin") & "")       '较销售定额
  835.                     End If
  836.                     If Trim(.Fields("PlanMoney") & "") <> 0 And Val(.Fields("NowValue") & "") <> 0 Then
  837.                         CxbbGrid.TextMatrix(Jsqte, Sydz("010", GridStr(), Szzls)) = Val(.Fields("NowValue") & "") / Val(.Fields("PlanMoney") & "") * 100
  838.                     End If
  839.                     If Trim(.Fields("PlanMoneyMin") & "") <> 0 And Val(.Fields("NowValue") & "") <> 0 Then
  840.                         CxbbGrid.TextMatrix(Jsqte, Sydz("011", GridStr(), Szzls)) = Val(.Fields("NowValue") & "") / Val(.Fields("PlanMoneyMin") & "") * 100
  841.                     End If
  842.                     
  843.                     '<<]
  844.                     '设置数据行高度(Fixed)
  845.                     CxbbGrid.RowHeight(Jsqte) = Sjhgd
  846.                 
  847.                     '动态集指针加1,同时将计数器加1(Fixed)
  848.                     Jsqte = Jsqte + 1
  849.                 End If
  850.                 .MoveNext
  851.             Loop
  852.     End With
  853.     '合计
  854.     CxbbGrid.AddItem ""
  855.     CxbbGrid.TextMatrix(CxbbGrid.Rows - 1, Sydz("001", GridStr(), Szzls)) = "合计"
  856.     For Coljsq = Qslz To CxbbGrid.Cols - 1
  857.         Call Sjhj(Coljsq)
  858.     Next Coljsq
  859.     ']以上为用户自定义部分
  860. End Sub
  861. Private Sub Sjhj(Hjwgl As Long)                                         '网格列数据合计
  862.     
  863.     Dim Hjjg As Double
  864.     If Not GridBoolean(Hjwgl, 4) Then
  865.         Exit Sub
  866.     End If
  867.     With CxbbGrid
  868.         Hjjg = 0
  869.         For Jsqte = .FixedRows To .Rows - 2
  870.                 If Trim(.TextMatrix(Jsqte, Hjwgl)) <> "" Then
  871.                     Hjjg = Hjjg + Val(.TextMatrix(Jsqte, Hjwgl))
  872.                 End If
  873.         Next Jsqte
  874.         If GridBoolean(Hjwgl, 5) And Hjjg = 0 Then
  875.             CxbbGrid.TextMatrix(.Rows - 1, Hjwgl) = ""
  876.         Else
  877.             CxbbGrid.TextMatrix(.Rows - 1, Hjwgl) = Hjjg
  878.         End If
  879.     End With
  880. End Sub
  881. Private Sub bbyl(bbylte As Boolean)                    '报表打印预览
  882.     
  883.     Dim Bbzbt$, Bbxbt() As String, bbxbtzzxs() As Integer, Bbxbtgs As Integer
  884.     Dim Bbbwh() As String, Bbbwhzzxs() As Integer, Bbbwhgs As Integer
  885.     Bbxbtgs = 1                                          '报 表 小 标 题 行 数
  886.     Bbbwhgs = 0                                          '报 表 表 尾 行 数
  887.     ReDim Bbxbt(1 To Bbxbtgs)
  888.     ReDim bbxbtzzxs(1 To Bbxbtgs)
  889.     If Bbbwhgs <> 0 Then
  890.         ReDim Bbbwh(1 To Bbbwhgs)
  891.         ReDim Bbbwhzzxs(1 To Bbbwhgs)
  892.     End If
  893.     Bbzbt = ReportTitle
  894.     Bbxbt(1) = ""
  895.     bbxbtzzxs(1) = 0                                     '报表行组织形式(0-居左 1-居中 2-居右)
  896.     Call Scyxsjb(CxbbGrid)                               '生成报表数据
  897.     Call Scdybb(Dyymctbl, Bbzbt, Bbxbt(), bbxbtzzxs(), Bbxbtgs, Bbbwh(), Bbbwhzzxs(), Bbbwhgs, bbylte)
  898.     If Not bbylte Then
  899.         Unload DY_Tybbyldy
  900.     End If
  901. End Sub