using HRM.BO; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HRM.BO { public class PMSReview : BasicBaseObject { #region Constructor public PMSReview() { CTC = 0; PreviousRating = string.Empty; IncrementPercent = 0; CashBonus = 0; Promotion = false; NewGradeID= 0; COLA = 0; MeritIcrement = 0; PositionIncrement = 0; MarketAdjusment = 0; TotalIncrement = 0; BonusAmount = 0; LTIATK = 0; LTIAPercent =0; NewBasic = 0; NewGross = 0; NewCTC = 0; PMSProcessID = 0; } #endregion #region Properties public int EmployeeID { get; set; } public double CTC { get; set; } public string CurrentRating { get; set; } public string PreviousRating { get; set; } public double IncrementPercent { get; set; } public double CashBonus { get; set; } public bool Promotion { get; set; } public int NewGradeID { get; set; } public double COLA { get; set; } public double MeritIcrement { get; set; } public double PositionIncrement { get; set; } public double MarketAdjusment { get; set; } public double TotalIncrement { get; set; } public double BonusAmount { get; set; } public double LTIAPercent { get; set; } public double LTIATK { get; set; } public double NewBasic { get; set; } public double NewGross { get; set; } public double NewCTC { get; set; } public int PMSProcessID { get; set; } //#region Service Factory IPMSReviewService : IPMSReviewService //internal static IPMSReviewService Service //{ // get { return Services.Factory.CreateService(typeof(IPMSReviewService)); } //} //#endregion #endregion //#region Functions //public static PMSReview Get(ID nID) //{ // PMSReview oPMSReview = null; // oPMSReview = PMSReview.Service.Get(nID); // return oPMSReview; //} //public static PMSReview Get(int empid, int pmsyearid) //{ // PMSReview oPMSReview = null; // oPMSReview = PMSReview.Service.Get(empid, pmsyearid); // return oPMSReview; //} //public static ObjectsTemplate Get() //{ // ObjectsTemplate PMSReviews = null; // try // { // PMSReviews = Service.Get(); // } // catch (ServiceException e) // { // throw new Exception(e.Message, e); // } // return PMSReviews; //} //public ID Save() //{ // base.SetAuditTrailProperties(); // return PMSReview.Service.Save(this); //} //public static void Upload(List oPMSReviews) //{ // foreach (var item in oPMSReviews) // { // item.SetAuditTrailProperties(); // } // Service.Upload(oPMSReviews); //} //public void Delete(ID id) //{ // PMSReview.Service.Delete(id); //} //#endregion } //#region PMSReview Service //public interface IPMSReviewService //{ // PMSReview Get(ID id); // PMSReview Get(int empid,int pmsyearid); // ObjectsTemplate Get(); // ID Save(PMSReview item); // void Upload(List oPMSReviews); // void Delete(ID id); //} //#endregion }