using GB5Shared.DTO.Framework.Enum; using GB5Shared.DTO.Report; using System; using System.Collections; using System.Collections.Generic; namespace CRMDAL.DTO.Contact { public class ContactDTO { private int contactid; private int entityid = -1; private string entitycode; private string entityname; private int contactobjectid = -1; private byte contactcontactnature; private string contactname = "NONE"; private string contactfirstname; private string contactmiddlename = "NONE"; private string contactlastname = "NONE"; private string contactsalutation; private byte contactsex; private DateTime contactdob = DateTime.Now; private string contactphoneno = "NONE"; private string contactmobileno; private string contactrelationship = "NONE"; private string contactdesignation = "NONE"; private string contactcompany = "NONE"; private string contactdefaultimageid = "NONE"; private byte contactlinktype; private int? reportingtoid = -1; private string reportingtoname = "NONE"; private string contactimageviewurl = "NONE"; private string partycode = "NONE"; private string partyname = "NONE"; private string partybranchcode = "NONE"; private string partybranchname = "NONE"; private string defaultimageid = "NONE"; private string relationship = "NONE"; private AddressDTO addressdto; private int contactcreatedbyid = -1; private DateTime contactcreatedon; private int contactmodifiedbyid = -1; private DateTime contactmodifiedon; private short contactsortorder; private byte contactstatus; private short contactversion; private byte contactsourcetype; private string contactmailid = "NONE"; private IList contactaddon; private int contactisuser = 1; private int userlinkid = -1; private string contactthumbnail; private string contactsexname; private long numberofrecords; private string contactstatusname; public int ObjectTypeId { get; set; } public int ObjectId { get; set; } public string PartyCode { get { return partycode; } set { partycode = value; } } public string PartyName { get { return partyname; } set { partyname = value; } } public string PartyBranchCode { get { return partybranchcode; } set { partybranchcode = value; } } public string PartyBranchName { get { return partybranchname; } set { partybranchname = value; } } public string DefaultImageId { get { return defaultimageid; } set { defaultimageid = value; } } public string RelationShip { get { return relationship; } set { relationship = value; } } public string ContactSexName { get { return contactsexname; } set { contactsexname = value; } } public byte ContactSex { get { return contactsex; } set { contactsex = value; ContactSexName = ((FrameworkEnumDTO.Sex)ContactSex).ToString(); } } public string ContactThumbNail { get { return contactthumbnail; } set { contactthumbnail = value; } } public int ContactId { get { return contactid; } set { contactid = value; } } public int EntityId { get { return entityid; } set { entityid = value; } } public string EntityCode { get { return entitycode; } set { entitycode = value; } } public string EntityName { get { return entityname; } set { entityname = value; } } public int ContactObjectId { get { return contactobjectid; } set { contactobjectid = value; } } public byte ContactContactNature { get { return contactcontactnature; } set { contactcontactnature = value; } } public string ContactName { get { return contactname; } set { contactname = value; } } public string ContactFirstName { get { return contactfirstname; } set { contactfirstname = value; } } public string ContactMiddleName { get { return contactmiddlename; } set { contactmiddlename = value; } } public string ContactLastName { get { return contactlastname; } set { contactlastname = value; } } public string ContactSalutation { get { return contactsalutation; } set { contactsalutation = value; } } public DateTime ContactDob { get { return contactdob; } set { contactdob = value; } } public string ContactMailId { get { return contactmailid; } set { contactmailid = value; } } public string ContactPhoneNo { get { return contactphoneno; } set { contactphoneno = value; } } public string ContactMobileNo { get { return contactmobileno; } set { contactmobileno = value; } } public string ContactRelationShip { get { return contactrelationship; } set { contactrelationship = value; } } public string ContactDesignation { get { return contactdesignation; } set { contactdesignation = value; } } public string ContactCompany { get { return contactcompany; } set { contactcompany = value; } } public string ContactDefaultImageId { get { return contactdefaultimageid; } set { contactdefaultimageid = value; } } public byte ContactLinkType { get { return contactlinktype; } set { contactlinktype = value; } } public int? ReportingToId { get { return reportingtoid; } set { reportingtoid = value; } } public string ReportingToName { get { return reportingtoname; } set { reportingtoname = value; } } public AddressDTO AddressDTO { get { return addressdto; } set { addressdto = value; } } public string ContactImageViewUrl { get { return contactimageviewurl; } set { contactimageviewurl = value; } } public int ContactCreatedById { get { return contactcreatedbyid; } set { contactcreatedbyid = value; } } public DateTime ContactCreatedOn { get { return contactcreatedon; } set { contactcreatedon = value; } } public int ContactModifiedById { get { return contactmodifiedbyid; } set { contactmodifiedbyid = value; } } public DateTime ContactModifiedOn { get { return contactmodifiedon; } set { contactmodifiedon = value; } } public short ContactSortOrder { get { return contactsortorder; } set { contactsortorder = value; } } public byte ContactStatus { get { return contactstatus; } set { contactstatus = value; } } public short ContactVersion { get { return contactversion; } set { contactversion = value; } } public byte ContactSourceType { get { return contactsourcetype; } set { contactsourcetype = value; } } public IList ContactAddon { get { return contactaddon; } set { contactaddon = value; } } public int ContactIsUser { get { return contactisuser; } set { contactisuser = value; } } public int UserLinkId { get { return userlinkid; } set { userlinkid = value; } } public long NumberOfRecords { get { return numberofrecords; } set { numberofrecords = value; } } public string ContactStatusName { get { return contactstatusname; } set { contactstatusname = value; } } public int ContactUserLinkId { get; set; } } public class ContactAddon { private int id; private string feaddon; private string getaddon; private IDictionary attributes = new Hashtable(); public virtual int Id { get { return id; } set { id = value; } } public virtual string FeAddon { get { return feaddon; } set { feaddon = value; } } public virtual string GetAddon { get { return getaddon; } set { getaddon = value; } } public virtual IDictionary Attributes { get { return attributes; } set { attributes = value; } } } }