//选定科室指定时间的对比(按科室分组)
        public void GetDeptTreatmentAverageTimeGroupByDept(HttpContext context, IPatientsExperenceService service)
        {
            var startDateTime = DateTime.Parse(context.Request["sd"].ToString());
            var endDateTime   = DateTime.Parse(context.Request["ed"].ToString());


            Int32[]  sids             = context.Request["sid"].Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(n => Convert.ToInt32(n)).ToArray();
            String[] hositalDistricts = context.Request["hd"].ToString()
                                        .Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
            var serializer = new JavaScriptSerializer();

            context.Response.Write(serializer.Serialize(service.GetDeptTreatmentAverageTimeGroupByDept(service.GetDeptTreatmentAverageTimeGroupByTime(startDateTime, endDateTime, sids, hositalDistricts))));
        }
 public List <List <DeptAverageTreatmentTime> > GetDeptTreatmentAverageTimeGroupByDept(DateTime sTime, DateTime eTime, [ModelBinder(typeof(ArrayModelBinder))] Int32[] depts,
                                                                                       [ModelBinder(typeof(ArrayModelBinder))] string[] hospitalDistrict)
 {
     return(patientsExperenceService.GetDeptTreatmentAverageTimeGroupByDept(
                patientsExperenceService.GetDeptTreatmentAverageTimeGroupByTime(sTime, eTime, depts, hospitalDistrict)));
 }