Complimenting female colleague's figure and asking her out on a date amounts to sexual harassment: Court