Ejemplo n.º 1
0
 protected override void OnLoaded()
 {
     base.OnLoaded();
     if (TimeFrom == null)
     {
         TimeFrom = new TimeLimitValue(Session);
         TimeType = TimeTypes.All;
     }
     if (TimeTo == null)
     {
         TimeTo = new TimeLimitValue(Session);
     }
 }
Ejemplo n.º 2
0
        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();
        }