Пример #1
0
        public void Draw(MdxDrawContext dc)
        {
            dc.Append("Sum (");
            dc.EndOfLine();
            dc.IncLevel();
            dc.BeginLine();

            _mdxElement.Draw(dc);

            dc.Append(string.Format(".Lag({0}) :", _offset - 1));

            dc.EndOfLine();
            dc.BeginLine();

            _mdxElement.Draw(dc);

            dc.Append(".Lag(0),");

            dc.EndOfLine();
            dc.BeginLine();

            _measure.Draw(dc);

            dc.EndOfLine();
            dc.CloseBracket(")");
            dc.Append("/");
            dc.Append(_offset.ToString());
        }
Пример #2
0
        public void Draw(MdxDrawContext dc)
        {
            _measure.Draw(dc);

            dc.Append(" - Sum (");

            _mdxElement.Draw(dc);

            dc.Append(".PREVMEMBER, ");

            _measure.Draw(dc);

            dc.Append(")");
        }
Пример #3
0
        public void Draw(MdxDrawContext dc)
        {
            _firstMeasure.Draw(dc);

            dc.Append(" * ");

            _secondMeasure.Draw(dc);
        }
Пример #4
0
        public void Draw(MdxDrawContext dc)
        {
            dc.Append("Divide (");

            _numeratorMeasure.Draw(dc);

            dc.Append(string.Format(", {0}, 0)", _number));
        }
Пример #5
0
        public void Draw(MdxDrawContext dc)
        {
            dc.Append("IsEmpty(");

            _mdxValueExpression.Draw(dc);

            dc.Append(")");
        }
Пример #6
0
        public void Draw(MdxDrawContext dc)
        {
            dc.Append("Round (");

            _numeratorMeasure.Draw(dc);

            dc.Append(string.Format(", {0})", _digitsCount));
        }
Пример #7
0
        public void Draw(MdxDrawContext dc)
        {
            dc.Append("divide (");
            dc.Append("Sum (");

            _dimension.Draw(dc);

            dc.Append(", ");

            _measure.Draw(dc);

            dc.Append(")");

            dc.Append(",Count(");
            _dimension.Draw(dc);

            dc.Append("))");
        }
Пример #8
0
        public void Draw(MdxDrawContext dc)
        {
            dc.Append("Filter (");

            _mdxSetExpression.Draw(dc);

            dc.Append(", ");

            _mdxLogicalExpression.Draw(dc);

            dc.Append(")");
        }
Пример #9
0
        public void Draw(MdxDrawContext dc)
        {
            dc.Append("Sum (");

            _mdxElement.Draw(dc);

            dc.Append(", ");

            _measure.Draw(dc);

            dc.Append(")");
        }
Пример #10
0
        public void Draw(MdxDrawContext dc)
        {
            dc.Append("PeriodsToDate (");

            _mdxElement.Draw(dc);

            dc.Append(", ");

            _measure.Draw(dc);

            dc.Append(")");
        }
Пример #11
0
        public void Draw(MdxDrawContext dc)
        {
            dc.Append("Generate (");

            _mdxRangeElement.Draw(dc);

            dc.Append(", ");

            _measure.Draw(dc);

            dc.Append(")");
        }
Пример #12
0
        public void Draw(MdxDrawContext dc)
        {
            dc.Append("Divide (");

            _numeratorMeasure.Draw(dc);

            dc.Append(", ");

            _denominatorMeasure.Draw(dc);

            dc.Append(", ");
            dc.Append(_defaultResult + ")");
        }
Пример #13
0
        public void Draw(MdxDrawContext dc)
        {
            dc.Append("SubSet");
            dc.OpenBracket("(");

            _mdxElement.Draw(dc);
            dc.Append(", ");
            dc.Append(_start.ToString());

            dc.Append(", ");
            dc.Append(_count.ToString());

            dc.CloseBracket(")");
        }
Пример #14
0
        public void Draw(MdxDrawContext dc)
        {
            dc.Append("Order (");

            _mdxRowsElement.Draw(dc);

            dc.Append(", ");

            _measureOrDimension.Draw(dc);

            dc.Append(",");
            dc.Append(_dir);
            dc.Append(")");
        }
Пример #15
0
        public void Draw(MdxDrawContext dc)
        {
            dc.Append("SET [");
            dc.Append(_name);
            dc.Append("] AS");

            dc.EndOfLine();
            dc.IncLevel();

            dc.BeginLine();
            _asMember.Draw(dc);

            dc.DecLevel();
        }
Пример #16
0
        public void Draw(MdxDrawContext dc)
        {
            dc.Append("IIF (");

            _iifExpression.Draw(dc);

            dc.Append(", ");

            _trueValue.Draw(dc);

            dc.Append(", ");

            _falseValue.Draw(dc);

            dc.Append(")");
        }
Пример #17
0
        public void Draw(MdxDrawContext dc)
        {
            dc.Append("TopCount (");

            _setExpression.Draw(dc);

            dc.Append(string.Format(", {0}", _count));

            if (_measure != null)
            {
                dc.Append(", ");
                _measure.Draw(dc);
            }

            dc.Append(")");
        }
Пример #18
0
        public void Draw(MdxDrawContext dc)
        {
            _measure.Draw(dc);

            dc.Append(string.Format(" * {0}", _number));
        }
        public void Draw(MdxDrawContext dc)
        {
            _measure.Draw(dc);

            dc.Append(" IS NULL");
        }