Inventories (Details) - USD ($)
Jan. 31, 2016
Jul. 31, 2015
Inventory Disclosure [Abstract]    
Raw materials and components $ 50,530,000 $ 51,272,000
Work-in-process and finished goods 24,025,000 27,700,000
Total inventories 74,555,000 78,972,000
Less reserve for excess and obsolete inventories 16,131,000 16,904,000
Inventories, net 58,424,000 62,068,000
Inventory directly related to long-term contracts 2,010,000 2,261,000
Inventory related to contracts from third party commercial customers who outsource their manufacturing to us $ 949,000 $ 609,000