예제 #1
0
        public ActionResult Edit(PatientViewModel model)
        {
            ModelState.Clear();
            model.Genders  = GenderManager.GetAllGenderTitle();
            model.Diseases = DiseasesManager.GetAllDiseases();

            if (model.PatientId > 0)
            {
                var patient = PatientManager.GetAllPatienById(model.PatientId) ?? new Patient();

                model.PatientId = patient.PatientId;

                model.Name           = patient.Name;
                model.Age            = patient.Age;
                model.Contact        = patient.Contact;
                model.Email          = patient.Email;
                model.SerialNumber   = patient.SerialNumber;
                model.Address        = patient.Address;
                model.CallingDate    = patient.CallingDate;
                model.VisitingtDate  = patient.VisitingtDate;
                model.AppionmentDate = patient.AppionmentDate;
                model.GenderId       = patient.GenderId;
                model.DiseasesId     = patient.DiseasesId;
                model.PatientCode    = patient.PatientCode;
            }
            return(View(model));
        }
예제 #2
0
        public ActionResult Edit(PatientMedicalHistoryViewModel model)
        {
            ModelState.Clear();


            //ViewBag.Diseases = new SelectList(DiseasesManager.GetAllDiseases(), "DiseasesId", "Name");
            //ViewBag.Patients = new SelectList(new List<Patient>(), "PatientId", "Name");
            model.Patients = PatientManager.GetAllPatient();
            model.Diseases = DiseasesManager.GetAllDiseases();
            //model.Patients = PatientManager.GetPatientByDiseasesId(model.SearchField.SearchByDiseasesId);
            if (model.PatientHistoryId > 0)
            {
                var patientsMedicalHistory =
                    PatientMedicalHistoryManager.GetHistorybyId(model.PatientHistoryId);

                model.PatientHistoryId = patientsMedicalHistory.PatientHistoryId;
                model.PatientId        = patientsMedicalHistory.PatientId;
                model.DiseasesId       = patientsMedicalHistory.DiseasesId;
                model.VitalSign        = patientsMedicalHistory.VitalSign;
                model.Medicalhistory   = patientsMedicalHistory.Medicalhistory;
                model.CreatedDate      = patientsMedicalHistory.CreatedDate;
                model.ModifiedDate     = patientsMedicalHistory.ModifiedDate;
            }

            return(View(model));
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                desiaseDropDownList.DataSource     = diseasesManager.GetAllDiseases();
                desiaseDropDownList.DataTextField  = "Name";
                desiaseDropDownList.DataValueField = "Id";
                desiaseDropDownList.DataBind();

                ListItem desiaseItem = new ListItem("Select Desiase", "-1");
                desiaseDropDownList.Items.Insert(0, desiaseItem);
            }
        }
예제 #4
0
        //
        // GET: /DiseasesManagement/
        public ActionResult Index(DiseasesManagementViewModel model)
        {
            ModelState.Clear();
            var totalrecords = 0;

            model.ManagementProcess       = model.SearchByManagementName;
            model.DiseasesList            = DiseasesManager.GetAllDiseases();
            model.DisesesClinicalFeatures = DiseasesClinicalFeatureManager.GetAllFeature();
            model.DiseasesInvestigations  = DiseasesInvestigationManager.GetAllInvestigation();
            model.DiseasesManagements     = DiseasesManagementManager.GetAllManagementByPaging(out totalrecords, model);
            model.TotalRecords            = totalrecords;

            return(View(model));
        }
예제 #5
0
        //
        // GET: /Patient/
        public ActionResult Index(PatientViewModel model)
        {
            ModelState.Clear();

            var totalrecords = 0;

            model.Name         = model.SearchByName;
            model.Genders      = GenderManager.GetAllGenderTitle();
            model.Diseases     = DiseasesManager.GetAllDiseases();
            model.Patients     = PatientManager.GetAllPatienByPaging(out totalrecords, model).Where(x => (x.VisitingtDate >= model.FromDate || model.FromDate == null) && (x.VisitingtDate <= model.ToDate || model.ToDate == null)).ToList();
            model.TotalRecords = totalrecords;


            return(View(model));
        }
예제 #6
0
        //
        // GET: /PatientCondition/
        public ActionResult Index(PatientConditionViewModel model)
        {
            ModelState.Clear();


            var totalrecords = 0;

            model.Patients          = PatientManager.GetAllPatient();
            model.Diseases          = DiseasesManager.GetAllDiseases();
            model.Services          = ServiceManager.GetAllService();
            model.PatientConditions =
                PatientConditionManager.GetAllPatientconditionByPaging(out totalrecords, model);
            model.TotalRecords = totalrecords;
            return(View(model));
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                diseaseDropDownList.DataSource     = diseasesManager.GetAllDiseases();
                diseaseDropDownList.DataTextField  = "Name";
                diseaseDropDownList.DataValueField = "Id";
                diseaseDropDownList.DataBind();

                ListItem desiaseItem = new ListItem("Select Desiase", "-1");
                diseaseDropDownList.Items.Insert(0, desiaseItem);

                GLatLng mainLocation = new GLatLng(23.684994, 90.356331);
                GMap1.setCenter(mainLocation, 7);
            }
        }
예제 #8
0
        //
        // GET: /PatientMedicalHistory/
        public ActionResult Index(PatientMedicalHistoryViewModel model, int?diseasesId, int?patientId)
        {
            ModelState.Clear();
            var totalrecords = 0;

            model.Patients = PatientManager.GetAllPatient();
            model.Diseases = DiseasesManager.GetAllDiseases();
            //model.Patients = PatientManager.GetPatientByDiseasesId(model.SearchField.SearchByDiseasesId);
            //GetAllPatientByDiseasesId(3);

            //ViewBag.DiseasesList = new SelectList(DiseasesManager.GetAllDiseases(), "DiseasesId", "Name");
            //ViewBag.PatientList = new SelectList(new List<Patient>(), "PatientId", "Name");
            model.PatientsMedicalHistories =
                PatientMedicalHistoryManager.GetAllMedicalHistoriesByPaging(out totalrecords, model, diseasesId, patientId);
            model.TotalRecords = totalrecords;
            return(View(model));
        }
예제 #9
0
 public ActionResult Edit(DiseasesManagementViewModel model)
 {
     ModelState.Clear();
     model.DiseasesList            = DiseasesManager.GetAllDiseases();
     model.DisesesClinicalFeatures = DiseasesClinicalFeatureManager.GetAllFeature();
     model.DiseasesInvestigations  = DiseasesInvestigationManager.GetAllInvestigation();
     if (model.DiseasesManagementId > 0)
     {
         var diseaseManagement = DiseasesManagementManager.GetDeasesManagementById(model.DiseasesManagementId) ?? new DiseasesManagement();
         model.DiseasesManagementId    = diseaseManagement.DiseasesManagementId;
         model.ManagementProcess       = diseaseManagement.ManagementProcess;
         model.Prognosis               = diseaseManagement.Prognosis;
         model.DiseasesId              = diseaseManagement.DiseasesId;
         model.ClinicalFeatureId       = diseaseManagement.ClinicalFeatureId;
         model.DiseasesInvestigationId = diseaseManagement.DiseasesInvestigationId;
     }
     return(View(model));
 }
예제 #10
0
        public ActionResult Edit(PatientConditionViewModel model)
        {
            ModelState.Clear();
            model.Patients = PatientManager.GetAllPatient();
            model.Diseases = DiseasesManager.GetAllDiseases();
            model.Services = ServiceManager.GetAllService();

            if (model.PatientConditionId > 0)
            {
                PatientCondition patientCondition =
                    PatientConditionManager.GetPatientconditionById(model.PatientConditionId);
                model.PatientConditionId = patientCondition.PatientConditionId;
                model.PatienId           = patientCondition.PatienId;
                model.DiseasesId         = patientCondition.DiseasesId;
                model.ServiceId          = patientCondition.ServiceId;
                model.Beforetreatment    = patientCondition.Beforetreatment;
                model.AfterTreatment     = patientCondition.AfterTreatment;
                model.Createddate        = patientCondition.Createddate;
                model.ModifiedDate       = patientCondition.ModifiedDate;
            }
            return(View(model));
        }
예제 #11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            logIn      = (LogIn)Session["User"];
            centercode = logIn.CenterCode;
            Center aCenter = centerManager.GetCenterIdbyCenterCode(centercode);

            centerName.Text = aCenter.Name;
            centerId        = aCenter.Id;
            if (!IsPostBack)
            {
                medicineDropDownList.DataSource     = medicineManager.GetAllMedicineInfobyCenterId(centerId);
                medicineDropDownList.DataTextField  = "Name";
                medicineDropDownList.DataValueField = "Id";
                medicineDropDownList.DataBind();

                diseaseDropDownList.DataSource     = diseasesManager.GetAllDiseases();
                diseaseDropDownList.DataTextField  = "Name";
                diseaseDropDownList.DataValueField = "Id";
                diseaseDropDownList.DataBind();

                doctorDropDownList.DataSource     = doctorManager.GetAllDoctor(centerId);
                doctorDropDownList.DataTextField  = "Name";
                doctorDropDownList.DataValueField = "Id";
                doctorDropDownList.DataBind();

                ListItem medicineItem = new ListItem("Select Medicine", "-1");
                medicineDropDownList.Items.Insert(0, medicineItem);

                ListItem diseaseItem = new ListItem("Select Disease", "-1");
                diseaseDropDownList.Items.Insert(0, diseaseItem);

                ListItem doctorItem = new ListItem("Select Doctor", "-1");
                doctorDropDownList.Items.Insert(0, doctorItem);

                ListItem doseItem = new ListItem("Select One", "-1");
                doesDropDownList.Items.Insert(0, doseItem);
            }
        }
예제 #12
0
 public void LoadAllDiseases()
 {
     viewDiseasesGridView.DataSource = diseasesManager.GetAllDiseases();
     viewDiseasesGridView.DataBind();
 }