248 lines
6.0 KiB
C#
248 lines
6.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HRM.BO
|
|
{
|
|
public class UploadedComponent : BasicBaseObject
|
|
{
|
|
#region Constructor
|
|
public UploadedComponent() { }
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
#region IsDamageManagement
|
|
private bool _isDamageManagement;
|
|
|
|
public bool IsDamageManagement
|
|
{
|
|
get { return _isDamageManagement; }
|
|
set { _isDamageManagement = value; }
|
|
}
|
|
#endregion
|
|
|
|
|
|
#region SalaryMonth
|
|
private DateTime _salaryMonth;
|
|
|
|
public DateTime SalaryMonth
|
|
{
|
|
get { return _salaryMonth; }
|
|
set { _salaryMonth = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region UploadedBy
|
|
private int _uploadedBy;
|
|
|
|
public int UploadedBy
|
|
{
|
|
get { return _uploadedBy; }
|
|
set { _uploadedBy = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region UploadedDate
|
|
private DateTime _uploadedDate;
|
|
|
|
public DateTime UploadedDate
|
|
{
|
|
get { return _uploadedDate; }
|
|
set { _uploadedDate = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region ItemID
|
|
private int _approvedBy;
|
|
|
|
public int? ApprovedBy
|
|
{
|
|
get { return _approvedBy; }
|
|
set { _approvedBy = (int)value; }
|
|
}
|
|
#endregion
|
|
|
|
#region ApprovedDate
|
|
private DateTime _approvedDate;
|
|
|
|
public DateTime ApprovedDate
|
|
{
|
|
get { return _approvedDate; }
|
|
set { _approvedDate = value; }
|
|
}
|
|
#endregion
|
|
|
|
private int _componentID;
|
|
|
|
#region ComponentID
|
|
public int ComponentID
|
|
{
|
|
get { return _componentID; }
|
|
set { _componentID = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region ComponentType
|
|
private EnumComponentType _componentType;
|
|
|
|
public EnumComponentType ComponentType
|
|
{
|
|
get { return _componentType; }
|
|
set { _componentType = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region UploadedComponentEmps
|
|
private List<UploadedComponentEmp> _uploadedComponentEmps;
|
|
|
|
public List<UploadedComponentEmp> UploadedComponentEmps
|
|
{
|
|
get
|
|
{
|
|
//if (this.ID > 0 && _uploadedComponentEmps == null)
|
|
//{
|
|
// _uploadedComponentEmps = UploadedComponent.Service.GetUploadedComponentEmp(this.ID);
|
|
//}
|
|
return _uploadedComponentEmps;
|
|
}
|
|
set
|
|
{
|
|
_uploadedComponentEmps = value;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#endregion
|
|
}
|
|
|
|
#region UploadedComponentEmp
|
|
|
|
[Serializable]
|
|
public class UploadedComponentEmp : BasicBaseObject
|
|
{
|
|
#region ctr
|
|
public UploadedComponentEmp() { }
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
#region UploadedComponentID
|
|
private int _uploadedComponentID;
|
|
|
|
public int UploadedComponentID
|
|
{
|
|
get { return _uploadedComponentID; }
|
|
set { _uploadedComponentID = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region EmployeeID
|
|
private int _employeeID;
|
|
|
|
public int EmployeeID
|
|
{
|
|
get { return _employeeID; }
|
|
set { _employeeID = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region Amount
|
|
private double _amount;
|
|
|
|
public double Amount
|
|
{
|
|
get { return _amount; }
|
|
set { _amount = value; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Reason
|
|
private string _reason;
|
|
|
|
public string Reason
|
|
{
|
|
get { return _reason; }
|
|
set { _reason = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region TotalAmount
|
|
private double _totalAmount;
|
|
|
|
public double TotalAmount
|
|
{
|
|
get { return _totalAmount; }
|
|
set { _totalAmount = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region DeductionMonth
|
|
private DateTime _deductionMonth;
|
|
|
|
public DateTime DeductionMonth
|
|
{
|
|
get { return _deductionMonth; }
|
|
set { _deductionMonth = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region DeductionAmount
|
|
private double _deductionAmount;
|
|
|
|
public double DeductionAmount
|
|
{
|
|
get { return _deductionAmount; }
|
|
set { _deductionAmount = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region Remarks
|
|
private string _remarks;
|
|
|
|
public string Remarks
|
|
{
|
|
get { return _remarks; }
|
|
set { _remarks = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region No of installment
|
|
private int _nOfInstallment;
|
|
|
|
public int NoOfInstallment
|
|
{
|
|
get { return _nOfInstallment; }
|
|
set { _nOfInstallment = value; }
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
}
|
|
#endregion
|
|
|
|
public interface IUploadedComponentService
|
|
{
|
|
void Save(UploadedComponent component);
|
|
void SaveWithADParameter(UploadedComponent component, DateTime salaryMonth);
|
|
|
|
List<UploadedComponent> Get(DateTime fromDate, DateTime toDate);
|
|
List<UploadedComponentEmp> GetUploadedComponentEmp(int iD);
|
|
List<UploadedComponent> Get(int componentId, int uploaderID, DateTime salaryMonth);
|
|
List<UploadedComponent> Get(int uploaderID, DateTime salaryMonth);
|
|
DataTable GetByID(int uploadedComponentID);
|
|
DataTable GetByIDandUploaderID(int uploadedComponentID, int uploaderId);
|
|
void Delete(int uploadedComponentID);
|
|
void DeleteUploadedComponentEmp(int uploadedComponentID);
|
|
UploadedComponent GetExistingComponent(int uploaderID, int componentID, EnumComponentType componentType, DateTime salaryMonth);
|
|
List<UploadedComponent> GetByApprover(int approverID, DateTime salaryMonth);
|
|
List<UploadedComponent> GetByApprover(int approverID);
|
|
DataTable GetByUploaderDT(int employeeID);
|
|
}
|
|
}
|