private RarAdress SetupAdress(XElement adress) { RarAdress adr = new RarAdress(); if (adress != null) { adr.StrictAdress = true; adr.CountryId = GetElementStringValue(adress.Element("КодСтраны")); adr.PostCode = GetElementStringValue(adress.Element("Индекс")); adr.RegionId = GetElementStringValue(adress.Element("КодРегион")); adr.District = GetElementStringValue(adress.Element("Район")); adr.City = GetElementStringValue(adress.Element("Город")); adr.Locality = GetElementStringValue(adress.Element("НаселПункт")); adr.Street = GetElementStringValue(adress.Element("Улица")); adr.Building = GetElementStringValue(adress.Element("Дом")); adr.Block = GetElementStringValue(adress.Element("Корпус")); adr.Litera = GetElementStringValue(adress.Element("Литера")); adr.Apartment = GetElementStringValue(adress.Element("Кварт")); adr.AdressString = adr.CountryId + "," + adr.PostCode + "," + adr.RegionId + "," + adr.District + "," + adr.City + "," + adr.Locality + "," + adr.Street + "," + adr.Building + "," + adr.Block + "," + adr.Litera + "," + adr.Apartment + ","; } return(adr); }
public RarCompany(string id, string name, string inn, string kpp, RarAdress adress) { ID = id; Name = name; INN = inn; KPP = kpp; IsUsed = false; Adress = adress; LicenseList = new List <RarLicense>(); }
public RarCompany() { ID = ""; Name = ""; INN = ""; KPP = ""; IsUsed = false; Adress = new RarAdress(); LicenseList = new List <RarLicense>(); }
public RarAdress(RarAdress adress) { CountryId = adress.CountryId; PostCode = adress.PostCode; RegionId = adress.RegionId; District = adress.District; City = adress.City; Locality = adress.Locality; Street = adress.Street; Building = adress.Building; Block = adress.Block; Litera = adress.Litera; Apartment = adress.Apartment; StrictAdress = adress.StrictAdress; AdressString = adress.AdressString; }
private XElement GetAdressElement(RarAdress adress) { XElement el = new XElement("П000000000008", new XElement("КодСтраны", "643"), new XElement("Индекс", adress.PostCode), new XElement("КодРегион", adress.RegionId), new XElement("Район", adress.District), new XElement("Город", adress.City), new XElement("НаселПункт", adress.Locality), new XElement("Улица", adress.Street), new XElement("Дом", adress.Building), new XElement("Корпус", adress.Block), new XElement("Литера", adress.Litera), new XElement("Кварт", adress.Apartment) ); return(el); }
public RarSubdevision(RarSubdevision subdevision) { Name = subdevision.Name; KPP = subdevision.KPP; Adress = subdevision.Adress; }
public RarSubdevision(string name, string kpp, RarAdress adress) { Name = name; KPP = kpp; Adress = adress; }
public RarSubdevision() { Adress = new RarAdress(); }