Пример #1
0
        private void btnShowAllReport_Click(object sender, EventArgs e)
        {
            LogDAL logDAL = new LogDAL();

            if (CurrentUser.Type == 2)
            {
                logDAL.GetGridReport(dgvReport);
            }
            else
            {
                logDAL.GetGridReport(dgvReport, CurrentUser.Email);
            }
        }
Пример #2
0
        public ReportControl(Form form) : this()
        {
            _loginControl = form;
            LogDAL logDAL = new LogDAL();

            if (CurrentUser.Type == 2)
            {
                logDAL.GetGridReport(dgvReport);
            }
            else
            {
                logDAL.GetGridReport(dgvReport, CurrentUser.Email);
            }
            GetComboBoxItems();
        }