public ChartModel CompanyCompare(List <CompanyDetails> details, List <CompanyInfo> infos)
        {
            var common = new CommonMethod();

            var model = new ChartModel();

            model.title = "After";
            model.xName = "m";
            model.xData = new string[] { "S", "After" };
            model.yName = "项目";
            var serieslist = new List <series>();

            foreach (CompanyDetails detail in details)
            {
                var after = common.AfterTaxSalary(detail);
                var s     = new series();
                s.name = infos.Where(p => p.Id == detail.CompanyId).ToList()[0].CompanyName;
                s.type = "bar";
                s.data = new string[] { after.HousingBenefit.ToString(), after.TaxSalary.ToString() };
                serieslist.Add(s);
            }
            model.series = serieslist;
            return(model);
        }