using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AccountsDAL.DTO.Party { public class CustomPartyDTO { private string code; private string name; private string line1; private string line2; private string contactname; private string mobile; private int cityid; private int id = 0; private string line3; private string line4; private string phone; private string addressmail = "NONE"; private int taxtypeid; private string addressvattinnumber; private string addressvatcstnumber; private int salesinchargeid; private int salespricelistid; private int partybranchid; private byte isaccount; private int accountgroupid; private int currencyid; private string statetinnumber = ""; private int contactid = -1; private string altermobile; private int controlaccountid = -1; private string partybranchlinkedparties = ""; private byte updatepartyproduct = 0; private int tempaddressid = -1; private int temppartyproductid = -1; private string partybranchprojectmanagerids = ""; private string partybranchaccountmanagerids = ""; private byte isvalidationrequired = 0; private int countryid = -1; private string partyshortname = ""; private byte partystatus; //private IList partyaddon = new List(); //private IList partybranchaddon = new List(); private int custompartyfromlead = 1;//Always 1 ..Only If Custom Party is created from Lead its 0; public int Id { get { return id; } set { id = value; } } public string Code { get { return code; } set { code = value; } } public string Name { get { return name; } set { name = value; } } public string Line1 { get { return line1; } set { line1 = value; } } public string Line2 { get { return line2; } set { line2 = value; } } public string ContactName { get { return contactname; } set { contactname = value; } } public string Mobile { get { return mobile; } set { mobile = value; } } public int CityId { get { return cityid; } set { cityid = value; } } public string Line3 { get { return line3; } set { line3 = value; } } public string Line4 { get { return line4; } set { line4 = value; } } public string Phone { get { return phone; } set { phone = value; } } public string AddressMail { get { return addressmail; } set { addressmail = value; } } public int TaxTypeId { get { return taxtypeid; } set { taxtypeid = value; } } public string AddressVATTINNumber { get { return addressvattinnumber; } set { addressvattinnumber = value; } } public string AddressVATCSTNumber { get { return addressvatcstnumber; } set { addressvatcstnumber = value; } } public int SalesInchargeId { get { return salesinchargeid; } set { salesinchargeid = value; } } public int SalesPriceListId { get { return salespricelistid; } set { salespricelistid = value; } } private int iscustomer = 0; private int isvendor = 1; public int IsCustomer { get { return iscustomer; } set { iscustomer = value; } } public int IsVendor { get { return isvendor; } set { isvendor = value; } } private int stateid; public int StateId { get { return stateid; } set { stateid = value; } } private string gstin; public string GSTIN { get { return gstin; } set { gstin = value; } } private int codeapplicable = 1; private int codedefineid = -2; public int CodeApplicable { get { return codeapplicable; } set { codeapplicable = value; } } public int CodeDefineId { get { return codedefineid; } set { codedefineid = value; } } private Int16 version; public Int16 Version { get { return version; } set { version = value; } } private Int16 partybranchversion; public Int16 PartyBranchVersion { get { return partybranchversion; } set { partybranchversion = value; } } public int PartyBranchId { get { return partybranchid; } set { partybranchid = value; } } private int addressid; public int AddressId { get { return addressid; } set { addressid = value; } } public byte IsAccount { get { return isaccount; } set { isaccount = value; } } public int AccountGroupId { get { return accountgroupid; } set { accountgroupid = value; } } private int accountlinkid = -1; public int AccountLinkId { get { return accountlinkid; } set { accountlinkid = value; } } public int CurrencyId { get { return currencyid; } set { currencyid = value; } } public string StateTINNumber { get { return statetinnumber; } set { statetinnumber = value; } } public int ContactId { get { return contactid; } set { contactid = value; } } private string zipcode = "0"; public string ZipCode { get { return zipcode; } set { zipcode = value; } } private Int16 contactversion; public Int16 ContactVersion { get { return contactversion; } set { contactversion = value; } } private byte accountbilltype = 3; private byte addresstype = 0; public byte AccountBillType { get { return accountbilltype; } set { accountbilltype = value; } } public string AlterMobile { get { return altermobile; } set { altermobile = value; } } public int ControlAccountId { get { return controlaccountid; } set { controlaccountid = value; } } public byte AddressType { get { return addresstype; } set { addresstype = value; } } public string PartyBranchLinkedParties { get { return partybranchlinkedparties; } set { partybranchlinkedparties = value; } } public byte UpdatePartyProduct { get { return updatepartyproduct; } set { updatepartyproduct = value; } } public int TempAddressId { get { return tempaddressid; } set { tempaddressid = value; } } public int TempPartyProductId { get { return temppartyproductid; } set { temppartyproductid = value; } } public string PartyBranchProjectManagerIds { get { return partybranchprojectmanagerids; } //partyprojectmanagerids set { partybranchprojectmanagerids = value; } //partyprojectmanagerids } public string PartyBranchAccountManagerIds { get { return partybranchaccountmanagerids; } //partyaccountmanagerids set { partybranchaccountmanagerids = value; } //partyaccountmanagerids } public int CountryId { get { return countryid; } //partyprojectmanagerids set { countryid = value; } //partyprojectmanagerids } public string PartyShortName { get { return partyshortname; } //PartyShortName set { partyshortname = value; } //PartyShortName } public virtual byte PartyStatus { get { return partystatus; } //0.Pending, 1.Active, 2.Deleted, 3.Amended, 4.Inactive, 5.Archived set { partystatus = value; } } //public IList PartyAddon //{ // get { return partyaddon; } // set { partyaddon = value; } //} //public IList PartyBranchAddon //{ // get { return partybranchaddon; } // set { partybranchaddon = value; } //} public int CustomPartyFromLead { get { return custompartyfromlead; } //CustomPartyFromLead set { custompartyfromlead = value; } //CustomPartyFromLead } private byte accountiscreditallowed = 1; private double accountcreditlimit = 0; private byte accountisdebitallowed = 1; private double accountdebitlimit = 0; private int purchasepaymenttermid = -1; private int salespaymenttermid = -1; private byte issalesapplicable = 1; private byte ispurchaseapplicable = 1; public byte AccountIsCreditAllowed { get { return accountiscreditallowed; } //IsCreditAllowed set { accountiscreditallowed = value; } //IsCreditAllowed } public double AccountCreditLimit { get { return accountcreditlimit; } //CreditLimit set { accountcreditlimit = value; } //CreditLimit } public byte AccountIsDebitAllowed { get { return accountisdebitallowed; } //IsDebitAllowed set { accountisdebitallowed = value; } //IsDebitAllowed } public double AccountDebitLimit { get { return accountdebitlimit; } //DebitLimit set { accountdebitlimit = value; } //DebitLimit } public int PurchasePaymentTermId { get { return purchasepaymenttermid; } set { purchasepaymenttermid = value; } } public int SalesPaymentTermId { get { return salespaymenttermid; } set { salespaymenttermid = value; } } public byte IsSalesApplicable { get { return issalesapplicable; } //IsDebitAllowed set { issalesapplicable = value; } //IsDebitAllowed } public byte IsPurchaseApplicable { get { return ispurchaseapplicable; } //IsDebitAllowed set { ispurchaseapplicable = value; } //IsDebitAllowed } public byte IsValidationRequired // while creating party that time country select india means one msg came"PARTY MARKED OUTSIDE STATE. BUT STATE CODE IS SAME AS OU STATE CODE. PLEASE CHECK so used this varaiable" { get { return isvalidationrequired; } set { isvalidationrequired = value; } } } }