using Ease.Core.Model; using System; using System.Collections.Generic; using System.Data; namespace HRM.BO { public class ObjectiveEmployees : BasicBaseObject { #region Constructor public ObjectiveEmployees() { } #endregion #region Properties public int EmployeeID { get; set; } public int ObjectiveID { get; set; } public int ObjectiveNodeID { get; set; } //#region EmployeeNodeID : ID //private int _employeeNodeID; //public int EmployeeNodeID //{ // get { return _employeeNodeID; } // set { _employeeNodeID = value; } //} //#endregion #endregion //#region Function //#region Get All //public static List Get() //{ // return ObjectiveEmployees.Service.Get(); //} //public static List GetByObjIDs(string sObjIDs) //{ // return ObjectiveEmployees.Service.GetByObjIDs(sObjIDs); //} //#endregion //#region Get By ID //public static ObjectiveEmployees Get(int id) //{ // return ObjectiveEmployees.Service.Get(id); //} //public static List GetByEmployeeID(int empID, int pmpID) //{ // return ObjectiveEmployees.Service.GetByEmployeeID(empID, pmpID); //} //#endregion //#region Save //public int Save() //{ // this.SetAuditTrailProperties(); // return ObjectiveEmployees.Service.Save(this); //} //#endregion //#region Delete //public static void Delete(int id) //{ // ObjectiveEmployees.Service.Delete(id); //} //#endregion //#endregion //#region Service Factory IObjectiveEmployees : IObjectiveEmployees //internal static IObjectiveEmployeesService Service //{ // get { return Services.Factory.CreateService(typeof(IObjectiveEmployeesService)); } //} //#endregion } #region IObjectiveEmployeesService Service public interface IObjectiveEmployeesService { List Get(); List GetByObjIDs(string sObjIDs); ObjectiveEmployees Get(int id); int Save(ObjectiveEmployees item); void Delete(int id); List GetByEmployeeID(int empID, int pmpID); } #endregion }