protected override void OnLoaded()
 {
     base.OnLoaded();
     if (TimeFrom == null)
     {
         TimeFrom = new TimeLimitValue(Session);
         TimeType = TimeTypes.All;
     }
     if (TimeTo == null)
     {
         TimeTo = new TimeLimitValue(Session);
     }
 }
        public override void AfterConstruction()
        {
            base.AfterConstruction();
            Name   = string.Empty;
            Gender = GenderFor.All;
            IsMultipleChoiceList = false;
            Criteria             = string.Empty;
            TimeType             = TimeTypes.All;
            TimeFrom             = new TimeLimitValue(Session);
            TimeTo     = new TimeLimitValue(Session);
            IsRequired = true;

            // проставляем дефолтный код
            Code = GetDefaultCode();
        }