EchoTex_Payroll/HRM.BO/Budget/MarketSalarySurvey.cs

185 lines
4.5 KiB
C#
Raw Normal View History

2024-10-14 10:01:49 +06:00
using Ease.Core.Model;
using System;
using System.Collections.Generic;
using System.Data;
namespace HRM.BO
{
public class MarketSalarySurvey : AuditTrailBase
{
#region Properties
#region delegate
public delegate void ItemChanged();
#endregion
#region Constructor
public MarketSalarySurvey()
{
_gradeID = 0;
_companyID = 0;
_amount = double.MinValue;
_surveyYear = DateTime.MinValue;
_surveyOn = EnumSurveyOn.Basic;
}
#endregion
#region _gradeID
private int _gradeID;
public int GradeID
{
get { return _gradeID; }
set { _gradeID = value; }
}
#endregion
#region _companyID
private int _companyID;
public int CompanyID
{
get { return _companyID; }
set { _companyID = value; }
}
#endregion
#region Amount
private double _amount;
public double Amount
{
get { return _amount; }
set { _amount = value; }
}
#endregion
#region SurveyYear
private DateTime _surveyYear;
public DateTime SurveyYear
{
get { return _surveyYear; }
set { _surveyYear = value; }
}
#endregion
#region SurveyOn
private EnumSurveyOn _surveyOn;
public EnumSurveyOn SurveyOn
{
get { return _surveyOn; }
set { _surveyOn = value; }
}
#endregion
#region Service Factory IMarketSurveyServiceService : IMarketSurveyServiceService
internal static IMarketSalarySurveyService Service
{
get
{
return Services.Factory.CreateService<IMarketSalarySurveyService>(typeof(IMarketSalarySurveyService));
}
}
#endregion
#endregion
//#region Functions
//#region Get()
//public static List<MarketSalarySurvey> Get(DateTime surveyYear)
//{
// List<MarketSalarySurvey> obAllMarketSurvey = MarketSalarySurvey.Service.Get(surveyYear);
// return obAllMarketSurvey;
//}
//public static List<MarketSalarySurvey> Get(DateTime surveyYear,int nSurveyOn,int nGradeID)
//{
// List<MarketSalarySurvey> obAllMarketSurvey = MarketSalarySurvey.Service.Get(surveyYear,nSurveyOn,nGradeID);
// return obAllMarketSurvey;
//}
//public static List<MarketSalarySurvey> Get(DateTime surveyYear, int nSurveyOn)
//{
// List<MarketSalarySurvey> obAllMarketSurvey = MarketSalarySurvey.Service.Get(surveyYear, nSurveyOn);
// return obAllMarketSurvey;
//}
//#endregion
//#region Save
//public static void Save(MarketSalarySurvey item)
//{
// MarketSalarySurvey.Service.Save(item);
//}
//#endregion
//#region Delete
//public static void Delete(int id)
//{
// MarketSalarySurvey.Service.Delete(id);
//}
//#endregion
//#region SaveAll
//public static void SaveAll(List<MarketSalarySurvey> allItems)
//{
// MarketSalarySurvey.Service.SaveAll(allItems);
//}
//#endregion
//#region Update
//public static void Update(MarketSalarySurvey oMarketSurvey)
//{
// MarketSalarySurvey.Service.Update(oMarketSurvey);
//}
//#endregion
//#region CheckDesignationExistsOrNot
//public static bool CheckDesignationExistsOrNot(int iD,DateTime year)
//{
// return MarketSalarySurvey.Service.CheckDesignationExistsOrNot(iD,year);
//}
//#endregion
//#endregion
}
#region IMarketSalarySurveyService
public interface IMarketSalarySurveyService
{
MarketSalarySurvey Get(int nID);
List<MarketSalarySurvey> Get(DateTime surveyYear);
List<MarketSalarySurvey> Get(DateTime surveyYear, int nSurveyOn, int nGradeID);
List<MarketSalarySurvey> Get(DateTime surveyYear, int nSurveyOn);
int Save(MarketSalarySurvey item);
void Delete(int id);
void Update(MarketSalarySurvey oMarketSurvey);
void SaveAll(List<MarketSalarySurvey> allItems);
bool CheckDesignationExistsOrNot(int iD, DateTime year);
}
#endregion
}