Example #1
0
        public static void startWork()
        {
            var mdx = new QueryBuilderParameters
            {
                CubeName            = "[Adventure Works]",
                SubCube             = "",
                MdxDesignerSetting  = new MDXDesignerSettingWrapper(),
                CalculatedMembers   = new List <CalcMemberInfo>(),
                CalculatedNamedSets = new List <CalculatedNamedSetInfo>(),
                AreaWrappersFilter  = new List <AreaItemWrapper>(),
                AreaWrappersColumns = new List <AreaItemWrapper>(),
                AreaWrappersRows    = new List <AreaItemWrapper>(),
                AreaWrappersData    = new List <AreaItemWrapper>()
            };

            //define parameters
            mdx.MdxDesignerSetting.HideEmptyColumns = false;
            mdx.MdxDesignerSetting.HideEmptyRows    = false;
            mdx.MdxDesignerSetting.UseVisualTotals  = false;
            mdx.MdxDesignerSetting.SubsetCount      = 0;

            var itemCol1 = new Hierarchy_AreaItemWrapper
            {
                AreaItemType = AreaItemWrapperType.Hierarchy_AreaItemWrapper,
                UniqueName   = "[Customer].[Customer Geography]"
            };

            mdx.AreaWrappersColumns.Add(itemCol1);

            var itemRow1 = new Hierarchy_AreaItemWrapper
            {
                AreaItemType = AreaItemWrapperType.Hierarchy_AreaItemWrapper,
                UniqueName   = "[Date].[Calendar]"
            };

            mdx.AreaWrappersRows.Add(itemRow1);

            var itemData1 = new Measure_AreaItemWrapper();

            itemData1.AreaItemType = AreaItemWrapperType.Measure_AreaItemWrapper;
            itemData1.UniqueName   = "[Measures].[Internet Order Count]";
            mdx.AreaWrappersData.Add(itemData1);

            string query = MdxQueryBuilder.Default.BuildQuery(mdx, null);
        }
Example #2
0
 public Measure_AreaItemControl(Measure_AreaItemWrapper wrapper, BitmapImage icon)
     : base(wrapper, icon)
 {
 }
Example #3
0
 public Measure_AreaItemControl(Measure_AreaItemWrapper wrapper)
     : base(wrapper)
 {
 }