/// <summary> /// 条件是否为true /// </summary> /// <param name="condition"></param> /// <param name="node"></param> /// <returns></returns> private static bool IsTrue_StatUsers(TableTemplate.NodeCondition nCondition, XmlNode node) { NodeCondition_StatUsers condition = (NodeCondition_StatUsers)nCondition; return(TableTemplate.IncludeString(node.Attributes["reportType"], condition.ReportType) && TableTemplate.IncludeInt(node.Attributes["period"], (int)condition.Period) && TableTemplate.CompareBool(node.Attributes["byChannel"], condition.ByChannel) && TableTemplate.CompareBool(node.Attributes["isInternalSoft"], condition.IsInternalSoft) && TableTemplate.CompareBool(node.Attributes["onlyOldUser"], condition.OnlyOldUser) && TableTemplate.IncludeInt(node.Attributes["platform"], (int)condition.Platform) && TableTemplate.IncludeInt(node.Attributes["softId"], (int)condition.SoftID) && TableTemplate.ExcludeInt(node.Attributes["excludeSoftId"], (int)condition.SoftID)); }
/// <summary> /// 条件是否为true /// </summary> /// <param name="condition"></param> /// <param name="node"></param> /// <returns></returns> private static bool IsTrue_StatRetainedUsers(TableTemplate.NodeCondition nCondition, XmlNode node) { NodeCondition_StatRetainedUsers condition = (NodeCondition_StatRetainedUsers)nCondition; return(TableTemplate.IncludeInt(node.Attributes["period"], (int)condition.Period)); }