Ejemplo n.º 1
0
 /// <summary>
 /// Alissa Duffy
 /// Updated: 2017/04/21
 ///
 /// Initialize of Add Product Lot View Window.
 /// Standardized method.
 /// </summary>
 /// <param name="prodMgr"></param>
 /// <param name="prodLot"></param>
 public frmAddProductLot(ProductLotManager prodMgr, ProductLot prodLot)
 {
     InitializeComponent();
     _productLotManager = prodMgr;
     _productLot        = prodLot;
     FillProductLotDetails(_productLot);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Eric Walton
        /// Created: 2017/03/10
        /// helper method to display the product lots information
        /// </summary>
        private void displayProductLots()
        {
            ProductLotManager pLM = new ProductLotManager();

            try
            {
                _productLots = pLM.RetrieveActiveProductLots();
                if (_productLots.Count < 1)
                {
                    MessageBox.Show("No available productlots. Check to see if product lots are ready to be inspected.");
                }
                else
                {
                    foreach (var product in _productLots)
                    {
                        cboProducts.Items.Add(product.ProductName);
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error retrieving product lots" + ex);
            }
        }