David offered us a lift when he was leaving the office,but our work not finished,we declined his offer.

问题描述:

David offered us a lift when he was leaving the office,but our work not finished,we declined his offer.

这是一个并列句,并列连词是but.
but前半句是复合句,“当大卫要离开办公室的时候,他提出要送我们一程”.主句是when之前的半句,David是主语,offered是谓语动词,时态是过去时,us是宾语,a lift 是宾语补足语,offer a lift 直译是提供让某人搭便车,所以翻为送我们一程.when之后是when引导的时间状语从句,主语是he,was leaving 是谓语动词,过去进行时,the office是宾语.
but后半句又分为两部分看,意思是”但是我们的工作还没有完成,于是拒绝了他的邀请“.前半句是独立主格结构,没有谓语动词.逻辑主语是our work,与其动词finish是被动关系,工作未被完成,所以动词用了过去分词形式.逗号后半句很简单,是but后半句的主句.we是整个but后半句的主语,谓语动词是declined,his offer 是宾语.