Ejemplo n.º 1
0
        /// <summary>
        ///     Creates a new <see cref="SystemSearchesGridColumnsRecord" /> object instance that is a shallow-copy of the current object instance.
        /// </summary>
        /// <returns>
        ///     The shallow-copy of the current <see cref="SystemSearchesGridColumnsRecord" /> object instance.
        /// </returns>
        public SystemSearchesGridColumnsRecord Clone()
        {
            SystemSearchesGridColumnsRecord record = new SystemSearchesGridColumnsRecord();

            record.Id                  = this.Id;
            record.AddBy               = this.AddBy;
            record.AddDate             = this.AddDate;
            record.ModBy               = this.ModBy;
            record.ModDate             = this.ModDate;
            record.SyssId              = this.SyssId;
            record.DisplayOrder        = this.DisplayOrder;
            record.FieldMapping        = this.FieldMapping;
            record.Name                = this.Name;
            record.Label               = this.Label;
            record.TooltipText         = this.TooltipText;
            record.Index               = this.Index;
            record.Width               = this.Width;
            record.Align               = this.Align;
            record.Visible             = this.Visible;
            record.VisibleCondition    = this.VisibleCondition;
            record.OutputType          = this.OutputType;
            record.ShowInBasicResults  = this.ShowInBasicResults;
            record.Cellattr            = this.Cellattr;
            record.SortType            = this.SortType;
            record.Permissions         = this.Permissions;
            record.DisplayFormat       = this.DisplayFormat;
            record.DisplayFormatTrue   = this.DisplayFormatTrue;
            record.DisplayFormatFalse  = this.DisplayFormatFalse;
            record.Key                 = this.Key;
            record.ColumnType          = this.ColumnType;
            record.ColumnHtml          = this.ColumnHtml;
            record.ColumnLinkText      = this.ColumnLinkText;
            record.ColumnLinkHref      = this.ColumnLinkHref;
            record.ColumnIconTrueIcon  = this.ColumnIconTrueIcon;
            record.ColumnIconTrueText  = this.ColumnIconTrueText;
            record.ColumnIconTrueCss   = this.ColumnIconTrueCss;
            record.ColumnIconFalseIcon = this.ColumnIconFalseIcon;
            record.ColumnIconFalseText = this.ColumnIconFalseText;
            record.ColumnIconFalseCss  = this.ColumnIconFalseCss;
            return(record);
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Indicates whether the current <see cref="SystemSearchesGridColumnsRecord" /> instance is equal to another <see cref="SystemSearchesGridColumnsRecord" /> instance.
        /// </summary>
        /// <param name="that">
        ///     The <see cref="SystemSearchesGridColumnsRecord" /> instance to be compared against this instance.
        /// </param>
        /// <returns>
        ///     True if both instances are considered equal; otherwise, false.
        /// </returns>
        public Boolean Equals(SystemSearchesGridColumnsRecord that)
        {
            Boolean result = true;

            result = result && (this.Id == that.Id);
            result = result && (this.SyssId == that.SyssId);
            result = result && (this.DisplayOrder == that.DisplayOrder);
            result = result && (this.FieldMapping.TrimOrNullify() == that.FieldMapping.TrimOrNullify());
            result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify());
            result = result && (this.Label.TrimOrNullify() == that.Label.TrimOrNullify());
            result = result && (this.TooltipText.TrimOrNullify() == that.TooltipText.TrimOrNullify());
            result = result && (this.Index.TrimOrNullify() == that.Index.TrimOrNullify());
            result = result && (this.Width == that.Width);
            result = result && (this.Align.TrimOrNullify() == that.Align.TrimOrNullify());
            result = result && (this.Visible == that.Visible);
            result = result && (this.VisibleCondition.TrimOrNullify() == that.VisibleCondition.TrimOrNullify());
            result = result && (this.OutputType == that.OutputType);
            result = result && (this.ShowInBasicResults == that.ShowInBasicResults);
            result = result && (this.Cellattr.TrimOrNullify() == that.Cellattr.TrimOrNullify());
            result = result && (this.SortType.TrimOrNullify() == that.SortType.TrimOrNullify());
            result = result && (this.Permissions.TrimOrNullify() == that.Permissions.TrimOrNullify());
            result = result && (this.DisplayFormat.TrimOrNullify() == that.DisplayFormat.TrimOrNullify());
            result = result && (this.DisplayFormatTrue.TrimOrNullify() == that.DisplayFormatTrue.TrimOrNullify());
            result = result && (this.DisplayFormatFalse.TrimOrNullify() == that.DisplayFormatFalse.TrimOrNullify());
            result = result && (this.Key == that.Key);
            result = result && (this.ColumnType.TrimOrNullify() == that.ColumnType.TrimOrNullify());
            result = result && (this.ColumnHtml.TrimOrNullify() == that.ColumnHtml.TrimOrNullify());
            result = result && (this.ColumnLinkText.TrimOrNullify() == that.ColumnLinkText.TrimOrNullify());
            result = result && (this.ColumnLinkHref.TrimOrNullify() == that.ColumnLinkHref.TrimOrNullify());
            result = result && (this.ColumnIconTrueIcon.TrimOrNullify() == that.ColumnIconTrueIcon.TrimOrNullify());
            result = result && (this.ColumnIconTrueText.TrimOrNullify() == that.ColumnIconTrueText.TrimOrNullify());
            result = result && (this.ColumnIconTrueCss.TrimOrNullify() == that.ColumnIconTrueCss.TrimOrNullify());
            result = result && (this.ColumnIconFalseIcon.TrimOrNullify() == that.ColumnIconFalseIcon.TrimOrNullify());
            result = result && (this.ColumnIconFalseText.TrimOrNullify() == that.ColumnIconFalseText.TrimOrNullify());
            result = result && (this.ColumnIconFalseCss.TrimOrNullify() == that.ColumnIconFalseCss.TrimOrNullify());
            return(result);
        }