/// <summary>
        /// 根据员工编码,季度获取员工信息。如果找不到则取最新的员工信息
        /// </summary>
        /// <param name="employeeCode"></param>
        /// <param name="employees"></param>
        /// <param name="quarterString"></param>
        /// <returns></returns>
        public static Employee GetEmployeeInfoByQuarter(string employeeCode, IEnumerable <Employee> employees, string quarterString)
        {
            var first_employees = (from e in employees
                                   where e.EmployeeCode == employeeCode && DateTimeUtility.GetQuarterString(e.Month) == quarterString
                                   orderby e.Month descending
                                   select e).FirstOrDefault();

            if (first_employees == null)
            {
                first_employees = GetLatestEmployeeInfo(employeeCode, employees);
            }

            return(first_employees);
        }
        public static HCO GetHCOInfobyQuarter(string hcoId, IEnumerable <Sales> sales, string quarterString)
        {
            var first_hco = (from s in sales
                             where DateTimeUtility.GetQuarterString(s.Month) == quarterString && s.HCOId == hcoId
                             orderby s.Month descending
                             select s).FirstOrDefault();


            HCO h = new HCO();

            if (first_hco != null)
            {
                h.ID        = hcoId;
                h.Potential = first_hco.Potential;
                h.Level     = first_hco.Level;
            }
            else
            {
                h = GetLatestHCOInfo(hcoId, sales);
            }

            return(h);
        }