示例#1
0
        public ActionResult appointmenthistory()
        {
            CheckOnClick.Models.DoctorProfile History = new CheckOnClick.Models.DoctorProfile();

            string LiveDoc = Session["DoctorUserName"].ToString();

            DataSet data = History.getappointHistory(LiveDoc);



            List <DoctorProfile> HistoryList = new List <DoctorProfile>();


            foreach (DataRow dr in data.Tables[0].Rows)
            {
                HistoryList.Add(new DoctorProfile
                {
                    APPOINT_ID     = Convert.ToInt32(dr["APPOINT_ID"]),
                    PATIENT_NAME   = dr["PATIENT_NAME"].ToString(),
                    SCHEDULE_DATE  = dr["SCHEDULE_DATE"].ToString(),
                    SCHEDULE_TIME  = dr["SCHEDULE_TIME"].ToString(),
                    APPOINT_STATUS = dr["APPOINT_STATUS"].ToString(),
                    BOOKED_DATE    = dr["BOOKED_DATE"].ToString(),
                    APPOINT_DESC   = dr["APPOINT_DESC"].ToString(),
                    PRESCRIPTION   = dr["PRESCRIPTION"].ToString(),
                    MEDICINE       = dr["MEDICINE"].ToString(),
                    CANCEL_REASON  = dr["CANCEL_REASON"].ToString(),
                });
            }
            var display = HistoryList;

            return(Json(new { data = display }, JsonRequestBehavior.AllowGet));
        }
示例#2
0
        public ActionResult UpdateProfile(CheckOnClick.Models.DoctorProfile profile)
        {
            string liveDoc = Session["DoctorUserName"].ToString();

            if (profile.Updating(profile.Contact, profile.City, profile.State, profile.Country, profile.Pincode, liveDoc))
            {
                return(Json(new { Success = true }));
            }
            return(Json(new { Error = true }));
        }
示例#3
0
        //displaying Today reminders
        public string getTodayReminders()
        {
            CheckOnClick.Models.DoctorProfile getTodayReminder = new CheckOnClick.Models.DoctorProfile();

            string LiveDoc = Session["DoctorUserName"].ToString();

            DataSet data = getTodayReminder.getTodayRemindershow(LiveDoc);


            string JSONstring = string.Empty;

            JSONstring = JsonConvert.SerializeObject(data);
            return(JSONstring);
        }