public OutpatientController(IOutpatientReportService outpatientReportService, IOutpatientService outpatientService, IMedicalServiceSituation medicalService, IHomeInformation homeService)
 {
     this.outpatientReportService = outpatientReportService;
     this.outpatientService       = outpatientService;
     this.medicalService          = medicalService;
     this.homeService             = homeService;
 }
 public OutpatientController(ICoreService core, IOutpatientService outpatient, IPatientService patient, IConceptService concept)
 {
     ICoreService       = core;
     IPatientService    = patient;
     IConceptService    = concept;
     IOutpatientService = outpatient;
 }
        /// <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)));
        }