public ProductListUI(StockCorrectionUI frmStockCorrection) { productQtyRepository = ServiceLocator.GetObject <IProductQtyRepository>(); this.frmStockCorrection = frmStockCorrection; formActive = "StockCorrectionUI"; InitializeComponent(); }
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); } }
public ReportPrintUI(StockCorrectionUI frmStockCorrection) { InitializeComponent(); this.frmStockCorrection = frmStockCorrection; stockCorrectionRepository = ServiceLocator.GetObject <IStockCorrectionRepository>(); }
public StockCorrectionHistoryUI(StockCorrectionUI frmStockCorrection) { stockCorrectionRepository = ServiceLocator.GetObject <IStockCorrectionRepository>(); this.frmStockCorrection = frmStockCorrection; InitializeComponent(); }