CEL_Payroll/Payroll.BO/Organogram/ChartRecord.cs
2024-09-17 14:30:13 +06:00

67 lines
1.5 KiB
C#

using System;
using System.Drawing;
namespace Payroll.BO
{
/// <summary>
///
/// </summary>
///
[Serializable]
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
}
}