Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UPConfigFieldControlField"/> class.
 /// </summary>
 /// <param name="source">
 /// The source.
 /// </param>
 /// <param name="mode">
 /// The mode.
 /// </param>
 /// <param name="tabConfig">
 /// The tab configuration.
 /// </param>
 public UPConfigFieldControlField(UPConfigFieldControlField source, int mode, FieldControlTab tabConfig)
 {
     this.Field = source.Field;
     this.TabIndependentFieldIndex = source.TabIndependentFieldIndex;
     this.Attributes        = source.Attributes.AttributesForMode(mode);
     this.TargetFieldNumber = source.TargetFieldNumber;
     this.ExplicitLabel     = source.ExplicitLabel;
     this.Function          = source.Function;
     this.TabConfig         = tabConfig;
 }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UPCombinedResultField"/> class.
        /// </summary>
        /// <param name="field">
        /// The field.
        /// </param>
        public UPCombinedResultField(UPConfigFieldControlField field)
        {
            if (field == null)
            {
                return;
            }

            this.FieldIndices = new List <int> {
                field.TabIndependentFieldIndex
            };
            this.Attributes = field.Attributes;
            this.FirstField = field;
        }
Beispiel #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UPConfigFieldControlField"/> class.
        /// </summary>
        /// <param name="source">
        /// The source.
        /// </param>
        /// <param name="tabIndependentFieldIndex">
        /// Index of the tab independent field.
        /// </param>
        /// <param name="tabConfig">
        /// The tab configuration.
        /// </param>
        /// <param name="rootInfoAreaId">
        /// The root information area identifier.
        /// </param>
        /// <param name="rootLinkId">
        /// The root link identifier.
        /// </param>
        public UPConfigFieldControlField(
            UPConfigFieldControlField source,
            int tabIndependentFieldIndex,
            FieldControlTab tabConfig,
            string rootInfoAreaId,
            int rootLinkId)
        {
            if (rootInfoAreaId != null && rootInfoAreaId == source.Field.InfoAreaId && rootLinkId >= 0 && rootLinkId == source.Field.LinkId)
            {
                this.Field = UPCRMField.FieldWithFieldIdInfoAreaIdLinkId(source.Field.FieldId, source.Field.InfoAreaId, -1);
            }
            else
            {
                this.Field = source.Field;
            }

            this.TabIndependentFieldIndex = tabIndependentFieldIndex;
            this.Attributes        = source.Attributes;
            this.TargetFieldNumber = source.TargetFieldNumber;
            this.ExplicitLabel     = source.ExplicitLabel;
            this.Function          = source.Function;
            this.TabConfig         = tabConfig;
        }