markus / MarkupToPDF / Common / GetUserSign.cs @ 89b30429
이력 | 보기 | 이력해설 | 다운로드 (1.19 KB)
1 | 787a4489 | KangIngu | using KCOMDataModel.Common; |
---|---|---|---|
2 | using KCOMDataModel.DataModel; |
||
3 | using System; |
||
4 | using System.Collections.Generic; |
||
5 | using System.IO; |
||
6 | using System.Linq; |
||
7 | using System.Text; |
||
8 | |||
9 | namespace MarkupToPDF.Common |
||
10 | { |
||
11 | public class GetUserSign |
||
12 | { |
||
13 | c247e6b4 | humkyung | /// <summary> |
14 | /// get signature of given user of given project |
||
15 | /// </summary> |
||
16 | /// <param name="UserID"></param> |
||
17 | /// <param name="ProjectNo"></param> |
||
18 | /// <returns></returns> |
||
19 | 787a4489 | KangIngu | public string GetSign(string UserID, string ProjectNo) |
20 | { |
||
21 | var ModelWFConnectionString = ConnectStringBuilder.ProjectCIConnectString(ProjectNo).ToString(); |
||
22 | c247e6b4 | humkyung | if (null != ModelWFConnectionString) |
23 | 787a4489 | KangIngu | { |
24 | c247e6b4 | humkyung | using (CIEntities entity = new CIEntities(ModelWFConnectionString)) |
25 | 787a4489 | KangIngu | { |
26 | c247e6b4 | humkyung | var _sign = entity.SIGN_INFO.Where(sin => sin.MEMBER_USER_ID == UserID); |
27 | if (_sign.Count() > 0) |
||
28 | { |
||
29 | return _sign.First().SIGN_STR; |
||
30 | } |
||
31 | else |
||
32 | { |
||
33 | return null; |
||
34 | } |
||
35 | 787a4489 | KangIngu | } |
36 | } |
||
37 | c247e6b4 | humkyung | |
38 | return null; |
||
39 | 787a4489 | KangIngu | } |
40 | } |
||
41 | } |