/// <summary> /// Calling this method automatically opened the indicated form as a Mdi child form in the main form tabs. /// Exposes a way to open the Inventory Form and select the Transaction Tab from a Project outside of CDS.Client.Desktop.Stock /// </summary> /// <param name="itemId"></param> public void ShowInventoryTransactionForm(Int64 itemId) { Stock.Inventory.InventoryForm childForm = new Stock.Inventory.InventoryForm(itemId); childForm.ReadOnly = true; childForm.ShowTransaction = true; ShowForm(childForm); }
/// <summary> /// Calling this method automatically opened the indicated form as a Mdi child form in the main form tabs. /// Exposes a way to open the Inventory Form from a Project outside of CDS.Client.Desktop.Stock /// </summary> /// <param name="itemId"></param> /// <param name="readOnly"></param> public void ShowInventoryForm(Int64 itemId, bool readOnly) { Stock.Inventory.InventoryForm childForm = new Stock.Inventory.InventoryForm(DataContext.EntityInventoryContext.ITM_Inventory.Where(n => n.EntityId == itemId).Select(n => n.Id).FirstOrDefault()); childForm.ReadOnly = readOnly; ShowForm(childForm); }