/// <summary> /// List of documents /// </summary> public static DocumentListResponse DocumentListDocuments(DocumentListRequest documentListRequest) { var documentListResponse = new DocumentListResponse(); documentListResponse.response = new ResponseStatus(); documentListResponse.documentList = RepDocument.ListDocuments(documentListRequest.headerInfo); return(documentListResponse); }
public List <Document> ListDocumentsNotInSet(HeaderInfo headerInfo, int documentSetUID) { List <Document> documentsNotInSet = new List <Document>(); List <Document> documentsInSet = new List <Document>(); List <Document> fullListOfDocuments = new List <Document>(); fullListOfDocuments = RepDocument.ListDocuments(headerInfo); ListDocumentsInSet(documentSetUID); documentsInSet = this.listOfDocumentsInSet; bool found = false; foreach (var document in fullListOfDocuments) { found = false; foreach (var documentInSet in listOfDocumentsInSet) { // Document already in set if (document.CUID == documentInSet.CUID) { found = true; break; } } if (found) { continue; } // if gets to this point, document is not in set documentsNotInSet.Add(document); } return(documentsNotInSet); }
public List <Document> ListDocumentsNotInSet(HeaderInfo headerInfo, int clientUID, int clientDocumentSetUID) { var documentsNotInSet = new List <Document>(); var documentsInSet = new List <ClientDocument>(); var fullListOfDocuments = new List <Document>(); fullListOfDocuments = RepDocument.ListDocuments(headerInfo); documentsInSet = RepClientDocument.ListCD(clientUID, clientDocumentSetUID); bool found = false; foreach (var document in fullListOfDocuments) { found = false; foreach (var documentInSet in documentsInSet) { // Document already in set if (document.UID == documentInSet.FKDocumentUID) { found = true; break; } } if (found) { continue; } // if gets to this point, document is not in set documentsNotInSet.Add(document); } return(documentsNotInSet); }