// GET: Patients/Create
        public ActionResult Add()
        {
            AddAppointment addappointment = new AddAppointment();

            addappointment.Doctors = db.Doctors.ToList();
            return(View(addappointment));
        }
Пример #2
0
        private void appointmentButton_Click_1(object sender, RoutedEventArgs e)
        {
            AddAppointment newAppt = new AddAppointment();

            newAppt.ShowDialog();
            refreshNotifications();
            refreshWeek(0);
        }
Пример #3
0
 public AddedAction(ICommandService commandService,
                    AddAppointment addAppointmentCommand,
                    Patient patient)
 {
     this.commandService        = commandService;
     this.addAppointmentCommand = addAppointmentCommand;
     this.patient = patient;
 }
Пример #4
0
        private void appointmentButton_Click_1(object sender, RoutedEventArgs e)
        {
            //ScheduleAppointment newAppt = new ScheduleAppointment();
            //newAppt.ShowDialog();
            AddAppointment f = new AddAppointment();

            f.ShowDialog();
            refreshNotifications();
            refreshCalendar(0);
        }
Пример #5
0
        private void AddAppointment_BTN_Click(object sender, EventArgs e)
        {
            AddAppointment addAppointment = new AddAppointment();

            addAppointment.SetPatientToAcceptedPatient(this.patientController.GetPatientByID(this.selectedPatientID));
            DialogResult result = addAppointment.ShowDialog();

            if (result == DialogResult.Yes)
            {
                this.GetAppointmentData_ForSelectedPatient(this.selectedPatientID);
            }
        }
Пример #6
0
        // GET: Appointments/Edit/5
        public ActionResult Edit(int id)
        {
            string       query        = "select * from appointments where appointmentId =@id";
            var          Parameter    = new SqlParameter("@id", id);
            Appointments appointments = db.Appointments.SqlQuery(query, Parameter).FirstOrDefault();

            List <Doctors> doctors   = db.Doctors.SqlQuery("select * from doctors").ToList();
            AddAppointment viewmodel = new AddAppointment();

            viewmodel.Doctors     = doctors;
            viewmodel.Appointment = appointments;
            return(View(viewmodel));
        }
 private void item_Click(object sender, EventArgs e)
 {
     try
     {
         Calendar cal = this;
         if (m_enableAppointmentAddContextMenu)
         {
             AddAppointment AppAdd = new AddAppointment(ref cal);
             AppAdd.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         Trace.WriteLine(ex.ToString());
     }
 }
        private void btnAdd_Click_1(object sender, EventArgs e)
        {
            int Count = 0;

            if (dgvLichHen.RowCount > 1)
            {
                for (int i = 0; i <= dgvLichHen.RowCount; i++)
                {
                    Count++;
                }
            }

            using (AddAppointment add = new AddAppointment(Count))
            {
                add.ShowDialog();
            }
            dgvLichHen.DataSource = GetAll();
            BindingData();
        }
Пример #9
0
 public void ToAddAppointmentTab()
 {
     if (SelectedUser != null)
     {
         if (SelectedUser.Role == "Patient")
         {
             var addAppointmentWindow = new AddAppointment(SelectedUser.IdUser);
             var activeWindow         = Application.Current.Windows.OfType <Window>().SingleOrDefault(x => x.IsActive);
             addAppointmentWindow.Show();
             activeWindow.Close();
         }
         else
         {
             MessageBox.Show("This is not a patient!");
         }
     }
     else
     {
         MessageBox.Show("Please select a user");
     }
 }
Пример #10
0
        public async Task <IActionResult> AddNewAppointment([FromBody] AddAppointment command)
        {
            await _busPublisher.SendAsync(command.Bind(x => x.AppointmentId, Guid.NewGuid()), null);

            return(Accepted());
        }
Пример #11
0
        private void allAddApp_button_Click(object sender, EventArgs e)
        {
            AddAppointment aa = new AddAppointment();

            aa.Show();
        }
Пример #12
0
        private void AddAppointment_Click(object sender, RoutedEventArgs e)
        {
            AddAppointment AddAppointmentPage = new AddAppointment();

            MainFrame.Navigate(AddAppointmentPage);
        }
Пример #13
0
 public AddedAction BuildAddedAction(AddAppointment command, Patient patient)
 {
     return(new AddedAction(commandService, command, patient));
 }
        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            AddAppointment appt = new AddAppointment();

            appt.Show();
        }