/// <summary> /// 关门 /// </summary> /// <returns></returns> public void CloseDoor() { if (this.DoorStatus != DoorStatus.关闭) { if (this.GetPutType == GetPutType.烤箱) { Floor floor = Floor.FloorList.First(f => f.StationIds.Contains(this.Id.ToString())); Oven oven = Oven.OvenList.First(o => o.Id == floor.OvenId); oven.CloseDoor(oven.Floors.IndexOf(floor)); } } }