Example #1
0
        private void GetUnitDetails()
        {
            m_Item = null;

            var il = new InventoryLocator();

            m_Item = il.LocateOrWarn(m_salesOrder.Session, lotIdText.Text);

            if (m_Item == null)
            {
                return;
            }

            lotDetailsText.Text = m_Item.DisplayTextDetails;
            shipButton.Enabled  = true;

            // Ship the unit if it has a qty of 1
            if (m_Item.Qty == 1)
            {
                qtyText.Text = "1";
                shipButton_Click(null, null);
                return;
            }

            qtyText.Focus();
        }
Example #2
0
        public bool GetInventoryItem(string ident)
        {
            InventoryLocator locator = new InventoryLocator();
            InventoryItem    item    = locator.LocateOrWarn(m_uow, ident);

            SetCurrentInventoryItem(item);

            return(true);
        }
Example #3
0
        private void lotIdText_Validated(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(lotIdText.Text))
            {
                return;
            }

            InventoryItem item =
                new InventoryLocator().LocateOrWarn(m_session, lotIdText.Text);


            if (item != null)
            {
                m_spec.Item = item;
                Transfer();
            }
        }