using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AccountsDAL.DTO.Reports { public class PAndLVerticalReportDTO { #region PrivateMembers private int accountid; private string accountcode = ""; private string accountname = ""; private int accountgroupid; private string accountgroupcode = ""; private string accountgroupname = ""; private int accountscheduleid; private string accountschedulecode = ""; private string accountschedulename = ""; private double debit; private double credit; private string reporttype = ""; private string reportnature = ""; private string description = ""; private Int16 sortorder; #endregion #region PublicMembers public int AccountId { get { return accountid; } set { accountid = value; } } public string AccountCode { get { return accountcode; } set { accountcode = value; } } public string AccountName { get { return accountname; } set { accountname = value; } } public int AccountGroupId { get { return accountgroupid; } set { accountgroupid = value; } } public string AccountGroupCode { get { return accountgroupcode; } set { accountgroupcode = value; } } public string AccountGroupName { get { return accountgroupname; } set { accountgroupname = value; } } public int AccountScheduleId { get { return accountscheduleid; } set { accountscheduleid = value; } } public string AccountScheduleCode { get { return accountschedulecode; } set { accountschedulecode = value; } } public string AccountScheduleName { get { return accountschedulename; } set { accountschedulename = value; } } public double Debit { get { return debit; } set { debit = value; } } public double Credit { get { return credit; } set { credit = value; } } public string ReportType { get { return reporttype; } set { reporttype = value; } } public string ReportNature { get { return reportnature; } set { reportnature = value; } } public string Description { get { return description; } set { description = value; } } private string section = ""; // Same value as Description ("Trading Account"/"Profit And Loss Account") — the live custom // component (AccountVerticalComponent) groups by Description; the generic Grid/PDF/Excel // export path groups by whichever MREPORTVIEWFIELDS.FIELDNAME its metadata references, // which is the pre-existing "Section" field for this report's views. Duplicated rather than // renaming Description (would break the live component) or re-pointing the metadata // (touches every existing view row) — this is the smaller, additive change. public string Section { get { return section; } set { section = value; } } public virtual Int16 SortOrder { get { return sortorder; } set { sortorder = value; } } private int accountschedulenature; private decimal netdrcr; private decimal balancesheetcredit; public int AccountScheduleNature { get { return accountschedulenature; } set { accountschedulenature = value; } } public decimal NetDrCR { get { return netdrcr; } set { netdrcr = value; } } public decimal BalanceSheetCredit { get { return balancesheetcredit; } set { balancesheetcredit = value; } } #endregion } }