コード例 #1
0
        private void tsbPayablePaymentRinci_Click(object sender, EventArgs e)
        {
            var userAccess = userAccessRepository.GetAll();

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

            if (isAllowed || Store.IsAdministrator)
            {
                Store.ActiveReport = "PayablePaymentDetail";
                var frm1 = new ReportParamDateUI();
                frm1.Text = "Pelunasan Piutang - Rinci";
                frm1.Show();
            }
            else
            {
                MessageBox.Show("Anda tidak dapat membuka laporan ini", "Perhatian", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
コード例 #2
0
        private void tsbBillReceiptRecap_Click(object sender, EventArgs e)
        {
            var userAccess = userAccessRepository.GetAll();

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

            if (isAllowed || Store.IsAdministrator)
            {
                Store.ActiveReport = "BillReceiptRecap";
                var frm1 = new ReportParamDateUI();
                frm1.Text = "TTNT";
                frm1.Show();
            }
            else
            {
                MessageBox.Show("Anda tidak dapat membuka laporan ini", "Perhatian", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }