• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# AlcionaDAL.DirtyApartments类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Alciona.AlcionaDAL.DirtyApartments的典型用法代码示例。如果您正苦于以下问题:C# DirtyApartments类的具体用法?C# DirtyApartments怎么用?C# DirtyApartments使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DirtyApartments类属于Alciona.AlcionaDAL命名空间,在下文中一共展示了DirtyApartments类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: CreateHashForApartment

 /// <summary>
 /// Вычисляем значение хеша на основе информации об объекте
 /// </summary>
 /// <param name="dirtyApartment">Объект для вычисления</param>
 public static void CreateHashForApartment(DirtyApartments dirtyApartment)
 {
     dirtyApartment.Hash = Services.GetHash(dirtyApartment.Балкон.Trim().ToLower() +
                         dirtyApartment.Край.Trim().ToLower() +
                         dirtyApartment.Город.Trim().ToLower() +
                         dirtyApartment.Район.Trim().ToLower() +
                         dirtyApartment.Массив.Trim().ToLower() +
                         dirtyApartment.Ориентир.Trim().ToLower() +
                         dirtyApartment.Планировка.Trim().ToLower() +
                         dirtyApartment.Материал.Trim().ToLower() +
                         dirtyApartment.Санузел.Trim().ToLower() +
                         dirtyApartment.ТипПлиты.Trim().ToLower() +
                         dirtyApartment.Дом.Trim().ToLower() +
                         dirtyApartment.Общая.Trim().ToLower() +
                         dirtyApartment.Жилая.Trim().ToLower() +
                         dirtyApartment.Кухня.Trim().ToLower() +
                         dirtyApartment.ЗаголовокОбъявления.Trim().ToLower() +
                         dirtyApartment.ТекстОбъявления.Trim().ToLower() +
                         dirtyApartment.Комнат.Trim().ToLower() +
                         // dirtyApartment.Лоджия.Trim().ToLower() +
                         dirtyApartment.Примечание.Trim().ToLower() +
                         dirtyApartment.Телефон1.Trim().ToLower() +
                         dirtyApartment.Телефон2.Trim().ToLower() +
                         dirtyApartment.Телефон3.Trim().ToLower() +
                         dirtyApartment.Телефон4.Trim().ToLower() +
                         dirtyApartment.Улица.Trim().ToLower() +
                         dirtyApartment.Этаж.Trim().ToLower() +
                         dirtyApartment.Этажность.Trim().ToLower());
 }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:33,代码来源:Services.cs


示例2: CreateHashForBroker

 /// <summary>
 /// Вычисляем значение хеша для посредника на основе информации об объекте
 /// </summary>
 public static string CreateHashForBroker(DirtyApartments apartment)
 {
     return Services.GetHash(apartment.Имя.Trim().ToLower() +
                                    apartment.Телефон1.Trim().ToLower() +
                                    apartment.Телефон2.Trim().ToLower() +
                                    apartment.Телефон3.Trim().ToLower() +
                                    apartment.Телефон4.Trim().ToLower());
 }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:11,代码来源:Services.cs


示例3: Add

 public bool Add(DirtyApartments da)
 {
     bool flag = false;
     try
     {
         lock (ap)
         {
             ap.Add(da);
             lock (added_aps)
             added_aps.Add(da.AddressParsing);
             flag = true;
         }
     }
     catch (Exception ex) { Console.WriteLine("Произошла ошибка добавления объявления " + ex.Message); }
     return flag;
 }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:16,代码来源:apartments.cs


示例4: SetHouseUnderConstruction

 //САДом
 protected override void SetHouseUnderConstruction(HtmlDocument page, DirtyApartments dirtyApartment)
 {
 }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:4,代码来源:RentArentaCollector.cs


示例5: SetFurnishType

 //ТипОтделки
 protected override void SetFurnishType(HtmlDocument page, DirtyApartments dirtyApartment)
 {
 }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:4,代码来源:RentArentaCollector.cs


示例6: SetYearOfConstruction

 //ГодПостройки
 protected override void SetYearOfConstruction(HtmlDocument page, DirtyApartments dirtyApartment)
 {
 }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:4,代码来源:RentArentaCollector.cs


示例7: SetLoggia

 //Лоджия
 protected override void SetLoggia(HtmlDocument page, DirtyApartments dirtyApartment)
 {
 }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:4,代码来源:RentArentaCollector.cs


示例8: SetAdText

 //ТекстОбъявления
 protected override void SetAdText(HtmlDocument page, DirtyApartments dirtyApartment)
 {
     //dirtyApartment.ТекстОбъявления = "";
 }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:5,代码来源:RentArentaCollector.cs


示例9: SetPhoto

        //Фото
        protected override void SetPhoto(HtmlDocument page, DirtyApartments dirtyApartment)
        {


        }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:6,代码来源:RentArentaCollector.cs


示例10: SetQuarterOfDelivery

 //КварталСдачи
 protected override void SetQuarterOfDelivery(HtmlDocument page, DirtyApartments dirtyApartment)
 {
     // dirtyApartment.КварталСдачи = "";
 }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:5,代码来源:RentArentaCollector.cs


示例11: SetDeveloper

 //Застройщик
 protected override void SetDeveloper(HtmlDocument page, DirtyApartments dirtyApartment)
 {
     // dirtyApartment.Застройщик = "";
 }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:5,代码来源:RentArentaCollector.cs


示例12: SetTypeOfContactPerson

 //ТипКонтактногоЛица
 protected override void SetTypeOfContactPerson(HtmlDocument page, DirtyApartments dirtyApartment)
 {
     // dirtyApartment.ТипКонтактногоЛица = "";
 }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:5,代码来源:RentArentaCollector.cs


示例13: SetCompanyName

        //компания
        protected override void SetCompanyName(HtmlDocument page, DirtyApartments dirtyApartment)
        {

        }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:5,代码来源:RentArentaCollector.cs


示例14: SetAdDate

        //дата объявления
        protected override void SetAdDate(HtmlDocument page, DirtyApartments dirtyApartment)
        {

        }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:5,代码来源:RentArentaCollector.cs


示例15: SetWallMaterial

        //материал стен
        protected override void SetWallMaterial(HtmlDocument page, DirtyApartments dirtyApartment)
        {

        }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:5,代码来源:RentArentaCollector.cs


示例16: SetHouseNumber

        //№ дома
        protected override void SetHouseNumber(HtmlDocument page, DirtyApartments dirtyApartment)
        {

        }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:5,代码来源:RentArentaCollector.cs


示例17: SetSticker

        //стикер
        protected override void SetSticker(string sticker, DirtyApartments dirtyApartment)
        {
            // готовим строку - xml документ
            XmlDocument xmlDoc = new XmlDocument();
            xmlDoc.Load(new StringReader(sticker));

            var res = xmlDoc.GetElementsByTagName("operation");
            foreach (XmlElement e in res)
            {
                dirtyApartment.Операция = e.InnerText;
                break;
            }
            res = null;

            res = xmlDoc.GetElementsByTagName("rooms");
            foreach (XmlElement e in res)
            {
                dirtyApartment.Комнат = e.InnerText;
                dirtyApartment.НаименованиеОбъекта = e.InnerText;
                break;
            }
            res = null;

            res = xmlDoc.GetElementsByTagName("district");
            foreach (XmlElement e in res)
            {
                dirtyApartment.Район = e.InnerText;
                break;
            }
            res = null;

            res = xmlDoc.GetElementsByTagName("landmark");
            foreach (XmlElement e in res)
            {
                dirtyApartment.Ориентир = e.InnerText;
                break;
            }
            res = null;

            res = xmlDoc.GetElementsByTagName("street");
            foreach (XmlElement e in res)
            {
                dirtyApartment.Улица  = e.InnerText;
                break;
            }
            res = null;

            res = xmlDoc.GetElementsByTagName("furniture");
            foreach (XmlElement e in res)
            {
                dirtyApartment.Массив = e.InnerText; //мебель
                break;
            }
            res = null;
            res = xmlDoc.GetElementsByTagName("technics");
            foreach (XmlElement e in res)
            {
                dirtyApartment.ТипОтделки = e.InnerText; //техника
                break;
            }
            res = null;
            res = xmlDoc.GetElementsByTagName("square");
            foreach (XmlElement e in res)
            {
                dirtyApartment.Общая = e.InnerText; 
                break;
            }
            res = null;
            res = xmlDoc.GetElementsByTagName("price");
            foreach (XmlElement e in res)
            {
                dirtyApartment.Цена = e.InnerText.Replace(" ","");
                break;
            }
            res = null;
            res = xmlDoc.GetElementsByTagName("txt");
            foreach (XmlElement e in res)
            {
                dirtyApartment.Примечание = e.InnerText;
                break;
            }
            res = null;
            res = xmlDoc.GetElementsByTagName("contacts");
            foreach (XmlElement e in res)
            {
                string phones = e.InnerText;
                phones = phones.Replace("-", "").Replace(" ", "").Replace("т.","");
                string ph1 = Regex.Match(phones, @"(\d{7,11})").Groups[1].Value;
                if (!string.IsNullOrEmpty(ph1))
                {
                    dirtyApartment.Телефон1 = ph1;
                    dirtyApartment.Имя = ((!string.IsNullOrEmpty(phones.Replace(ph1, ""))) ? phones.Replace(ph1, "") : null);
                }
                break;
            }
            res = null;

            res = xmlDoc.GetElementsByTagName("id");
            if (res != null)
//.........这里部分代码省略.........
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:101,代码来源:RentArentaCollector.cs


示例18: SetYearOfDelivery

        //ГодСдачи
        protected override void SetYearOfDelivery(HtmlDocument page, DirtyApartments dirtyApartment)
        {

        }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:5,代码来源:RentArentaCollector.cs


示例19: SetCooker

        //ТипПлиты Кухонная плита
        protected override void SetCooker(HtmlDocument page, DirtyApartments dirtyApartment)
        {
            //dirtyApartment.ТипПлиты = "";

        }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:6,代码来源:RentArentaCollector.cs


示例20: SetNewBuilding

 //Новостройка - дата сдачи (+вид Объекта, Операция, номер объявления)
 protected override void SetNewBuilding(HtmlDocument page, DirtyApartments dirtyApartment)
 { }
开发者ID:molec1,项目名称:MySPM_NewParsers,代码行数:3,代码来源:RentArentaCollector.cs



注:本文中的Alciona.AlcionaDAL.DirtyApartments类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# AllJoynUnity.AllJoyn类代码示例发布时间:2022-05-24
下一篇:
C# Core.SecurityCredentials类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap