Esempio n. 1
0
        public settingsPropertyEntry(DataColumn dc)
        {
            index       = dc.Ordinal;
            priority    = dc.Ordinal;
            displayName = dc.Caption;
            name        = dc.ColumnName;
            description = dc.GetDesc();
            type        = dc.DataType;

            var t = dc.GetValueType();

            if (t != typeof(String))
            {
                type = t;
            }

            categoryName = dc.GetGroup();
            format       = dc.GetFormat();
            letter       = dc.GetLetter();
            aggregation  = dc.GetAggregation();
            //spe.index = dc.Ordinal;
            importance = dc.GetImportance();
            expression = dc.Expression;
            unit       = dc.GetUnit();
            textColor  = dc.GetTextColor().ColorToHex();
            width      = dc.GetWidth();
            Alignment  = dc.GetAligment();

            //spe.displayName = dc.Caption;
            //spe.name = dc.ColumnName;
            //spe.description = dc.GetDesc();
            //spe.type = dc.DataType;
            //spe.categoryName = dc.GetGroup();
            //spe.format = dc.GetFormat();
            //spe.letter = dc.GetLetter();
            //spe.aggregation = dc.GetAggregation();
            ////spe.index = dc.Ordinal;
            //spe.importance = dc.GetImportance();
            //spe.expression = dc.Expression;
            //spe.unit = dc.GetUnit();
            //spe.priority = dc.Ordinal;
            //spe.width = dc.GetWidth();

            color            = dc.GetDefaultBackground().ColorToHex();
            isHiddenInReport = dc.ExtendedProperties.ContainsKey(imbAttributeName.reporting_hide);

            setAcceptableValues();
        }