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(); } }
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; }
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"; }