private void setValue(decimal?value)
        {
            if (_declarationValue == null)
            {
                if (value.HasValue)
                {
                    var id = (uint)G.DeclarationValue.QUERRY()
                             .ADD
                             .C(C.DeclarationValue.Pollution, _pollution.ID)
                             .C(C.DeclarationValue.Declaration, _declaration.ID)
                             .C(C.DeclarationValue.To, value.Value)
                             .DO()[0].Value;

                    _declarationValue = Helpers.LogicHelper.DeclarationValueLogic.FirstModel(id);
                }
            }
            else
            {
                _declarationValue.To = value.Value;
            }
        }
 public DeclarationValueInternal(MAC_2.Model.DeclarationValue declarationValue)
     : base(declarationValue.Pollution.BindName)
 {
     this._declarationValue = declarationValue;
 }