Ejemplo n.º 1
0
        public FormAdvancedSearch(FormStaff formStaff,
                                  CtrlAddAppt addAppt,
                                  MySqlConnection conn,
                                  int search,
                                  string userID)
        {
            InitializeComponent();

            this.formStaff = formStaff;
            this.windows   = WindowList.Staff;
            this.addAppt   = addAppt;
            this.controls  = ControlsList.Add_Appt;
            this.search    = search;


            if (search == 1)
            {
                this.pnlSearchPat.Visible = true;
                this.pnlSearchDoc.Visible = false;
            }
            else
            {
                this.pnlSearchPat.Visible = false;
                this.pnlSearchDoc.Visible = true;
            }

            this.pnlPatDoc.Visible = false;

            this.conn   = conn;
            this.userID = userID;

            this.UpdateHeader();
        }
Ejemplo n.º 2
0
        } // private void SuspendCurrentLayout

        private void SwapControls()
        {
            if (currentWindow == (int)ButtonCount.LOGS)
            {
                cache_ctrLogs = ctrlLogs;
            }
            else if (currentWindow == (int)ButtonCount.REGISTRATION)
            {
                cache_ctrlRegi = ctrlRegi;
            }
            else if (currentWindow == (int)ButtonCount.CHECK_APPOINTMENT)
            {
                cache_ctrlCheck = ctrlCheck;
            }
            else if (currentWindow == (int)ButtonCount.ADD_APPOINTMENT)
            {
                cache_ctrlAdd = ctrlAdd;
            }
            else
            {
            }
        } // private void SwapControls()
Ejemplo n.º 3
0
        public FormStaff(MySqlConnection conn, string userID, string firstName, string lastName, string userType)
        {
            InitializeComponent();

            this.conn      = conn;
            this.userID    = userID;
            this.firstName = firstName;
            this.lastName  = lastName;
            this.userType  = userType;

            formQueue = new FormQueue(conn);
            formQueue.Show();
            formQueue.WindowState = FormWindowState.Minimized;

            this.ctrlLogs  = new CtrlLogs(this, formQueue, conn, userID);
            this.ctrlRegi  = new CtrlRegi(this, conn, userID);
            this.ctrlCheck = new CtrlCheckAppt(this, conn, userID);
            this.ctrlAdd   = new CtrlAddAppt(this, conn, userID);

            pnlControl.SuspendLayout();
            pnlControl.Controls.Clear();
            pnlControl.Controls.Add(ctrlLogs);
            pnlControl.ResumeLayout();

            lblLastName.Text  = lastName;
            lblFirstName.Text = firstName;
            lblUserID.Text    = userID;
            lblUserType.Text  = userType;

            sysTimer.Interval = 100;
            sysTimer.Tick    += new EventHandler(UpdateSystemTime);
            sysTimer.Enabled  = true;

            lblAction.Text = "LOG PATIENT";

            pnlControl.HorizontalScroll.Enabled = false;
            pnlControl.HorizontalScroll.Visible = false;
        } // Class Constructor()