EchoTex_Payroll/HRM.BO/GrievanceManagement/DAMaster.cs

330 lines
7.5 KiB
C#
Raw Permalink Normal View History

2024-10-14 10:01:49 +06:00
using System;
using System.Collections.Generic;
namespace HRM.BO
{
#region Class DAMAster
public class DAMaster : BasicBaseObject
{
#region Constructor
public DAMaster()
{
DAMCode = String.Empty;
DAMNote = String.Empty;
DAMFileName = String.Empty;
DAMDate = DateTime.MinValue;
DACNote = String.Empty;
DCDate = DateTime.MinValue;
DAPRIFileName = String.Empty;
DPRIDate = DateTime.MinValue;
DACOMFileName = String.Empty;
DAEmployees = null;
DAComplains = null;
DAEmpExplanations = null;
DAPunishments = null;
DAComEmps = null;
DAPRIEmps = null;
DACSheetFileName = String.Empty;
DACSheetNote = String.Empty;
DCSheetDate = DateTime.MinValue;
}
#endregion Constructor
#region Properties
public string DACNote { get; set; }
public List<DAComEmp> DAComEmps { get; set; }
public string DACOMFileName { get; set; }
public List<DAComplain> DAComplains { get; set; }
public string DACSheetFileName { get; set; }
public string DACSheetNote { get; set; }
public List<DAEmpExplanation> DAEmpExplanations { get; set; }
public List<DAEmployee> DAEmployees { get; set; }
public string DAMCode { get; set; }
public DateTime DAMDate { get; set; }
public string DAMFileName { get; set; }
public string DAMNote { get; set; }
public List<DAPRIEmp> DAPRIEmps { get; set; }
public string DAPRIFileName { get; set; }
public List<DAPunishment> DAPunishments { get; set; }
public DateTime DCDate { get; set; }
public DateTime DCSheetDate { get; set; }
public DateTime DPRIDate { get; set; }
#endregion Properties
}
#endregion Class DAMAster
#region Child Classes
#region Class DAEmployee
[Serializable]
public class DAEmployee : BasicBaseObject
{
#region Constructor
public DAEmployee()
{
DAID = 0;
EmployeeID = 0;
}
#endregion Constructor
#region Properties
public int DAID { get; set; }
public int EmployeeID { get; set; }
public int DAEMPID { get; set; }
public string EMPLOYEENO { get; set; }
public string NAME { get; set; }
public string DESIGNATION { get; set; }
#endregion Properties
}
#endregion Class DAEmployee
#region Class DAComplain
[Serializable]
public class DAComplain : BasicBaseObject
{
#region Constructor
public DAComplain()
{
DAID = 0;
ComplainID = 0;
}
#endregion Constructor
#region Properties
public int ComplainID { get; set; }
public int DAID { get; set; }
#endregion Properties
}
#endregion Class DAComplain
#region Class DAChargesheet
[Serializable]
public class DAChargesheet : BasicBaseObject
{
#region Constructor
public DAChargesheet()
{
DAID = 0;
DACSNote = String.Empty;
DACSFileName = String.Empty;
DACSDate = DateTime.MinValue;
}
#endregion Constructor
#region Properties
public DateTime DACSDate { get; set; }
public string DACSFileName { get; set; }
public string DACSNote { get; set; }
public int DAID { get; set; }
#endregion Properties
}
#endregion Class DAChargesheet
#region Class DAEmpExplanation
[Serializable]
public class DAEmpExplanation : BasicBaseObject
{
#region Constructor
public DAEmpExplanation()
{
DAID = 0;
EmployeeID = 0;
DAEXNote = String.Empty;
FileName = String.Empty;
DAEXDate = DateTime.MinValue;
HRNote = String.Empty;
}
#endregion Constructor
#region Properties
public DateTime DAEXDate { get; set; }
public string DAEXNote { get; set; }
public int DAID { get; set; }
public int EmployeeID { get; set; }
public string FileName { get; set; }
public string HRNote { get; set; }
#endregion Properties
}
#endregion Class DAEmpExplanation
#region Class DAPunishment
[Serializable]
public class DAPunishment : BasicBaseObject
{
#region Constructor
public DAPunishment()
{
DAID = 0;
EmployeeID = 0;
EmployeeID = 0;
DAPNote = String.Empty;
DAPFromDate = DateTime.MinValue;
DAPToDate = DateTime.MinValue;
DAPDate = DateTime.MinValue;
DAPEmployees = null;
}
#endregion Constructor
#region Properties
public int DAID { get; set; }
public DateTime DAPDate { get; set; }
public List<DAPEmployee> DAPEmployees { get; set; }
public string DAPFileName { get; set; }
public DateTime DAPFromDate { get; set; }
public string DAPNote { get; set; }
public DateTime DAPToDate { get; set; }
public int EmployeeID { get; set; }
#endregion Properties
}
#endregion Class DAPunishment
#region Class DAComEmp
[Serializable]
public class DAComEmp : BasicBaseObject
{
#region Constructor
public DAComEmp()
{
DAID = 0;
EmployeeID = 0;
}
#endregion Constructor
#region Properties
public int DAID { get; set; }
public int EmployeeID { get; set; }
#endregion Properties
}
#endregion Class DAComEmp
#region Class DAPEmployee
[Serializable]
public class DAPEmployee : BasicBaseObject
{
#region Constructor
public DAPEmployee()
{
PID = 0;
PunishmentID = 0;
DAID = 0;
EmpID = 0;
}
#endregion Constructor
#region Properties
public int DAID { get; set; }
public int EmpID { get; set; }
public int PID { get; set; }
public int PunishmentID { get; set; }
#endregion Properties
}
#endregion Class DAPEmployee
#region Class DAPRIEmp
[Serializable]
public class DAPRIEmp : BasicBaseObject
{
#region Constructor
public DAPRIEmp()
{
DAID = 0;
EmployeeID = 0;
}
#endregion Constructor
#region Properties
public int DAID { get; set; }
public int EmployeeID { get; set; }
#endregion Properties
}
#endregion Class DAPRIEmp
#endregion Child Classes
#region IDAMaster Service
public interface IDAMasterService
{
void Delete(int id);
void DeleteDAEmployee(int id);
DAMaster Get(int id);
DAMaster Get(string code);
List<DAMaster> GetDAMasters(DateTime? fromDate, DateTime? toDate, string daCode);
List<DAComEmp> GetDAComEmps(int id);
List<DAComplain> GetDAComplains(int id);
List<DAEmpExplanation> GetDAEmpExplanations(int id);
List<DAEmployee> GetDAEmployees(int id);
List<DAPEmployee> GetDAPEmployees(int id);
List<DAPRIEmp> GetDAPRIEmps(int id);
List<DAPunishment> GetDAPunishments(int id);
List<DAMaster> GetDAs(string sql);
int Save(DAMaster dAMaster);
}
#endregion IDAMaster Service
}