개정판 cf1cc862
licensing 수정
Change-Id: I3bffa280e0205be1031c133bf4716929fcbd7c54
KCOM_API/ServiceDeepView.svc.cs | ||
---|---|---|
2454 | 2454 |
} |
2455 | 2455 |
return result; |
2456 | 2456 |
} |
2457 |
|
|
2457 | 2458 |
[OperationContract] |
2458 | 2459 |
public string GetSignData(string project_no, string user_id) |
2459 | 2460 |
{ |
... | ... | |
2493 | 2494 |
return result; |
2494 | 2495 |
} |
2495 | 2496 |
|
2497 |
[OperationContract] |
|
2498 |
public int SetSignData(string user_id,string SignStr) |
|
2499 |
{ |
|
2500 |
int result = -1; |
|
2501 |
|
|
2502 |
try |
|
2503 |
{ |
|
2504 |
string sCIConnString = ConfigurationManager.ConnectionStrings["CIConnectionString"].ConnectionString; |
|
2505 |
|
|
2506 |
using (CIEntities entity = new CIEntities(sCIConnString)) |
|
2507 |
{ |
|
2508 |
var _sign = entity.SIGN_INFO.Where(sin => sin.MEMBER_USER_ID == user_id); |
|
2509 |
|
|
2510 |
if (_sign.Count() > 0) |
|
2511 |
{ |
|
2512 |
_sign.First().SIGN_STR = SignStr; |
|
2513 |
_sign.First().MODIFY_DATE = DateTime.Now; |
|
2514 |
} |
|
2515 |
else |
|
2516 |
{ |
|
2517 |
entity.SIGN_INFO.AddObject(new SIGN_INFO |
|
2518 |
{ |
|
2519 |
ID = shortGuid(), |
|
2520 |
MEMBER_USER_ID = user_id, |
|
2521 |
CREATE_DATE = DateTime.Now, |
|
2522 |
SIGN_STR = SignStr |
|
2523 |
}); |
|
2524 |
} |
|
2525 |
|
|
2526 |
result = entity.SaveChanges(); |
|
2527 |
} |
|
2528 |
} |
|
2529 |
catch (Exception ex) |
|
2530 |
{ |
|
2531 |
System.Diagnostics.Debug.WriteLine(ex); |
|
2532 |
} |
|
2533 |
return result; |
|
2534 |
} |
|
2535 |
|
|
2496 | 2536 |
[OperationContract] |
2497 | 2537 |
public string GetProjectName(string project_no) |
2498 | 2538 |
{ |
내보내기 Unified diff