260324_01_ENH: EXTERNAL 접속시 kri시스템 여부 확인 추가
This commit is contained in:
@@ -41,6 +41,29 @@ namespace KART_API.Services
|
||||
|
||||
return resultTable;
|
||||
}
|
||||
|
||||
public bool isKricSystem(string systemString)
|
||||
{
|
||||
bool isKricSystem = false;
|
||||
|
||||
MSDAL dal = new MSDAL();
|
||||
var connection = dal.ConnectReport();
|
||||
try
|
||||
{
|
||||
DataTable resultTable = dal.GetDataTable($"SELECT * FROM REPORT_EXTERNAL_SYS WHERE system_key = '{systemString}' and is_use = 1", connection);
|
||||
isKricSystem = resultTable.Rows.Count > 0;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.Fatal(this.GetType().Name + " > " + System.Reflection.MethodBase.GetCurrentMethod().Name + " : " + ex.Message);
|
||||
}
|
||||
finally
|
||||
{
|
||||
dal.Disconnect(connection);
|
||||
}
|
||||
|
||||
return isKricSystem;
|
||||
}
|
||||
|
||||
public static string userNumber(string userEmail)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user