using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AccountsDAL.DTO.Reports { public class OutstandingDetailReportDTO { #region PrivateMembers private int voucherid; private string vouchernumber; private DateTime voucherdate; private string referencenumber; private DateTime referencedate; private string detailnumber; private DateTime detaildate; private DateTime duedate; private string asondate; private int billage; private int dueage; private string addressline1; private string addressline2; private string addressline3; private string addressline4; private string address; private int ouid; private string oucode; private string ouname; #region Account private int accountid; private string accountcode; private string accountname; #endregion #region ControlAccount private int controlaccountid; private string controlaccountcode; private string controlaccountname; #endregion #region AccountGroup private int accountgroupid; private string accountgroupcode; private string accountgroupname; #endregion #region InCharge private int inchargeid; private string inchargecode; private string inchargename; #endregion #region PriceCategory private int pricecategoryid; private string pricecategorycode; private string pricecategoryname; #endregion private decimal amount; private decimal fullamountfc; private decimal allocatedamountfc; private decimal receivable; private decimal payable; private decimal balance; private string reporttype; private string grouptype; private string balancetype; #endregion private int routeid; private string routingcode; private string routingname; private string currencycode; private string detailcurrencycode; private string vouchernarration; private string voucherlinenarration; private string ismsmeaccount; private string allocationtypecode; private string allocationtypename; public string AllocationTypeCode { get { return allocationtypecode; } set { allocationtypecode = value; } } public string AllocationTypeName { get { return allocationtypename; } set { allocationtypename = value; } } public string ISMSMEAccount { get { return ismsmeaccount; } set { ismsmeaccount = value; } } public string VoucherNarration { get { return vouchernarration; } set { vouchernarration = value; } } public string VoucherLineNarration { get { return voucherlinenarration; } set { voucherlinenarration = value; } } public string CurrencyCode { get { return currencycode; } set { currencycode = value; } } public string DetailCurrencyCode { get { return detailcurrencycode; } set { detailcurrencycode = value; } } #region BankDetails private int bankid; private string bankcode; private string bankname; public int BankId { get { return bankid; } set { bankid = value; } } public string BankCode { get { return bankcode; } set { bankcode = value; } } public string BankName { get { return bankname; } set { bankname = value; } } #endregion #region PublicMembers public int VoucherId { get { return voucherid; } set { voucherid = value; } } public string VoucherNumber { get { return vouchernumber; } set { vouchernumber = value; } } public DateTime VoucherDate { get { return voucherdate; } set { voucherdate = value; } } public string ReferenceNumber { get { return referencenumber; } set { referencenumber = value; } } public DateTime ReferenceDate { get { return referencedate; } set { referencedate = value; } } public string DetailNumber { get { return detailnumber; } set { detailnumber = value; } } public DateTime DetailDate { get { return detaildate; } set { detaildate = value; } } public DateTime DueDate { get { return duedate; } set { duedate = value; } } public string AsOnDate { get { return asondate; } set { asondate = value; TimeSpan ts = Convert.ToDateTime(AsOnDate) - DetailDate; BillAge = Convert.ToInt32(ts.TotalDays); ts = Convert.ToDateTime(AsOnDate) - DueDate; DueAge = Convert.ToInt32(ts.TotalDays); } } public int BillAge { get { return billage; } set { billage = value; } } public int DueAge { get { return dueage; } set { dueage = value; } } public int OUId { get { return ouid; } set { ouid = value; } } public string OUCode { get { return oucode; } set { oucode = value; } } public string OUName { get { return ouname; } set { ouname = value; } } public int RouteId { get { return routeid; } set { routeid = value; } } public string RoutingCode { get { return routingcode; } set { routingcode = value; } } public string RoutingName { get { return routingname; } set { routingname = value; } } #region Account 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; } } #endregion #region ControlAccount public int ControlAccountId { get { return controlaccountid; } set { controlaccountid = value; } } public string ControlAccountCode { get { return controlaccountcode; } set { controlaccountcode = value; } } public string ControlAccountName { get { return controlaccountname; } set { controlaccountname = value; } } #endregion #region AccountGroup 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; } } #endregion #region InCharge public int InChargeId { get { return inchargeid; } set { inchargeid = value; } } public string InChargeCode { get { return inchargecode; } set { inchargecode = value; } } public string InChargeName { get { return inchargename; } set { inchargename = value; } } #endregion #region PriceCategory public int PriceCategoryId { get { return pricecategoryid; } set { pricecategoryid = value; } } public string PriceCategoryCode { get { return pricecategorycode; } set { pricecategorycode = value; } } public string PriceCategoryName { get { return pricecategoryname; } set { pricecategoryname = value; } } #endregion private decimal receivablefc; private decimal payablefc; private decimal balancefc; public decimal Amount { get { return amount; } set { amount = value; } } public decimal Receivable { get { return receivable; } set { receivable = value; } } public decimal Payable { get { return payable; } set { payable = value; } } public decimal Balance { get { return balance; } set { balance = value; } } public decimal FullAmountFc { get { return fullamountfc; } set { fullamountfc = value; } } public decimal AllocatedAmountFc { get { return allocatedamountfc; } set { allocatedamountfc = value; } } public decimal ReceivableFC { get { return receivablefc; } set { receivablefc = value; } } public decimal PayableFC { get { return payablefc; } set { payablefc = value; } } public decimal BalanceFC { get { return balancefc; } set { balancefc = value; } } public string GroupType { get { return grouptype; } set { grouptype = value; } } public string BalanceType { get { return balancetype; } set { balancetype = value; } } public string ReportType { get { return reporttype; } set { reporttype = value; } } public string AddressLine1 { get { return addressline1; } set { addressline1 = value; } } public string AddressLine2 { get { return addressline2; } set { addressline2 = value; } } public string AddressLine3 { get { return addressline3; } set { addressline3 = value; } } public string AddressLine4 { get { return addressline4; } set { addressline4 = value; } } public string Address { get { return address; } set { address = value; } } #endregion private int numberofrecords; public int NumberOfRecords { get { return numberofrecords; } set { numberofrecords = value; } } private string label = ""; public string Label { get { return label; } set { label = value; } } private int allocationlineid; public int AllocationLineId { get { return allocationlineid; } set { allocationlineid = value; } } #region Total private decimal totalamount; private decimal totalreceivable; private decimal totalpayable; private decimal totalbalance; private decimal totalreceivablefc; private decimal totalpayablefc; private decimal totalbalancefc; private decimal totalfullamountfc; private decimal totalallocatedamountfc; public decimal TotalFullAmountFc { get { return totalfullamountfc; } set { totalfullamountfc = value; } } public decimal TotalAllocatedAmountFc { get { return totalallocatedamountfc; } set { totalallocatedamountfc = value; } } public decimal TotalAmount { get { return totalamount; } set { totalamount = value; } } public decimal TotalReceivable { get { return totalreceivable; } set { totalreceivable = value; } } public decimal TotalPayable { get { return totalpayable; } set { totalpayable = value; } } public decimal TotalBalance { get { return totalbalance; } set { totalbalance = value; } } public decimal TotalReceivableFC { get { return totalreceivablefc; } set { totalreceivablefc = value; } } public decimal TotalPayableFC { get { return totalpayablefc; } set { totalpayablefc = value; } } public decimal TotalBalanceFC { get { return totalbalancefc; } set { totalbalancefc = value; } } #endregion #region BankBranchDetails private int bankbranchid; private string bankbranchcode; private string bankbranchname; private string bankaccounttype; private string bankaccountnumber; private string ifsccode; public int BankBranchId { get { return bankbranchid; } set { bankbranchid = value; } } public string BankBranchCode { get { return bankbranchcode; } set { bankbranchcode = value; } } public string BankBranchName { get { return bankbranchname; } set { bankbranchname = value; } } public string BankAccountNumber { get { return bankaccountnumber; } set { bankaccountnumber = value; } } public string BankAccountType { get { return bankaccounttype; } set { bankaccounttype = value; } } public string IFSCCode { get { return ifsccode; } set { ifsccode = value; } } #endregion private int cityid; private string citycode; private string cityname; public int CityId { get { return cityid; } set { cityid = value; } } public string CityCode { get { return citycode; } set { citycode = value; } } public string CityName { get { return cityname; } set { cityname = value; } } private int overduedays; private int age; private int duedays; public int OverDueDays { get { return overduedays; } set { overduedays = value; } } public int Age { get { return age; } set { age = value; } } public int DueDays { get { return duedays; } set { duedays = value; } } private string allocationname; private string allocationshortname; private string allocationdescription; public string AllocationName { get { return allocationname; } set { allocationname = value; } } public string AllocationShortName { get { return allocationshortname; } set { allocationshortname = value; } } public string AllocationDescription { get { return allocationdescription; } set { allocationdescription = value; } } private string partyinfoname; private string partyinfocode; public string PartyInfoName { get { return partyinfoname; } set { partyinfoname = value; } } public string PartyInfoCode { get { return partyinfocode; } set { partyinfocode = value; } } } }