コード例 #1
0
        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);
            }
        }
コード例 #3
0
 public PayablePaymentHistoryUI(PayablePaymentUI frmPayablePayment)
 {
     payablePaymentRepository = ServiceLocator.GetObject <IPayablePaymentRepository>();
     this.frmPayablePayment   = frmPayablePayment;
     InitializeComponent();
 }