/// <summary> /// 更新接机日程 /// </summary> /// <param name="schedule">接机日程DTO</param> /// <param name="receptionSchedule">接机日程</param> private void UpdateReceptionSchedule(ReceptionScheduleDTO schedule, ReceptionSchedule receptionSchedule) { // 更新订单行 receptionSchedule.SetSchedule(schedule.Subject, schedule.Body, schedule.Importance, schedule.Tempo, schedule.Start, schedule.End, schedule.IsAllDayEvent); receptionSchedule.Group = schedule.Group; }
/// <summary> /// 插入新接机日程 /// </summary> /// <param name="reception">接机项目</param> /// <param name="schedule">接机行DTO</param> private void InsertReceptionSchedule(AircraftPurchaseReception reception, ReceptionScheduleDTO schedule) { // 添加接机行 var newSchedule = new ReceptionSchedule(); newSchedule.SetSchedule(schedule.Subject, schedule.Body, schedule.Importance, schedule.Tempo, schedule.Start, schedule.End, schedule.IsAllDayEvent); newSchedule.Group = schedule.Group; reception.ReceptionSchedules.Add(newSchedule); }