예제 #1
0
        public ActionResult Index(string FromDate, string ToDate, string departmentlist, string PatientId, string PatientName)
        {
            EmergecyMasterModel model = new EmergecyMasterModel();

            model.EmergencyMasterModelList = new List <EmergecyMasterModel>();
            ViewBag.fromdate   = FromDate;
            ViewBag.todate     = ToDate;
            ViewBag.department = departmentlist;
            if (departmentlist == "3")
            {
                if (PatientId == null && PatientName == null)
                {
                    model.EmergencyMasterModelList = new List <EmergecyMasterModel>();
                    return(View(model));
                }
                else
                {
                    ViewBag.Id    = PatientId;
                    ViewBag.Name  = PatientName;
                    ViewBag.print = 1;
                    return(View(model));
                }
            }
            if (departmentlist != "4")
            {
                ViewBag.List = MisPorvider.GetOpdList(FromDate, ToDate, departmentlist);
            }

            return(View(model));
        }
예제 #2
0
        public JsonResult PieChartDepartmentsWise()
        {
            MisPorvider pro   = new MisPorvider();
            MisModel    model = new MisModel();

            model.PieChartDepartmentswiseViewModelList = pro.GetDeptWiseDetailForPie();
            return(Json(model.PieChartDepartmentswiseViewModelList, JsonRequestBehavior.AllowGet));
        }
예제 #3
0
        public ActionResult MedicalRecordIndex()
        {
            MisModel    model = new MisModel();
            MisPorvider pro   = new MisPorvider();

            model = pro.GetMrDischargeReports();
            return(View(model));
        }
예제 #4
0
        public ActionResult DoctorCommission(string FromDateString, string TodateString)
        {
            MisModel    model = new MisModel();
            MisPorvider prop  = new MisPorvider();

            model.DoctorCommissionViewModelList = prop.GetDoctorCommissionListForMis(FromDateString, TodateString);
            return(View(model));
        }
예제 #5
0
        public ActionResult PathoReportDetails(string JvDate, string JvDateEnd)
        {
            MisModel    model = new MisModel();
            MisPorvider pro   = new MisPorvider();

            model.PathoTestDetailViewModelList = pro.GetMisPathoTestDetails(JvDate, JvDateEnd);
            return(View(model));
        }
예제 #6
0
        public ActionResult DoctorDtlById(int id)
        {
            MisModel    model = new MisModel();
            MisPorvider pro   = new MisPorvider();

            model = pro.GetEHSDoctorDetailsByDocId(id);
            return(PartialView("_Details1", model));
        }
예제 #7
0
        public ActionResult Report(int id)
        {
            EmergecyMasterModel model = new EmergecyMasterModel();

            model = MisPorvider.GetEmergencyDetails(id);

            return(View(model));
        }
예제 #8
0
        public ActionResult getGenderReport(string genderlist, string FromDate, string ToDate)
        {
            EmergecyMasterModel model = new EmergecyMasterModel();

            ViewBag.fromdate = FromDate;
            ViewBag.todate   = ToDate;
            ViewBag.List     = MisPorvider.GetGenderTypeProvider(FromDate, ToDate, genderlist);
            return(View(model));
        }
예제 #9
0
        public ActionResult GetDistrictReportIndex(string districtlist, string FromDate, string ToDate)
        {
            EmergecyMasterModel model = new EmergecyMasterModel();

            ViewBag.fromdate = FromDate;
            ViewBag.todate   = ToDate;
            ViewBag.List     = MisPorvider.GetDistrictProvider(FromDate, ToDate, districtlist);
            return(View(model));
        }
예제 #10
0
        public ActionResult GetVdcMunReportIndex(string vdcmunlist, string FromDate, String ToDate)
        {
            EmergecyMasterModel model = new EmergecyMasterModel();

            ViewBag.fromdate = FromDate;
            ViewBag.todate   = ToDate;
            ViewBag.List     = MisPorvider.GetVdcMunProvider(FromDate, ToDate, vdcmunlist);
            return(View(model));
        }
예제 #11
0
        public ActionResult AgeReportIndex(string agegrouplist)
        {
            EmergecyMasterModel model = new EmergecyMasterModel();


            ViewBag.List = MisPorvider.GetAgerangeListProvider(agegrouplist);

            return(View(model));
        }
예제 #12
0
        public ActionResult GetZoneReportIndex(string zonelist, string FromDate, string ToDate)
        {
            //EmergecyMasterModel model = new EmergecyMasterModel();
            //ViewBag.List = MisPorvider.GetZoneProvider(zonelist);
            //return View(model);
            EmergecyMasterModel model = new EmergecyMasterModel();

            ViewBag.fromdate = FromDate;
            ViewBag.todate   = ToDate;
            ViewBag.list     = MisPorvider.GetZoneProvider(FromDate, ToDate, zonelist);
            return(View(model));
        }
예제 #13
0
        public ActionResult DoctorReportIndex(string FromDate, string ToDate, string doctorlist)
        {
            EmergecyMasterModel model = new EmergecyMasterModel();

            ViewBag.fromdate = FromDate;
            ViewBag.todate   = ToDate;
            //ViewBag.department = departmentlist;
            ViewBag.doctor = doctorlist;
            {
                ViewBag.List = MisPorvider.GetDoctorListProvider(FromDate, ToDate, doctorlist);
            }
            return(View(model));
        }
예제 #14
0
        public ActionResult ShowMRDischargeForm(string IpNumber, string OpdNumber)
        {
            MisModel model = new MisModel();

            if (!string.IsNullOrEmpty(IpNumber) && !string.IsNullOrEmpty(OpdNumber))
            {
                //model.ObjIPDetailViewModel.IPId = Convert.ToInt32(IpNumber);
                //model.ObjIPDetailViewModel.OpdId = Convert.ToInt32(OpdNumber);
                MisPorvider pro      = new MisPorvider();
                int         IpNubmer = Convert.ToInt32(IpNumber);
                model = pro.GetIPDPatientDetailsFromIPNumber(IpNubmer);
            }
            return(View(model));
        }
예제 #15
0
        public ActionResult MRDischarge(string value)
        {
            MisModel    model    = new MisModel();
            MisPorvider pro      = new MisPorvider();
            int         IpNubmer = Convert.ToInt32(0);

            if (!string.IsNullOrEmpty(value))
            {
                IpNubmer = Convert.ToInt32(value);
                model    = pro.GetIPDPatientDetailsFromIPNumber(IpNubmer);
            }


            return(PartialView("_IPsearchValue", model));
        }
예제 #16
0
        public ActionResult SaveMedicalRecordDisharge(MisModel model)
        {
            MisPorvider pro = new MisPorvider();

            if (model.ObjMRRecordViewModel.ICDName != null)
            {
                var IcdNumber = model.ObjMRRecordViewModel.ICDName.Substring(model.ObjMRRecordViewModel.ICDName.IndexOf('~') + 1);
                using (EHMSEntities ent = new EHMSEntities())
                {
                    model.ObjMRRecordViewModel.ICDCode = Convert.ToInt32(ent.SetupIcdCodes.Where(m => m.CodeNumber == IcdNumber).Select(m => m.ICDCODEID).FirstOrDefault());
                }
            }

            pro.InsertMRRecordDischarge(model);
            return(RedirectToAction("MedicalRecordIndex"));
        }
예제 #17
0
        public ActionResult BillAmountDifference(string FromDateString, string TodateString)
        {
            MisModel    model = new MisModel();
            MisPorvider prop  = new MisPorvider();

            if (string.IsNullOrEmpty(FromDateString))
            {
                FromDateString = DateTime.Now.ToShortDateString();
            }
            if (string.IsNullOrEmpty(TodateString))
            {
                TodateString = DateTime.Now.ToShortDateString();
            }
            model.BillAmountDifferenceModelList = prop.GetBillingAmountDifference(FromDateString, TodateString);
            return(View(model));
        }
예제 #18
0
        public ActionResult GeneralAndPayableReport(string FromDateString, string TodateString, string Type)
        {
            MisModel    model = new MisModel();
            MisPorvider prop  = new MisPorvider();

            if (string.IsNullOrEmpty(FromDateString))
            {
                FromDateString = DateTime.Now.ToShortDateString();
            }
            if (string.IsNullOrEmpty(TodateString))
            {
                TodateString = DateTime.Now.ToShortDateString();
            }
            if (string.IsNullOrEmpty(Type))
            {
                Type = "0";
            }
            model.GeneralPayableReportModelList = prop.GetBillingReportGeneralAndPayable(FromDateString, TodateString, Type);
            return(View(model));
        }
예제 #19
0
        public ActionResult PayDoctorCommission(string FromDateString, string TodateString, string DoctorName)
        {
            MisModel    model = new MisModel();
            MisPorvider prop  = new MisPorvider();

            if (string.IsNullOrEmpty(DoctorName))
            {
                model.DoctorCommissionViewModelList = prop.GetDoctorCommissionListByDocId(0, FromDateString, TodateString);
            }
            else
            {
                int ReferDocId = Convert.ToInt32(DoctorName);
                if (ReferDocId == 1009)
                {
                    model.DoctorCommissionViewModelList = prop.GetDoctorCommissionListByDocId(0, FromDateString, TodateString);
                }
                else
                {
                    model.DoctorCommissionViewModelList = prop.GetDoctorCommissionListByDocId(ReferDocId, FromDateString, TodateString);
                }
            }
            return(View(model));
        }