コード例 #1
0
        public DebtPaymentPurchaseListUI(DebtPaymentUI frmDebtPayment)
        {
            purchaseRepository = ServiceLocator.GetObject <IPurchaseRepository>();

            this.frmDebtPayment = frmDebtPayment;
            InitializeComponent();
        }
コード例 #2
0
        private void mnuPembayaranHutang_Click(object sender, EventArgs e)
        {
            var userAccess = userAccessRepository.GetAll();

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

            if (isAllowed || Store.IsAdministrator)
            {
                var frmDebtPayment = new DebtPaymentUI(this);
                frmDebtPayment.MdiParent = this;
                frmDebtPayment.Show();
            }
            else
            {
                MessageBox.Show("Anda tidak dapat membuka form ini", "Perhatian", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
コード例 #3
0
 public DebtPaymentHistoryUI(DebtPaymentUI frmDebtPayment)
 {
     debtPaymentRepository = ServiceLocator.GetObject <IDebtPaymentRepository>();
     this.frmDebtPayment   = frmDebtPayment;
     InitializeComponent();
 }