示例#1
0
 private static bool CheckIsSatisfaction(ExpressionInfo info, EXPRESSIONTRIGERTYPE expressonType, int labelId)
 {
     if (info.TriggerType != expressonType)
     {
         return(false);
     }
     if (!info.IsTimeRange(DateUtil.GetTodayDt()))
     {
         return(false);
     }
     if (labelId > 0)
     {
         if (info.LabelId == labelId.ToString())
         {
             return(GlobalData.DiaryElementModel.IsCanUseElement(int.Parse(info.DialogId)));
         }
         return(false);
     }
     return(true);
 }