Beispiel #1
0
 /// <summary>
 ///     子窗口关闭后执行的操作
 /// </summary>
 /// <param name="doc">添加的附件</param>
 /// <param name="sender">添加附件命令的参数</param>
 protected override void WindowClosed(DocumentDTO doc, object sender)
 {
     base.WindowClosed(doc, sender);
     if (sender is Guid)
     {
         SelAircraftLeaseOrderDTO.ContractDocGuid = doc.DocumentId;
         SelAircraftLeaseOrderDTO.ContractName = doc.Name;
     }
     else
     {
         var relatedDoc = new RelatedDocDTO
         {
             Id = RandomHelper.Next(),
             DocumentId = doc.DocumentId,
             DocumentName = doc.Name,
             SourceId = SelAircraftLeaseOrderDTO.SourceGuid
         };
         SelAircraftLeaseOrderDTO.RelatedDocs.Add(relatedDoc);
     }
 }
        /// <summary>
        ///     子窗口关闭后执行的操作
        /// </summary>
        /// <param name="doc">添加的交付文件</param>
        /// <param name="sender">添加附件命令的参数</param>
        protected override void WindowClosed(DocumentDTO doc, object sender)
        {
            base.WindowClosed(doc, sender);

            var relatedDoc = new RelatedDocDTO
            {
                Id = RandomHelper.Next(),
                DocumentId = doc.DocumentId,
                DocumentName = doc.Name,
                SourceId = SelEngineLeaseReception.SourceId
            };
            SelEngineLeaseReception.RelatedDocs.Add(relatedDoc);
        }