146 lines
4.8 KiB
C#
146 lines
4.8 KiB
C#
|
|
|
|||
|
|
using Ease.Core.Model;
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|||
|
|
using System.Data;
|
|||
|
|
using System.IO;
|
|||
|
|
using System.Reflection;
|
|||
|
|
|
|||
|
|
|
|||
|
|
namespace HRM.BO
|
|||
|
|
{
|
|||
|
|
#region Class TrainingNeedAnalysis
|
|||
|
|
[Serializable]
|
|||
|
|
public class TrainingNeedAnalysis : AuditTrailBase
|
|||
|
|
{
|
|||
|
|
#region Constructor
|
|||
|
|
public TrainingNeedAnalysis()
|
|||
|
|
{
|
|||
|
|
TrainingYear = 0;
|
|||
|
|
Name = string.Empty;
|
|||
|
|
DepartmentID = 0;
|
|||
|
|
EmployeeID = 0;
|
|||
|
|
TrainingID = 0;
|
|||
|
|
Description = string.Empty;
|
|||
|
|
MaxParticipent = 0;
|
|||
|
|
// _schedule = string.Empty;
|
|||
|
|
Conduct_Required = 0;
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region Properties
|
|||
|
|
public int TrainingYear { get; set; }
|
|||
|
|
public int EmployeeID { get; set; }
|
|||
|
|
public Employee Employee { get; set; }
|
|||
|
|
public int? TrainingID { get; set; }
|
|||
|
|
public Training Training { get; set; }
|
|||
|
|
public int DepartmentID { get; set; }
|
|||
|
|
|
|||
|
|
public string Description { get; set; }
|
|||
|
|
|
|||
|
|
public string Name { get; set; }
|
|||
|
|
|
|||
|
|
public int? MaxParticipent { get; set; }
|
|||
|
|
|
|||
|
|
public double? Conduct_Required { get; set; }
|
|||
|
|
|
|||
|
|
public List<TrainingDepartment> TrainingDepartments { get; set; }
|
|||
|
|
public List<SubordinateTrainee> TrainingEmployee { get; set; }
|
|||
|
|
public List<TrainingNdAnalysisTimeSch> TrainingNdAnalysisTimeSchs { get; set; }
|
|||
|
|
public EnumNeedType? NeedType { get; set; } // Need Type
|
|||
|
|
public string? ExpectedDate { get; set; } // By When Review Date
|
|||
|
|
public string? ExpectedResults { get; set; } // Expected Outcome
|
|||
|
|
public int ObjectiveSetID { get; set; }
|
|||
|
|
public bool isFirstLM { get; set; }
|
|||
|
|
|
|||
|
|
//view Purpose
|
|||
|
|
public int? IDPLMID { get; set; }
|
|||
|
|
public DateTime? IDPLMRDate { get; set; }
|
|||
|
|
public int? IDPLMUserID { get; set; }
|
|||
|
|
public enumIDPStatus? IDPLMStatus { get; set; }
|
|||
|
|
|
|||
|
|
public int? IDPSecondLMID { get; set; }
|
|||
|
|
public DateTime? IDPSecondLMRDate { get; set; }
|
|||
|
|
public enumIDPStatus? IDPSecondLMStatus { get; set; }
|
|||
|
|
|
|||
|
|
// Set once this need has been enrolled onto a TrainingSchedule from the Training
|
|||
|
|
// Need Analysis screen. Mirrors DevelopmentPlan.Enrolled.
|
|||
|
|
public bool Enrolled { get; set; }
|
|||
|
|
|
|||
|
|
//view Purpose - Training Need Analysis screen grids
|
|||
|
|
public string EmployeeName { get; set; }
|
|||
|
|
public string EmployeeNo { get; set; }
|
|||
|
|
public string DepartmentName { get; set; }
|
|||
|
|
public string DesignationName { get; set; }
|
|||
|
|
public string TrainingName { get; set; }
|
|||
|
|
public string NeedTypeName { get; set; }
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region Class SubordinateTrainee
|
|||
|
|
public class SubordinateTrainee : BasicBaseObject
|
|||
|
|
{
|
|||
|
|
#region Constructor
|
|||
|
|
public SubordinateTrainee()
|
|||
|
|
{
|
|||
|
|
TrainingNeedAnalysisID = 0;
|
|||
|
|
EmployeeID = 0;
|
|||
|
|
Remarks = string.Empty;
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region Properties
|
|||
|
|
public int TrainingNeedAnalysisID { get; set; }
|
|||
|
|
public int EmployeeID { get; set; }
|
|||
|
|
public string Remarks { get; set; }
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
#region ITrainingNeedAnalysisService Service
|
|||
|
|
public interface ITrainingNeedAnalysisService
|
|||
|
|
{
|
|||
|
|
TrainingNeedAnalysis Get(int id);
|
|||
|
|
TrainingNeedAnalysis GetByEmployeeID(string employeeNo);
|
|||
|
|
|
|||
|
|
List<TrainingNeedAnalysis> Get();
|
|||
|
|
List<TrainingNeedAnalysis> GetByYear(int year);
|
|||
|
|
List<TrainingNeedAnalysis> Get(string query);
|
|||
|
|
int Save(TrainingNeedAnalysis oTrainingNeedAnalysis, CurrentUser oCurrentUser);
|
|||
|
|
void Delete(int id);
|
|||
|
|
|
|||
|
|
|
|||
|
|
List<TrainingNeedAnalysis> Get(int trainingID, int departmentID, int departmentForID, int trainingType);
|
|||
|
|
|
|||
|
|
List<TrainingNeedAnalysis> GetByParam(int year, string sDeptIDs, string sDeptForIDs);
|
|||
|
|
|
|||
|
|
#region Subordinate Interface
|
|||
|
|
SubordinateTrainee SubordinateGet(int id);
|
|||
|
|
List<SubordinateTrainee> SubordinateGet();
|
|||
|
|
List<SubordinateTrainee> GetByTrainingNeedAnalysisID(int trainingNeedAnalysisID);
|
|||
|
|
#endregion
|
|||
|
|
TrainingNeedAnalysis IsExist(int trainingID);
|
|||
|
|
List<TrainingNeedAnalysis> GetTrainingNeedAnalysisByEmployeeObjectiveSet(int employeeID, int objectiveSetID);
|
|||
|
|
List<TrainingNeedAnalysis> GetTrainingNeedAnalysisByEmployee(int employeeID);
|
|||
|
|
List<TrainingNeedAnalysis> getTrainingNeedAnalysisHistoryByEmployee(int employeeID, int activepmpYearId);
|
|||
|
|
|
|||
|
|
#region Training Need Analysis screen (PMS-year wise list, summary and enrollment)
|
|||
|
|
List<TrainingNeedAnalysis> GetByPmpYear(int pmpYearId);
|
|||
|
|
DataSet GetCountByPmpYear(int pmpYearId);
|
|||
|
|
void UpdateEnrolledStatus(int trainingNeedAnalysisID, bool enrolled);
|
|||
|
|
#endregion
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
}
|