Exemplo n.º 1
0
        /// <summary>
        /// 添加统计设置
        /// </summary>
        /// <param name="symbol"></param>
        /// <param name="field"></param>
        public void AddStatSet(StatSymbolEnum symbol, string field)
        {
            StatSet ss = new StatSet()
            {
                Field = field, StatSymbol = symbol
            };

            Statsetlist.Add(ss);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 增加统计字段
        /// </summary>
        /// <param name="key"></param>
        /// <param name="statSymbol"></param>
        public void AddStatField(string key, StatSymbolEnum statSymbol)
        {
            if (string.IsNullOrWhiteSpace(key) || statSymbol == StatSymbolEnum.None)
            {
                return;
            }
            if (StatFields.ContainsKey(key))
            {
                return;
            }

            StatFields.Add(key, statSymbol);
        }