Exemplo n.º 1
0
        public ActionResult OpdMedRepWithDeptIdNDocId(int deptid, int docid, DateTime date)
        {
            EHMSEntities ent = new EHMSEntities();
            OpdMedicalRecordsProviders pro   = new OpdMedicalRecordsProviders();
            TodayListViewModel         model = new TodayListViewModel();

            model.DoctorId     = docid;
            model.DepartmentId = deptid;
            model.PrefDate     = date;
            model.todayList    = pro.getOpdMRdetailwithDoctorIdandDepartmentId(deptid, docid, date);

            foreach (var item in model.todayList)
            {
                int i = ent.OpdMedicalRecordMasters.Where(x => x.PatientId == item.PatinetId && x.PatientDoctorDetailID == item.PatientDoctorId).Count();
                item.count = i;
                if (i >= 1)
                {
                    var data = ent.OpdMedicalRecordMasters.Where(x => x.PatientId == item.PatinetId && x.PatientDoctorDetailID == item.PatientDoctorId).FirstOrDefault();
                    item.PatientlogId             = Convert.ToInt32(data.PatientLogId);
                    item.OpdMedicalRecordMasterId = data.OpdMedicalRecordMastetId;
                }
            }

            return(PartialView(model));
        }
Exemplo n.º 2
0
        public ActionResult GetDataFormForCommonTest(OpdMedicalRecordModel model)
        {
            OpdMedicalRecordsProviders pro = new OpdMedicalRecordsProviders();
            int i = pro.AddmoreCommonTest(model);

            if (i != 0)
            {
                return(RedirectToAction("ViewOpdMedicalRecord", new { id = model.PatientId, docid = model.DoctorId, deptid = model.DepartmentId, patientLogId = model.PatientLogId, OpdmedRecmasid = model.OpdMedicalRecordMastetId }));
            }

            return(View());
        }
Exemplo n.º 3
0
        public ActionResult OpdMedRecrdDataMedicineDoses(string Mdnamecls, int Dosescls, int DosesTimecls, int DosesDayclsspan, int OpdMrMedRefCls)
        {
            string str = "";

            OpdMedicalRecordsProviders pro = new OpdMedicalRecordsProviders();
            int i = pro.EditMedicineRefDoses(Mdnamecls, Dosescls, DosesTimecls, DosesDayclsspan, OpdMrMedRefCls);

            if (i != 0)
            {
                str = "Medicine Records Updated Success";
            }

            return(Json(str, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 4
0
        public ActionResult OpdMedRecrdDataforCommonTest(int commtestId, string shortDes, string Detail)
        {
            string str = "";
            OpdMedicalRecordsProviders pro = new OpdMedicalRecordsProviders();

            int i = pro.EditCommonTestforMedicalRecords(commtestId, shortDes, Detail);

            if (i != 0)
            {
                str = "Edit Common Test Success";
            }

            return(Json(str, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 5
0
        public ActionResult OpdMedRecrdDataforFurtherTest(int OpdMrFurtherTestId, string fTestName)
        {
            string str = "";

            OpdMedicalRecordsProviders pro = new OpdMedicalRecordsProviders();

            int i = pro.EditCommonTestforMedicalRecords(OpdMrFurtherTestId, fTestName);

            if (i != 0)
            {
                str = "Edit Further Test Success";
            }

            return(Json(str, JsonRequestBehavior.AllowGet));
        }