Exemplo n.º 1
0
        public void EnsureEvaluate()
        {
            var year   = DateTime.Now.Year;
            var month  = DateTime.Now.Month;
            var season = "一";

            if (month >= 1 && month <= 3)
            {
                season = "一";
            }
            else if (month >= 4 && month <= 6)
            {
                season = "二";
            }
            else if (month >= 7 && month <= 9)
            {
                season = "三";
            }
            else if (month >= 10 && month <= 12)
            {
                season = "四";
            }

            var name = string.Format("{0}年第{1}季度", year, season);

            service.EnsureEvaluate(name, DateTime.Now);
        }