diff --git a/ApiControllers/search_employeeControllers.cs b/ApiControllers/search_employeeControllers.cs new file mode 100644 index 0000000..64a0611 --- /dev/null +++ b/ApiControllers/search_employeeControllers.cs @@ -0,0 +1,108 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Authorization; +using Microsoft.Extensions.Logging; +using TTSW.Controllers; +using TTSW.EF; +using TTSW.Utils; +using TTSW.Constant; +using TTSW.Common; +using TodoAPI2.Models; +using System.Data; +using Microsoft.Extensions.Configuration; +using System.IO; + +namespace TodoAPI2.Controllers +{ + //[Authorize] + [Produces("application/json")] + [Route("api/search_employee")] + public class search_employeeController : BaseController + { + #region Private Variables + private ILogger _logger; + private Isearch_employeeService _repository; + private IConfiguration Configuration { get; set; } + #endregion + + #region Properties + + #endregion + + /// + /// Default constructure for dependency injection + /// + /// + /// + /// + public search_employeeController(ILogger logger, Isearch_employeeService repository, IConfiguration configuration) + { + _logger = logger; + _repository = repository; + Configuration = configuration; + } + + + /// + /// Get Blank Item + /// + /// + /// + /// Return a blank item + /// Returns the item + /// Error Occurred + [HttpGet("GetBlankItem")] + [ProducesResponseType(typeof(search_employeeWithSelectionViewModel), 200)] + [ProducesResponseType(400)] + [ProducesResponseType(500)] + //[ValidateAntiForgeryToken] + public IActionResult GetBlankItem() + { + try + { + if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); + var result = _repository.GetBlankItem(); + + return Ok(result); + } + catch (Exception ex) + { + _logger.LogCritical($"Exception in IActionResult GetBlankItem.", ex); + return StatusCode(500, $"{ex.Message}"); + } + } + + /// + /// Get list items by search + /// + /// + /// + /// Return list of items by specifced keyword + /// Returns the item + /// Error Occurred + [HttpGet("GetListBySearch")] + [ProducesResponseType(typeof(List), 200)] + [ProducesResponseType(400)] + [ProducesResponseType(500)] + //[ValidateAntiForgeryToken] + public IActionResult GetListBySearch(search_employeeSearchModel model) + { + try + { + if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); + return Ok(_repository.GetListBySearch(model)); + } + catch (Exception ex) + { + _logger.LogCritical($"Exception in IActionResult GetListBySearch.", ex); + return StatusCode(500, $"{ex.Message}"); + } + } + + + } +} diff --git a/EF/_BaseViewModel2.cs b/EF/_BaseViewModel2.cs index df5fcf6..ce92058 100644 --- a/EF/_BaseViewModel2.cs +++ b/EF/_BaseViewModel2.cs @@ -8,9 +8,9 @@ namespace TTSW.EF public class BaseViewModel2 : IBaseViewModel2 { public Key id { get; set; } - public DateTime Created {get; set;} + public DateTime? Created {get; set;} - public DateTime Updated {get; set;} + public DateTime? Updated {get; set;} public bool isActive { get; set;} } } diff --git a/EF/_IBaseViewModel2.cs b/EF/_IBaseViewModel2.cs index d7d75d3..e8fe04b 100644 --- a/EF/_IBaseViewModel2.cs +++ b/EF/_IBaseViewModel2.cs @@ -8,9 +8,9 @@ namespace TTSW.EF public interface IBaseViewModel2 { - DateTime Created { get; set; } + DateTime? Created { get; set; } - DateTime Updated { get; set; } + DateTime? Updated { get; set; } bool isActive { get; set; } diff --git a/EXCEL/external_employee@search_employee.xlsx b/EXCEL/external_employee@search_employee.xlsx new file mode 100644 index 0000000..562f549 Binary files /dev/null and b/EXCEL/external_employee@search_employee.xlsx differ diff --git a/Models/eva_adjust_postponement/eva_adjust_postponementService.cs b/Models/eva_adjust_postponement/eva_adjust_postponementService.cs index 1047bf2..9bc0b88 100644 --- a/Models/eva_adjust_postponement/eva_adjust_postponementService.cs +++ b/Models/eva_adjust_postponement/eva_adjust_postponementService.cs @@ -139,7 +139,7 @@ namespace TodoAPI2.Models Created = m_eva_adjust_postponement.created, Updated = m_eva_adjust_postponement.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_adjust_postponement_detail/eva_adjust_postponement_detailService.cs b/Models/eva_adjust_postponement_detail/eva_adjust_postponement_detailService.cs index e6b84aa..b94b2f9 100644 --- a/Models/eva_adjust_postponement_detail/eva_adjust_postponement_detailService.cs +++ b/Models/eva_adjust_postponement_detail/eva_adjust_postponement_detailService.cs @@ -141,7 +141,7 @@ namespace TodoAPI2.Models Created = m_eva_adjust_postponement_detail.created, Updated = m_eva_adjust_postponement_detail.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_adjust_postponement_detail_normal/eva_adjust_postponement_detail_normalService.cs b/Models/eva_adjust_postponement_detail_normal/eva_adjust_postponement_detail_normalService.cs index 6f6ef85..37cf1dd 100644 --- a/Models/eva_adjust_postponement_detail_normal/eva_adjust_postponement_detail_normalService.cs +++ b/Models/eva_adjust_postponement_detail_normal/eva_adjust_postponement_detail_normalService.cs @@ -142,7 +142,7 @@ namespace TodoAPI2.Models Created = m_eva_adjust_postponement_detail_normal.created, Updated = m_eva_adjust_postponement_detail_normal.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_adjust_postponement_detail_normal_02/eva_adjust_postponement_detail_normal_02Service.cs b/Models/eva_adjust_postponement_detail_normal_02/eva_adjust_postponement_detail_normal_02Service.cs index dfbc7a1..88ffb0f 100644 --- a/Models/eva_adjust_postponement_detail_normal_02/eva_adjust_postponement_detail_normal_02Service.cs +++ b/Models/eva_adjust_postponement_detail_normal_02/eva_adjust_postponement_detail_normal_02Service.cs @@ -137,7 +137,7 @@ namespace TodoAPI2.Models Created = m_eva_adjust_postponement_detail_normal_02.created, Updated = m_eva_adjust_postponement_detail_normal_02.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_adjust_postponement_detail_quota/eva_adjust_postponement_detail_quotaService.cs b/Models/eva_adjust_postponement_detail_quota/eva_adjust_postponement_detail_quotaService.cs index c1e919c..b9c2b72 100644 --- a/Models/eva_adjust_postponement_detail_quota/eva_adjust_postponement_detail_quotaService.cs +++ b/Models/eva_adjust_postponement_detail_quota/eva_adjust_postponement_detail_quotaService.cs @@ -142,7 +142,7 @@ namespace TodoAPI2.Models Created = m_eva_adjust_postponement_detail_quota.created, Updated = m_eva_adjust_postponement_detail_quota.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_adjust_postponement_detail_quota_02/eva_adjust_postponement_detail_quota_02Service.cs b/Models/eva_adjust_postponement_detail_quota_02/eva_adjust_postponement_detail_quota_02Service.cs index 03ad045..fd077d4 100644 --- a/Models/eva_adjust_postponement_detail_quota_02/eva_adjust_postponement_detail_quota_02Service.cs +++ b/Models/eva_adjust_postponement_detail_quota_02/eva_adjust_postponement_detail_quota_02Service.cs @@ -139,7 +139,7 @@ namespace TodoAPI2.Models Created = m_eva_adjust_postponement_detail_quota_02.created, Updated = m_eva_adjust_postponement_detail_quota_02.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_adjust_postponement_normal/eva_adjust_postponement_normalService.cs b/Models/eva_adjust_postponement_normal/eva_adjust_postponement_normalService.cs index ade0beb..3b9cd23 100644 --- a/Models/eva_adjust_postponement_normal/eva_adjust_postponement_normalService.cs +++ b/Models/eva_adjust_postponement_normal/eva_adjust_postponement_normalService.cs @@ -162,7 +162,7 @@ namespace TodoAPI2.Models Created = m_eva_adjust_postponement_normal.created, Updated = m_eva_adjust_postponement_normal.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_adjust_postponement_quota/eva_adjust_postponement_quotaService.cs b/Models/eva_adjust_postponement_quota/eva_adjust_postponement_quotaService.cs index 49104f2..c20be12 100644 --- a/Models/eva_adjust_postponement_quota/eva_adjust_postponement_quotaService.cs +++ b/Models/eva_adjust_postponement_quota/eva_adjust_postponement_quotaService.cs @@ -126,7 +126,7 @@ namespace TodoAPI2.Models Created = m_eva_adjust_postponement_quota.created, Updated = m_eva_adjust_postponement_quota.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_create_evaluation/eva_create_evaluationService.cs b/Models/eva_create_evaluation/eva_create_evaluationService.cs index b6dc3df..fdb3ee4 100644 --- a/Models/eva_create_evaluation/eva_create_evaluationService.cs +++ b/Models/eva_create_evaluation/eva_create_evaluationService.cs @@ -151,7 +151,7 @@ namespace TodoAPI2.Models Created = m_eva_create_evaluation.created, Updated = m_eva_create_evaluation.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_create_evaluation_detail/eva_create_evaluation_detailService.cs b/Models/eva_create_evaluation_detail/eva_create_evaluation_detailService.cs index 22400af..36d02a0 100644 --- a/Models/eva_create_evaluation_detail/eva_create_evaluation_detailService.cs +++ b/Models/eva_create_evaluation_detail/eva_create_evaluation_detailService.cs @@ -163,7 +163,7 @@ namespace TodoAPI2.Models Created = m_eva_create_evaluation_detail.created, Updated = m_eva_create_evaluation_detail.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_create_evaluation_detail_agreement/eva_create_evaluation_detail_agreementService.cs b/Models/eva_create_evaluation_detail_agreement/eva_create_evaluation_detail_agreementService.cs index 2d80d32..b74d475 100644 --- a/Models/eva_create_evaluation_detail_agreement/eva_create_evaluation_detail_agreementService.cs +++ b/Models/eva_create_evaluation_detail_agreement/eva_create_evaluation_detail_agreementService.cs @@ -105,7 +105,7 @@ namespace TodoAPI2.Models Created = m_eva_create_evaluation_detail_agreement.created, Updated = m_eva_create_evaluation_detail_agreement.updated } - ).Take(100).ToList(); + ).ToList(); return data[0]; } @@ -188,7 +188,7 @@ namespace TodoAPI2.Models Created = m_eva_create_evaluation_detail_agreement.created, Updated = m_eva_create_evaluation_detail_agreement.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_create_evaluation_detail_process/eva_create_evaluation_detail_processService.cs b/Models/eva_create_evaluation_detail_process/eva_create_evaluation_detail_processService.cs index 880e1b1..8eb1ee8 100644 --- a/Models/eva_create_evaluation_detail_process/eva_create_evaluation_detail_processService.cs +++ b/Models/eva_create_evaluation_detail_process/eva_create_evaluation_detail_processService.cs @@ -120,7 +120,7 @@ namespace TodoAPI2.Models Created = m_eva_create_evaluation_detail_process.created, Updated = m_eva_create_evaluation_detail_process.updated } - ).Take(100).ToList(); + ).ToList(); return data[0]; } @@ -224,7 +224,7 @@ namespace TodoAPI2.Models Created = m_eva_create_evaluation_detail_process.created, Updated = m_eva_create_evaluation_detail_process.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_create_evaluation_detail_review01/eva_create_evaluation_detail_review01Service.cs b/Models/eva_create_evaluation_detail_review01/eva_create_evaluation_detail_review01Service.cs index 620be6d..3aeeeaf 100644 --- a/Models/eva_create_evaluation_detail_review01/eva_create_evaluation_detail_review01Service.cs +++ b/Models/eva_create_evaluation_detail_review01/eva_create_evaluation_detail_review01Service.cs @@ -115,7 +115,7 @@ namespace TodoAPI2.Models Created = m_eva_create_evaluation_detail_review01.created, Updated = m_eva_create_evaluation_detail_review01.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_create_evaluation_detail_review02/eva_create_evaluation_detail_review02Service.cs b/Models/eva_create_evaluation_detail_review02/eva_create_evaluation_detail_review02Service.cs index e38e3b7..a0b037f 100644 --- a/Models/eva_create_evaluation_detail_review02/eva_create_evaluation_detail_review02Service.cs +++ b/Models/eva_create_evaluation_detail_review02/eva_create_evaluation_detail_review02Service.cs @@ -115,7 +115,7 @@ namespace TodoAPI2.Models Created = m_eva_create_evaluation_detail_review02.created, Updated = m_eva_create_evaluation_detail_review02.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_create_evaluation_detail_review03/eva_create_evaluation_detail_review03Service.cs b/Models/eva_create_evaluation_detail_review03/eva_create_evaluation_detail_review03Service.cs index e2c9013..eadcf1f 100644 --- a/Models/eva_create_evaluation_detail_review03/eva_create_evaluation_detail_review03Service.cs +++ b/Models/eva_create_evaluation_detail_review03/eva_create_evaluation_detail_review03Service.cs @@ -115,7 +115,7 @@ namespace TodoAPI2.Models Created = m_eva_create_evaluation_detail_review03.created, Updated = m_eva_create_evaluation_detail_review03.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_create_evaluation_detail_review04/eva_create_evaluation_detail_review04Service.cs b/Models/eva_create_evaluation_detail_review04/eva_create_evaluation_detail_review04Service.cs index a588292..7ccfd52 100644 --- a/Models/eva_create_evaluation_detail_review04/eva_create_evaluation_detail_review04Service.cs +++ b/Models/eva_create_evaluation_detail_review04/eva_create_evaluation_detail_review04Service.cs @@ -115,7 +115,7 @@ namespace TodoAPI2.Models Created = m_eva_create_evaluation_detail_review04.created, Updated = m_eva_create_evaluation_detail_review04.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_create_evaluation_detail_status/eva_create_evaluation_detail_statusService.cs b/Models/eva_create_evaluation_detail_status/eva_create_evaluation_detail_statusService.cs index 6fdcdb4..be975a0 100644 --- a/Models/eva_create_evaluation_detail_status/eva_create_evaluation_detail_statusService.cs +++ b/Models/eva_create_evaluation_detail_status/eva_create_evaluation_detail_statusService.cs @@ -107,7 +107,7 @@ namespace TodoAPI2.Models Created = m_eva_create_evaluation_detail_status.created, Updated = m_eva_create_evaluation_detail_status.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_create_evaluation_detail_summary1/eva_create_evaluation_detail_summary1Service.cs b/Models/eva_create_evaluation_detail_summary1/eva_create_evaluation_detail_summary1Service.cs index c577cb1..190af89 100644 --- a/Models/eva_create_evaluation_detail_summary1/eva_create_evaluation_detail_summary1Service.cs +++ b/Models/eva_create_evaluation_detail_summary1/eva_create_evaluation_detail_summary1Service.cs @@ -112,7 +112,7 @@ namespace TodoAPI2.Models Created = m_eva_create_evaluation_detail_summary1.created, Updated = m_eva_create_evaluation_detail_summary1.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_create_evaluation_detail_summary2/eva_create_evaluation_detail_summary2Service.cs b/Models/eva_create_evaluation_detail_summary2/eva_create_evaluation_detail_summary2Service.cs index c5c961f..7e75271 100644 --- a/Models/eva_create_evaluation_detail_summary2/eva_create_evaluation_detail_summary2Service.cs +++ b/Models/eva_create_evaluation_detail_summary2/eva_create_evaluation_detail_summary2Service.cs @@ -112,7 +112,7 @@ namespace TodoAPI2.Models Created = m_eva_create_evaluation_detail_summary2.created, Updated = m_eva_create_evaluation_detail_summary2.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_evaluation_achievement/eva_evaluation_achievementService.cs b/Models/eva_evaluation_achievement/eva_evaluation_achievementService.cs index 94021e5..9c980e5 100644 --- a/Models/eva_evaluation_achievement/eva_evaluation_achievementService.cs +++ b/Models/eva_evaluation_achievement/eva_evaluation_achievementService.cs @@ -118,7 +118,7 @@ namespace TodoAPI2.Models Created = m_eva_evaluation_achievement.created, Updated = m_eva_evaluation_achievement.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_evaluation_achievement_process/eva_evaluation_achievement_processService.cs b/Models/eva_evaluation_achievement_process/eva_evaluation_achievement_processService.cs index af3b29f..f51a860 100644 --- a/Models/eva_evaluation_achievement_process/eva_evaluation_achievement_processService.cs +++ b/Models/eva_evaluation_achievement_process/eva_evaluation_achievement_processService.cs @@ -117,7 +117,7 @@ namespace TodoAPI2.Models Created = m_eva_evaluation_achievement_process.created, Updated = m_eva_evaluation_achievement_process.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_evaluation_achievement_process2/eva_evaluation_achievement_process2Service.cs b/Models/eva_evaluation_achievement_process2/eva_evaluation_achievement_process2Service.cs index 6be7e9c..195e211 100644 --- a/Models/eva_evaluation_achievement_process2/eva_evaluation_achievement_process2Service.cs +++ b/Models/eva_evaluation_achievement_process2/eva_evaluation_achievement_process2Service.cs @@ -121,7 +121,7 @@ namespace TodoAPI2.Models Created = m_eva_evaluation_achievement_process2.created, Updated = m_eva_evaluation_achievement_process2.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_evaluation_behavior/eva_evaluation_behaviorService.cs b/Models/eva_evaluation_behavior/eva_evaluation_behaviorService.cs index a61fa38..2157001 100644 --- a/Models/eva_evaluation_behavior/eva_evaluation_behaviorService.cs +++ b/Models/eva_evaluation_behavior/eva_evaluation_behaviorService.cs @@ -110,7 +110,7 @@ namespace TodoAPI2.Models Created = m_eva_evaluation_behavior.created, Updated = m_eva_evaluation_behavior.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_evaluation_behavior_process/eva_evaluation_behavior_processService.cs b/Models/eva_evaluation_behavior_process/eva_evaluation_behavior_processService.cs index b1bc31f..622b059 100644 --- a/Models/eva_evaluation_behavior_process/eva_evaluation_behavior_processService.cs +++ b/Models/eva_evaluation_behavior_process/eva_evaluation_behavior_processService.cs @@ -122,7 +122,7 @@ namespace TodoAPI2.Models Created = m_eva_evaluation_behavior_process.created, Updated = m_eva_evaluation_behavior_process.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_evaluation_behavior_process2/eva_evaluation_behavior_process2Service.cs b/Models/eva_evaluation_behavior_process2/eva_evaluation_behavior_process2Service.cs index 9d8fb6c..a7565fd 100644 --- a/Models/eva_evaluation_behavior_process2/eva_evaluation_behavior_process2Service.cs +++ b/Models/eva_evaluation_behavior_process2/eva_evaluation_behavior_process2Service.cs @@ -119,7 +119,7 @@ namespace TodoAPI2.Models Created = m_eva_evaluation_behavior_process2.created, Updated = m_eva_evaluation_behavior_process2.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_evaluation_group/eva_evaluation_groupService.cs b/Models/eva_evaluation_group/eva_evaluation_groupService.cs index ade101a..ba8df02 100644 --- a/Models/eva_evaluation_group/eva_evaluation_groupService.cs +++ b/Models/eva_evaluation_group/eva_evaluation_groupService.cs @@ -104,7 +104,7 @@ namespace TodoAPI2.Models Created = m_eva_evaluation_group.created, Updated = m_eva_evaluation_group.updated } - ).Take(100).ToList(); + ).ToList(); return data; } @@ -129,7 +129,7 @@ namespace TodoAPI2.Models Created = m_eva_evaluation_group.created, Updated = m_eva_evaluation_group.updated } - ).Take(100).ToList(); + ).ToList(); return data; } @@ -156,7 +156,7 @@ namespace TodoAPI2.Models Created = m_eva_evaluation_group.created, Updated = m_eva_evaluation_group.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_evaluation_group_detail/eva_evaluation_group_detailService.cs b/Models/eva_evaluation_group_detail/eva_evaluation_group_detailService.cs index 9a1b4b4..7dfcbc1 100644 --- a/Models/eva_evaluation_group_detail/eva_evaluation_group_detailService.cs +++ b/Models/eva_evaluation_group_detail/eva_evaluation_group_detailService.cs @@ -122,7 +122,7 @@ namespace TodoAPI2.Models Created = m_eva_evaluation_group_detail.created, Updated = m_eva_evaluation_group_detail.updated } - ).Take(100).ToList(); + ).ToList(); return data; } @@ -161,7 +161,7 @@ namespace TodoAPI2.Models Created = m_eva_evaluation_group_detail.created, Updated = m_eva_evaluation_group_detail.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_level_score/eva_level_scoreService.cs b/Models/eva_level_score/eva_level_scoreService.cs index fd86ebe..790b90c 100644 --- a/Models/eva_level_score/eva_level_scoreService.cs +++ b/Models/eva_level_score/eva_level_scoreService.cs @@ -108,7 +108,7 @@ namespace TodoAPI2.Models Created = m_eva_level_score.created, Updated = m_eva_level_score.updated } - ).Take(100).ToList(); + ).ToList(); return data; } @@ -135,7 +135,7 @@ namespace TodoAPI2.Models Created = m_eva_level_score.created, Updated = m_eva_level_score.updated } - ).Take(100).ToList(); + ).ToList(); return data; } @@ -164,7 +164,7 @@ namespace TodoAPI2.Models Created = m_eva_level_score.created, Updated = m_eva_level_score.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_level_score_basic/eva_level_score_basicService.cs b/Models/eva_level_score_basic/eva_level_score_basicService.cs index 8a49069..a6ab3b8 100644 --- a/Models/eva_level_score_basic/eva_level_score_basicService.cs +++ b/Models/eva_level_score_basic/eva_level_score_basicService.cs @@ -107,7 +107,7 @@ namespace TodoAPI2.Models Created = m_eva_level_score_basic.created, Updated = m_eva_level_score_basic.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_performance_plan/eva_performance_planService.cs b/Models/eva_performance_plan/eva_performance_planService.cs index e20f88f..df6e808 100644 --- a/Models/eva_performance_plan/eva_performance_planService.cs +++ b/Models/eva_performance_plan/eva_performance_planService.cs @@ -104,7 +104,7 @@ namespace TodoAPI2.Models Created = m_eva_performance_plan.created, Updated = m_eva_performance_plan.updated } - ).Take(100).ToList(); + ).ToList(); return data; } @@ -129,7 +129,7 @@ namespace TodoAPI2.Models Created = m_eva_performance_plan.created, Updated = m_eva_performance_plan.updated } - ).Take(100).ToList(); + ).ToList(); return data; } @@ -157,7 +157,7 @@ namespace TodoAPI2.Models Created = m_eva_performance_plan.created, Updated = m_eva_performance_plan.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_performance_plan_detail/eva_performance_plan_detailService.cs b/Models/eva_performance_plan_detail/eva_performance_plan_detailService.cs index 15cf684..311d672 100644 --- a/Models/eva_performance_plan_detail/eva_performance_plan_detailService.cs +++ b/Models/eva_performance_plan_detail/eva_performance_plan_detailService.cs @@ -117,7 +117,7 @@ namespace TodoAPI2.Models Created = m_eva_performance_plan_detail.created, Updated = m_eva_performance_plan_detail.updated } - ).Take(100).ToList(); + ).ToList(); return data; } @@ -151,7 +151,7 @@ namespace TodoAPI2.Models Created = m_eva_performance_plan_detail.created, Updated = m_eva_performance_plan_detail.updated } - ).Take(100).ToList(); + ).ToList(); return data; } @@ -187,7 +187,7 @@ namespace TodoAPI2.Models Created = m_eva_performance_plan_detail.created, Updated = m_eva_performance_plan_detail.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_promoted_percentage/eva_promoted_percentageService.cs b/Models/eva_promoted_percentage/eva_promoted_percentageService.cs index 9cebefb..c3b845e 100644 --- a/Models/eva_promoted_percentage/eva_promoted_percentageService.cs +++ b/Models/eva_promoted_percentage/eva_promoted_percentageService.cs @@ -117,7 +117,7 @@ namespace TodoAPI2.Models Created = m_eva_promoted_percentage.created, Updated = m_eva_promoted_percentage.updated } - ).Take(100).ToList(); + ).ToList(); return data; } @@ -151,7 +151,7 @@ namespace TodoAPI2.Models Created = m_eva_promoted_percentage.created, Updated = m_eva_promoted_percentage.updated } - ).Take(100).ToList(); + ).ToList(); return data; } @@ -187,7 +187,7 @@ namespace TodoAPI2.Models Created = m_eva_promoted_percentage.created, Updated = m_eva_promoted_percentage.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/eva_salary_cylinder/eva_salary_cylinderService.cs b/Models/eva_salary_cylinder/eva_salary_cylinderService.cs index a319579..846ddcd 100644 --- a/Models/eva_salary_cylinder/eva_salary_cylinderService.cs +++ b/Models/eva_salary_cylinder/eva_salary_cylinderService.cs @@ -114,7 +114,7 @@ namespace TodoAPI2.Models Created = m_eva_salary_cylinder.created, Updated = m_eva_salary_cylinder.updated } - ).Take(100).ToList(); + ).ToList(); return data; } @@ -156,7 +156,7 @@ namespace TodoAPI2.Models Created = m_eva_salary_cylinder.created, Updated = m_eva_salary_cylinder.updated } - ).Take(100).ToList(); + ).ToList(); return data; } diff --git a/Models/search_employee/Isearch_employeeService.cs b/Models/search_employee/Isearch_employeeService.cs new file mode 100644 index 0000000..36842b1 --- /dev/null +++ b/Models/search_employee/Isearch_employeeService.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using TTSW.EF; +using TTSW.Utils; +using TTSW.Constant; +using TTSW.Common; +using TodoAPI2.Models; + +namespace TodoAPI2.Models +{ + public interface Isearch_employeeService + { + List GetListByfullname(string fullname); + List GetListBySearch(search_employeeSearchModel model); + + search_employeeWithSelectionViewModel GetBlankItem(); + + + + } +} + diff --git a/Models/search_employee/search_employeeInputModel.cs b/Models/search_employee/search_employeeInputModel.cs new file mode 100644 index 0000000..212276b --- /dev/null +++ b/Models/search_employee/search_employeeInputModel.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Threading.Tasks; +using TTSW.EF; +using TTSW.Utils; +using TTSW.Constant; +using TTSW.Common; + +namespace TodoAPI2.Models +{ + public class search_employeeInputModel + { + + public int? id { get; set; } + + public Guid? eva_evaluation_group_id { get; set; } + + public string employee_number { get; set; } + + public string fullname { get; set; } + + public string position_name { get; set; } + + public string level_name { get; set; } + + public int? org_id { get; set; } + + public string remark { get; set; } + + public string active_mode { get; set; } + } +} + diff --git a/Models/search_employee/search_employeeReportRequestModel.cs b/Models/search_employee/search_employeeReportRequestModel.cs new file mode 100644 index 0000000..ec413a6 --- /dev/null +++ b/Models/search_employee/search_employeeReportRequestModel.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Threading.Tasks; +using TTSW.EF; +using TTSW.Utils; +using TTSW.Constant; +using TTSW.Common; + +namespace TodoAPI2.Models +{ + public class search_employeeReportRequestModel : search_employeeSearchModel + { + public string filetype { get; set; } + + public string contentType { get { return MyHelper.GetContentType(filetype); } } + } +} + diff --git a/Models/search_employee/search_employeeSearchModel.cs b/Models/search_employee/search_employeeSearchModel.cs new file mode 100644 index 0000000..eae3121 --- /dev/null +++ b/Models/search_employee/search_employeeSearchModel.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Threading.Tasks; +using TTSW.EF; +using TTSW.Utils; +using TTSW.Constant; +using TTSW.Common; + +namespace TodoAPI2.Models +{ + public class search_employeeSearchModel + { + + public int id { get; set; } + + public Guid? eva_evaluation_group_id { get; set; } + + public string fullname { get; set; } + + public int? org_id { get; set; } + + } +} + diff --git a/Models/search_employee/search_employeeService.cs b/Models/search_employee/search_employeeService.cs new file mode 100644 index 0000000..373851a --- /dev/null +++ b/Models/search_employee/search_employeeService.cs @@ -0,0 +1,100 @@ +using AutoMapper; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using TTSW.EF; +using TTSW.Utils; +using TTSW.Constant; +using TTSW.Common; +using TodoAPI2.Models; +using System.IO; +using System.Web; +using System.Net; +using TTSW.Configure; +using Microsoft.Extensions.Options; +using System.Data; + +namespace TodoAPI2.Models +{ + public class search_employeeService : Isearch_employeeService + { + private IBaseRepository2 _repository; + private IMyDatabase db; + private Iexternal_linkageService ext; + private Iexternal_employeeService emp; + + public search_employeeService(IBaseRepository2 repository, + IMyDatabase mydb, + Iexternal_linkageService inext, + Iexternal_employeeService inemp) + { + db = mydb; + ext = inext; + _repository = repository; + emp = inemp; + } + + public search_employeeWithSelectionViewModel GetBlankItem() + { + var i = new search_employeeWithSelectionViewModel(); + i.item_eva_evaluation_group_id = (from x in _repository.Context.eva_evaluation_group orderby x.thegroup select x).ToList(); + i.item_org_id = (from x in ext.GetDepartmentData() orderby x.external_name select x).ToList(); + + + return i; + } + + public List GetListByfullname(string fullname) + { + var model = new search_employeeSearchModel(); + model.fullname = fullname; + return GetListBySearch(model); + } + + public List GetListBySearch(search_employeeSearchModel model) + { + var allemp = emp.GetListByemployee_type(null, null).ToList(); + + var data = ( + from m_search_employee in allemp + + join fk_eva_evaluation_group1_detail in _repository.Context.eva_evaluation_group_detail on m_search_employee.id equals fk_eva_evaluation_group1_detail.employee_id + into eva_evaluation_groupResult1_detail + from fk_eva_evaluation_groupResult1_detail in eva_evaluation_groupResult1_detail.DefaultIfEmpty() + + //join fk_eva_evaluation_group1 in _repository.Context.eva_evaluation_group on fk_eva_evaluation_groupResult1_detail.evaluation_group_id equals fk_eva_evaluation_group1.id + //into eva_evaluation_groupResult1 + //from fk_eva_evaluation_groupResult1 in eva_evaluation_groupResult1.DefaultIfEmpty() + + where 1 == 1 + && ((fk_eva_evaluation_groupResult1_detail != null && fk_eva_evaluation_groupResult1_detail.evaluation_group_id == model.eva_evaluation_group_id) || !model.eva_evaluation_group_id.HasValue) + && (string.IsNullOrEmpty(model.fullname) || (!string.IsNullOrEmpty(m_search_employee.fullname) && (m_search_employee.fullname.Contains(model.fullname)))) + && (m_search_employee.department_id == model.org_id || !model.org_id.HasValue) + + orderby m_search_employee.fullname + select new search_employeeViewModel() + { + id = m_search_employee.id, + eva_evaluation_group_id = fk_eva_evaluation_groupResult1_detail != null ? fk_eva_evaluation_groupResult1_detail.evaluation_group_id : null, + employee_number = m_search_employee.employee_no, + fullname = m_search_employee.fullname, + position_name = m_search_employee.position_name, + level_name = m_search_employee.position_level_text, + org_id = m_search_employee.department_id, + remark = m_search_employee.user_email, + + eva_evaluation_group_id_eva_evaluation_group_code = null, + org_id_external_linkage_external_name = m_search_employee.department_name, + + isActive = true, + Created = null, + Updated = null + } + ).ToList(); + + return data; + } + } +} + diff --git a/Models/search_employee/search_employeeViewModel.cs b/Models/search_employee/search_employeeViewModel.cs new file mode 100644 index 0000000..78f941b --- /dev/null +++ b/Models/search_employee/search_employeeViewModel.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Threading.Tasks; +using TTSW.EF; +using TTSW.Utils; +using TTSW.Constant; +using TTSW.Common; + +namespace TodoAPI2.Models +{ + public class search_employeeViewModel : BaseViewModel2 + { + + public Guid? eva_evaluation_group_id { get; set; } + + public string employee_number { get; set; } + + public string fullname { get; set; } + + public string position_name { get; set; } + + public string level_name { get; set; } + + public int? org_id { get; set; } + + public string remark { get; set; } + + public string eva_evaluation_group_id_eva_evaluation_group_code { get; set; } + public string org_id_external_linkage_external_name { get; set; } + + } +} \ No newline at end of file diff --git a/Models/search_employee/search_employeeWithSelectionViewModel.cs b/Models/search_employee/search_employeeWithSelectionViewModel.cs new file mode 100644 index 0000000..9b0c492 --- /dev/null +++ b/Models/search_employee/search_employeeWithSelectionViewModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace TodoAPI2.Models +{ + public class search_employeeWithSelectionViewModel: search_employeeViewModel + { + public List item_eva_evaluation_group_id { get; set; } + public List item_org_id { get; set; } + + } +} \ No newline at end of file diff --git a/Startup.cs b/Startup.cs index 18434df..0061ef4 100644 --- a/Startup.cs +++ b/Startup.cs @@ -282,6 +282,8 @@ namespace Test01 services.AddScoped(); + services.AddScoped(); + #endregion services.TryAddSingleton(); @@ -485,6 +487,10 @@ namespace Test01 cfg.CreateMap(); cfg.CreateMap(); + //cfg.CreateMap(); + //cfg.CreateMap(); + //cfg.CreateMap(); + }); #endregion diff --git a/ViewControllers/search_employeeViewControllers.cs b/ViewControllers/search_employeeViewControllers.cs new file mode 100644 index 0000000..32f4b3c --- /dev/null +++ b/ViewControllers/search_employeeViewControllers.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using TodoAPI2.Models; +using STAFF_API.Models; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Configuration; +using TodoAPI2.Controllers; + +namespace TodoAPI2.Controllers +{ + public class search_employeeViewController : Controller + { + private ILogger _logger; + private Isearch_employeeService _repository; + private IConfiguration Configuration { get; set; } + + /// + /// Default constructure for dependency injection + /// + /// + /// + /// + public search_employeeViewController(ILogger logger, Isearch_employeeService repository, IConfiguration configuration) + { + _logger = logger; + _repository = repository; + Configuration = configuration; + } + + public IActionResult search_employee() + { + if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView + return View(); + } + + public IActionResult search_employee_d() + { + if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView + return View(); + } + + //public IActionResult search_employee_report() + //{ + // if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView + // return View(); + //} + + //public IActionResult search_employee_inline() + //{ + // if (!MyHelper.checkAuth(Configuration, HttpContext)) return Unauthorized(); // Or UnauthorizedView + // return View(); + //} + + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] + public IActionResult Error() + { + return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); + } + } +} + + diff --git a/Views/search_employeeView/search_employee.cshtml b/Views/search_employeeView/search_employee.cshtml new file mode 100644 index 0000000..3892f48 --- /dev/null +++ b/Views/search_employeeView/search_employee.cshtml @@ -0,0 +1,82 @@ +@using Microsoft.Extensions.Configuration +@inject IConfiguration Configuration +@{ + ViewData["Title"] = "search_employee"; + Layout = "_LayoutDirect"; +} + + +
+
+
+ @Configuration["SiteInformation:modulename"] +
+
+
+ +
+
+ +
+
ค้นหารายชื่อ บุคคลากร
+
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+
+
+ + +
+
+
+ + + + + + + + + + + + + + +
+
+ + +@section FooterPlaceHolder{ + + +} + diff --git a/tb320eva.xml b/tb320eva.xml index 50b871e..a701d69 100644 --- a/tb320eva.xml +++ b/tb320eva.xml @@ -3589,6 +3589,34 @@ Returns the item Error Occurred + + + Default constructure for dependency injection + + + + + + + + Get Blank Item + + + + Return a blank item + Returns the item + Error Occurred + + + + Get list items by search + + + + Return list of items by specifced keyword + Returns the item + Error Occurred + Default constructure for dependency injection @@ -3837,6 +3865,14 @@ + + + Default constructure for dependency injection + + + + + Default constructure for dependency injection diff --git a/wwwroot/js/eva_create_evaluation_detail/eva_create_evaluation_detail.js b/wwwroot/js/eva_create_evaluation_detail/eva_create_evaluation_detail.js index 498c24b..608c4a9 100644 --- a/wwwroot/js/eva_create_evaluation_detail/eva_create_evaluation_detail.js +++ b/wwwroot/js/eva_create_evaluation_detail/eva_create_evaluation_detail.js @@ -53,7 +53,7 @@ function eva_create_evaluation_detail_InitialForm(s) { //================= Form Mode Setup and Flow ========================================= function eva_create_evaluation_detail_GoCreate() { - window_open(appsite + "/external_employeeview/external_employee"); + window_open(appsite + "/search_employeeview/search_employee"); // Incase model popup //eva_create_evaluation_detail_SetCreateForm(true); diff --git a/wwwroot/js/search_employee/search_employee.js b/wwwroot/js/search_employee/search_employee.js new file mode 100644 index 0000000..278c140 --- /dev/null +++ b/wwwroot/js/search_employee/search_employee.js @@ -0,0 +1,240 @@ +var search_employee_editMode = "CREATE"; +var search_employee_API = "/api/search_employee/"; + +//================= Search Customizaiton ========================================= + +function search_employee_GetSearchParameter() { + var search_employeeSearchObject = new Object(); +search_employeeSearchObject.eva_evaluation_group_id = $("#s_search_employee_eva_evaluation_group_id").val(); +search_employeeSearchObject.fullname = $("#s_search_employee_fullname").val(); +search_employeeSearchObject.org_id = $("#s_search_employee_org_id").val(); + + return search_employeeSearchObject; +} + +function search_employee_FeedDataToSearchForm(data) { +DropDownClearFormAndFeedWithData($("#s_search_employee_eva_evaluation_group_id"), data, "id", "thegroup", "item_eva_evaluation_group_id", data.eva_evaluation_group_id); +$("#s_search_employee_fullname").val(data.fullname); +DropDownClearFormAndFeedWithData($("#s_search_employee_org_id"), data, "id", "external_name", "item_org_id", data.org_id); + +} + +//================= Form Data Customizaiton ========================================= + +function search_employee_FeedDataToForm(data) { +$("#search_employee_id").val(data.id); +DropDownClearFormAndFeedWithData($("#search_employee_eva_evaluation_group_id"), data, "id", "thegroup", "item_eva_evaluation_group_id", data.eva_evaluation_group_id); +$("#search_employee_employee_number").val(data.employee_number); +$("#search_employee_fullname").val(data.fullname); +$("#search_employee_position_name").val(data.position_name); +$("#search_employee_level_name").val(data.level_name); +DropDownClearFormAndFeedWithData($("#search_employee_org_id"), data, "id", "external_name", "item_org_id", data.org_id); +$("#search_employee_remark").val(data.remark); + +} + +function search_employee_GetFromForm() { + var search_employeeObject = new Object(); +search_employeeObject.id = $("#search_employee_id").val(); +search_employeeObject.eva_evaluation_group_id = $("#search_employee_eva_evaluation_group_id").val(); +search_employeeObject.employee_number = $("#search_employee_employee_number").val(); +search_employeeObject.fullname = $("#search_employee_fullname").val(); +search_employeeObject.position_name = $("#search_employee_position_name").val(); +search_employeeObject.level_name = $("#search_employee_level_name").val(); +search_employeeObject.org_id = $("#search_employee_org_id").val(); +search_employeeObject.remark = $("#search_employee_remark").val(); + + + return search_employeeObject; +} + +function search_employee_InitialForm(s) { + var successFunc = function (result) { + search_employee_FeedDataToForm(result); + search_employee_FeedDataToSearchForm(result); + if (s) { + // Incase model popup + $("#search_employeeModel").modal("show"); + } + endLoad(); + }; + startLoad(); + AjaxGetRequest(apisite + search_employee_API + "GetBlankItem", successFunc, AlertDanger); +} + +//================= Form Mode Setup and Flow ========================================= + +function search_employee_GoCreate() { + // Incase model popup + search_employee_SetCreateForm(true); + + // Incase open new page + //window_open(appsite + "/search_employeeView/search_employee_d"); +} + +function search_employee_GoEdit(a) { + // Incase model popup + search_employee_SetEditForm(a); + + // Incase open new page + //window_open(appsite + "/search_employeeView/search_employee_d?id=" + a); +} + +function search_employee_SetEditForm(a) { + var successFunc = function (result) { + search_employee_editMode = "UPDATE"; + search_employee_FeedDataToForm(result); + $("#search_employeeModel").modal("show"); + endLoad(); + }; + startLoad(); + AjaxGetRequest(apisite + search_employee_API + a, successFunc, AlertDanger); +} + +function search_employee_SetCreateForm(s) { + search_employee_editMode = "CREATE"; + search_employee_InitialForm(s); +} + +function search_employee_RefreshTable() { + // Incase model popup + search_employee_DoSearch(); + + // Incase open new page + //window.parent.search_employee_DoSearch(); +} + +//================= Update and Delete ========================================= + +var search_employee_customValidation = function (group) { + return ""; +}; + +function search_employee_PutUpdate() { + if (!ValidateForm('search_employee', search_employee_customValidation)) + { + return; + } + + var data = search_employee_GetFromForm(); + + //Update Mode + if (search_employee_editMode === "UPDATE") { + var successFunc1 = function (result) { + $("#search_employeeModel").modal("hide"); + AlertSuccess(result.code+" "+result.message); + search_employee_RefreshTable(); + endLoad(); + }; + startLoad(); + AjaxPutRequest(apisite + search_employee_API + data.id, data, successFunc1, AlertDanger); + } + // Create mode + else { + var successFunc2 = function (result) { + $("#search_employeeModel").modal("hide"); + AlertSuccess(result.code+" "+result.message); + search_employee_RefreshTable(); + endLoad(); + }; + startLoad(); + AjaxPostRequest(apisite + search_employee_API, data, successFunc2, AlertDanger); + } +} + +function search_employee_GoDelete(a) { + if (confirm('คุณต้องการลบข้อมูล ใช่หรือไม่?')) { + var successFunc = function (result) { + $("#search_employeeModel").modal("hide"); + AlertSuccess(result.code+" "+result.message); + search_employee_RefreshTable(); + endLoad(); + }; + startLoad(); + AjaxDeleteRequest(apisite + search_employee_API + a, null, successFunc, AlertDanger); + } +} + +//================= Data Table ========================================= + +var search_employeeTableV; + +var search_employee_setupTable = function (result) { + tmp = '"'; + search_employeeTableV = $('#search_employeeTable').DataTable({ + "processing": true, + "serverSide": false, + "data": result, + "select": { + "style": 'multi' + }, + "columns": [ + { "data": "" }, + { "data": "employee_number" }, + { "data": "fullname" }, + { "data": "position_name" }, + { "data": "level_name" }, + { "data": "org_id_external_linkage_external_name" }, + { "data": "remark" }, + ], + "columnDefs": [ + { + targets: 0, + data: "", + defaultContent: '', + orderable: false, + className: 'select-checkbox' + }], + "language": { + "url": appsite + "/DataTables-1.10.16/thai.json" + }, + "paging": true, + "searching": false + }); + + endLoad(); +}; + +function search_employee_SelectAll(){ + search_employeeTableV.rows().select(); +} + +function search_employee_DeselectAll(){ + search_employeeTableV.rows().deselect(); +} + +function search_employee_InitiateDataTable() { + startLoad(); + var p = $.param(search_employee_GetSearchParameter()); + AjaxGetRequest(apisite + "/api/search_employee/GetListBySearch?"+p, search_employee_setupTable, AlertDanger); +} + +function search_employee_DoSearch() { + var p = $.param(search_employee_GetSearchParameter()); + var search_employee_reload = function (result) { + search_employeeTableV.destroy(); + search_employee_setupTable(result); + endLoad(); + }; + startLoad(); + AjaxGetRequest(apisite + "/api/search_employee/GetListBySearch?"+p, search_employee_reload, AlertDanger); +} + +function search_employee_GetSelect(f) { + var search_employee_selectitem = []; + $.each(search_employeeTableV.rows('.selected').data(), function (key, value) { + search_employee_selectitem.push(value[f]); + }); + //alert(search_employee_selectitem); + window_close(); + window.parent.AddMultiple(search_employee_selectitem); +} + +//================= File Upload ========================================= + + + +//================= Multi-Selection Function ========================================= + + +