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

            if (strategy.Type == StrategyType.Other)
            {
                switch (name)
                {
                case SupplierTypeStrategyName.ChildNodesIncludeSelf:
                    return("");
                }
                string     code  = strategy.GetParameter(0);
                string     text3 = "";
                EntityData supplierTypeByCode = ProjectDAO.GetSupplierTypeByCode(code);
                if (supplierTypeByCode.HasRecord())
                {
                    text3 = supplierTypeByCode.GetString("FullCode");
                }
                supplierTypeByCode.Dispose();
                return(string.Format(" FullCode like '{0}%' ", text3));
            }
            return(StandardStrategyStringBuilder.BuildStrategyString(strategy));
        }