コード例 #1
0
        public bool SaveSchedule(ScheduleDO s)
        {
            try
            {
                _objServiceDAL.SaveSchedule(s.ServiceTimingId, s.ServiceId, s.Name, s.Address, s.Sunday, s.Monday, s.Tuesday, s.Wednesday, s.Thursday, s.Friday, s.Saturday, s.StartTime, s.EndTime, s.PatientDuration, s.IsApprovalSystem, s.IsApprovalNotificationSMS, s.IsApprovalNotificationEmail, s.MaxAppointmentDays, s.IsDefaultSddress, s.IsCarParkFacility, s.IsFCFS, s.MaxApps, s.AppointmentType, s.Conditions);

                return(true);
            }
            catch
            {
                return(false);
            }
        }
コード例 #2
0
        public ScheduleDO GetScheduleById(int scheduleId)
        {
            DataTable dtSchedule = _objServiceDAL.GetScheduleById(scheduleId);

            ScheduleDO s = null;

            if (dtSchedule.Rows.Count > 0)
            {
                s = new ScheduleDO();
                s.ServiceTimingId             = Convert.ToInt32(dtSchedule.Rows[0]["ServiceTimingId"].ToString());
                s.ServiceId                   = Convert.ToInt32(dtSchedule.Rows[0]["ServiceId"].ToString());
                s.Address                     = dtSchedule.Rows[0]["Address"].ToString();
                s.Name                        = dtSchedule.Rows[0]["ScheduleName"].ToString();
                s.Sunday                      = Convert.ToBoolean(dtSchedule.Rows[0]["Sunday"].ToString());
                s.Monday                      = Convert.ToBoolean(dtSchedule.Rows[0]["Monday"].ToString());
                s.Tuesday                     = Convert.ToBoolean(dtSchedule.Rows[0]["Tuesday"].ToString());
                s.Wednesday                   = Convert.ToBoolean(dtSchedule.Rows[0]["Wednesday"].ToString());
                s.Thursday                    = Convert.ToBoolean(dtSchedule.Rows[0]["Thursday"].ToString());
                s.Friday                      = Convert.ToBoolean(dtSchedule.Rows[0]["Friday"].ToString());
                s.Saturday                    = Convert.ToBoolean(dtSchedule.Rows[0]["Saturday"].ToString());
                s.StartTime                   = dtSchedule.Rows[0]["StartTime"].ToString();
                s.EndTime                     = dtSchedule.Rows[0]["EndTime"].ToString();
                s.PatientDuration             = Convert.ToInt32(dtSchedule.Rows[0]["PatientDuration"].ToString());
                s.IsApprovalSystem            = Convert.ToBoolean(dtSchedule.Rows[0]["IsApprovalSystem"].ToString());
                s.IsApprovalNotificationSMS   = Convert.ToBoolean(dtSchedule.Rows[0]["IsApprovalNotificationSMS"].ToString());
                s.IsApprovalNotificationEmail = Convert.ToBoolean(dtSchedule.Rows[0]["IsApprovalNotificationEmail"].ToString());
                s.MaxAppointmentDays          = Convert.ToInt32(dtSchedule.Rows[0]["MaxAppointmentDays"].ToString());
                s.IsDefaultSddress            = Convert.ToBoolean(dtSchedule.Rows[0]["IsDefaultAddress"].ToString());
                s.IsCarParkFacility           = Convert.ToBoolean(dtSchedule.Rows[0]["IsCarParkFacility"].ToString());
                s.IsFCFS                      = Convert.ToBoolean(dtSchedule.Rows[0]["IsFCFS"].ToString());
                s.MaxApps                     = Convert.ToInt32(dtSchedule.Rows[0]["MaxApps"].ToString());
                s.AppointmentType             = Convert.ToInt32(dtSchedule.Rows[0]["AppointmentType"].ToString());
                s.Conditions                  = dtSchedule.Rows[0]["Conditions"].ToString();
            }

            return(s);
        }
コード例 #3
0
        public ScheduleDO GetScheduleById(int scheduleId)
        {
            DataTable dtSchedule = _objServiceDAL.GetScheduleById(scheduleId);

            ScheduleDO s = null;

            if (dtSchedule.Rows.Count > 0)
            {
                s = new ScheduleDO();
                s.ServiceTimingId = Convert.ToInt32(dtSchedule.Rows[0]["ServiceTimingId"].ToString());
                s.ServiceId = Convert.ToInt32(dtSchedule.Rows[0]["ServiceId"].ToString());
                s.Address = dtSchedule.Rows[0]["Address"].ToString();
                s.Name = dtSchedule.Rows[0]["ScheduleName"].ToString();
                s.Sunday = Convert.ToBoolean(dtSchedule.Rows[0]["Sunday"].ToString());
                s.Monday = Convert.ToBoolean(dtSchedule.Rows[0]["Monday"].ToString());
                s.Tuesday = Convert.ToBoolean(dtSchedule.Rows[0]["Tuesday"].ToString());
                s.Wednesday = Convert.ToBoolean(dtSchedule.Rows[0]["Wednesday"].ToString());
                s.Thursday = Convert.ToBoolean(dtSchedule.Rows[0]["Thursday"].ToString());
                s.Friday = Convert.ToBoolean(dtSchedule.Rows[0]["Friday"].ToString());
                s.Saturday = Convert.ToBoolean(dtSchedule.Rows[0]["Saturday"].ToString());
                s.StartTime = dtSchedule.Rows[0]["StartTime"].ToString();
                s.EndTime = dtSchedule.Rows[0]["EndTime"].ToString();
                s.PatientDuration = Convert.ToInt32(dtSchedule.Rows[0]["PatientDuration"].ToString());
                s.IsApprovalSystem = Convert.ToBoolean(dtSchedule.Rows[0]["IsApprovalSystem"].ToString());
                s.IsApprovalNotificationSMS = Convert.ToBoolean(dtSchedule.Rows[0]["IsApprovalNotificationSMS"].ToString());
                s.IsApprovalNotificationEmail = Convert.ToBoolean(dtSchedule.Rows[0]["IsApprovalNotificationEmail"].ToString());
                s.MaxAppointmentDays = Convert.ToInt32(dtSchedule.Rows[0]["MaxAppointmentDays"].ToString());
                s.IsDefaultSddress = Convert.ToBoolean(dtSchedule.Rows[0]["IsDefaultAddress"].ToString());
                s.IsCarParkFacility = Convert.ToBoolean(dtSchedule.Rows[0]["IsCarParkFacility"].ToString());
                s.IsFCFS = Convert.ToBoolean(dtSchedule.Rows[0]["IsFCFS"].ToString());
                s.MaxApps = Convert.ToInt32(dtSchedule.Rows[0]["MaxApps"].ToString());
                s.AppointmentType = Convert.ToInt32(dtSchedule.Rows[0]["AppointmentType"].ToString());
                s.Conditions = dtSchedule.Rows[0]["Conditions"].ToString();
            }

            return s;
        }
コード例 #4
0
        public bool SaveSchedule(ScheduleDO s)
        {
            try
            {
                _objDoctorDAL.SaveSchedule(s.DoctorTimingId, s.DoctorId, s.Name, s.Address, s.Sunday, s.Monday, s.Tuesday, s.Wednesday, s.Thursday, s.Friday, s.Saturday, s.StartTime, s.EndTime, s.PatientDuration, s.IsApprovalSystem, s.IsApprovalNotificationSMS,s.IsApprovalNotificationEmail, s.MaxAppointmentDays, s.IsDefaultSddress, s.IsCarParkFacility, s.IsFCFS, s.MaxApps, s.AppointmentType, s.Conditions);

                return true;
            }
            catch
            {
                return false;
            }
        }