Beispiel #1
0
        private static RarAdress SetupAdress(XElement adress)
        {
            RarAdress adr = new RarAdress();

            adr.StrictAdress = true;
            adr.CountryId    = "643"; // ?????????????????????
            adr.PostCode     = (string)adress.Element("Индекс");
            adr.RegionId     = (string)adress.Element("КодРегион");
            adr.District     = (string)adress.Element("Район");
            adr.City         = (string)adress.Element("Город");
            adr.Locality     = (string)adress.Element("НаселПункт");
            adr.Street       = (string)adress.Element("Улица");
            adr.Building     = (string)adress.Element("Дом");
            adr.Block        = (string)adress.Element("Корпус");
            adr.Litera       = (string)adress.Element("Литера");
            adr.Apartment    = (string)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);
        }
Beispiel #2
0
        private static 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);
        }
Beispiel #3
0
 public RarCompany()
 {
     Adress       = new RarAdress();
     LicensesList = new List <RarLicense>();
     IsUsed       = false;
 }
Beispiel #4
0
 public RarSubdevision()
 {
     Adress = new RarAdress();
 }