Beispiel #1
0
        private void tsbProfitStatementPayablePayment_Click(object sender, EventArgs e)
        {
            var userAccess = userAccessRepository.GetAll();

            bool isAllowed = userAccess.Exists(u => u.FullName == Store.ActiveUser && u.ObjectName == "Rugi Laba -> Penagihan" && u.IsOpen);

            if (isAllowed || Store.IsAdministrator)
            {
                Store.ActiveReport = "ProfitStatementPayablePayment";
                var frm1 = new ReportParamPeriodUI();
                frm1.Text = "Rugi (Laba) Penagihan";
                frm1.Show();
            }
            else
            {
                MessageBox.Show("Anda tidak dapat membuka laporan ini", "Perhatian", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Beispiel #2
0
        private void tsbPayableBalanceRecap_Click(object sender, EventArgs e)
        {
            var userAccess = userAccessRepository.GetAll();

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

            if (isAllowed || Store.IsAdministrator)
            {
                Store.ActiveReport = "PayableBalanceRecap";
                var frm1 = new ReportParamPeriodUI();
                frm1.Text = "Saldo Awal Piutang - Rekap";
                frm1.Show();
            }
            else
            {
                MessageBox.Show("Anda tidak dapat membuka laporan ini", "Perhatian", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Beispiel #3
0
        private void tsbStockMinus_Click(object sender, EventArgs e)
        {
            var userAccess = userAccessRepository.GetAll();

            bool isAllowed = userAccess.Exists(u => u.FullName == Store.ActiveUser && u.ObjectName == "Persediaan -> Stock Minus" && u.IsOpen);

            if (isAllowed || Store.IsAdministrator)
            {
                Store.ActiveReport = "ProductMinus";
                var frm1 = new ReportParamPeriodUI();
                frm1.Text = "Stock Minus";

                frm1.Show();
            }
            else
            {
                MessageBox.Show("Anda tidak dapat membuka laporan ini", "Perhatian", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }