예제 #1
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer)
        {
            DialogPage c = writer.DiffObject as DialogPage;

            base.Serialize(writer);

            if (AcceptButton != c.AcceptButton)
            {
                writer.WriteRef("AcceptButton", AcceptButton);
            }
            if (CancelButton != c.CancelButton)
            {
                writer.WriteRef("CancelButton", CancelButton);
            }
            if (BackColor != c.BackColor)
            {
                writer.WriteValue("BackColor", BackColor);
            }
            if (!Font.Equals(c.Font))
            {
                writer.WriteValue("Font", Font);
            }
            if (FormBorderStyle != c.FormBorderStyle)
            {
                writer.WriteValue("FormBorderStyle", FormBorderStyle);
            }
            if (RightToLeft != c.RightToLeft)
            {
                writer.WriteValue("RightToLeft", RightToLeft);
            }
            if (Text != c.Text)
            {
                writer.WriteStr("Text", Text);
            }

            if (LoadEvent != c.LoadEvent)
            {
                writer.WriteStr("LoadEvent", LoadEvent);
            }
            if (FormClosedEvent != c.FormClosedEvent)
            {
                writer.WriteStr("FormClosedEvent", FormClosedEvent);
            }
            if (FormClosingEvent != c.FormClosingEvent)
            {
                writer.WriteStr("FormClosingEvent", FormClosingEvent);
            }
            if (ShownEvent != c.ShownEvent)
            {
                writer.WriteStr("ShownEvent", ShownEvent);
            }
            if (ResizeEvent != c.ResizeEvent)
            {
                writer.WriteStr("ResizeEvent", ResizeEvent);
            }
            if (PaintEvent != c.PaintEvent)
            {
                writer.WriteStr("PaintEvent", PaintEvent);
            }
        }
예제 #2
0
 /// <inheritdoc/>
 public override void Serialize(FRWriter writer)
 {
     base.Serialize(writer);
     writer.WriteRef("ParentDataSource", ParentDataSource);
     writer.WriteRef("ChildDataSource", ChildDataSource);
     writer.WriteValue("ParentColumns", ParentColumns);
     writer.WriteValue("ChildColumns", ChildColumns);
     writer.WriteBool("Enabled", Enabled);
 }
예제 #3
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer)
        {
            DataFilterBaseControl c = writer.DiffObject as DataFilterBaseControl;

            base.Serialize(writer);

            if (AutoFill != c.AutoFill)
            {
                writer.WriteBool("AutoFill", AutoFill);
            }
            if (AutoFilter != c.AutoFilter)
            {
                writer.WriteBool("AutoFilter", AutoFilter);
            }
            if (DataColumn != c.DataColumn)
            {
                writer.WriteStr("DataColumn", DataColumn);
            }
            if (ReportParameter != c.ReportParameter)
            {
                writer.WriteStr("ReportParameter", ReportParameter);
            }
            if (FilterOperation != c.FilterOperation)
            {
                writer.WriteValue("FilterOperation", FilterOperation);
            }
            if (DetailControl != c.DetailControl)
            {
                writer.WriteRef("DetailControl", DetailControl);
            }
            if (DataLoadedEvent != c.DataLoadedEvent)
            {
                writer.WriteStr("DataLoadedEvent", DataLoadedEvent);
            }
        }
예제 #4
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer)
        {
            if (writer.SerializeTo != SerializeTo.SourcePages)
            {
                writer.Write(Data.Columns);
                writer.Write(Data.Rows);
                writer.Write(Data.Cells);
            }
            else
            {
                RefreshTemplate(true);
            }

            base.Serialize(writer);
            CrossViewObject c = writer.DiffObject as CrossViewObject;

            if (CubeSource != c.CubeSource)
            {
                writer.WriteRef("CubeSource", CubeSource);
            }
            if (ColumnDescriptorsIndexes != c.ColumnDescriptorsIndexes)
            {
                writer.WriteStr("ColumnDescriptorsIndexes", ColumnDescriptorsIndexes);
            }
            if (RowDescriptorsIndexes != c.RowDescriptorsIndexes)
            {
                writer.WriteStr("RowDescriptorsIndexes", RowDescriptorsIndexes);
            }
            if (ColumnTerminalIndexes != c.ColumnTerminalIndexes)
            {
                writer.WriteStr("ColumnTerminalIndexes", ColumnTerminalIndexes);
            }
            if (RowTerminalIndexes != c.RowTerminalIndexes)
            {
                writer.WriteStr("RowTerminalIndexes", RowTerminalIndexes);
            }
            if (ShowTitle != c.ShowTitle)
            {
                writer.WriteBool("ShowTitle", ShowTitle);
            }
            if (ShowXAxisFieldsCaption != c.ShowXAxisFieldsCaption)
            {
                writer.WriteBool("ShowXAxisFieldsCaption", ShowXAxisFieldsCaption);
            }
            if (ShowYAxisFieldsCaption != c.ShowYAxisFieldsCaption)
            {
                writer.WriteBool("ShowYAxisFieldsCaption", ShowYAxisFieldsCaption);
            }
            if (Style != c.Style)
            {
                writer.WriteStr("Style", Style);
            }
            //            if (MatrixEvenStylePriority != c.MatrixEvenStylePriority)
            //                writer.WriteValue("MatrixEvenStylePriority", MatrixEvenStylePriority);
            if (ModifyResultEvent != c.ModifyResultEvent)
            {
                writer.WriteStr("ModifyResultEvent", ModifyResultEvent);
            }
        }
예제 #5
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer)
        {
            SubreportObject c = writer.DiffObject as SubreportObject;

            base.Serialize(writer);

            writer.WriteRef("ReportPage", ReportPage);
            if (PrintOnParent != c.PrintOnParent)
            {
                writer.WriteBool("PrintOnParent", PrintOnParent);
            }
        }
예제 #6
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer)
        {
            Total c = writer.DiffObject as Total;

            base.Serialize(writer);

            if (TotalType != c.TotalType)
            {
                writer.WriteValue("TotalType", TotalType);
            }
            if (Expression != c.Expression)
            {
                writer.WriteStr("Expression", Expression);
            }
            if (Evaluator != c.Evaluator)
            {
                writer.WriteRef("Evaluator", Evaluator);
            }
            if (PrintOn != c.PrintOn)
            {
                writer.WriteRef("PrintOn", PrintOn);
            }
            if (ResetAfterPrint != c.ResetAfterPrint)
            {
                writer.WriteBool("ResetAfterPrint", ResetAfterPrint);
            }
            if (ResetOnReprint != c.ResetOnReprint)
            {
                writer.WriteBool("ResetOnReprint", ResetOnReprint);
            }
            if (EvaluateCondition != c.EvaluateCondition)
            {
                writer.WriteStr("EvaluateCondition", EvaluateCondition);
            }
            if (IncludeInvisibleRows != c.IncludeInvisibleRows)
            {
                writer.WriteBool("IncludeInvisibleRows", IncludeInvisibleRows);
            }
        }
예제 #7
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer)
        {
            BreakableComponent c = writer.DiffObject as BreakableComponent;

            base.Serialize(writer);

            if (CanBreak != c.CanBreak)
            {
                writer.WriteBool("CanBreak", CanBreak);
            }
            if (writer.SerializeTo != SerializeTo.Preview && writer.SerializeTo != SerializeTo.SourcePages &&
                BreakTo != c.BreakTo)
            {
                writer.WriteRef("BreakTo", BreakTo);
            }
        }
예제 #8
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer)
        {
            CrossBandObject c = writer.DiffObject as CrossBandObject;

            base.Serialize(writer);

            if (Shape != c.Shape)
            {
                writer.WriteValue("Shape", Shape);
            }
            if (EndBand != null)
            {
                writer.WriteRef("EndBand", EndBand);
            }
            if (FloatDiff(EndBandHeight, c.EndBandHeight))
            {
                writer.WriteFloat("EndBandHeight", EndBandHeight);
            }
        }
예제 #9
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer)
        {
            MSChartObject c = writer.DiffObject as MSChartObject;

            base.Serialize(writer);

            if (DataSource != null)
            {
                writer.WriteRef("DataSource", DataSource);
            }
            if (Filter != c.Filter)
            {
                writer.WriteStr("Filter", Filter);
            }
            if (AlignXValues != c.AlignXValues)
            {
                writer.WriteBool("AlignXValues", AlignXValues);
            }
            if (AutoSeriesColumn != c.AutoSeriesColumn)
            {
                writer.WriteStr("AutoSeriesColumn", AutoSeriesColumn);
            }
            if (AutoSeriesColor != c.AutoSeriesColor)
            {
                writer.WriteStr("AutoSeriesColor", AutoSeriesColor);
            }
            if (AutoSeriesSortOrder != c.AutoSeriesSortOrder)
            {
                writer.WriteValue("AutoSeriesSortOrder", AutoSeriesSortOrder);
            }

            using (MemoryStream stream = new MemoryStream())
            {
                FChart.Serializer.Content = SerializationContents.All;
                FChart.Serializer.Save(stream);
                stream.Position = 0;
                writer.WriteValue("ChartData", stream);
            }
        }
예제 #10
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer)
        {
            if (writer.SerializeTo != SerializeTo.SourcePages)
            {
                writer.Write(Data.Columns);
                writer.Write(Data.Rows);
                writer.Write(Data.Cells);
            }
            else
            {
                RefreshTemplate(true);
            }

            base.Serialize(writer);
            MatrixObject c = writer.DiffObject as MatrixObject;

            if (AutoSize != c.AutoSize)
            {
                writer.WriteBool("AutoSize", AutoSize);
            }
            if (CellsSideBySide != c.CellsSideBySide)
            {
                writer.WriteBool("CellsSideBySide", CellsSideBySide);
            }
            if (KeepCellsSideBySide != c.KeepCellsSideBySide)
            {
                writer.WriteBool("KeepCellsSideBySide", KeepCellsSideBySide);
            }
            if (DataSource != c.DataSource)
            {
                writer.WriteRef("DataSource", DataSource);
            }
            if (Filter != c.Filter)
            {
                writer.WriteStr("Filter", Filter);
            }
            if (ShowTitle != c.ShowTitle)
            {
                writer.WriteBool("ShowTitle", ShowTitle);
            }
            if (Style != c.Style)
            {
                writer.WriteStr("Style", Style);
            }
            if (MatrixEvenStylePriority != c.MatrixEvenStylePriority)
            {
                writer.WriteValue("MatrixEvenStylePriority", MatrixEvenStylePriority);
            }
            if (SplitRows != c.SplitRows)
            {
                writer.WriteValue("SplitRows", SplitRows);
            }
            if (ManualBuildEvent != c.ManualBuildEvent)
            {
                writer.WriteStr("ManualBuildEvent", ManualBuildEvent);
            }
            if (ModifyResultEvent != c.ModifyResultEvent)
            {
                writer.WriteStr("ModifyResultEvent", ModifyResultEvent);
            }
            if (AfterTotalsEvent != c.AfterTotalsEvent)
            {
                writer.WriteStr("AfterTotalsEvent", AfterTotalsEvent);
            }
        }
예제 #11
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer)
        {
            DataBand c = writer.DiffObject as DataBand;

            base.Serialize(writer);
            if (writer.SerializeTo == SerializeTo.Preview)
            {
                return;
            }

            if (DataSource != c.DataSource)
            {
                writer.WriteRef("DataSource", DataSource);
            }
            if (RowCount != c.RowCount)
            {
                writer.WriteInt("RowCount", RowCount);
            }
            if (MaxRows != c.MaxRows)
            {
                writer.WriteInt("MaxRows", MaxRows);
            }
            if (Relation != c.Relation)
            {
                writer.WriteRef("Relation", Relation);
            }
            if (Sort.Count > 0)
            {
                writer.Write(Sort);
            }
            if (Filter != c.Filter)
            {
                writer.WriteStr("Filter", Filter);
            }
            Columns.Serialize(writer, c.Columns);
            if (PrintIfDetailEmpty != c.PrintIfDetailEmpty)
            {
                writer.WriteBool("PrintIfDetailEmpty", PrintIfDetailEmpty);
            }
            if (PrintIfDatasourceEmpty != c.PrintIfDatasourceEmpty)
            {
                writer.WriteBool("PrintIfDatasourceEmpty", PrintIfDatasourceEmpty);
            }
            if (KeepTogether != c.KeepTogether)
            {
                writer.WriteBool("KeepTogether", KeepTogether);
            }
            if (KeepDetail != c.KeepDetail)
            {
                writer.WriteBool("KeepDetail", KeepDetail);
            }
            if (IdColumn != c.IdColumn)
            {
                writer.WriteStr("IdColumn", IdColumn);
            }
            if (ParentIdColumn != c.ParentIdColumn)
            {
                writer.WriteStr("ParentIdColumn", ParentIdColumn);
            }
            if (FloatDiff(Indent, c.Indent))
            {
                writer.WriteFloat("Indent", Indent);
            }
            if (CollectChildRows != c.CollectChildRows)
            {
                writer.WriteBool("CollectChildRows", CollectChildRows);
            }
            if (ResetPageNumber != c.ResetPageNumber)
            {
                writer.WriteBool("ResetPageNumber", ResetPageNumber);
            }
        }
예제 #12
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer)
        {
            GridControl c = writer.DiffObject as GridControl;

            base.Serialize(writer);

            if (DataSource != c.DataSource)
            {
                writer.WriteRef("DataSource", DataSource);
            }
            if (AllowUserToAddRows != c.AllowUserToAddRows)
            {
                writer.WriteBool("AllowUserToAddRows", AllowUserToAddRows);
            }
            if (AllowUserToDeleteRows != c.AllowUserToDeleteRows)
            {
                writer.WriteBool("AllowUserToDeleteRows", AllowUserToDeleteRows);
            }
            WriteCellStyle(writer, "AlternatingRowsDefaultCellStyle",
                           AlternatingRowsDefaultCellStyle, c.AlternatingRowsDefaultCellStyle);
            if (AutoSizeColumnsMode != c.AutoSizeColumnsMode)
            {
                writer.WriteValue("AutoSizeColumnsMode", AutoSizeColumnsMode);
            }
            if (AutoSizeRowsMode != c.AutoSizeRowsMode)
            {
                writer.WriteValue("AutoSizeRowsMode", AutoSizeRowsMode);
            }
            if (BackgroundColor != c.BackgroundColor)
            {
                writer.WriteValue("BackgroundColor", BackgroundColor);
            }
            if (BorderStyle != c.BorderStyle)
            {
                writer.WriteValue("BorderStyle", BorderStyle);
            }
            if (CellBorderStyle != c.CellBorderStyle)
            {
                writer.WriteValue("CellBorderStyle", CellBorderStyle);
            }
            if (ColumnHeadersBorderStyle != c.ColumnHeadersBorderStyle)
            {
                writer.WriteValue("ColumnHeadersBorderStyle", ColumnHeadersBorderStyle);
            }
            WriteCellStyle(writer, "ColumnHeadersDefaultCellStyle",
                           ColumnHeadersDefaultCellStyle, c.ColumnHeadersDefaultCellStyle);
            if (ColumnHeadersHeight != c.ColumnHeadersHeight)
            {
                writer.WriteInt("ColumnHeadersHeight", ColumnHeadersHeight);
            }
            if (ColumnHeadersHeightSizeMode != c.ColumnHeadersHeightSizeMode)
            {
                writer.WriteValue("ColumnHeadersHeightSizeMode", ColumnHeadersHeightSizeMode);
            }
            if (ColumnHeadersVisible != c.ColumnHeadersVisible)
            {
                writer.WriteBool("ColumnHeadersVisible", ColumnHeadersVisible);
            }
            WriteCellStyle(writer, "DefaultCellStyle",
                           DefaultCellStyle, c.DefaultCellStyle);
            if (GridColor != c.GridColor)
            {
                writer.WriteValue("GridColor", GridColor);
            }
            if (MultiSelect != c.MultiSelect)
            {
                writer.WriteBool("MultiSelect", MultiSelect);
            }
            if (ReadOnly != c.ReadOnly)
            {
                writer.WriteBool("ReadOnly", ReadOnly);
            }
            if (RowHeadersBorderStyle != c.RowHeadersBorderStyle)
            {
                writer.WriteValue("RowHeadersBorderStyle", RowHeadersBorderStyle);
            }
            WriteCellStyle(writer, "RowHeadersDefaultCellStyle",
                           RowHeadersDefaultCellStyle, c.RowHeadersDefaultCellStyle);
            if (RowHeadersVisible != c.RowHeadersVisible)
            {
                writer.WriteBool("RowHeadersVisible", RowHeadersVisible);
            }
            if (RowHeadersWidth != c.RowHeadersWidth)
            {
                writer.WriteInt("RowHeadersWidth", RowHeadersWidth);
            }
            if (RowHeadersWidthSizeMode != c.RowHeadersWidthSizeMode)
            {
                writer.WriteValue("RowHeadersWidthSizeMode", RowHeadersWidthSizeMode);
            }
            WriteCellStyle(writer, "RowsDefaultCellStyle",
                           RowsDefaultCellStyle, c.RowsDefaultCellStyle);
            if (ScrollBars != c.ScrollBars)
            {
                writer.WriteValue("ScrollBars", ScrollBars);
            }
            if (SelectionMode != c.SelectionMode)
            {
                writer.WriteValue("SelectionMode", SelectionMode);
            }
            if (Columns.Count > 0)
            {
                writer.Write(Columns);
            }
        }