home *** CD-ROM | disk | FTP | other *** search
/ Delphi Anthology / aDELPHI.iso / Runimage / Delphi50 / Objrepos / dcdemo.dfm / dcdemo.txt
Text File  |  1999-08-11  |  7KB  |  273 lines

  1. object DCDemoForm: TDCDemoForm
  2.   Left = 190
  3.   Top = 205
  4.   Width = 590
  5.   Height = 331
  6.   Caption = 'Decision Cube Example Form'
  7.   ParentFont = True
  8.   PixelsPerInch = 96
  9.   TextHeight = 13
  10.   object Panel1: TPanel
  11.     Left = 0
  12.     Top = 0
  13.     Width = 582
  14.     Height = 49
  15.     Align = alTop
  16.     Caption = 'Panel1'
  17.     TabOrder = 0
  18.     object DecisionPivot1: TDecisionPivot
  19.       Left = -1
  20.       Top = 2
  21.       Width = 466
  22.       Height = 47
  23.       ButtonAutoSize = True
  24.       DecisionSource = DecisionSource1
  25.       GroupLayout = xtHorizontal
  26.       Groups = [xtRows, xtColumns, xtSummaries]
  27.       ButtonSpacing = 3
  28.       ButtonWidth = 64
  29.       ButtonHeight = 24
  30.       GroupSpacing = 10
  31.       BorderWidth = 3
  32.       BorderStyle = bsNone
  33.       TabOrder = 0
  34.     end
  35.   end
  36.   object DecisionGrid1: TDecisionGrid
  37.     Left = 0
  38.     Top = 49
  39.     Width = 582
  40.     Height = 254
  41.     DefaultColWidth = 90
  42.     DefaultRowHeight = 20
  43.     CaptionColor = clActiveCaption
  44.     CaptionFont.Charset = DEFAULT_CHARSET
  45.     CaptionFont.Color = clCaptionText
  46.     CaptionFont.Height = -11
  47.     CaptionFont.Name = 'Default'
  48.     CaptionFont.Style = []
  49.     DataColor = clInfoBk
  50.     DataSumColor = clNone
  51.     DataFont.Color = clWindowText
  52.     DataFont.Style = []
  53.     LabelFont.Charset = DEFAULT_CHARSET
  54.     LabelFont.Color = clWindowText
  55.     LabelFont.Height = -11
  56.     LabelFont.Name = 'Default'
  57.     LabelFont.Style = []
  58.     LabelColor = clBtnFace
  59.     LabelSumColor = clTeal
  60.     DecisionSource = DecisionSource1
  61.     Dimensions = <
  62.       item
  63.         FieldName = 'Payment'
  64.         Color = clNone
  65.         Alignment = taCenter
  66.         Subtotals = True
  67.       end
  68.       item
  69.         FieldName = 'ShipVIA'
  70.         Color = clNone
  71.         Alignment = taCenter
  72.         Subtotals = True
  73.       end
  74.       item
  75.         FieldName = 'Terms'
  76.         Color = clNone
  77.         Alignment = taCenter
  78.         Subtotals = True
  79.       end
  80.       item
  81.         FieldName = 'ShipDate'
  82.         Color = clNone
  83.         Alignment = taCenter
  84.         Subtotals = True
  85.       end
  86.       item
  87.         FieldName = 'COUNT OF AmountPaid'
  88.         Color = clNone
  89.         Alignment = taCenter
  90.         Subtotals = True
  91.       end
  92.       item
  93.         FieldName = 'SUM OF AmountPaid'
  94.         Color = clNone
  95.         Alignment = taCenter
  96.         Subtotals = True
  97.       end
  98.       item
  99.         FieldName = 'COUNT OF ItemsTotal'
  100.         Color = clNone
  101.         Alignment = taCenter
  102.         Subtotals = True
  103.       end
  104.       item
  105.         FieldName = 'Average of ORDERS.AmountPaid'
  106.         Color = clNone
  107.         Alignment = taCenter
  108.         Subtotals = True
  109.       end>
  110.     Totals = True
  111.     Align = alClient
  112.     GridLineWidth = 1
  113.     GridLineColor = clBlack
  114.     TabOrder = 1
  115.   end
  116.   object DecisionCube1: TDecisionCube
  117.     DataSet = DecisionQuery1
  118.     DimensionMap = <
  119.       item
  120.         ActiveFlag = diAsNeeded
  121.         FieldType = ftString
  122.         Fieldname = 'PaymentMethod'
  123.         BaseName = 'ORDERS.PaymentMethod'
  124.         Name = 'Payment'
  125.         DerivedFrom = -1
  126.         DimensionType = dimDimension
  127.         BinType = binNone
  128.         ValueCount = 8
  129.         Active = True
  130.       end
  131.       item
  132.         ActiveFlag = diAsNeeded
  133.         FieldType = ftString
  134.         Fieldname = 'ShipVIA'
  135.         BaseName = 'ORDERS.ShipVIA'
  136.         Name = 'ShipVIA'
  137.         DerivedFrom = -1
  138.         DimensionType = dimDimension
  139.         BinType = binNone
  140.         ValueCount = 6
  141.         Active = True
  142.       end
  143.       item
  144.         ActiveFlag = diAsNeeded
  145.         FieldType = ftString
  146.         Fieldname = 'Terms'
  147.         BaseName = 'ORDERS.Terms'
  148.         Name = 'Terms'
  149.         DerivedFrom = -1
  150.         DimensionType = dimDimension
  151.         BinType = binNone
  152.         ValueCount = 4
  153.         Active = True
  154.       end
  155.       item
  156.         ActiveFlag = diAsNeeded
  157.         FieldType = ftDateTime
  158.         Fieldname = 'ShipDate'
  159.         BaseName = 'ORDERS.ShipDate'
  160.         Name = 'ShipDate'
  161.         DerivedFrom = -1
  162.         DimensionType = dimDimension
  163.         BinType = binYear
  164.         ValueCount = 7
  165.         Active = True
  166.         StartValue = 35431
  167.       end
  168.       item
  169.         ActiveFlag = diAsNeeded
  170.         FieldType = ftInteger
  171.         Fieldname = 'COUNT OF AmountPaid'
  172.         BaseName = 'ORDERS.AmountPaid'
  173.         Name = 'COUNT OF AmountPaid'
  174.         DerivedFrom = -1
  175.         DimensionType = dimCount
  176.         BinType = binNone
  177.         ValueCount = -1
  178.         Active = True
  179.       end
  180.       item
  181.         ActiveFlag = diAsNeeded
  182.         FieldType = ftCurrency
  183.         Fieldname = 'SUM OF AmountPaid'
  184.         BaseName = 'ORDERS.AmountPaid'
  185.         Name = 'SUM OF AmountPaid'
  186.         DerivedFrom = -1
  187.         DimensionType = dimSum
  188.         BinType = binNone
  189.         ValueCount = -1
  190.         Active = True
  191.       end
  192.       item
  193.         ActiveFlag = diAsNeeded
  194.         FieldType = ftInteger
  195.         Fieldname = 'COUNT OF ItemsTotal'
  196.         BaseName = 'ORDERS.ItemsTotal'
  197.         Name = 'COUNT OF ItemsTotal'
  198.         DerivedFrom = -1
  199.         DimensionType = dimCount
  200.         BinType = binNone
  201.         ValueCount = -1
  202.         Active = True
  203.       end
  204.       item
  205.         ActiveFlag = diActive
  206.         FieldType = ftUnknown
  207.         Fieldname = 'Average of ORDERS.AmountPaid'
  208.         BaseName = 'ORDERS.AmountPaid'
  209.         Name = 'Average of ORDERS.AmountPaid'
  210.         DerivedFrom = 5
  211.         DimensionType = dimAverage
  212.         BinType = binNone
  213.         ValueCount = -1
  214.         Active = True
  215.       end>
  216.     ShowProgressDialog = True
  217.     MaxDimensions = 5
  218.     MaxSummaries = 5
  219.     MaxCells = 1000000
  220.     Left = 507
  221.     Top = 8
  222.   end
  223.   object DecisionQuery1: TDecisionQuery
  224.     Active = True
  225.     DatabaseName = 'DBDEMOS'
  226.     SQL.Strings = (
  227.       
  228.         'SELECT ORDERS.PaymentMethod, "ORDERS.DB".ShipVIA, "ORDERS.DB".Te' +
  229.         'rms, "ORDERS.DB".ShipDate, COUNT( "ORDERS.DB".AmountPaid ), SUM(' +
  230.         ' "ORDERS.DB".AmountPaid ), COUNT( "ORDERS.DB".ItemsTotal )'
  231.       'FROM "ORDERS.DB" ORDERS'
  232.       
  233.         'GROUP BY ORDERS.PaymentMethod, "ORDERS.DB".ShipVIA, "ORDERS.DB".' +
  234.         'Terms, "ORDERS.DB".ShipDate')
  235.     Left = 478
  236.     Top = 8
  237.   end
  238.   object DecisionSource1: TDecisionSource
  239.     DecisionCube = DecisionCube1
  240.     ControlType = xtCheck
  241.     SparseRows = False
  242.     SparseCols = False
  243.     Left = 535
  244.     Top = 8
  245.     DimensionCount = 4
  246.     SummaryCount = 4
  247.     CurrentSummary = 1
  248.     SparseRows = False
  249.     SparseCols = False
  250.     DimensionInfo = (
  251.       1
  252.       0
  253.       1
  254.       0
  255.       0
  256.       2
  257.       0
  258.       1
  259.       0
  260.       0
  261.       1
  262.       -1
  263.       2
  264.       1
  265.       0
  266.       2
  267.       -1
  268.       3
  269.       1
  270.       6)
  271.   end
  272. end
  273.