Пример #1
0
 public PastAppointmentClass(AppointmentSearch frm) : base(frm)
 {
     _frm.lblFrom.Visible = true;
     _frm.lblTo.Visible   = true;
     _frm.dtpFrom.Visible = true;
     _frm.dtpTo.Visible   = true;
 }
 public AppointmentSearchClassBase(AppointmentSearch frm)
 {
     _frm = frm;
     _frm.lblFrom.Visible = false;
     _frm.lblTo.Visible   = false;
     _frm.dtpFrom.Visible = false;
     _frm.dtpTo.Visible   = false;
     _ad = new AppointmentData();
     // DisableIndexChangedEvents();
     //SetDataSource();
 }
Пример #3
0
        //private void addNewAppointmentToolStripMenuItem_Click(object sender, EventArgs e)
        //{
        //    if (!Jarvis.CurrentUser.UserHasPermissionForAction("Appointment", "Add"))
        //        return;
        //    Appointments.AddEditAppointment  frm = new Appointments.AddEditAppointment(new DoctorAppointment());
        //    frm.ShowDialog();
        //}

        private void viewAppointmentsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!Jarvis.CurrentUser.UserHasPermissionForAction("Appointment", "View"))
            {
                return;
            }
            if (Application.OpenForms["AppointmentSearch"] as AppointmentSearch == null)
            {
                AppointmentSearch frm = new AppointmentSearch(this);
                frm.MdiParent       = this;
                frm.Dock            = DockStyle.Fill;
                frm.FormBorderStyle = FormBorderStyle.None;
                frm.Show();
            }
            else
            {
                AppointmentSearch frm1 = (AppointmentSearch)Application.OpenForms["AppointmentSearch"];
                frm1.Focus();
            }
        }
Пример #4
0
        private void appointmentsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Watch this space, coming soon in the next version", "Coming soon", MessageBoxButtons.OK, MessageBoxIcon.Information);
            return;

            if (!Jarvis.CurrentUser.UserHasPermissionForAction("Appointment", "View"))
            {
                return;
            }
            if (Application.OpenForms["AppointmentSearch"] as AppointmentSearch == null)
            {
                AppointmentSearch frm = new AppointmentSearch(this);
                frm.MdiParent       = this;
                frm.Dock            = DockStyle.Fill;
                frm.FormBorderStyle = FormBorderStyle.None;
                frm.Show();
            }
            else
            {
                AppointmentSearch frm1 = (AppointmentSearch)Application.OpenForms["AppointmentSearch"];
                frm1.Focus();
            }
        }
Пример #5
0
 public AppointmentsWaitingClosureClass(AppointmentSearch frm) : base(frm)
 {
 }
Пример #6
0
 public ActiveAppointmentsClass(AppointmentSearch frm) : base(frm)
 {
 }