public PayablePaymentSalesListUI(PayablePaymentUI frmPayablePayment)
        {
            salesRepository = ServiceLocator.GetObject <ISalesRepository>();

            this.frmPayablePayment = frmPayablePayment;
            InitializeComponent();
        }
示例#2
0
        private void mnuPelunasanPiutang_Click(object sender, EventArgs e)
        {
            var userAccess = userAccessRepository.GetAll();

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

            if (isAllowed || Store.IsAdministrator)
            {
                var frmPayablePayment = new PayablePaymentUI(this);
                frmPayablePayment.MdiParent = this;
                frmPayablePayment.Show();
            }
            else
            {
                MessageBox.Show("Anda tidak dapat membuka form ini", "Perhatian", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
 public PayablePaymentHistoryUI(PayablePaymentUI frmPayablePayment)
 {
     payablePaymentRepository = ServiceLocator.GetObject <IPayablePaymentRepository>();
     this.frmPayablePayment   = frmPayablePayment;
     InitializeComponent();
 }