using System; using System.Collections.Generic; using System.Linq; using System.Text; using Ease.CoreV35; using Ease.CoreV35.Model; using Ease.CoreV35.Caching; using System.Data.Linq.Mapping; namespace Payroll.BO { [Serializable] public class ReportSetup { #region Constructor public ReportSetup() { _fromDate = null; _toDate = null; _terms = null; _bonuses = null; _taxParameters = null; _categories = null; _banks = null; _branches = null; _gradeSegments = null; _grades = null; _locations = null; _religions = null; _gender = EnumGender.None; _employee = null; _selectedEmployees = null; _reportItem = null; _salaryItems = null; } #endregion #region Properties #region FromDate : DateTime private DateTime? _fromDate; public DateTime? FromDate { get { return _fromDate; } set { _fromDate = value; } } #endregion #region ToDate : DateTime private DateTime? _toDate; public DateTime? ToDate { get { return _toDate; } set { _toDate = value; } } #endregion #region OTs private ObjectsTemplate _terms; public ObjectsTemplate Terms { get { if (_terms == null) { _terms = new ObjectsTemplate(); } return _terms; } set { _terms = value; } } #endregion #region Bonuses private ObjectsTemplate _bonuses; public ObjectsTemplate Bonuses { get { if (_bonuses == null) { _bonuses = new ObjectsTemplate(); } return _bonuses; } set { _bonuses = value; } } #endregion #region OPIItems private ObjectsTemplate _opiItems; public ObjectsTemplate OpiItems { get { if (_opiItems == null) { _opiItems = new ObjectsTemplate(); } return _opiItems; } set { _opiItems = value; } } #endregion #region SalaryItems private ObjectsTemplate _salaryItems; public ObjectsTemplate SalaryItems { get { if (_salaryItems == null) { _salaryItems = new ObjectsTemplate(); } return _salaryItems; } set { _salaryItems = value; } } #endregion #region IncomeTaxs private ObjectsTemplate _taxParameters; public ObjectsTemplate TaxParameters { get { if (_taxParameters == null) { _taxParameters = new ObjectsTemplate(); } return _taxParameters; } set { _taxParameters = value; } } #endregion #region Categories private ObjectsTemplate _categories; public ObjectsTemplate Categories { get { if (_categories == null) { _categories = new ObjectsTemplate(); } return _categories; } set { _categories = value; } } #endregion #region CostCenters private ObjectsTemplate _costCenters; public ObjectsTemplate CostCenters { get { if (_costCenters == null) { _costCenters = new ObjectsTemplate(); } return _costCenters; } set { _costCenters = value; } } #endregion #region Designations private ObjectsTemplate _designations; public ObjectsTemplate Designations { get { if (_designations == null) { _designations = new ObjectsTemplate(); } return _designations; } set { _designations = null; } } #endregion #region Banks private ObjectsTemplate _banks; public ObjectsTemplate Banks { get { if (_banks == null) { _banks = new ObjectsTemplate(); } return _banks; } set { _banks = value; } } #endregion #region Branches private ObjectsTemplate _branches; public ObjectsTemplate Branches { get { if (_branches == null) { _branches = new ObjectsTemplate(); } return _branches; } set { _branches = value; } } #endregion #region GradeSegments private ObjectsTemplate _gradeSegments; public ObjectsTemplate Gradesegments { get { if (_gradeSegments == null) { _gradeSegments = new ObjectsTemplate(); } return _gradeSegments; } set { _gradeSegments = value; } } #endregion #region GradeSegments private ObjectsTemplate _grades; public ObjectsTemplate Grades { get { if (_grades == null) { _grades = new ObjectsTemplate(); } return _grades; } set { _grades= value; } } #endregion #region Locations private ObjectsTemplate _locations; public ObjectsTemplate Locations { get { if (_locations == null) { _locations = new ObjectsTemplate(); } return _locations; } set { _locations = value; } } #endregion #region Departments private ObjectsTemplate _departments; public ObjectsTemplate Departments { get { if (_departments == null) { _departments = new ObjectsTemplate(); } return _departments; } set { _departments = value; } } #endregion #region Religions private ObjectsTemplate _religions; public ObjectsTemplate Religions { get { if (_religions == null) { _religions = new ObjectsTemplate(); } return _religions; } set { _religions = value; } } #endregion #region Gender : EnumGender private EnumGender _gender; public EnumGender Gender { get { return _gender; } set { _gender = value; } } #endregion #region Employee : Employee private Employee _employee; public Employee Employee { get { if(_employee==null) { _employee = new Employee(); } return _employee; } set { _employee = value; } } #endregion #region Employees private ObjectsTemplate _selectedEmployees; public ObjectsTemplate SelectedEmployees { get { if (_selectedEmployees == null) { _selectedEmployees = new ObjectsTemplate(); } return _selectedEmployees; } set { _selectedEmployees = value; } } #endregion public bool IsEmployeeExist(ID employeeID) { return SearchEmployee.IsEmployeeExist(this.SelectedEmployees, employeeID); } #region ReportItem private ReportItem _reportItem; public ReportItem ReportItem { get { if (_reportItem == null) { _reportItem = new ReportItem(); } return _reportItem; } set { _reportItem = value; } } #endregion #endregion } }