Пример #1
0
 private ServicesInfor.WebLinks SetItemSyn(double News_ID)
 {
     HPCBusinessLogic.DAL.T_WebLinksDAL _untilDAL = new HPCBusinessLogic.DAL.T_WebLinksDAL();
     ServicesInfor.WebLinks             obj       = new ServicesInfor.WebLinks();
     HPCInfo.T_WebLinks objGet = new HPCInfo.T_WebLinks();
     objGet          = _untilDAL.load_T_WebLinks(int.Parse(News_ID.ToString()));
     obj.ID          = objGet.ID;
     obj.Lang_ID     = objGet.Lang_ID;
     obj.URL         = objGet.URL;
     obj.Description = objGet.Description;
     obj.Logo        = objGet.Logo;
     obj.OrderLinks  = objGet.OrderLinks;
     return(obj);
 }
Пример #2
0
 private void PopulateItem(int _id)
 {
     HPCInfo.T_WebLinks _cateObj = new HPCInfo.T_WebLinks();
     HPCBusinessLogic.DAL.T_WebLinksDAL _cateDAL = new HPCBusinessLogic.DAL.T_WebLinksDAL();
     _cateObj = _cateDAL.load_T_WebLinks(_id);
     if (_cateObj != null)
     {
         txtTieude.Text    = _cateObj.Tittle.ToString();
         Txt_URL.Text      = _cateObj.URL.ToString();
         Txt_Address.Text  = _cateObj.Description.ToString();
         txtOrder.Text     = _cateObj.OrderLinks.ToString();
         txtThumbnail.Text = _cateObj.Logo.ToString();
         if (_cateObj.Logo.Length > 0)
         {
             this.ImgTemp.Src = HPCComponents.Global.TinPathBDT + "/" + _cateObj.Logo;
         }
         else
         {
             this.ImgTemp.Attributes.CssStyle.Add("display", "none");
         }
         cbo_lanquage.SelectedValue = _cateObj.Lang_ID.ToString();
         ddlType.SelectedValue      = _cateObj.IsType.ToString();
     }
 }