hytos / ID2.Manager / ID2.Manager.Controller / Controllers / DocumentController.cs @ 978488b0
이력 | 보기 | 이력해설 | 다운로드 (1.37 KB)
1 |
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 |
public IEnumerable<Documents> GetAllDocuments(string projectCode, string personIncharge, string jobLevel, string documentNo, string isID2Work, string id2Status, string avevaStatus, string prodIsResult, string clientIsResult) |
15 |
{ |
16 |
using (DocumentRepository rep = new DocumentRepository(this._DbConnectionStr)) |
17 |
{ |
18 |
return rep.GetAllDocuments(projectCode, personIncharge, jobLevel, documentNo, isID2Work, id2Status, avevaStatus, prodIsResult, clientIsResult); |
19 |
} |
20 |
} |
21 | |
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 | |
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 |
} |
38 |
} |