internal SLTableColumn Clone()
        {
            var tc = new SLTableColumn();
            tc.HasCalculatedColumnFormula = HasCalculatedColumnFormula;
            tc.CalculatedColumnFormula = CalculatedColumnFormula.Clone();
            tc.HasTotalsRowFormula = HasTotalsRowFormula;
            tc.TotalsRowFormula = TotalsRowFormula.Clone();
            tc.HasXmlColumnProperties = HasXmlColumnProperties;
            tc.XmlColumnProperties = XmlColumnProperties.Clone();
            tc.Id = Id;
            tc.UniqueName = UniqueName;
            tc.Name = Name;
            tc.HasTotalsRowFunction = HasTotalsRowFunction;
            tc.vTotalsRowFunction = vTotalsRowFunction;
            tc.TotalsRowLabel = TotalsRowLabel;
            tc.QueryTableFieldId = QueryTableFieldId;
            tc.HeaderRowDifferentialFormattingId = HeaderRowDifferentialFormattingId;
            tc.DataFormatId = DataFormatId;
            tc.TotalsRowDifferentialFormattingId = TotalsRowDifferentialFormattingId;
            tc.HeaderRowCellStyle = HeaderRowCellStyle;
            tc.DataCellStyle = DataCellStyle;
            tc.TotalsRowCellStyle = TotalsRowCellStyle;

            return tc;
        }
        internal TableColumn ToTableColumn()
        {
            var tc = new TableColumn();
            if (HasCalculatedColumnFormula)
                tc.CalculatedColumnFormula = CalculatedColumnFormula.ToCalculatedColumnFormula();
            if (HasTotalsRowFormula)
                tc.TotalsRowFormula = TotalsRowFormula.ToTotalsRowFormula();
            if (HasXmlColumnProperties)
                tc.XmlColumnProperties = XmlColumnProperties.ToXmlColumnProperties();

            tc.Id = Id;
            if (UniqueName != null) tc.UniqueName = UniqueName;
            tc.Name = Name;

            if (HasTotalsRowFunction) tc.TotalsRowFunction = TotalsRowFunction;
            if (TotalsRowLabel != null) tc.TotalsRowLabel = TotalsRowLabel;
            if (QueryTableFieldId != null) tc.QueryTableFieldId = QueryTableFieldId.Value;
            if (HeaderRowDifferentialFormattingId != null)
                tc.HeaderRowDifferentialFormattingId = HeaderRowDifferentialFormattingId.Value;
            if (DataFormatId != null) tc.DataFormatId = DataFormatId.Value;
            if (TotalsRowDifferentialFormattingId != null)
                tc.TotalsRowDifferentialFormattingId = TotalsRowDifferentialFormattingId.Value;
            if (HeaderRowCellStyle != null) tc.HeaderRowCellStyle = HeaderRowCellStyle;
            if (DataCellStyle != null) tc.DataCellStyle = DataCellStyle;
            if (TotalsRowCellStyle != null) tc.TotalsRowCellStyle = TotalsRowCellStyle;

            return tc;
        }
        internal void FromXmlColumnProperties(XmlColumnProperties xcp)
        {
            this.SetAllNull();

            if (xcp.MapId != null) this.MapId = xcp.MapId.Value;
            if (xcp.XPath != null) this.XPath = xcp.XPath.Value;
            if (xcp.Denormalized != null && xcp.Denormalized.Value) this.Denormalized = xcp.Denormalized.Value;
            if (xcp.XmlDataType != null) this.XmlDataType = xcp.XmlDataType.Value;
        }
        internal XmlColumnProperties ToXmlColumnProperties()
        {
            XmlColumnProperties xcp = new XmlColumnProperties();
            xcp.MapId = this.MapId;
            xcp.XPath = this.XPath;
            if (this.Denormalized != null && this.Denormalized.Value) xcp.Denormalized = this.Denormalized.Value;
            xcp.XmlDataType = this.XmlDataType;

            return xcp;
        }
Beispiel #5
0
        internal XmlColumnProperties ToXmlColumnProperties()
        {
            XmlColumnProperties xcp = new XmlColumnProperties();

            xcp.MapId = this.MapId;
            xcp.XPath = this.XPath;
            if (this.Denormalized != null && this.Denormalized.Value)
            {
                xcp.Denormalized = this.Denormalized.Value;
            }
            xcp.XmlDataType = this.XmlDataType;

            return(xcp);
        }
Beispiel #6
0
        internal XmlColumnProperties ToXmlColumnProperties()
        {
            var xcp = new XmlColumnProperties();

            xcp.MapId = MapId;
            xcp.XPath = XPath;
            if ((Denormalized != null) && Denormalized.Value)
            {
                xcp.Denormalized = Denormalized.Value;
            }
            xcp.XmlDataType = XmlDataType;

            return(xcp);
        }
Beispiel #7
0
        internal void FromXmlColumnProperties(XmlColumnProperties xcp)
        {
            this.SetAllNull();

            if (xcp.MapId != null)
            {
                this.MapId = xcp.MapId.Value;
            }
            if (xcp.XPath != null)
            {
                this.XPath = xcp.XPath.Value;
            }
            if (xcp.Denormalized != null && xcp.Denormalized.Value)
            {
                this.Denormalized = xcp.Denormalized.Value;
            }
            if (xcp.XmlDataType != null)
            {
                this.XmlDataType = xcp.XmlDataType.Value;
            }
        }
        internal void FromTableColumn(TableColumn tc)
        {
            SetAllNull();

            if (tc.CalculatedColumnFormula != null)
            {
                HasCalculatedColumnFormula = true;
                CalculatedColumnFormula.FromCalculatedColumnFormula(tc.CalculatedColumnFormula);
            }
            if (tc.TotalsRowFormula != null)
            {
                HasTotalsRowFormula = true;
                TotalsRowFormula.FromTotalsRowFormula(tc.TotalsRowFormula);
            }
            if (tc.XmlColumnProperties != null)
            {
                HasXmlColumnProperties = true;
                XmlColumnProperties.FromXmlColumnProperties(tc.XmlColumnProperties);
            }

            Id = tc.Id.Value;
            if (tc.UniqueName != null) UniqueName = tc.UniqueName.Value;
            Name = tc.Name.Value;

            if (tc.TotalsRowFunction != null) TotalsRowFunction = tc.TotalsRowFunction.Value;
            if (tc.TotalsRowLabel != null) TotalsRowLabel = tc.TotalsRowLabel.Value;
            if (tc.QueryTableFieldId != null) QueryTableFieldId = tc.QueryTableFieldId.Value;
            if (tc.HeaderRowDifferentialFormattingId != null)
                HeaderRowDifferentialFormattingId = tc.HeaderRowDifferentialFormattingId.Value;
            if (tc.DataFormatId != null) DataFormatId = tc.DataFormatId.Value;
            if (tc.TotalsRowDifferentialFormattingId != null)
                TotalsRowDifferentialFormattingId = tc.TotalsRowDifferentialFormattingId.Value;
            if (tc.HeaderRowCellStyle != null) HeaderRowCellStyle = tc.HeaderRowCellStyle.Value;
            if (tc.DataCellStyle != null) DataCellStyle = tc.DataCellStyle.Value;
            if (tc.TotalsRowCellStyle != null) TotalsRowCellStyle = tc.TotalsRowCellStyle.Value;
        }