Esempio n. 1
0
        public static async Task <tbHospital> GetHospitalById(int ID)
        {
            string     url    = string.Format("api/hospital/GetHospitalById?ID={0}", ID);
            tbHospital result = await ApiRequest <tbHospital> .GetRequest(url);

            return(result);
        }
Esempio n. 2
0
        public static async Task <tbHospital> hospitaldelete(int ID)
        {
            var        url    = string.Format("api/hospital/hospitaldelete?ID={0}", ID);
            tbHospital result = await ApiRequest <tbHospital> .GetRequest(url);

            return(result);
        }
        public static async Task <tbScheduleData> getScheduleDetail(int ID = 0)
        {
            string url  = string.Format("api/Schedule/getScheduleDetail?ID={0}", ID);
            var    data = await ApiRequest <tbScheduleData> .GetRequest(url);

            return(data);
        }
        public static async Task <int> Delete(int id)
        {
            string url    = string.Format("api/faq/delete?id={0}", id);
            var    result = await ApiRequest <tbFAQ> .GetRequest(url);

            return(result.ID);
        }
        public static async Task <List <tbScheduleData> > schedulebydoctorid(int docid = 0, int hospitalid = 0, DateTime?appDate = null, string Type = "next")
        {
            string url  = string.Format("api/schedule/schedulebydoctorid?docid={0}&hospitalid={1}&appDate={2}&Type={3}", docid, hospitalid, appDate, Type);
            var    data = await ApiRequest <List <tbScheduleData> > .GetRequest(url);

            return(data);
        }
Esempio n. 6
0
        public static async Task <Personal> DeletePersonal(int id)
        {
            string   url    = string.Format("api/Personal/DeletePersonal?Id=" + id);
            Personal result = await ApiRequest <Personal> .GetRequest(url);

            return(result);
        }
Esempio n. 7
0
        // for PersonalDetail
        //public static async Task<List<PersonalDivisionSection>> GetPersonalById(int id)
        //{
        //    string url = string.Format("/api/Personal/GetPersonalById?Id=" + id);
        //    List<PersonalDivisionSection> result = await ApiRequest<List<PersonalDivisionSection>>.GetRequest(url);
        //    return result;

        //}


        public static async Task <PersonalData> GetPersonalById(int id)
        {
            string       url    = string.Format("/api/PersonalDetail/GetPersonalById?Id=" + id);
            PersonalData result = await ApiRequest <PersonalData> .GetRequest(url);

            return(result);
        }
Esempio n. 8
0
        public static async Task <IEnumerable <HospitalSchedules> > scheduledHospitalList(int doctorID, int hospitalID = 0, DateTime?AppointmentDate = null)
        {
            //int doctorID, int hospitalID = 0, DateTime? AppointmentDate= null
            string url = string.Format("api/Hospital/scheduledHospitalList?doctorID={0}&hospitalID={1}&AppointmentDate={2}", doctorID, hospitalID, AppointmentDate);

            return(await ApiRequest <IEnumerable <HospitalSchedules> > .GetRequest(url));
        }
        public static async Task <tbScheduleData> UpSertGenerateSchedule(DateTime?fromdatepicker = null, DateTime?todatepicker = null, int doctorid = 0, int hospitalid = 0, string hospitalname = null)
        {
            string url  = string.Format("api/Doctor/UpSertGenerateSchedule?fromdatepicker={0}&todatepicker={1}&doctorid={2}&hospitalid={3}&hospitalname={4}", fromdatepicker, todatepicker, doctorid, hospitalid, hospitalname);
            var    data = await ApiRequest <tbScheduleData> .GetRequest(url);

            return(data);
        }
Esempio n. 10
0
        public static async Task <List <tbScheduleData> > scheduleListbyDoctorID(int doctorid = 0, string docname = null, int hospitalid = 0, DateTime?date = null)
        {
            string url  = string.Format("api/Booking/scheduleListbyDoctorID?doctorid={0}&docname={1}&hospitalid={2}&date={3}", doctorid, docname, hospitalid, date);
            var    data = await ApiRequest <List <tbScheduleData> > .GetRequest(url);

            return(data);
        }
Esempio n. 11
0
        //Get Patient By ID
        public static async Task <tbPatient> GetPatientByID(int ID)
        {
            string url  = string.Format("api/Booking/getScheduleByID?ID={0}", ID);
            var    data = await ApiRequest <tbPatient> .GetRequest(url);

            return(data);
        }
        public static async Task <List <tbDoctorHospital> > getdoctorlistbyhospital(int hospitalID = 0)
        {
            string url  = string.Format("api/Doctor/getdoctorlistbyhospital?hospitalID={0}", hospitalID);
            var    data = await ApiRequest <List <tbDoctorHospital> > .GetRequest(url);

            return(data);
        }
Esempio n. 13
0
        // Use EduHistoryID
        public static async Task <EduHistory> GetEduHistoryId(int id)
        {
            string     url    = string.Format("api/EducationHistory/GetEduHistoryId?Id=" + id);
            EduHistory result = await ApiRequest <EduHistory> .GetRequest(url);

            return(result);
        }
Esempio n. 14
0
        //Get Doctor List by Schedule Date
        //public static async Task<PagedListClient<tbScheduleData>> GetDoctorWithPaging(string doctorname = null, string hospitalname = null, int pagesize = 10, int page = 1, DateTime? datetime = null)
        //{
        //    string url = string.Format("api/Doctor3/ListByDate?doctorname={0}&hospitalname={1}&pagesize={2}&page={3}&datetime={4}", doctorname, hospitalname, pagesize, page, datetime);
        //    var data = await ApiRequest<PagedListServer<tbScheduleData>>.GetRequest(url);

        //    var model = new PagedListClient<tbScheduleData>();
        //    var pagedList = new StaticPagedList<tbScheduleData>(data.Results, page, pagesize, data.TotalCount);
        //    model.Results = pagedList;
        //    model.TotalCount = data.TotalCount;
        //    model.TotalPages = data.TotalPages;
        //    return model;
        //}
        //public static async Task<PagedListClient<ScheduleDoctorViewModel>> GetDoctorWithPaging(DateTime? datetime = null, int pagesize = 5, int page = 1)
        //{
        //    string url = string.Format("api/Doctor3/ListByDate?datetime={0}&pagesize={1}&page={2}", datetime, pagesize, page);
        //    var data = await ApiRequest<PagedListServer<ScheduleDoctorViewModel>>.GetRequest(url);
        //    var model = new PagedListClient<ScheduleDoctorViewModel>();
        //    var pagedList = new StaticPagedList<ScheduleDoctorViewModel>(data.Results, page, pagesize, data.TotalCount);
        //    model.Results = pagedList;
        //    model.TotalCount = data.TotalCount;
        //    model.TotalPages = data.TotalPages;
        //    return model;
        //}

        //getAppointments
        public static async Task <List <tbAppointment> > getAppointments(string userid = null)
        {
            string url  = string.Format("api/Booking/getAppointments?userid={0}", userid);
            var    data = await ApiRequest <List <tbAppointment> > .GetRequest(url);

            return(data);
        }
        public static async Task <DoctorHospitalViewModel> doctordelete(int ID, int hospitalid = 0)
        {
            var url = string.Format("api/Doctor/DoctorDelete?ID={0}&hospitalid={1}", ID, hospitalid);
            DoctorHospitalViewModel result = await ApiRequest <DoctorHospitalViewModel> .GetRequest(url);

            return(result);
        }
        public static async Task <tbSchedule> scheduledelete(int ID)
        {
            var        url    = string.Format("api/Doctor/ScheduleDelete?ID={0}", ID);
            tbSchedule result = await ApiRequest <tbSchedule> .GetRequest(url);

            return(result);
        }
        public static async Task <PagedListServer <tbDoctor> > Get(int doctorid        = 0, string doctorname = null, int hospitalid = 0,
                                                                   string hospitalname = null, int pagesize   = 10, int page         = 1, int specialtyid = 0, string specialties = null)
        {
            string url = $"api/doctor/get?doctorname={doctorname}&doctorid={doctorid}&specialtyid={specialtyid}&specialties={specialties}&hospitalname={hospitalname}&hospitalid={hospitalid}&pagesize={pagesize}&page={page}";

            return(await ApiRequest <PagedListServer <tbDoctor> > .GetRequest(url));
        }
        public static async Task <DoctorSpecialityViewModel> GetDoctorById(int ID)
        {
            string url = string.Format("api/Doctor/GetDoctorByID?ID={0}", ID);
            DoctorSpecialityViewModel result = await ApiRequest <DoctorSpecialityViewModel> .GetRequest(url);

            return(result);
        }
        public static async Task <tbAppointment> StatusChange(int id, string statuschange)
        {
            string url  = string.Format("api/appointment/statuschange?id={0}&statuschange={1}", id, statuschange);
            var    data = await ApiRequest <tbAppointment> .GetRequest(url);

            return(data);
        }
        public static async Task <List <tbDoctor> > DoctorList()
        {
            string url  = string.Format("api/Doctor/DoctorList");
            var    data = await ApiRequest <List <tbDoctor> > .GetRequest(url);

            return(data);
        }
        public static async Task <List <tbSchedule> > getgenerateschedulelist(int id = 0)
        {
            string url  = string.Format("api/Doctor/getgenerateschedulelist?doctorid={0}", id);
            var    data = await ApiRequest <List <tbSchedule> > .GetRequest(url);

            return(data);
        }
        public static async Task <List <tbSchedule> > scheduleListbyDoctorID(int doctorid = 0)
        {
            string url  = string.Format("api/Doctor/scheduleListbyDoctorID?doctorid={0}", doctorid);
            var    data = await ApiRequest <List <tbSchedule> > .GetRequest(url);

            return(data);
        }
Esempio n. 23
0
        public static async Task <List <Section> > GetSectionName()
        {
            string url  = string.Format("/api/Personal/GetSection");
            var    data = await ApiRequest <List <Section> > .GetRequest(url);

            return(data);
        }
        public static async Task <tbSchedule> GetScheduleByID(int ID)
        {
            string url  = string.Format("api/Doctor/getScheduleByID?ID={0}", ID);
            var    data = await ApiRequest <tbSchedule> .GetRequest(url);

            return(data);
        }
Esempio n. 25
0
        public static async Task <List <tbBodyPart> > Get(string bodypart  = null, string symptomeng = null,
                                                          string symptomzg = null, string symptomun  = null, string specialty = null, int pagesize = 10, int page = 1)
        {
            string url = $"api/bodypart/get?bodypart={bodypart}&symptomeng={symptomeng}&symptomzg={symptomzg}&symptomun={symptomun}&" +
                         $"specialty={specialty}&pagesize={pagesize}&page={page}";

            return(await ApiRequest <List <tbBodyPart> > .GetRequest(url));
        }
Esempio n. 26
0
        public static async Task <List <tbSuggestion> > Get(string code          = null, bool isResponded  = false, string subject = "*", int managedbyid = 0,
                                                            string managedbyname = "*", DateTime?createdat = null, string userid   = "*", string username = "******", int pagesize = 15, int pageindex = 1)
        {
            //to change id with uniqueID // moviectr line 58 to fix
            string url = string.Format("api/suggestion/get?code={0}&isresponded={1}&subject={2}&managedbyid={3}&managedbyname={4}" +
                                       "createdat={5}&userid={6}&username={7}&pagesize={8}&pageindex={9}", code, isResponded, subject, managedbyid, managedbyname, createdat, userid, username);

            return(await ApiRequest <List <tbSuggestion> > .GetRequest(url));
        }
Esempio n. 27
0
        public static async Task <PagedListClient <tbAppointment> > GetAppointmentHistoryListWithPaging(string name = null, DateTime?datetime = null, int pagesize = 10, int page = 1, int hospitalid = 0)
        {
            string url  = string.Format("api/appointment/historylist?name={0}&datetime={1}&pagesize={2}&page={3}", name, datetime, pagesize, page, hospitalid);
            var    data = await ApiRequest <PagedListServer <tbAppointment> > .GetRequest(url);

            var model     = new PagedListClient <tbAppointment>();
            var pagedList = new StaticPagedList <tbAppointment>(data.Results, page, pagesize, data.TotalCount);

            model.Results    = pagedList;
            model.TotalCount = data.TotalCount;
            model.TotalPages = data.TotalPages;
            return(model);
        }
Esempio n. 28
0
        //Get Docor List By Schedule Time
        public static async Task <PagedListClient <tbDoctor> > DoctorListByTime(DateTime?fromtime = null, DateTime?totime = null, int pagesize = 0, int page = 0, int hospitalid = 0, int appointmentid = 0, DateTime?date = null)
        {
            string url  = string.Format("api/Booking/DoctorListByTime?fromtime={0}&totime={1}&pagesize={2}&page={3}&hospitalid={4}&appointmentid={5}&date={6}", fromtime, totime, pagesize, page, hospitalid, appointmentid, date);
            var    data = await ApiRequest <PagedListServer <tbDoctor> > .GetRequest(url);

            var model     = new PagedListClient <tbDoctor>();
            var pagedList = new StaticPagedList <tbDoctor>(data.Results, page, pagesize, data.TotalCount);

            model.Results    = pagedList;
            model.TotalCount = data.TotalCount;
            model.TotalPages = data.TotalPages;
            return(model);
        }
Esempio n. 29
0
        public static async Task <PagedListClient <tbHospital> > GetHospitalWithPaging(string hospitalname = null, int pagesize = 10, int page = 1)
        {
            string url  = string.Format("api/hospital/list?hospitalname={0}&pagesize={1}&page={2}", hospitalname, pagesize, page);
            var    data = await ApiRequest <PagedListServer <tbHospital> > .GetRequest(url);

            var model     = new PagedListClient <tbHospital>();
            var pagedList = new StaticPagedList <tbHospital>(data.Results, page, pagesize, data.TotalCount);

            model.Results    = pagedList;
            model.TotalCount = data.TotalCount;
            model.TotalPages = data.TotalPages;
            return(model);
        }
Esempio n. 30
0
        public static async Task <PagedListClient <ScheduleBookingViewModel> > list(int docid = 0, int specialityid = 0, string docname = null, DateTime?datetime = null, DateTime?fromtime = null, DateTime?totime = null, int pagesize = 5, int page = 1, int hospitalid = 0)
        {
            string url  = string.Format("api/Booking/list?docid={0}&specialityid={1}&docname={2}&datetime={3}&fromtime={4}&totime={5}&pagesize={6}&page={7}&hospitalid={8}", docid, specialityid, docname, datetime, fromtime, totime, pagesize, page, hospitalid);
            var    data = await ApiRequest <PagedListServer <ScheduleBookingViewModel> > .GetRequest(url);

            var model     = new PagedListClient <ScheduleBookingViewModel>();
            var pagedList = new StaticPagedList <ScheduleBookingViewModel>(data.Results, page, pagesize, data.TotalCount);

            model.Results    = pagedList;
            model.TotalCount = data.TotalCount;
            model.TotalPages = data.TotalPages;
            return(model);
        }