示例#1
0
        /*
         * public void SetValue(DataPoint _DataPoint, bool ForceReplace = false)
         * {
         *  if (!ForceReplace)
         *      DataPoints.AddOrReplace(_DataPoint);
         *  else
         *      DataPoints.Add(_DataPoint);
         * }
         */

        public void SetValue(string _FieldCode, decimal _Value)
        {
            DataPoints.AddOrReplace(new DataPoint {
                FieldCode = _FieldCode, Value = _Value, Report = this, Bank = Bank
            });
        }