private int CalculateWidth()
        {
            int width  = 20;
            int border = 2;
            ArchitectureService service = new ArchitectureService();
            int columnCount             = service.GetColumnCountByBuild(this._BuildId);

            this._Width = width * columnCount + border * (1 + columnCount);
            return(columnCount);
        }
        private IList <string> QueryFromDb(string keyword)
        {
            ArchitectureService service = new ArchitectureService();
            IList <string>      result  = service.GetEstateNameByKeyword(keyword, this.SearchType, this.SearchCode);

            if (result != null && result.Count > 0)
            {
                AddCache(keyword, result);
            }
            return(result);
        }
 private IList <CentaEstateType> FindFromDb(string[] keyword, out int recordCount)
 {
     try
     {
         this._LastSearchDb = DateTime.Now;
         ArchitectureService     service = new ArchitectureService();
         IList <CentaEstateType> value   = service.GetEstateByKeyword <CentaEstateType>(keyword, this.PageIndex, this.PageSize, out recordCount);
         SetCache(keyword, value);
         return(value);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }