示例#1
0
 private void ShowInfo()
 {
     Maticsoft.Model.CMS.VideoClass model = new Maticsoft.BLL.CMS.VideoClass().GetModel(this.VideoClassID);
     if (model != null)
     {
         this.lblVideoClassName.Text = model.VideoClassName;
         if (model.ParentID.HasValue)
         {
             this.lblParentID.Text = this.GetVideoClassNameByParentID(model.ParentID);
         }
         this.lblSequence.Text = model.Sequence.ToString();
         this.lblPath.Text = model.Path;
         this.lblDepth.Text = model.Depth.ToString();
     }
 }
示例#2
0
 public string GetVideoClassNameByParentID(object target)
 {
     Maticsoft.BLL.CMS.VideoClass class2 = new Maticsoft.BLL.CMS.VideoClass();
     string videoClassName = "";
     if (!StringPlus.IsNullOrEmpty(target))
     {
         string inputData = target.ToString();
         if (PageValidate.IsNumber(inputData))
         {
             Maticsoft.Model.CMS.VideoClass modelByParentID = class2.GetModelByParentID(int.Parse(inputData));
             if (modelByParentID != null)
             {
                 videoClassName = modelByParentID.VideoClassName;
             }
         }
     }
     return videoClassName;
 }
示例#3
0
 protected void LoadVideoClassData()
 {
     DataSet allList = new Maticsoft.BLL.CMS.VideoClass().GetAllList();
     if (!DataSetTools.DataSetIsNull(allList))
     {
         this.radlVideoClassID.DataSource = allList;
         this.radlVideoClassID.DataTextField = "VideoClassName";
         this.radlVideoClassID.DataValueField = "VideoClassID";
         this.radlVideoClassID.DataBind();
     }
     this.radlVideoClassID.Items.Insert(0, new ListItem(CMSVideo.NoCategory, "0"));
     this.radlVideoClassID.SelectedValue = "0";
 }