Exemple #1
0
        public DrugTopThirtyDescription GetDrugTopThirtyDescription(DateTime startTime, DateTime endTime)
        {
            var result = new DrugTopThirtyDescription();

            try
            {
                result.DrugDoctorCostList = this.factory.CreateInPatientDrugDoctorCostList().GetDrugDoctorCostList(startTime, endTime);
            }
            catch (Exception e)
            {
                throw new InvalidOperationException(String.Format("数据库读取错误! {0}", e.Message));
            }
            return(result);
        }
Exemple #2
0
        public ActionResult GetTopThirtyDrugPrescriptionCost(DateTime startTime, DateTime endTime)
        {
            ViewBag.startTime = startTime;
            ViewBag.endTime   = endTime.AddDays(1).AddMilliseconds(-1);
            endTime           = endTime.AddDays(1);
            var viewModel = new DrugTopThirtyDescription();

            try
            {
                viewModel = this.ReporterViewFactory.CreateDrugTopThirtyDescription().GetDrugTopThirtyDescription(startTime, endTime);
            }
            catch (Exception)
            {
                viewModel = null;
            }
            return(View(viewModel));
        }