Beispiel #1
0
        /// <summary>
        /// Create Main Panel.
        /// Called when changing Product
        /// </summary>
        public List <BOMLines> CreateMainPanel(Ctx ctx, int productID)
        {
            String title = Msg.GetMsg(ctx, "SelectProduct");

            _product = new MProduct(ctx, productID, null);
            if (_product != null && _product.Get_ID() > 0)
            {
                title = _product.GetName();
                if (_product.GetDescription() != null && _product.GetDescription().Length > 0)
                {
                    //this.setToolTipText(_product.getDescription());
                }
                _bomLine = 0;
                BomLines(ctx, _product, _qty);
            }
            return(lstBOMLines);
        }