private void OpenReport()
        {
            CloseCurrentOpenView(currentViewOpened);
            adminReportController = new AdminReportController(this, new frmAdminReport());

            adminReportController.frmAdminReport.controller  = adminReportController;
            adminReportController.frmAdminReport.eController = eClinicalsController;

            AddToContainer(adminReportController, MIDDLE);
            this.lblStatus.Text = ("Ready...");
            // adminReportController.frmAdminReport.btnOpen.Click += new EventHandler(btnOpen_Click);           /
            // adminReportController.frmPatientSearch.dgvSearchResults.CellClick += new DataGridViewCellEventHandler(dgvSearchResults_CellClick);
        }
Beispiel #2
0
        private void RefreshLabelValues()
        {
            int         LimitedCount = 0;
            List <User> userList     = UserController.GetAllUser();

            foreach (User item in userList)
            {
                if (item.RoleID == 3)
                {
                    LimitedCount++;
                }
            }

            adminController      = new AdminReportController();
            lblUserCount.Text    = adminController.GetCount("User");
            lblWordCount.Text    = adminController.GetCount("Dictionary");
            lblPayments.Text     = adminController.GetCount("Payment");
            lblLimitedUsers.Text = LimitedCount.ToString();
            lblPayments.Text     = _paymentController.GetTotalPrice().ToString() + " $";
        }