EchoTex_Payroll/HRM.BO/Organogram/ChartRecord.cs

65 lines
1.5 KiB
C#
Raw Permalink Normal View History

2024-10-14 10:01:49 +06:00
using System;
using System.Drawing;
namespace HRM.BO
{
/// <summary>
///
/// </summary>
public class ChartRecord : IDisposable
{
public ChartRecord()
{
}
/// <summary>
/// Top Left Corner of the specific employee
/// </summary>
private int _employeeCount = 0;
public int EmployeeCount
{
get { return _employeeCount; }
set { _employeeCount = value; }
}
/// <summary>
/// The data of the employee
/// </summary>
/// <summary>
/// The Top Left Corener of the employee Box
/// </summary>
private Rectangle _pos;
public Rectangle EmployeePos
{
get { return _pos; }
set { _pos = value; }
}
/// <summary>
/// The record with all employee data
/// </summary>
private OrgData.OrgDetailsRow _employeeRecord;
public OrgData.OrgDetailsRow EmployeeData
{
get { return _employeeRecord; }
set { _employeeRecord = value; }
}
internal Rectangle CurrentLocation(int scale)
{
Rectangle r = new Rectangle((_pos.Left * scale / 100), (_pos.Top * scale / 100), (_pos.Width * scale / 100), (_pos.Height * scale / 100));
return r;
}
#region IDisposable Members
public void Dispose()
{
}
#endregion
}
}