137 lines
3.9 KiB
C#
137 lines
3.9 KiB
C#
using Ease.Core.Model;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
|
|
namespace HRM.BO
|
|
{
|
|
public class ComponentUploadSetup : BasicBaseObject
|
|
{
|
|
#region Constructor
|
|
public ComponentUploadSetup()
|
|
{
|
|
_isDamageManagement = false;
|
|
}
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
#region EmployeeID
|
|
private int _employeeID;
|
|
public int EmployeeID
|
|
{
|
|
get { return _employeeID; }
|
|
set { _employeeID = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region EmployeeName
|
|
private string _employeeName;
|
|
public string EmployeeName
|
|
{
|
|
get { return _employeeName; }
|
|
set { _employeeName = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region ApproverID
|
|
private int _approverID;
|
|
public int ApproverID
|
|
{
|
|
get { return _approverID; }
|
|
set { _approverID = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region ApproverName
|
|
private string _approverName;
|
|
public string ApproverName
|
|
{
|
|
get { return _approverName; }
|
|
set { _approverName = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region ComponentType
|
|
private EnumComponentType _componentType;
|
|
public EnumComponentType ComponentType
|
|
{
|
|
get { return _componentType; }
|
|
set { _componentType = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region ItemID
|
|
private int _itemID;
|
|
public int ItemID
|
|
{
|
|
get { return _itemID; }
|
|
set { _itemID = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region Description
|
|
private string _description;
|
|
public string Description
|
|
{
|
|
get { return _description; }
|
|
set { _description = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region IsDamageManagement
|
|
private bool _isDamageManagement;
|
|
|
|
public bool IsDamageManagement
|
|
{
|
|
get { return _isDamageManagement; }
|
|
set { _isDamageManagement = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region DamageManagementDescription
|
|
private string _damageManagementDescription;
|
|
public string DamageManagementDescription
|
|
{
|
|
get { return _damageManagementDescription; }
|
|
set { _damageManagementDescription = value; }
|
|
}
|
|
#endregion
|
|
|
|
#region ComponentTypeName
|
|
private string _componentTypeName;
|
|
public string ComponentTypeName
|
|
{
|
|
get { return _componentTypeName; }
|
|
set { _componentTypeName = value; }
|
|
}
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
#region Service Factory
|
|
internal static IComponentUploadSetupService Service
|
|
{
|
|
get { return Services.Factory.CreateService<IComponentUploadSetupService>(typeof(IComponentUploadSetupService)); }
|
|
}
|
|
#endregion
|
|
}
|
|
|
|
public interface IComponentUploadSetupService
|
|
{
|
|
List<ComponentUploadSetup> Get();
|
|
DataTable GetUploadedComponent(DateTime uploadMonth);
|
|
List<ComponentUploadSetup> Get(int empId);
|
|
List<ComponentUploadSetup> GetByApproverID(int apprvrID);
|
|
DataTable GetUploadedComponentReportData(DateTime fromDate, DateTime toDate);
|
|
DataTable GetUploadedComponentEmpReportData(DateTime uploadMonth, int componentId, string empIds);
|
|
void Save(List<ComponentUploadSetup> componentSetups);
|
|
void Delete(int id);
|
|
void DeleteSingleComponent(ComponentUploadSetup oComponentUploadSetup);
|
|
DataTable GetUploadedComponentEmpReportData(DateTime salaryMonth, string empIds);
|
|
List<ComponentUploadSetup> LoadComponentType(int payrollTypeID);
|
|
bool IsExist(int empId, int apprvrId, EnumComponentType componentType, int itemId);
|
|
bool HasApproverSetup(int approverId);
|
|
bool HasUploaderSetup(int employeeId);
|
|
}
|
|
} |