Esempio n. 1
0
 /// <summary>
 ///     设置运营权历史
 /// </summary>
 /// <param name="operationHistory">运营权历史</param>
 public void SetOperationHistory(OperationHistory operationHistory)
 {
     OperationHistory = operationHistory;
     OperationHistoryId = operationHistory.Id;
 }
Esempio n. 2
0
        /// <summary>
        /// 新增飞运营权历史
        /// </summary>
        /// <returns></returns>
        public OperationHistory AddNewOperationHistory()
        {
            var operationHistory = new OperationHistory
            {
                AircraftId = Id,
            };

            operationHistory.GenerateNewIdentity();
            OperationHistories.Add(operationHistory);

            return operationHistory;
        }