hytos / ID2.Manager / ID2.Manager.Controller / Controllers / DocumentController.cs @ 978488b0
이력 | 보기 | 이력해설 | 다운로드 (1.37 KB)
1 | 5898479a | yoush97 | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using System.Text; |
||
5 | using System.Threading.Tasks; |
||
6 | |||
7 | using ID2.Manager.Data.Models; |
||
8 | using ID2.Manager.Dapper.Repository; |
||
9 | |||
10 | namespace ID2.Manager.Controller.Controllers |
||
11 | { |
||
12 | public class DocumentController : BaseController |
||
13 | { |
||
14 | 36a31d25 | yoush97 | public IEnumerable<Documents> GetAllDocuments(string projectCode, string personIncharge, string jobLevel, string documentNo, string isID2Work, string id2Status, string avevaStatus, string prodIsResult, string clientIsResult) |
15 | 5898479a | yoush97 | { |
16 | using (DocumentRepository rep = new DocumentRepository(this._DbConnectionStr)) |
||
17 | { |
||
18 | 36a31d25 | yoush97 | return rep.GetAllDocuments(projectCode, personIncharge, jobLevel, documentNo, isID2Work, id2Status, avevaStatus, prodIsResult, clientIsResult); |
19 | 5898479a | yoush97 | } |
20 | } |
||
21 | 709c1971 | yoush97 | |
22 | public bool SetDocumentData(List<Documents> docList, List<Documents> delDocList) |
||
23 | { |
||
24 | using (DocumentRepository rep = new DocumentRepository(this._DbConnectionStr)) |
||
25 | { |
||
26 | return rep.SetDocumentData(docList, delDocList); |
||
27 | } |
||
28 | } |
||
29 | 978488b0 | yoush97 | |
30 | public Documents SetDocumentDataField(Documents doc, string userId) |
||
31 | { |
||
32 | using (DocumentRepository rep = new DocumentRepository(this._DbConnectionStr)) |
||
33 | { |
||
34 | return rep.SetDocumentDataField(doc, userId); |
||
35 | } |
||
36 | } |
||
37 | 5898479a | yoush97 | } |
38 | } |