コード例 #1
0
 private void FillData(CafeF.Redis.Entity.Ceo c)
 {
     profileShort = c.CeoProfileShort;
     if (profileShort != null && !profileShort.Trim().Equals(""))
     {
         divSchool.Visible = true;
     }
     else
     {
         divSchool.Visible = false;
     }
 }
コード例 #2
0
 private void FillData(CafeF.Redis.Entity.Ceo c)
 {
     if (c == null || string.IsNullOrEmpty(c.CeoCode)) return;
     //List<CafeF.Redis.Entity.CeoSchool> tblResult = c.CeoSchool;
     //rpData.DataSource = tblResult;
     //rpData.DataBind();
     if (CeoPhotos.ContainsKey(c.CeoCode) && !string.IsNullOrEmpty(CeoPhotos[c.CeoCode]))
     {
         image = CeoPhotos[c.CeoCode];
     }
     else
     {
         image = "noimage.jpg";
     }
     //if (image == null || image == "")
     //{
     //    image = "http://images1.cafef.vn/batdongsan/Images/media/noimage.jpg";
     //}
     name = c.CeoName;
     birthday = c.CeoBirthday;
     idNo = c.CeoIdNo;
     homeTown = c.CeoHomeTown;
     achievements = c.CeoAchievements;
     profileShort = c.CeoProfileShort;
     schoolDegree = c.CeoSchoolDegree;
     //if (ceoCode.Contains("_"))
     //{
     //    Symbol = ceoCode.Substring(0, ceoCode.IndexOf("_"));
     //    var stock = StockBL.GetStockCompactInfo(Symbol);
     //    if (stock != null)
     //    {
     //        San = Utils.GetCenterFolder(stock.TradeCenterId.ToString());
     //    }
     //}
     var stock = GetCeoStock;
     if (stock != null)
     {
         Symbol = stock.Symbol;
         San = Utils.GetCenterFolder(stock.TradeCenterId.ToString());
     }
 }