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(); }
public bool GetInventoryItem(string ident) { InventoryLocator locator = new InventoryLocator(); InventoryItem item = locator.LocateOrWarn(m_uow, ident); SetCurrentInventoryItem(item); return(true); }