Example #1
0
        public SalesmanListUI(PayableBalanceUI frmPayableBalance)
        {
            InitializeComponent();
            this.frmPayableBalance = frmPayableBalance;
            formActive             = "PayableBalance";

            salesmanRepository = ServiceLocator.GetObject <ISalesmanRepository>();
        }
Example #2
0
        public CustomerListUI(PayableBalanceUI frmPayableBalance)
        {
            InitializeComponent();
            customerRepository = ServiceLocator.GetObject <ICustomerRepository>();

            this.frmPayableBalance = frmPayableBalance;
            formActive             = "PayableBalance";
        }
Example #3
0
        public ProductListUI(PayableBalanceUI frmPayableBalance)
        {
            productQtyRepository = ServiceLocator.GetObject <IProductQtyRepository>();

            this.frmPayableBalance = frmPayableBalance;
            formActive             = "PayableBalanceUI";

            InitializeComponent();
        }
Example #4
0
        private void mnuSaldoAwalPiutang_Click(object sender, EventArgs e)
        {
            var userAccess = userAccessRepository.GetAll();

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

            if (isAllowed || Store.IsAdministrator)
            {
                var frmPayableBalance = new PayableBalanceUI(this);

                frmPayableBalance.MdiParent = this;

                frmPayableBalance.Show();
            }
            else
            {
                MessageBox.Show("Anda tidak dapat membuka form ini", "Perhatian", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
 public PayableBalanceHistoryUI(PayableBalanceUI frmPayableBalance)
 {
     this.frmPayableBalance   = frmPayableBalance;
     payableBalanceRepository = ServiceLocator.GetObject <IPayableBalanceRepository>();
     InitializeComponent();
 }