Ejemplo n.º 1
0
        private void mnuRptAbsenceDetail_Click(object sender, EventArgs e)
        {
            var userAccess = userAccessRepository.GetAll();

            bool isAllowed = userAccess.Exists(u => u.FullName == Store.ActiveUser &&
                                               u.ObjectName == "Absensi -> Rinci" && u.IsOpen);

            if (isAllowed || Store.IsAdministrator)
            {
                Store.ActiveReport = "AbsenceDetail";

                var frmReportParamYearUI = new ReportParamYearUI();
                frmReportParamYearUI.Show();
                frmReportParamYearUI.Text = "Absensi - Rinci";
            }
            else
            {
                MessageBox.Show("Anda tidak dapat membuka laporan ini", "Perhatian", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Ejemplo n.º 2
0
 public ReportUI(ReportParamYearUI frmReportParamYear)
 {
     this.frmReportParamYear = frmReportParamYear;
     InitializeComponent();
 }