Police say the man who allegedly stabbed his ex-girlfriend in the lobby of an Upper East Side office building yesterday afternoon proceeded to attack two of his Con Edison coworkers inside of a Con Edison building near Union Square, and has since been arrested.

Trevial Terry, 40, allegedly approached his ex-girlfriend in the vestibule of 135 East 64th Street shortly before 2:30 yesterday afternoon. He pushed and stabbed her multiple times in the lower back and lower abdomen before fleeing the scene on foot, according to the NYPD. The victim was rushed to New York Presbyterian Hospital in serious but stable condition.

The Post identifies the victim as Alicia Sylvia, 36, an office manager at the Robert Sterling Clark Foundation, a nonprofit housed inside 135 East 64th Street. DNAInfo reports that she and Terry used to date, and have a child together. They may have been involved in a child custody dispute, according to the NY Times.

Twenty minutes after the stabbing, Terry, who works for Con Edison as a commercial service representative, entered the Con Ed offices at 4 Irving Plaza with a bag containing several knives, an axe, and a hammer, according to DNAInfo sources. He was allegedly reporting for a shift.

On the tenth floor of the building—"brandishing" an axe, according to the NYPD—Terry used the weapon to strike a 49-year-old male coworker in the face. Another male coworker, 40, observed the attack—when he came to the first victim's aid, Terry allegedly hit him in the arm with a pointed-tip hammer.

Terry then ran down the stairs into the Con Edison parking lot, where NYPD officers arrested him "without incident." He is currently being held with 3 counts of attempted murder, 6 counts of assault, and 4 counts of criminal possession of a weapon.

Both of the unnamed Con Edison workers were taken to Bellevue Hospital in stable condition. Terry was also taken to Bellevue, for psychiatric evaluations.