Exemple #1
0
 public DecimalAlgorithmColumn(GridDecimalAlgorithmColumn GridDecimalAlgorithmColumn) : base(GridDecimalAlgorithmColumn)
 {
     _precision     = GridDecimalAlgorithmColumn.Precision;
     _formatstring  = GridDecimalAlgorithmColumn.FormatString;
     _bshowwhenzero = GridDecimalAlgorithmColumn.bShowWhenZero;
     _pointlength   = GridDecimalAlgorithmColumn.PointLength;
 }
Exemple #2
0
 protected DecimalAlgorithmCalculator(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     _precision   = (PrecisionType)info.GetValue("Precision", typeof(PrecisionType));
     _pointlength = info.GetInt32("PointLength");
     if (_version >= 90)
     {
         _bshowwhenzero = (StimulateBoolean)info.GetValue("bShowWhenZero", typeof(StimulateBoolean));
     }
 }
Exemple #3
0
 public DBDecimal(DBDecimal dbdecimal) : base(dbdecimal)
 {
     _datasource    = dbdecimal.DataSource;
     _precision     = dbdecimal.Precision;
     _formatstring  = dbdecimal.FormatString;
     _sortoption    = dbdecimal.SortOption;
     _bshowwhenzero = dbdecimal.bShowWhenZero;
     _pointlength   = dbdecimal.PointLength;
 }
Exemple #4
0
 public CalculateColumn(GridDecimal griddecimal)
     : base(griddecimal)
 {
     _name           = griddecimal.Name;
     _precision      = griddecimal.Precision;
     _formatstring   = griddecimal.FormatString;
     _sortoption     = griddecimal.SortOption;
     _bshowwhenzero  = griddecimal.bShowWhenZero;
     _calculateindex = griddecimal.CalculateIndex;
     _pointlength    = griddecimal.PointLength;
 }
Exemple #5
0
 public CalculateColumn(CalculateColumn calculatecolumn)
     : base(calculatecolumn)
 {
     _name           = calculatecolumn.Name;
     _expression     = calculatecolumn.Expression;
     _precision      = calculatecolumn.Precision;
     _formatstring   = calculatecolumn.FormatString;
     _sortoption     = calculatecolumn.SortOption;
     _bshowwhenzero  = calculatecolumn.bShowWhenZero;
     _calculateindex = calculatecolumn.CalculateIndex;
     _pointlength    = calculatecolumn.PointLength;
     _mapname        = calculatecolumn.GetMapName;
 }
Exemple #6
0
 public Calculator(GridDecimalAlgorithmColumn gridcalculatecolumn)
     : base(gridcalculatecolumn)
 {
     _expression     = gridcalculatecolumn.Name;
     _calculateindex = gridcalculatecolumn.CalculateIndex;
     _operator       = gridcalculatecolumn.Operator;
     _unit           = gridcalculatecolumn.Unit;
     _precision      = gridcalculatecolumn.Precision;
     _formatstring   = gridcalculatecolumn.FormatString;
     _bshowwhenzero  = gridcalculatecolumn.bShowWhenZero;
     _caption        = gridcalculatecolumn.Caption;
     _pointlength    = gridcalculatecolumn.PointLength;
 }
Exemple #7
0
 public Calculator(GridDecimal griddecimal) : base(griddecimal)
 {
     _bfromgriddecimal = true;
     _expression       = griddecimal.DataSource.Name;
     _calculateindex   = griddecimal.CalculateIndex;
     _operator         = griddecimal.Operator;
     _unit             = griddecimal.Unit;
     _precision        = griddecimal.Precision;
     _formatstring     = griddecimal.FormatString;
     _bshowwhenzero    = griddecimal.bShowWhenZero;
     _caption          = griddecimal.Caption;
     _pointlength      = griddecimal.PointLength;
 }
Exemple #8
0
 public Calculator(Calculator calculator) : base(calculator)
 {
     _name           = calculator.Name;
     _expression     = calculator.Expression;
     _bshowwhenzero  = calculator.bShowWhenZero;
     _precision      = calculator.Precision;
     _formatstring   = calculator.FormatString;
     _operator       = calculator.Operator;
     _unit           = calculator.Unit;
     _calculateindex = calculator.CalculateIndex;
     _pointlength    = calculator.PointLength;
     //_baseonscript = calculator.BaseOnScript;
     _mapname = calculator.GetMapName;
 }
Exemple #9
0
 protected DBDecimal(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     _datasource               = (DataSource)info.GetValue("DataSource", typeof(DataSource));
     _precision                = (PrecisionType)info.GetValue("Precision", typeof(PrecisionType));
     _formatstring             = info.GetString("FormatString");
     _pointlength              = info.GetInt32("PointLength");
     _sortoption               = new SortOption();
     _sortoption.SortDirection = (SortDirection)info.GetValue("Direction", typeof(SortDirection));
     if (_version > 1)
     {
         _sortoption.Priority = info.GetInt32("Priority");
     }
     if (_version >= 90)
     {
         _bshowwhenzero = (StimulateBoolean)info.GetValue("bShowWhenZero", typeof(StimulateBoolean));
     }
 }
Exemple #10
0
        protected Calculator(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            _expression     = info.GetString("Expression");
            _calculateindex = info.GetInt32("CalculateIndex");
            _operator       = (OperatorType)info.GetValue("Operator", typeof(OperatorType));
            _unit           = (DataSource)info.GetValue("Unit", typeof(DataSource));
            _precision      = (PrecisionType)info.GetValue("Precision", typeof(PrecisionType));
            _formatstring   = info.GetString("FormatString");
            _pointlength    = info.GetInt32("PointLength");

            if (_version >= 20)
            {
                _mapname = info.GetString("MapName");
            }
            if (_version >= 90)
            {
                _bshowwhenzero = (StimulateBoolean)info.GetValue("bShowWhenZero", typeof(StimulateBoolean));
            }
        }
Exemple #11
0
 protected CalculateColumn(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     _expression               = info.GetString("Expression");
     _precision                = (PrecisionType)info.GetValue("Precision", typeof(PrecisionType));
     _formatstring             = info.GetString("FormatString");
     _calculateindex           = info.GetInt32("CalculateIndex");
     _pointlength              = info.GetInt32("PointLength");
     _sortoption               = new SortOption();
     _sortoption.SortDirection = (SortDirection)info.GetValue("Direction", typeof(SortDirection));
     if (_version > 1)
     {
         _sortoption.Priority = info.GetInt32("Priority");
     }
     if (_version >= 20)
     {
         _mapname = info.GetString("MapName");
     }
     if (_version >= 90)
     {
         _bshowwhenzero = (StimulateBoolean)info.GetValue("bShowWhenZero", typeof(StimulateBoolean));
     }
 }
Exemple #12
0
 public DecimalAlgorithmCalculator(DecimalAlgorithmCalculator decimalalgorithmcalculator) : base(decimalalgorithmcalculator)
 {
     _precision     = decimalalgorithmcalculator.Precision;
     _bshowwhenzero = decimalalgorithmcalculator.bShowWhenZero;
     _pointlength   = decimalalgorithmcalculator.PointLength;
 }