markus / FinalService / FinalServiceBase / MarkupToPDF / Common / GetUserSign.cs @ 42d49521
이력 | 보기 | 이력해설 | 다운로드 (825 Bytes)
1 |
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 |
public string GetSign(string UserID) |
14 |
{ |
15 |
var ModelWFConnectionString = ConnectStringBuilder.ProjectCIConnectString("000000").ToString(); |
16 |
using (CIEntities entity = new CIEntities(ModelWFConnectionString)) |
17 |
{ |
18 |
var _sign = entity.SIGN_INFO.Where(sin => sin.MEMBER_USER_ID == UserID); |
19 |
if (_sign.Count() > 0) |
20 |
{ |
21 |
return _sign.First().SIGN_STR; |
22 |
} |
23 |
else |
24 |
{ |
25 |
return null; |
26 |
} |
27 |
} |
28 |
} |
29 |
} |
30 |
} |