Boring old part numbers!!!!!!!

Boring subject I know, But how do most companies / consultancies generate numbers and port to other departments / clients?