Example #1
0
            public PatientAverageCost GetOutPatientAverageCost(DateTime startTime, DateTime endTime)
            {
                var result = new PatientAverageCost();

                result = new PatientAverageCost
                {
                    PatientCost    = this.DomainFactory.CreatePatientCost(EnumOutPatientCategories.OUTPATIENT_EMERGEMENT).GetPatientCost(startTime, endTime),
                    RegisterPerson = this.DomainFactory.CreateRegisterPerson(EnumOutPatientCategories.OUTPATIENT_EMERGEMENT).GetRegisterPerson(startTime, endTime)
                };
                return(result);
            }
Example #2
0
        /// <summary>
        /// 门诊药物平均费用.
        /// </summary>
        /// <param name="startTime">The start time.</param>
        /// <param name="endTime">The end time.</param>
        /// <returns>ActionResult.</returns>
        public ActionResult GetOutPatientAverageCostView(DateTime startTime, DateTime endTime)
        {
            ViewBag.startTime = startTime;
            ViewBag.endTime   = endTime.AddDays(1).AddMilliseconds(-1);
            endTime           = endTime.AddDays(1);
            var viewModel = new PatientAverageCost();

            try
            {
                IPatientAverageCost iAverageCost = this.ReporterViewFactory.CreatePatientAverageCost(EnumOutPatientCategories.OUTPATIENT_EMERGEMENT);
                viewModel = iAverageCost.GetOutPatientAverageCost(startTime, endTime);
            }
            catch (Exception)
            {
                viewModel = null;
            }

            return(PartialView("_GetOutpatientAverageCost", viewModel));
        }