示例#1
0
 /// <summary>
 /// Интерпретирует определение даты элемента
 /// </summary>
 /// <param name="date"></param>
 /// <param name="handler"></param>
 protected void InterpretChildDateExp(IRuleHandler handler)
 {
     if (ChildDateExp != null)
     {
         ChildDateExp.Interpret(handler);
         MoveDateCalculated = (DateTime)ChildDateExp.ValueCalculated;
     }
     else
     {
         MoveDateCalculated = handler.Settings.Date.AddDays((int)DayMoveCount);
     }
 }
示例#2
0
        protected override void InnerInterpret(IRuleHandler handler)
        {
            if (ChildDateExp != null)
            {
                ChildDateExp.Interpret(handler);

                ValueCalculated = ((DateTime)ChildDateExp.ValueCalculated).DayOfWeek;
            }
            else
            {
                ValueCalculated = DayOfWeek.Value;
            }
        }