示例#1
0
        public ProductListUI(StockCorrectionUI frmStockCorrection)
        {
            productQtyRepository = ServiceLocator.GetObject <IProductQtyRepository>();

            this.frmStockCorrection = frmStockCorrection;
            formActive = "StockCorrectionUI";

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

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

            if (isAllowed || Store.IsAdministrator)
            {
                var frmStockCorrection = new StockCorrectionUI(this);
                frmStockCorrection.MdiParent = this;
                frmStockCorrection.Show();
            }
            else
            {
                MessageBox.Show("Anda tidak dapat membuka form ini", "Perhatian", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
示例#3
0
 public ReportPrintUI(StockCorrectionUI frmStockCorrection)
 {
     InitializeComponent();
     this.frmStockCorrection   = frmStockCorrection;
     stockCorrectionRepository = ServiceLocator.GetObject <IStockCorrectionRepository>();
 }
 public StockCorrectionHistoryUI(StockCorrectionUI frmStockCorrection)
 {
     stockCorrectionRepository = ServiceLocator.GetObject <IStockCorrectionRepository>();
     this.frmStockCorrection   = frmStockCorrection;
     InitializeComponent();
 }