//指定专科三年内同比数据
        public void GetDeptYearOnYearOutPatientTreatment(HttpContext context, IPatientsExperenceService service)
        {
            var startDateTime = DateTime.Parse(context.Request["sd"].ToString());
            var endDateTime   = DateTime.Parse(context.Request["ed"].ToString());
            var specialistId  = Convert.ToInt32(context.Request["sid"]);

            String[] hositalDistricts = context.Request["hd"].ToString()
                                        .Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
            var serializer = new JavaScriptSerializer();

            context.Response.Write(serializer.Serialize(service.GetDeptTreatmentAverageTimeYearToYear(startDateTime, endDateTime, specialistId, hositalDistricts)));
        }
 public List <List <DeptAverageTreatmentTime> > GetDeptTreatmentAverageTimeYearToYear(DateTime startDateTime, DateTime endDateTime,
                                                                                      Int32 deptId,
                                                                                      [ModelBinder(typeof(ArrayModelBinder))] String[] hospitalDistrict)
 {
     return(patientsExperenceService.GetDeptTreatmentAverageTimeYearToYear(startDateTime, endDateTime, deptId, hospitalDistrict));
 }