Beispiel #1
0
        public FormAdvancedSearch(FormStaff formStaff,
                                  CtrlLogs logs,
                                  MySqlConnection conn,
                                  string userID)
        {
            InitializeComponent();

            this.formStaff = formStaff;
            this.windows   = WindowList.Staff;
            this.logs      = logs;
            this.controls  = ControlsList.Logs;

            this.pnlSearchPat.Visible = true;
            this.pnlSearchDoc.Visible = false;
            this.pnlPatDoc.Visible    = false;

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

            this.UpdateHeader();
        }
Beispiel #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()
Beispiel #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()