Ejemplo n.º 1
0
        public override string BuildSingleStrategyString(Strategy strategy)
        {
            AttentionStrategyName name = (AttentionStrategyName)strategy.Name;

            if (strategy.Type == StrategyType.Other)
            {
                return("");
            }
            return(StandardStrategyStringBuilder.BuildStrategyString(strategy));
        }
Ejemplo n.º 2
0
        public override void AddStrategy(Strategy strategy)
        {
            AttentionStrategyName name = (AttentionStrategyName)strategy.Name;

            if (name == AttentionStrategyName.ProjectCode)
            {
                strategy.RelationFieldName = "ProjectCode";
                strategy.Type = StrategyType.StringEqual;
            }
            else
            {
                strategy.Type = StrategyType.Other;
            }
            base.AddStrategy(strategy);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 生成SQL语句
        /// </summary>
        /// <param name="strategy"></param>
        /// <returns></returns>
        public override string BuildSingleStrategyString(Strategy strategy)
        {
            AttentionStrategyName name = (AttentionStrategyName)strategy.Name;

            if (strategy.Type == StrategyType.Other)
            {
                switch (name)
                {
                case AttentionStrategyName.AccessRange:
                    return("");
                }
                return(AccessRanggeQuery.BuildAccessRangeString(strategy.GetParameter(0), strategy.GetParameter(1), strategy.GetParameter(2), "taskattention", "MasterCode", "UserCode"));
            }
            return(StandardStrategyStringBuilder.BuildStrategyString(strategy));
        }