Пример #1
0
 protected bool TryGetCreateCommand(List<DocumentCommand> commands, out CreateCommand command)
 {
     command = null;
     var createCommand = commands.OfType<CreateCommand>().FirstOrDefault();
     if (createCommand == null)
         return false;
     command = createCommand;
     return true;
 }
Пример #2
0
 protected tblSourcingDocument NewDocument(CreateCommand command, DocumentType documentType, Guid documentRecipientCostCentreId)
 {
     return _NewDocument(
         command.DocumentId,
         documentType,
         command.DocumentIssuerCostCentreId,
         command.DocIssuerUserId,
         command.CommandGeneratedByCostCentreApplicationId,
         command.DocumentDateIssued,
         DocumentStatus.New,
         command.DocumentReference,
         command.SendDateTime,
         documentRecipientCostCentreId,
         command.PDCommandId
         );
 }