/// <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); } }
protected override void InnerInterpret(IRuleHandler handler) { if (ChildDateExp != null) { ChildDateExp.Interpret(handler); ValueCalculated = ((DateTime)ChildDateExp.ValueCalculated).DayOfWeek; } else { ValueCalculated = DayOfWeek.Value; } }