CEL_Payroll/Payroll.BO/Basic/ReportSetup.cs

395 lines
9.5 KiB
C#
Raw Permalink Normal View History

2024-09-17 14:30:13 +06:00
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<Term> _terms;
public ObjectsTemplate<Term> Terms
{
get
{
if (_terms == null)
{
_terms = new ObjectsTemplate<Term>();
}
return _terms;
}
set { _terms = value; }
}
#endregion
#region Bonuses
private ObjectsTemplate<Bonus> _bonuses;
public ObjectsTemplate<Bonus> Bonuses
{
get
{
if (_bonuses == null)
{
_bonuses = new ObjectsTemplate<Bonus>();
}
return _bonuses;
}
set { _bonuses = value; }
}
#endregion
#region OPIItems
private ObjectsTemplate<OpiItem> _opiItems;
public ObjectsTemplate<OpiItem> OpiItems
{
get
{
if (_opiItems == null)
{
_opiItems = new ObjectsTemplate<OpiItem>();
}
return _opiItems;
}
set { _opiItems = value; }
}
#endregion
#region SalaryItems
private ObjectsTemplate<JVSetupDetail> _salaryItems;
public ObjectsTemplate<JVSetupDetail> SalaryItems
{
get
{
if (_salaryItems == null)
{
_salaryItems = new ObjectsTemplate<JVSetupDetail>();
}
return _salaryItems;
}
set { _salaryItems = value; }
}
#endregion
#region IncomeTaxs
private ObjectsTemplate<TaxParameter> _taxParameters;
public ObjectsTemplate<TaxParameter> TaxParameters
{
get
{
if (_taxParameters == null)
{
_taxParameters = new ObjectsTemplate<TaxParameter>();
}
return _taxParameters;
}
set { _taxParameters = value; }
}
#endregion
#region Categories
private ObjectsTemplate<Category> _categories;
public ObjectsTemplate<Category> Categories
{
get
{
if (_categories == null)
{
_categories = new ObjectsTemplate<Category>();
}
return _categories;
}
set { _categories = value; }
}
#endregion
#region CostCenters
private ObjectsTemplate<Costcenter> _costCenters;
public ObjectsTemplate<Costcenter> CostCenters
{
get
{
if (_costCenters == null)
{
_costCenters = new ObjectsTemplate<Costcenter>();
}
return _costCenters;
}
set { _costCenters = value; }
}
#endregion
#region Designations
private ObjectsTemplate<Designation> _designations;
public ObjectsTemplate<Designation> Designations
{
get
{
if (_designations == null)
{
_designations = new ObjectsTemplate<Designation>();
}
return _designations;
}
set { _designations = null; }
}
#endregion
#region Banks
private ObjectsTemplate<Bank> _banks;
public ObjectsTemplate<Bank> Banks
{
get
{
if (_banks == null)
{
_banks = new ObjectsTemplate<Bank>();
}
return _banks;
}
set { _banks = value; }
}
#endregion
#region Branches
private ObjectsTemplate<Branch> _branches;
public ObjectsTemplate<Branch> Branches
{
get
{
if (_branches == null)
{
_branches = new ObjectsTemplate<Branch>();
}
return _branches;
}
set { _branches = value; }
}
#endregion
#region GradeSegments
private ObjectsTemplate<GradeSegment> _gradeSegments;
public ObjectsTemplate<GradeSegment> Gradesegments
{
get
{
if (_gradeSegments == null)
{
_gradeSegments = new ObjectsTemplate<GradeSegment>();
}
return _gradeSegments;
}
set { _gradeSegments = value; }
}
#endregion
#region GradeSegments
private ObjectsTemplate<Grade> _grades;
public ObjectsTemplate<Grade> Grades
{
get
{
if (_grades == null)
{
_grades = new ObjectsTemplate<Grade>();
}
return _grades;
}
set { _grades= value; }
}
#endregion
#region Locations
private ObjectsTemplate<Location> _locations;
public ObjectsTemplate<Location> Locations
{
get
{
if (_locations == null)
{
_locations = new ObjectsTemplate<Location>();
}
return _locations;
}
set { _locations = value; }
}
#endregion
#region Departments
private ObjectsTemplate<Department> _departments;
public ObjectsTemplate<Department> Departments
{
get
{
if (_departments == null)
{
_departments = new ObjectsTemplate<Department>();
}
return _departments;
}
set { _departments = value; }
}
#endregion
#region Religions
private ObjectsTemplate<Religion> _religions;
public ObjectsTemplate<Religion> Religions
{
get
{
if (_religions == null)
{
_religions = new ObjectsTemplate<Religion>();
}
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<SearchEmployee> _selectedEmployees;
public ObjectsTemplate<SearchEmployee> SelectedEmployees
{
get
{
if (_selectedEmployees == null)
{
_selectedEmployees = new ObjectsTemplate<SearchEmployee>();
}
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
}
}