Exemplo n.º 1
0
        internal void FromDataField(DataField df)
        {
            this.SetAllNull();

            if (df.Name != null) this.Name = df.Name.Value;
            if (df.Field != null) this.Field = df.Field.Value;
            if (df.Subtotal != null) this.Subtotal = df.Subtotal.Value;
            if (df.ShowDataAs != null) this.ShowDataAs = df.ShowDataAs.Value;
            if (df.BaseField != null) this.BaseField = df.BaseField.Value;
            if (df.BaseItem != null) this.BaseItem = df.BaseItem.Value;
            if (df.NumberFormatId != null) this.NumberFormatId = df.NumberFormatId.Value;
        }
Exemplo n.º 2
0
        private void SetAllNull()
        {
            this.Name = "";
            this.Field = 1;
            this.Subtotal = DataConsolidateFunctionValues.Sum;
            this.ShowDataAs = ShowDataAsValues.Normal;
            this.BaseField = -1;

            // why the weird default value? It's 2^20 + 2^8 for what it's worth...
            this.BaseItem = 1048832;

            this.NumberFormatId = null;
        }