예제 #1
0
        public FormAdvancedSearch(FormStaff formStaff,
                                  CtrlCheckAppt checkAppt,
                                  MySqlConnection conn,
                                  string userID)
        {
            InitializeComponent();

            this.formStaff = formStaff;
            this.windows   = WindowList.Staff;
            this.checkAppt = checkAppt;
            this.controls  = ControlsList.Check_Appt;

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

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

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