Example #1
0
 protected void LoadVideoAlbumData()
 {
     DataSet allList = new Maticsoft.BLL.CMS.VideoAlbum().GetAllList();
     if (!DataSetTools.DataSetIsNull(allList))
     {
         this.dropAlbumID.DataSource = allList;
         this.dropAlbumID.DataTextField = "AlbumName";
         this.dropAlbumID.DataValueField = "AlbumID";
         this.dropAlbumID.DataBind();
     }
     this.dropAlbumID.Items.Insert(0, new ListItem(Site.PleaseSelect, "0"));
     this.dropAlbumID.SelectedValue = "0";
 }
Example #2
0
 private void ShowInfo()
 {
     Maticsoft.Model.CMS.VideoAlbum modelEx = new Maticsoft.BLL.CMS.VideoAlbum().GetModelEx(this.AlbumID);
     if (modelEx != null)
     {
         this.lblAlbumName.Text = modelEx.AlbumName;
         this.imgCoverVideo.ImageUrl = ConfigSystem.GetValueByCache("UploadFolder") + modelEx.CoverVideo;
         this.lblDescription.Text = modelEx.Description;
         this.lblCreatedUserName.Text = modelEx.CreatedUserName;
         this.lblCreatedDate.Text = modelEx.CreatedDate.ToString();
         if (modelEx.LastUpdateUserID.HasValue)
         {
             this.lblLastUpdateUserName.Text = modelEx.LastUpdateUserName;
         }
         if (modelEx.LastUpdatedDate.HasValue)
         {
             this.lblLastUpdatedDate.Text = modelEx.LastUpdatedDate.ToString();
         }
         this.lblState.Text = this.GetVideoAlbumState(modelEx.State);
         this.lblSequence.Text = modelEx.Sequence.ToString();
         this.lblPrivacy.Text = this.GetVideoAlbumPrivacy(modelEx.Privacy);
         this.lblPvCount.Text = modelEx.PvCount.ToString();
     }
 }