using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using GB5Shared.DTO.Framework.Enum; using GB5Shared.DTO.Report; namespace AdminDAL.DTO.Contact { public class ContactDTO { #region PrivateMembers #region Address private int contactid; //Id #region entity private int entityid = -1; //Id private string entitycode; //Code private string entityname; //Name #endregion private int contactobjectid = -1; //Object private byte contactcontactnature; //ContactNature private string contactname = "NONE"; //Name private string contactfirstname; //FirstName private string contactmiddlename = "NONE"; //MiddleName private string contactlastname = "NONE"; //LastName private string contactsalutation; //Salutation private byte contactsex; //Sex private DateTime contactdob = DateTime.Now; //Dob 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"; #endregion private string partycode = "NONE"; private string partyname = "NONE"; private string partybranchcode = "NONE"; private string partybranchname = "NONE"; private string defaultimageid = "NONE"; private string relationship = "NONE"; #region AddressDTO private List addressdtoarray = new List(); #endregion #region Base private int contactcreatedbyid = -1; //CreatedById private DateTime contactcreatedon; //CreatedOn private int contactmodifiedbyid = -1; //ModifiedById private DateTime contactmodifiedon; //ModifiedOn #endregion #region Standard private Int16 contactsortorder; //SortOrder private byte contactstatus; //Status private Int16 contactversion; //Version private byte contactsourcetype; //SourceType private string contactmailid = "NONE"; //contact Mail Id #endregion //private IList contactaddon; ---- Poco folder to be discussion private int contactisuser = 1;//0 Yes 1 No private int userlinkid = -1; private string contactthumbnail; //ThumbNail #endregion #region PublicMembers public string PartyCode { get { return partycode; } //Id set { partycode = value; } //Id } public string PartyName { get { return partyname; } //Id set { partyname = value; } //Id } public string PartyBranchCode { get { return partybranchcode; } //Id set { partybranchcode = value; } //Id } public string PartyBranchName { get { return partybranchname; } //Id set { partybranchname = value; } //Id } public string DefaultImageId { get { return defaultimageid; } //id set { defaultimageid = value; } //id } public string RelationShip { get { return relationship; } //id set { relationship = value; } //Id } private string contactsexname; public string ContactSexName { get { return contactsexname; } //Sex set { contactsexname = value; } //Sex } public byte ContactSex { get { return contactsex; } set { contactsex = value; ContactSexName = ((FrameworkEnumDTO.Sex)ContactSex).ToString(); } } public string ContactThumbNail { get { return contactthumbnail; } //ThumbNail set { contactthumbnail = value; } //ThumbNail } #region Address public int ContactId { get { return contactid; } //Id set { contactid = value; } //Id } #region Entity public int EntityId { get { return entityid; } //Id set { entityid = value; } //Id } public string EntityCode { get { return entitycode; } //Code set { entitycode = value; } //Code } public string EntityName { get { return entityname; } //Name set { entityname = value; } //Name } #endregion public int ContactObjectId { get { return contactobjectid; } //Object set { contactobjectid = value; } //Object } public byte ContactContactNature { get { return contactcontactnature; } //ContactNature set { contactcontactnature = value; } //ContactNature } public string ContactName { get { return contactname; } //Name set { contactname = value; } //Name } public string ContactFirstName { get { return contactfirstname; } //FirstName set { contactfirstname = value; } //FirstName } public string ContactMiddleName { get { return contactmiddlename; } //MiddleName set { contactmiddlename = value; } //MiddleName } public string ContactLastName { get { return contactlastname; } //LastName set { contactlastname = value; } //LastName } public string ContactSalutation { get { return contactsalutation; } //Salutation set { contactsalutation = value; } //Salutation } public DateTime ContactDob { get { return contactdob; } //Dob set { contactdob = value; } //Dob } public string ContactMailId { get { return contactmailid; } //MailId set { contactmailid = value; } //MailId } public string ContactPhoneNo { get { return contactphoneno; } //LastName set { contactphoneno = value; } //LastName } public string ContactMobileNo { get { return contactmobileno; } //LastName set { contactmobileno = value; } //LastName } public string ContactRelationShip { get { return contactrelationship; } //LastName set { contactrelationship = value; } //LastName } public string ContactDesignation { get { return contactdesignation; } //LastName set { contactdesignation = value; } //LastName } public string ContactCompany { get { return contactcompany; } //LastName set { contactcompany = value; } //LastName } public string ContactDefaultImageId { get { return contactdefaultimageid; } //LastName set { contactdefaultimageid = value; } //LastName } public byte ContactLinkType { get { return contactlinktype; } //LastName set { contactlinktype = value; } //LastName } public int ReportingToId { get { return reportingtoid; } //LastName set { reportingtoid = value; } //LastName } public string ReportingToName { get { return reportingtoname; } //LastName set { reportingtoname = value; } //LastName } #endregion #region AddressDTO public List AddressDTOArray { get { return addressdtoarray; } set { addressdtoarray = value; } } public string ContactImageViewUrl { get { return contactimageviewurl; } set { contactimageviewurl = value; } } #endregion #region Base public int ContactCreatedById { get { return contactcreatedbyid; } //CreatedById set { contactcreatedbyid = value; } //CreatedById } public DateTime ContactCreatedOn { get { return contactcreatedon; } //CreatedOn set { contactcreatedon = value; } //CreatedOn } public int ContactModifiedById { get { return contactmodifiedbyid; } //ModifiedById set { contactmodifiedbyid = value; } //ModifiedById } public DateTime ContactModifiedOn { get { return contactmodifiedon; } //ModifiedOn set { contactmodifiedon = value; } //ModifiedOn } #endregion #region Standard public Int16 ContactSortOrder { get { return contactsortorder; } //SortOrder set { contactsortorder = value; } //SortOrder } public byte ContactStatus { get { return contactstatus; } //Status set { contactstatus = value; } //Status } public Int16 ContactVersion { get { return contactversion; } //Version set { contactversion = value; } //Version } public byte ContactSourceType { get { return contactsourcetype; } //SourceType set { contactsourcetype = value; } //SourceType } #endregion //public IList ContactAddon //{ // get { return contactaddon; } // set { contactaddon = value; }-------------------->Poco folder to be discussion //} #endregion public int ContactIsUser { get { return contactisuser; } //ContactIsUser set { contactisuser = value; } //ContactIsUser } public int UserLinkId { get { return userlinkid; } set { userlinkid = value; } } private Int64 numberofrecords; public Int64 NumberOfRecords { get { return numberofrecords; } set { numberofrecords = value; } } private string contactstatusname; public string ContactStatusName { get { return contactstatusname; } set { contactstatusname = value; } } private ContactDTO contactdto; public ContactDTO contactDTO { get { return contactdto; } //code set { contactdto = value; } //code } private int objecttypeid; //ObjectType/Entity public int ObjectTypeId { get { return objecttypeid; } //ObjectType/Entity set { objecttypeid = value; } //ObjectType/Entity } } }