/// <summary>
        /// 获取门诊挂号人数
        /// </summary>
        /// <param name="context"></param>
        /// <param name="service"></param>
        public void GetVisitors(HttpContext context, IOutpatientService service)
        {
            DateTime startDateTime = DateTime.Parse(context.Request["sd"]);
            DateTime endDateTime   = DateTime.Parse(context.Request["ed"]);

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

            context.Response.Write(serializer.Serialize(service.GetRegisterVisitors(startDateTime, endDateTime, hositalDistricts)));
        }
 public List <RegisterVisitors> GetRegisterVisitors(DateTime startDateTime, DateTime endDateTime, [ModelBinder(typeof(ArrayModelBinder))] String[] hospitalDistrict)
 {
     return(outpatientService.GetRegisterVisitors(startDateTime, endDateTime, hospitalDistrict));
 }