示例#1
0
        private void ll_logout_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.Dispose();
            f_ReceptionHome rec = new f_ReceptionHome();

            rec.Show();
        }
示例#2
0
        private void bCancel_Click_1(object sender, EventArgs e)
        {
            this.Dispose();
            f_ReceptionHome rec = new f_ReceptionHome();

            rec.Show();
        }
        private void ll_home_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            f_PatientDetails current = this;

            f_ReceptionHome rec = new f_ReceptionHome();

            rec.Show();
            this.Dispose();
        }
        public bool validateAppointmentForm(f_ScheduleAppointment app, string mrntext, string daytext, string monthtext, string yeartext, string hourtext, string mintext, string amorpmtext)//appointment form validation
        {
            if (mrntext == "" || daytext == "DD" || monthtext == "MM" || yeartext == "YYYY" || hourtext == "Hr" || mintext == "Min")
            {
                return(false);
            }
            else
            {
                dbAppointment db   = new dbAppointment();
                bool          flag = db.checkMrn(mrntext);
                if (flag == true)
                {
                    app.Hide();
                    bAppointment appoint = new bAppointment(mrntext, daytext, monthtext, yeartext, hourtext, mintext, amorpmtext);
                    if (appoint.scheduleAppointment())
                    {
                        MessageBox.Show("Appointment fixed");
                        f_ReceptionHome rec = new f_ReceptionHome();
                        rec.Show();
                    }

                    else
                    {
                        MessageBox.Show("Time slot already booked! Try again!");
                        f_ReceptionHome rec = new f_ReceptionHome();
                        rec.Show();
                    }

                    return(true);
                }
                else
                {
                    MessageBox.Show("The MRN entered is not valid! Please enter a valid number");
                    return(true);
                }
            }
        }