개정판 7066b8a9
issue #0000
document 조회 시 Total dwg 갯수 조회(output)
Change-Id: I839ee65e9ced3f97a67cb7e91aa15ddb199fccc3
ID2.Manager/ID2.Manager.Controller/Controllers/DocumentController.cs | ||
---|---|---|
16 | 16 |
|
17 | 17 |
public DocumentController(ID2ProjectInfo id2Info) : base(id2Info) { } |
18 | 18 |
|
19 |
public IEnumerable<Documents> GetAllDocuments(string projectCode, string personIncharge, string jobLevel, string documentNo, string isToIsDiscussion, string isFrReviewStatus, string isID2Work, string id2Status, string avevaStatus, string prodIsResult, string clientIsResult)
|
|
19 |
public (IEnumerable<Documents> dwgs, int totalCnt) GetDocuments(string projectCode, string personIncharge, string jobLevel, string documentNo, string isToIsDiscussion, string isFrReviewStatus, string isID2Work, string id2Status, string avevaStatus, string prodIsResult, string clientIsResult)
|
|
20 | 20 |
{ |
21 | 21 |
using (DocumentRepository rep = new DocumentRepository(this._MSSQLCONNSTR)) |
22 | 22 |
{ |
23 |
return rep.GetAllDocuments(projectCode, personIncharge, jobLevel, documentNo, isToIsDiscussion, isFrReviewStatus, isID2Work, id2Status, avevaStatus, prodIsResult, clientIsResult);
|
|
23 |
return rep.GetDocuments(projectCode, personIncharge, jobLevel, documentNo, isToIsDiscussion, isFrReviewStatus, isID2Work, id2Status, avevaStatus, prodIsResult, clientIsResult); |
|
24 | 24 |
} |
25 | 25 |
} |
26 | 26 |
|
27 |
public IEnumerable<Documents> GetAllDocuments(List<ID2ProjectInfo> id2Infos, string projectCode, string personIncharge, string jobLevel, string documentNo, string isToIsDiscussion, string isFrReviewStatus, string isID2Work, string id2Status, string avevaStatus, string prodIsResult, string clientIsResult)
|
|
27 |
public (IEnumerable<Documents> dwgs, int totalCnt) GetDocuments(List<ID2ProjectInfo> id2Infos, string projectCode, string personIncharge, string jobLevel, string documentNo, string isToIsDiscussion, string isFrReviewStatus, string isID2Work, string id2Status, string avevaStatus, string prodIsResult, string clientIsResult)
|
|
28 | 28 |
{ |
29 |
IEnumerable<Documents> docs = this.GetAllDocuments(projectCode, personIncharge, jobLevel, documentNo, isToIsDiscussion, isFrReviewStatus, isID2Work, id2Status, avevaStatus, prodIsResult, clientIsResult);
|
|
29 |
IEnumerable<Documents> docs = this.GetDocuments(projectCode, personIncharge, jobLevel, documentNo, isToIsDiscussion, isFrReviewStatus, isID2Work, id2Status, avevaStatus, prodIsResult, clientIsResult).dwgs;
|
|
30 | 30 |
List<ID2Drawings> id2docs = null; |
31 | 31 |
|
32 | 32 |
if (id2Infos.Any()) |
... | ... | |
101 | 101 |
MarkupText = doc.MarkupText |
102 | 102 |
}; |
103 | 103 |
|
104 |
return result;
|
|
104 |
return (result, 0);
|
|
105 | 105 |
|
106 | 106 |
} |
107 |
return docs;
|
|
107 |
return (docs, 0);
|
|
108 | 108 |
} |
109 | 109 |
|
110 | 110 |
public bool SetDocumentData(List<Documents> docList, List<Documents> delDocList) |
내보내기 Unified diff