using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AccountsDAL.DTO.Insurance { public class InsuranceDTO { #region PrivateMembers #region Insurance private int insuranceid; //Id private byte insuranceoutype; //OUType #region OrganizationGroup private int ougroupid; //Id private string ougroupcode; //Code private string ougroupname; //Name #endregion #region OrganizationUnit private int ouid; //Id private string oucode; //Code private string ouname; //Name #endregion private byte insuranceinsurancetype; //InsuranceType private string insurancepolicynumber; //PolicyNumber #region Vehicle private int vehicleid; //Id private string vehiclenumber; //Number #endregion #region Party private int partyid; //Id private string partycode; //Code private string partyname; //Name #endregion private DateOnly insurancestartdate; //StartDate private DateOnly insuranceenddate; //EndDate private double insurancecoverageamount; //CoverageAmount private double insurancepremiumamount; //PremiumAmount private byte insuranceperiodtype; //PeriodType private DateOnly insurancelastpaidon; //LastPaidOn private DateOnly insurancelastpaidtill; //LastPaidTill private DateOnly insurancepremiumdueon; //PremiumDueOn private byte insuranceinsuranceostatus; //InsuranceStatus private string insuranceremarks; //Remarks #region Asset private int assetid = -1; private string assetcode; private string assetname; #endregion #region Employee private int employeeid = -1; private string employeecode; private string employeename; #endregion #region Machine private int machineid = -1; private string machinecode; private string machinename; #endregion #endregion #region Base private int insurancecreatedbyid; //Created By Person (User Id) private DateTime insurancecreatedon; //Created On Date private int insurancemodifiedbyid; //Modified By Person (User Id) private DateTime insurancemodifiedon; //Modified On Date private string insurancecreatedbyname; private string insurancemodifiedbyname; #endregion #region Standard private Int16 insurancesortorder; private byte insurancestatus; //0.Pending, 1.Active, 2.Deleted, 3.Amended, 4.Inactive, 5.Archived private Int16 insuranceversion; //No Of Times Updated // private int tenantid; #endregion #endregion #region PublicMembers #region Insurance public int InsuranceId { get { return insuranceid; } //Id set { insuranceid = value; } //Id } public byte InsuranceOUType { get { return insuranceoutype; } //OUType set { insuranceoutype = value; if (Convert.ToInt32(value) == 0) { StringInsuranceOUType = "All"; } else if (Convert.ToInt32(value) == 1) { StringInsuranceOUType = "OU Group"; } else if (Convert.ToInt32(value) == 2) { StringInsuranceOUType = "OU"; } else { StringInsuranceOUType = "*"; } } } #region OrganizationGroup public int OUGroupId { get { return ougroupid; } //Id set { ougroupid = value; } //Id } public string OUGroupCode { get { return ougroupcode; } //Code set { ougroupcode = value; } //Code } public string OUGroupName { get { return ougroupname; } //Name set { ougroupname = value; } //Name } #endregion #region OrganizationUnit public int OUId { get { return ouid; } //Id set { ouid = value; } //Id } public string OUCode { get { return oucode; } //Code set { oucode = value; } //Code } public string OUName { get { return ouname; } //Name set { ouname = value; } //Name } #endregion public byte InsuranceInsuranceType { get { return insuranceinsurancetype; } //InsuranceType set { insuranceinsurancetype = value; if (Convert.ToInt32(value) == 0) { StringInsuranceInsuranceType = "Transit Insurance"; } else if (Convert.ToInt32(value) == 1) { StringInsuranceInsuranceType = "General"; } else if (Convert.ToInt32(value) == 2) { StringInsuranceInsuranceType = "Vehicle"; } else if (Convert.ToInt32(value) == 3) { StringInsuranceInsuranceType = "Machine"; } else if (Convert.ToInt32(value) == 4) { StringInsuranceInsuranceType = "Asset"; } else if (Convert.ToInt32(value) == 5) { StringInsuranceInsuranceType = "Employee"; } else { StringInsuranceInsuranceType = "*"; } } } public string InsurancePolicyNumber { get { return insurancepolicynumber; } //PolicyNumber set { insurancepolicynumber = value; } //PolicyNumber } #region Vehicle public int VehicleId { get { return vehicleid; } //Id set { vehicleid = value; } //Id } public string VehicleNumber { get { return vehiclenumber; } //Number set { vehiclenumber = value; } //Number } #endregion #region Party public int PartyId { get { return partyid; } //Id set { partyid = value; } //Id } public string PartyCode { get { return partycode; } //Code set { partycode = value; } //Code } public string PartyName { get { return partyname; } //Name set { partyname = value; } //Name } #endregion public DateOnly InsuranceStartDate { get { return insurancestartdate; } //StartDate set { insurancestartdate = value; } //StartDate } public DateOnly InsuranceEndDate { get { return insuranceenddate; } //EndDate set { insuranceenddate = value; } //EndDate } public double InsuranceCoverageAmount { get { return insurancecoverageamount; } //CoverageAmount set { insurancecoverageamount = value; } //CoverageAmount } public double InsurancePremiumAmount { get { return insurancepremiumamount; } //PremiumAmount set { insurancepremiumamount = value; } //PremiumAmount } public byte InsurancePeriodType { get { return insuranceperiodtype; } //InsuranceType set { insuranceperiodtype = value; if (Convert.ToInt32(value) == 0) { StringInsurancePeriodType = "Life Time"; } else if (Convert.ToInt32(value) == 1) { StringInsurancePeriodType = "Annual"; } else if (Convert.ToInt32(value) == 2) { StringInsurancePeriodType = "Half Yearly"; } else if (Convert.ToInt32(value) == 3) { StringInsurancePeriodType = "Quarterly"; } else if (Convert.ToInt32(value) == 4) { StringInsurancePeriodType = "Monthly"; } else { StringInsurancePeriodType = "*"; } } } public DateOnly InsuranceLastPaidOn { get { return insurancelastpaidon; } //LastPaidOn set { insurancelastpaidon = value; } //LastPaidOn } public DateOnly InsuranceLastPaidTill { get { return insurancelastpaidtill; } //LastPaidTill set { insurancelastpaidtill = value; } //LastPaidTill } public DateOnly InsurancePremiumDueOn { get { return insurancepremiumdueon; } //PremiumDueOn set { insurancepremiumdueon = value; } //PremiumDueOn } public byte InsuranceInsuranceOStatus { get { return insuranceinsuranceostatus; } //InsuranceType set { insuranceinsuranceostatus = value; if (Convert.ToInt32(value) == 0) { StringInsuranceInsuranceOStatus = "Pending"; } else if (Convert.ToInt32(value) == 1) { StringInsuranceInsuranceOStatus = "Active"; } else if (Convert.ToInt32(value) == 2) { StringInsuranceInsuranceOStatus = "Expired"; } else if (Convert.ToInt32(value) == 3) { StringInsuranceInsuranceOStatus = "Closed"; } else { StringInsuranceInsuranceOStatus = "*"; } } } public string InsuranceRemarks { get { return insuranceremarks; } //Remarks set { insuranceremarks = value; } //Remarks } #region Asset public int AssetId { get { return assetid; } set { assetid = value; } } public string AssetCode { get { return assetcode; } set { assetcode = value; } } public string AssetName { get { return assetname; } set { assetname = value; } } #endregion #region Employee public int EmployeeId { get { return employeeid; } set { employeeid = value; } } public string EmployeeCode { get { return employeecode; } set { employeecode = value; } } public string EmployeeName { get { return employeename; } set { employeename = value; } } #endregion #region Machine public int MachineId { get { return machineid; } set { machineid = value; } } public string MachineCode { get { return machinecode; } set { machinecode = value; } } public string MachineName { get { return machinename; } set { machinename = value; } } #endregion #endregion #region Base public int InsuranceCreatedById { get { return insurancecreatedbyid; } //Created By Person (User Id) set { insurancecreatedbyid = value; } //Created By Person (User Id) } public DateTime InsuranceCreatedOn { get { return insurancecreatedon; } //Created On Date set { insurancecreatedon = value; } //Created On Date } public int InsuranceModifiedById { get { return insurancemodifiedbyid; } //Modified By Person (User Id) set { insurancemodifiedbyid = value; } } public DateTime InsuranceModifiedOn { get { return insurancemodifiedon; } //Modified On Date set { insurancemodifiedon = value; } } public string InsuranceCreatedByName { get { return insurancecreatedbyname; } //created by person (user id) set { insurancecreatedbyname = value; } //created by person (user id) } public string InsuranceModifiedByName { get { return insurancemodifiedbyname; } //modified by person (user id) set { insurancemodifiedbyname = value; } } #endregion #region Standard public Int16 InsuranceSortOrder { get { return insurancesortorder; } set { insurancesortorder = value; } } public byte InsuranceStatus { get { return insurancestatus; } //0.Pending, 1.Active, 2.Deleted, 3.Amended, 4.Inactive, 5.Archived set { insurancestatus = value; } } public Int16 InsuranceVersion { get { return insuranceversion; } //No Of Times Updated set { insuranceversion = value; } } #endregion private string stringinsuranceinsurancetype; public string StringInsuranceInsuranceType { get { return stringinsuranceinsurancetype; } //insurancetype set { stringinsuranceinsurancetype = value; } //insurancetype } private string stringinsuranceoutype; public string StringInsuranceOUType { get { return stringinsuranceoutype; } //outype set { stringinsuranceoutype = value; } //outype } private string stringinsuranceperiodtype; public string StringInsurancePeriodType { get { return stringinsuranceperiodtype; } //periodtype set { stringinsuranceperiodtype = value; } //periodtype } private string stringinsuranceinsuranceostatus; public string StringInsuranceInsuranceOStatus { get { return stringinsuranceinsuranceostatus; } //periodtype set { stringinsuranceinsuranceostatus = value; } //periodtype } //public int TenantId //{ // get { return tenantid; } // set { tenantid = value; } //} #endregion } }