ปรับปรุงกระบวนการตรวจจับการ login
This commit is contained in:
@@ -16,44 +16,38 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<eva_adjust_postponement_normalController> _logger;
|
||||
private Ieva_adjust_postponement_normalService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="inemp"></param>
|
||||
/// <param name="logger"></param>
|
||||
public eva_adjust_postponement_normalViewController(ILogger<eva_adjust_postponement_normalController> logger, Ieva_adjust_postponement_normalService repository, IConfiguration configuration)
|
||||
public eva_adjust_postponement_normalViewController(ILogger<eva_adjust_postponement_normalController> logger, Ieva_adjust_postponement_normalService repository, IConfiguration configuration, Iexternal_employeeService inemp)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult eva_adjust_postponement_normal()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult eva_adjust_postponement_normal_d()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
//public IActionResult eva_adjust_postponement_normal_report()
|
||||
//{
|
||||
// if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
// return View();
|
||||
//}
|
||||
|
||||
//public IActionResult eva_adjust_postponement_normal_inline()
|
||||
//{
|
||||
// if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
// return View();
|
||||
//}
|
||||
|
||||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||||
public IActionResult Error()
|
||||
|
||||
@@ -16,30 +16,36 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<eva_adjust_postponement_quotaController> _logger;
|
||||
private Ieva_adjust_postponement_quotaService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public eva_adjust_postponement_quotaViewController(ILogger<eva_adjust_postponement_quotaController> logger, Ieva_adjust_postponement_quotaService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public eva_adjust_postponement_quotaViewController(
|
||||
ILogger<eva_adjust_postponement_quotaController> logger, Iexternal_employeeService inemp, Ieva_adjust_postponement_quotaService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult eva_adjust_postponement_quota()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult eva_adjust_postponement_quota_d()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,35 +16,41 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<eva_create_evaluationController> _logger;
|
||||
private Ieva_create_evaluationService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public eva_create_evaluationViewController(ILogger<eva_create_evaluationController> logger, Ieva_create_evaluationService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public eva_create_evaluationViewController(ILogger<eva_create_evaluationController> logger, Iexternal_employeeService inemp, Ieva_create_evaluationService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult eva_create_evaluation()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult eva_create_evaluation_d()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult eva_create_evaluation_d_summary()
|
||||
{
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
@@ -16,30 +16,36 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<eva_create_evaluation_detailController> _logger;
|
||||
private Ieva_create_evaluation_detailService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public eva_create_evaluation_detailViewController(ILogger<eva_create_evaluation_detailController> logger, Ieva_create_evaluation_detailService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public eva_create_evaluation_detailViewController(
|
||||
ILogger<eva_create_evaluation_detailController> logger, Iexternal_employeeService inemp, Ieva_create_evaluation_detailService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult eva_create_evaluation_detail()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult eva_create_evaluation_detail_d()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,30 +16,36 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<eva_create_evaluation_detail_agreementController> _logger;
|
||||
private Ieva_create_evaluation_detail_agreementService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public eva_create_evaluation_detail_agreementViewController(ILogger<eva_create_evaluation_detail_agreementController> logger, Ieva_create_evaluation_detail_agreementService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public eva_create_evaluation_detail_agreementViewController(
|
||||
ILogger<eva_create_evaluation_detail_agreementController> logger, Iexternal_employeeService inemp, Ieva_create_evaluation_detail_agreementService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult eva_create_evaluation_detail_agreement()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult eva_create_evaluation_detail_agreement_d()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,35 +16,42 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<eva_create_evaluation_detail_processController> _logger;
|
||||
private Ieva_create_evaluation_detail_processService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public eva_create_evaluation_detail_processViewController(ILogger<eva_create_evaluation_detail_processController> logger, Ieva_create_evaluation_detail_processService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public eva_create_evaluation_detail_processViewController(
|
||||
ILogger<eva_create_evaluation_detail_processController> logger, Iexternal_employeeService inemp, Ieva_create_evaluation_detail_processService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult eva_create_evaluation_detail_process()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult eva_create_evaluation_detail_process_d()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult eva_create_evaluation_detail_process_d2()
|
||||
{
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
@@ -16,30 +16,35 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<eva_evaluation_achievementController> _logger;
|
||||
private Ieva_evaluation_achievementService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public eva_evaluation_achievementViewController(ILogger<eva_evaluation_achievementController> logger, Ieva_evaluation_achievementService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public eva_evaluation_achievementViewController(ILogger<eva_evaluation_achievementController> logger, Iexternal_employeeService inemp, Ieva_evaluation_achievementService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult eva_evaluation_achievement()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult eva_evaluation_achievement_d()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,30 +16,36 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<eva_evaluation_achievement_processController> _logger;
|
||||
private Ieva_evaluation_achievement_processService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public eva_evaluation_achievement_processViewController(ILogger<eva_evaluation_achievement_processController> logger, Ieva_evaluation_achievement_processService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public eva_evaluation_achievement_processViewController(
|
||||
ILogger<eva_evaluation_achievement_processController> logger, Iexternal_employeeService inemp, Ieva_evaluation_achievement_processService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult eva_evaluation_achievement_process()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult eva_evaluation_achievement_process_d()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,30 +16,35 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<eva_evaluation_behaviorController> _logger;
|
||||
private Ieva_evaluation_behaviorService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public eva_evaluation_behaviorViewController(ILogger<eva_evaluation_behaviorController> logger, Ieva_evaluation_behaviorService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public eva_evaluation_behaviorViewController(ILogger<eva_evaluation_behaviorController> logger, Iexternal_employeeService inemp, Ieva_evaluation_behaviorService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult eva_evaluation_behavior()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult eva_evaluation_behavior_d()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,30 +16,36 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<eva_evaluation_behavior_processController> _logger;
|
||||
private Ieva_evaluation_behavior_processService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public eva_evaluation_behavior_processViewController(ILogger<eva_evaluation_behavior_processController> logger, Ieva_evaluation_behavior_processService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public eva_evaluation_behavior_processViewController(
|
||||
ILogger<eva_evaluation_behavior_processController> logger, Iexternal_employeeService inemp, Ieva_evaluation_behavior_processService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult eva_evaluation_behavior_process()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult eva_evaluation_behavior_process_d()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,30 +16,35 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<eva_evaluation_groupController> _logger;
|
||||
private Ieva_evaluation_groupService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public eva_evaluation_groupViewController(ILogger<eva_evaluation_groupController> logger, Ieva_evaluation_groupService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public eva_evaluation_groupViewController(ILogger<eva_evaluation_groupController> logger, Iexternal_employeeService inemp, Ieva_evaluation_groupService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult eva_evaluation_group()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult eva_evaluation_group_d()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,30 +16,35 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<eva_level_scoreController> _logger;
|
||||
private Ieva_level_scoreService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public eva_level_scoreViewController(ILogger<eva_level_scoreController> logger, Ieva_level_scoreService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public eva_level_scoreViewController(ILogger<eva_level_scoreController> logger, Iexternal_employeeService inemp, Ieva_level_scoreService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult eva_level_score()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult eva_level_score_d()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,24 +16,28 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<eva_level_score_basicController> _logger;
|
||||
private Ieva_level_score_basicService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public eva_level_score_basicViewController(ILogger<eva_level_score_basicController> logger, Ieva_level_score_basicService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public eva_level_score_basicViewController(ILogger<eva_level_score_basicController> logger, Iexternal_employeeService inemp, Ieva_level_score_basicService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult eva_level_score_basic()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,8 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<eva_performance_planController> _logger;
|
||||
private Ieva_performance_planService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
@@ -24,22 +25,26 @@ namespace TodoAPI2.Controllers
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public eva_performance_planViewController(ILogger<eva_performance_planController> logger, Ieva_performance_planService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public eva_performance_planViewController(ILogger<eva_performance_planController> logger, Iexternal_employeeService inemp, Ieva_performance_planService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult eva_performance_plan()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult eva_performance_plan_d()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,8 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<eva_performance_plan_detailController> _logger;
|
||||
private Ieva_performance_plan_detailService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
@@ -24,22 +25,26 @@ namespace TodoAPI2.Controllers
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public eva_performance_plan_detailViewController(ILogger<eva_performance_plan_detailController> logger, Ieva_performance_plan_detailService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public eva_performance_plan_detailViewController(ILogger<eva_performance_plan_detailController> logger, Iexternal_employeeService inemp, Ieva_performance_plan_detailService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult eva_performance_plan_detail()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult eva_performance_plan_detail_d()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,30 +16,35 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<eva_salary_cylinderController> _logger;
|
||||
private Ieva_salary_cylinderService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public eva_salary_cylinderViewController(ILogger<eva_salary_cylinderController> logger, Ieva_salary_cylinderService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public eva_salary_cylinderViewController(ILogger<eva_salary_cylinderController> logger, Iexternal_employeeService inemp, Ieva_salary_cylinderService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult eva_salary_cylinder()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult eva_salary_cylinder_d()
|
||||
{
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
@@ -16,29 +16,29 @@ namespace TodoAPI2.Controllers
|
||||
public class homeController : Controller
|
||||
{
|
||||
private IConfiguration Configuration { get; set; }
|
||||
private Iexternal_employeeService _repository;
|
||||
private Iexternal_employeeService emp;
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="inemp"></param>
|
||||
/// <param name="configuration"></param>
|
||||
public homeController(Iexternal_employeeService repository, IConfiguration configuration)
|
||||
public homeController(Iexternal_employeeService inemp, IConfiguration configuration)
|
||||
{
|
||||
Configuration = configuration;
|
||||
_repository = repository;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult index()
|
||||
{
|
||||
get_login();
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult index_report()
|
||||
{
|
||||
get_login();
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
|
||||
return View();
|
||||
}
|
||||
@@ -59,26 +59,7 @@ namespace TodoAPI2.Controllers
|
||||
|
||||
return Redirect("/eva/home/index");
|
||||
}
|
||||
|
||||
public void get_login()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(HttpContext.Request.Cookies["user_id"]))
|
||||
{
|
||||
string loginid = HttpContext.Request.Cookies["user_id"];
|
||||
var emp = _repository.GetEmployeeForLogin(Convert.ToInt32(loginid));
|
||||
if (emp != null)
|
||||
{
|
||||
Response.Cookies.Delete("emp_name");
|
||||
Response.Cookies.Delete("emp_id");
|
||||
|
||||
CookieOptions option = new CookieOptions();
|
||||
option.Expires = DateTime.Now.AddHours(3);
|
||||
Response.Cookies.Append("emp_name", emp.fullname, option);
|
||||
Response.Cookies.Append("emp_id", emp.id.ToString(), option);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||||
public IActionResult Error()
|
||||
{
|
||||
|
||||
@@ -16,23 +16,27 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<rep_eva01Controller> _logger;
|
||||
private Irep_eva01Service _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public rep_eva01ViewController(ILogger<rep_eva01Controller> logger, Irep_eva01Service repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public rep_eva01ViewController(ILogger<rep_eva01Controller> logger, Iexternal_employeeService inemp, Irep_eva01Service repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult rep_eva01_report()
|
||||
{
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
@@ -16,24 +16,28 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<rep_eva02Controller> _logger;
|
||||
private Irep_eva02Service _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public rep_eva02ViewController(ILogger<rep_eva02Controller> logger, Irep_eva02Service repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public rep_eva02ViewController(ILogger<rep_eva02Controller> logger, Iexternal_employeeService inemp, Irep_eva02Service repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
|
||||
public IActionResult rep_eva02_report()
|
||||
{
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
@@ -16,24 +16,28 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<rep_eva03Controller> _logger;
|
||||
private Irep_eva03Service _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public rep_eva03ViewController(ILogger<rep_eva03Controller> logger, Irep_eva03Service repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public rep_eva03ViewController(ILogger<rep_eva03Controller> logger, Iexternal_employeeService inemp, Irep_eva03Service repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
|
||||
public IActionResult rep_eva03_report()
|
||||
{
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
@@ -16,22 +16,26 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<rep_familyController> _logger;
|
||||
private Irep_familyService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public rep_familyViewController(ILogger<rep_familyController> logger, Irep_familyService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public rep_familyViewController(ILogger<rep_familyController> logger, Iexternal_employeeService inemp, Irep_familyService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
public IActionResult rep_family_report()
|
||||
{
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
@@ -16,23 +16,27 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<rep_leave_summaryController> _logger;
|
||||
private Irep_leave_summaryService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public rep_leave_summaryViewController(ILogger<rep_leave_summaryController> logger, Irep_leave_summaryService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public rep_leave_summaryViewController(ILogger<rep_leave_summaryController> logger, Iexternal_employeeService inemp, Irep_leave_summaryService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult rep_leave_summary_report()
|
||||
{
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
@@ -16,23 +16,27 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<rep_leave_totalController> _logger;
|
||||
private Irep_leave_totalService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public rep_leave_totalViewController(ILogger<rep_leave_totalController> logger, Irep_leave_totalService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public rep_leave_totalViewController(ILogger<rep_leave_totalController> logger, Iexternal_employeeService inemp, Irep_leave_totalService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult rep_leave_total_report()
|
||||
{
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
@@ -16,23 +16,27 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<rep_position_salaryController> _logger;
|
||||
private Irep_position_salaryService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public rep_position_salaryViewController(ILogger<rep_position_salaryController> logger, Irep_position_salaryService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public rep_position_salaryViewController(ILogger<rep_position_salaryController> logger, Iexternal_employeeService inemp, Irep_position_salaryService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult rep_position_salary_report()
|
||||
{
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
@@ -16,23 +16,27 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<rep_samanaController> _logger;
|
||||
private Irep_samanaService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public rep_samanaViewController(ILogger<rep_samanaController> logger, Irep_samanaService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public rep_samanaViewController(ILogger<rep_samanaController> logger, Iexternal_employeeService inemp, Irep_samanaService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public IActionResult rep_samana_report()
|
||||
{
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
@@ -16,24 +16,28 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<rep_study_historyController> _logger;
|
||||
private Irep_study_historyService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public rep_study_historyViewController(ILogger<rep_study_historyController> logger, Irep_study_historyService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public rep_study_historyViewController(ILogger<rep_study_historyController> logger, Iexternal_employeeService inemp, Irep_study_historyService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
|
||||
public IActionResult rep_study_history_report()
|
||||
{
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
@@ -16,24 +16,28 @@ namespace TodoAPI2.Controllers
|
||||
{
|
||||
private ILogger<rep_working_typeController> _logger;
|
||||
private Irep_working_typeService _repository;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
private Iexternal_employeeService emp;
|
||||
private IConfiguration Configuration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructure for dependency injection
|
||||
/// </summary>
|
||||
/// <param name="repository"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="configuration"></param>
|
||||
/// <param name="logger"></param>
|
||||
public rep_working_typeViewController(ILogger<rep_working_typeController> logger, Irep_working_typeService repository, IConfiguration configuration)
|
||||
/// <param name="inemp"></param>
|
||||
public rep_working_typeViewController(ILogger<rep_working_typeController> logger, Iexternal_employeeService inemp, Irep_working_typeService repository, IConfiguration configuration)
|
||||
{
|
||||
_logger = logger;
|
||||
_repository = repository;
|
||||
Configuration = configuration;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
|
||||
public IActionResult rep_working_type_report()
|
||||
{
|
||||
MyHelper.get_login(HttpContext, emp, Response);
|
||||
if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView
|
||||
return View();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user