개정판 cdfb57ff
zoom control 이벤트 추가
mainmenu 수정
app 수정
Change-Id: I0d007c3a3c412b7fbe6e2a52bafb932e1a7b9f03
MarkupToPDF/Common/GetUserSign.cs | ||
---|---|---|
33 | 33 |
/// <param name="UserID"></param> |
34 | 34 |
/// <param name="ProjectNo"></param> |
35 | 35 |
/// <returns></returns> |
36 |
public static string GetSign(string UserID, string ProjectNo) |
|
36 |
public static string GetSign(string UserID, string ProjectNo,bool isExternal= false)
|
|
37 | 37 |
{ |
38 | 38 |
BasicHttpBinding _binding; |
39 | 39 |
EndpointAddress _EndPoint; |
... | ... | |
48 | 48 |
_binding.TextEncoding = System.Text.Encoding.UTF8; |
49 | 49 |
_binding.TransferMode = TransferMode.Buffered; |
50 | 50 |
|
51 |
string localdomain = CommonLib.Common.GetConfigString("HOST_DOMAIN", "DOMAIN", ""); |
|
52 |
var ipaddress = CommonLib.DNSHelper.GetDnsAdress(); |
|
53 |
bool isExternal = false; |
|
54 |
try |
|
55 |
{ |
|
56 |
var hostName = Dns.GetHostEntry(ipaddress).HostName; |
|
57 |
|
|
58 |
if (!hostName.EndsWith(localdomain)) |
|
59 |
{ |
|
60 |
// 외부 사용자 |
|
61 |
isExternal = true; |
|
62 |
} |
|
63 |
} |
|
64 |
catch (Exception ex) |
|
65 |
{ |
|
66 |
System.Diagnostics.Debug.WriteLine(ex.ToString()); |
|
67 |
} |
|
68 | 51 |
string sBaseServiceURL = CommonLib.Common.GetConfigString("BaseClientAddress", "URL", "", isExternal); |
69 | 52 |
//CommonLib.Common.GetConfigString("BaseClientAddress", "URL", ""); |
70 | 53 |
|
내보내기 Unified diff