Ejemplo n.º 1
0
        }       //	isFunctionColumn

        public void AddValue(String functionColumnName, Decimal functionValue)
        {
            if (!IsFunctionColumn(functionColumnName))
            {
                return;
            }
            //	Group Breaks
            for (int i = 0; i < _groups.Count; i++)
            {
                String groupColumnName = (String)_groups[i];
                String key             = groupColumnName + DELIMITER + functionColumnName;

                PrintDataFunction pdf = null;
                if (_groupFunction.ContainsKey(key))
                {
                    pdf = (PrintDataFunction)_groupFunction[key];
                }
                if (pdf == null)
                {
                    pdf = new PrintDataFunction();
                }
                pdf.AddValue(functionValue);


                if (_groupFunction.ContainsKey(key))
                {
                    _groupFunction[key] = pdf;
                }
                else
                {
                    _groupFunction.Add(key, pdf);
                }
                //_groupFunction.Add("one", pdf);
            }
        }       //	addValue
Ejemplo n.º 2
0
        }       //	getValue

        public void Reset(String groupColumnName, String functionColumnName)
        {
            String            key = groupColumnName + DELIMITER + functionColumnName;
            PrintDataFunction pdf = null;

            if (_groupFunction.ContainsKey(key))
            {
                pdf = (PrintDataFunction)_groupFunction[key];
            }
            if (pdf != null)
            {
                pdf.Reset();
            }
        }       //	reset
Ejemplo n.º 3
0
        }       //	addValue

        public Decimal?GetValue(String groupColumnName, String functionColumnName,
                                char function)
        {
            String            key = groupColumnName + DELIMITER + functionColumnName;
            PrintDataFunction pdf = null;

            if (_groupFunction.ContainsKey(key))
            {
                pdf = (PrintDataFunction)_groupFunction[key];
            }
            if (pdf == null)
            {
                return(null);
            }
            return(pdf.GetValue(function));
        }       //	getValue