protected void EgvSpecial_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { int specialCategoryId = BasePage.RequestInt32("SpecialCategoryID"); SpecialInfo dataItem = e.Row.DataItem as SpecialInfo; if (dataItem != null) { HyperLink link = e.Row.FindControl("HypTitle") as HyperLink; if (link != null) { link.Text = StringHelper.SubString(dataItem.SpecialName, 20, "..."); link.NavigateUrl = "Special.aspx?Action=Modify&SpecialID=" + dataItem.SpecialId; } if (specialCategoryId == 0) { specialCategoryId = dataItem.SpecialCategoryId; SpecialCategoryInfo specialCategoryInfoById = Special.GetSpecialCategoryInfoById(specialCategoryId); ExtendedHyperLink link2 = e.Row.FindControl("LblSpecialCategoryLink") as ExtendedHyperLink; link2.BeginTag = "<strong>["; link2.Text = specialCategoryInfoById.SpecialCategoryName; link2.EndTag = "]</strong>"; link2.NavigateUrl = "SpecialManage.aspx?SpecialCategoryID=" + specialCategoryId.ToString(); } } } }
protected void EgvContentSignIn_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { DataRowView dataItem = (DataRowView)e.Row.DataItem; int key = BasePage.RequestInt32("NodeID"); string nodeName = ""; LinkImage image = e.Row.FindControl("LinkImageModel") as LinkImage; string itemIcon = ModelManager.GetCacheModelById(DataConverter.CLng(dataItem["ModelId"].ToString())).ItemIcon; if (string.IsNullOrEmpty(itemIcon)) { itemIcon = "Default.gif"; } image.Icon = itemIcon; if (dataItem["LinkType"].ToString() != "0") { image.IsShowLink = true; } if (DataConverter.CLng(dataItem["NodeID"].ToString()) != key) { key = DataConverter.CLng(dataItem["NodeID"].ToString()); if (this.m_NodeNameDictionary.ContainsKey(key)) { nodeName = this.m_NodeNameDictionary[key]; } else { NodeInfo cacheNodeById = EasyOne.Contents.Nodes.GetCacheNodeById(key); if (!cacheNodeById.IsNull) { nodeName = cacheNodeById.NodeName; this.m_NodeNameDictionary.Add(key, nodeName); } } ExtendedHyperLink link = e.Row.FindControl("LnkNodeLink") as ExtendedHyperLink; link.BeginTag = "<strong>["; link.Text = nodeName; link.EndTag = "]</strong>"; link.NavigateUrl = "Signin.aspx?NodeID=" + dataItem["NodeID"].ToString(); } HyperLink link2 = e.Row.FindControl("HypTitle") as HyperLink; link2.NavigateUrl = string.Concat(new object[] { base.FullBasePath, "Item/", dataItem["GeneralId"], ".aspx" }); Label label = e.Row.FindControl("LblSignInStatus") as Label; LinkButton button = e.Row.FindControl("ELbtnContentSignIn") as LinkButton; if (DataConverter.CBoolean(dataItem["IsSignin"].ToString())) { label.Text = "<span style=\"color:Green\">已签收</span>"; button.Enabled = false; } else { label.Text = "<span style=\"color:Red\">未签收</span>"; button.Enabled = true; } } }
protected void EgvContentSignin_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { CommonModelInfo dataItem = (CommonModelInfo)e.Row.DataItem; NodeInfo cacheNodeById = new NodeInfo(true); int length = 0; int nodeId = BasePage.RequestInt32("NodeID"); string nodeName = ""; if (dataItem.NodeId != nodeId) { nodeId = dataItem.NodeId; if (this.m_NodeNameDictionary.ContainsKey(dataItem.NodeId)) { nodeName = this.m_NodeNameDictionary[dataItem.NodeId]; } else { cacheNodeById = Nodes.GetCacheNodeById(dataItem.NodeId); if (!cacheNodeById.IsNull) { nodeName = cacheNodeById.NodeName; this.m_NodeNameDictionary.Add(dataItem.NodeId, nodeName); } } ExtendedHyperLink link = e.Row.FindControl("LnkNodeLink") as ExtendedHyperLink; link.BeginTag = "<strong>["; link.Text = nodeName; link.EndTag = "]</strong>"; link.NavigateUrl = "ContentHtml.aspx?NodeID=" + dataItem.NodeId.ToString() + "&NodeName=" + base.Server.UrlEncode(nodeName); length = StringHelper.SubStringLength(nodeName) + 2; } Label label = e.Row.FindControl("LblIsCreateHtml") as Label; if (!dataItem.CreateTime.HasValue || (dataItem.CreateTime.Value <= dataItem.UpdateTime)) { label.Text = "<span style=\"color:Red\"><b>\x00d7</b></span>"; } else { label.Text = "<b>√</b>"; } LinkImage image = e.Row.FindControl("LinkImageModel") as LinkImage; string itemIcon = ModelManager.GetCacheModelById(dataItem.ModelId).ItemIcon; if (string.IsNullOrEmpty(itemIcon)) { itemIcon = "Default.gif"; } image.Icon = itemIcon; if (dataItem.LinkType != 0) { image.IsShowLink = true; } Label label2 = e.Row.FindControl("lblSigninStatus") as Label; SignInContentInfo signInContentByGeneralId = SignInContent.GetSignInContentByGeneralId(dataItem.GeneralId); string signInUsers = SignInLog.GetSignInUsers(dataItem.GeneralId); IList <SignInLogInfo> list = SignInLog.GetList(dataItem.GeneralId); StringBuilder sb = new StringBuilder(); StringBuilder builder2 = new StringBuilder(); foreach (SignInLogInfo info4 in list) { if (info4.IsSignIn) { StringHelper.AppendString(sb, info4.UserName); } else { StringHelper.AppendString(builder2, info4.UserName); } } string str4 = ""; if (!signInContentByGeneralId.IsNull) { str4 = "<font color=" + ((signInContentByGeneralId.Status == SignInStatus.NotSignIn) ? "red" : "green") + ">[" + BasePage.EnumToHtml <SignInStatus>(signInContentByGeneralId.Status) + "]</font>"; label2.Text = "<a href='' onclick='return false' title='要求签收用户:" + signInUsers + " 已经签收用户:" + sb.ToString() + " 尚未签收用户:" + builder2.ToString() + "'>" + str4 + "</a>"; } HyperLink link2 = e.Row.FindControl("HypTitle") as HyperLink; length = 0x25 - length; link2.Text = StringHelper.SubString(dataItem.Title, length, "..."); link2.ToolTip = dataItem.Title; link2.NavigateUrl = "ContentView.aspx?GeneralID=" + dataItem.GeneralId.ToString(); HyperLink link3 = (HyperLink)e.Row.FindControl("EahContentModify"); link3.NavigateUrl = "Content.aspx?Action=Modify&GeneralID=" + dataItem.GeneralId.ToString() + "&NodeID=" + dataItem.NodeId.ToString(); if (!this.m_Administrator) { string checkStr = nodeId.ToString(); if (cacheNodeById.IsNull) { cacheNodeById = Nodes.GetCacheNodeById(nodeId); } if (cacheNodeById.ParentId > 0) { checkStr = checkStr + "," + cacheNodeById.ParentPath; } if (!StringHelper.FoundCharInArr(checkStr, this.m_arrContentNodeIdManage)) { ((HyperLink)e.Row.FindControl("EahContentModify")).Enabled = false; ((LinkButton)e.Row.FindControl("ELbtnDelete")).Enabled = false; } } } }
protected void EgvContent_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { CommonModelInfo dataItem = (CommonModelInfo)e.Row.DataItem; int nodeId = dataItem.NodeId; string s = ""; int length = 0; if (this.m_NodeInfoDictionary.ContainsKey(dataItem.NodeId)) { s = this.m_NodeInfoDictionary[dataItem.NodeId].NodeName; } else { NodeInfo cacheNodeById = Nodes.GetCacheNodeById(dataItem.NodeId); if (!cacheNodeById.IsNull) { s = cacheNodeById.NodeName; this.m_NodeInfoDictionary.Add(dataItem.NodeId, cacheNodeById); } } if (dataItem.NodeId != this.m_NodeId) { ExtendedHyperLink link = e.Row.FindControl("LnkNodeLink") as ExtendedHyperLink; link.BeginTag = "<strong>["; link.Text = s; link.EndTag = "]</strong>"; link.NavigateUrl = "ContentManage.aspx?NodeID=" + dataItem.NodeId.ToString() + "&NodeName=" + base.Server.UrlEncode(s); length = StringHelper.SubStringLength(s) + 2; } HyperLink link2 = e.Row.FindControl("HypTitle") as HyperLink; LinkImage image = e.Row.FindControl("LinkImageModel") as LinkImage; string itemIcon = ModelManager.GetCacheModelById(dataItem.ModelId).ItemIcon; if (string.IsNullOrEmpty(itemIcon)) { itemIcon = "Default.gif"; } image.Icon = itemIcon; if (dataItem.LinkType != 0) { image.IsShowLink = true; } if (this.m_ModelPreviewDictionary.ContainsKey(dataItem.ModelId)) { link2.NavigateUrl = this.m_ModelPreviewDictionary[dataItem.ModelId] + "?GeneralID=" + dataItem.GeneralId; } else { ModelInfo modelInfoById = ModelManager.GetModelInfoById(dataItem.ModelId); link2.NavigateUrl = modelInfoById.PreviewInfoFilePath + "?GeneralID=" + dataItem.GeneralId; this.m_ModelPreviewDictionary.Add(dataItem.ModelId, modelInfoById.PreviewInfoFilePath); } dataItem.Title = dataItem.Title; length = 0x25 - length; link2.Text = StringHelper.SubString(dataItem.Title, length, "..."); link2.ToolTip = "标 题:" + dataItem.Title + "\r\n录 入 者:" + dataItem.Inputer + "\r\n更新时间:" + dataItem.UpdateTime.ToString(); Label label = e.Row.FindControl("LblIsCreateHtml") as Label; if (!dataItem.CreateTime.HasValue || (dataItem.CreateTime.Value <= dataItem.UpdateTime)) { label.Text = "<span style=\"color:Red\"><b>\x00d7</b></span>"; } else { label.Text = "<b>√</b>"; } LinkButton button = (LinkButton)e.Row.FindControl("CancelArchiving"); LinkButton button2 = (LinkButton)e.Row.FindControl("ContentDelete"); button.Text = "取消归档"; button.CommandName = "CancelArchiving"; button.CommandArgument = dataItem.GeneralId.ToString(); button.OnClientClick = "if(!this.disabled) return confirm('确实要还原此归档信息吗?');"; button2.Text = "删除"; button2.CommandName = "DeleteContent"; button2.CommandArgument = dataItem.GeneralId.ToString(); button2.OnClientClick = "if(!this.disabled) return confirm('确实要删除此信息吗?删除后你还可以从回收站中还原!');"; if (ModelManager.GetCacheModelById(dataItem.ModelId).Disabled) { button2.Enabled = false; button.Enabled = false; } } }
protected void EgvContents_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { CommonModelInfo commonModelInfo = new CommonModelInfo(); commonModelInfo = (CommonModelInfo)e.Row.DataItem; int nodeId = BasePage.RequestInt32("NodeID"); string s = ""; int length = 0; NodeInfo cacheNodeById = new NodeInfo(true); if (commonModelInfo.NodeId != nodeId) { nodeId = commonModelInfo.NodeId; if (this.m_NodeNameDictionary.ContainsKey(commonModelInfo.NodeId)) { cacheNodeById = this.m_NodeNameDictionary[commonModelInfo.NodeId]; s = cacheNodeById.NodeName; } else { cacheNodeById = Nodes.GetCacheNodeById(commonModelInfo.NodeId); if (cacheNodeById != null) { s = cacheNodeById.NodeName; this.m_NodeNameDictionary.Add(commonModelInfo.NodeId, cacheNodeById); } } ExtendedHyperLink link = e.Row.FindControl("LnkNodeLink") as ExtendedHyperLink; link.BeginTag = "<strong>["; link.Text = s; link.EndTag = "]</strong>"; link.NavigateUrl = "ContentHtml.aspx?NodeID=" + commonModelInfo.NodeId.ToString() + "&NodeName=" + base.Server.UrlEncode(s); length = StringHelper.SubStringLength(s) + 2; } LinkImage image = e.Row.FindControl("LinkImageModel") as LinkImage; string itemIcon = ModelManager.GetCacheModelById(commonModelInfo.ModelId).ItemIcon; if (string.IsNullOrEmpty(itemIcon)) { itemIcon = "Default.gif"; } image.Icon = itemIcon; if (commonModelInfo.LinkType != 0) { image.IsShowLink = true; } HyperLink link2 = e.Row.FindControl("HypTitle") as HyperLink; if (this.m_ModelPreviewDictionary.ContainsKey(commonModelInfo.ModelId)) { link2.NavigateUrl = this.m_ModelPreviewDictionary[commonModelInfo.ModelId] + "?GeneralID=" + commonModelInfo.GeneralId; } else { ModelInfo modelInfoById = ModelManager.GetModelInfoById(commonModelInfo.ModelId); link2.NavigateUrl = modelInfoById.PreviewInfoFilePath + "?GeneralID=" + commonModelInfo.GeneralId; this.m_ModelPreviewDictionary.Add(commonModelInfo.ModelId, modelInfoById.PreviewInfoFilePath); } commonModelInfo.Title = commonModelInfo.Title; length = 0x25 - length; link2.Text = StringHelper.SubString(commonModelInfo.Title, length, "..."); link2.ToolTip = commonModelInfo.Title; Label label = e.Row.FindControl("LblIsCreateHtml") as Label; if (!commonModelInfo.CreateTime.HasValue || (commonModelInfo.CreateTime.Value <= commonModelInfo.UpdateTime)) { label.Text = "<span style=\"color:Red\"><b>\x00d7</b></span>"; ((HyperLink)e.Row.FindControl("LnkHtmlView")).Enabled = false; ((LinkButton)e.Row.FindControl("LnkDeleteHtml")).Enabled = false; } else { if (this.m_NodeNameDictionary.ContainsKey(commonModelInfo.NodeId)) { cacheNodeById = this.m_NodeNameDictionary[commonModelInfo.NodeId]; } else { cacheNodeById = Nodes.GetCacheNodeById(commonModelInfo.NodeId); if (!cacheNodeById.IsNull) { s = cacheNodeById.NodeName; this.m_NodeNameDictionary.Add(commonModelInfo.NodeId, cacheNodeById); } } label.Text = "<b>√</b>"; string str3 = (SiteConfig.SiteInfo.VirtualPath + VirtualPathUtility.AppendTrailingSlash(SiteConfig.SiteOption.CreateHtmlPath) + ContentManage.ContentHtmlName(commonModelInfo, cacheNodeById, 0)).Replace("//", "/"); ((HyperLink)e.Row.FindControl("LnkHtmlView")).NavigateUrl = str3; } if (!this.m_Administrator) { string checkStr = nodeId.ToString(); if (cacheNodeById.IsNull) { cacheNodeById = Nodes.GetCacheNodeById(nodeId); } if (cacheNodeById.ParentId > 0) { checkStr = checkStr + "," + cacheNodeById.ParentPath; } if (!StringHelper.FoundCharInArr(checkStr, this.m_arrContentNodeIdManage)) { ((LinkButton)e.Row.FindControl("LnkCreateHtml")).Enabled = false; ((HyperLink)e.Row.FindControl("LnkHtmlView")).Enabled = false; ((LinkButton)e.Row.FindControl("LnkDeleteHtml")).Enabled = false; } } } }
protected void Egv_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { AdministratorInfo dataItem = (AdministratorInfo)e.Row.DataItem; Label label = (Label)e.Row.FindControl("LabEnableMultiLogin"); Label label2 = (Label)e.Row.FindControl("LabLastLoginTime"); Label label3 = (Label)e.Row.FindControl("LabIsLock"); LinkButton button = (LinkButton)e.Row.FindControl("LnkLock"); HyperLink link = (HyperLink)e.Row.FindControl("HypUserName"); Label label4 = (Label)e.Row.FindControl("LabRoleList"); ExtendedHyperLink link2 = (ExtendedHyperLink)e.Row.FindControl("LnkManageName"); Label label5 = (Label)e.Row.FindControl("LabLastModifyPasswordTime"); Label label6 = (Label)e.Row.FindControl("LabLastLoginIp"); Literal literal = (Literal)e.Row.FindControl("LtrRoleList"); label6.Text = dataItem.LastLogOnIP; if (!dataItem.LastModifyPasswordTime.HasValue) { label5.Text = "未修改过"; } else { label5.Text = dataItem.LastModifyPasswordTime.Value.ToString("yyyy-MM-dd HH:mm:ss"); } if (string.CompareOrdinal("," + RoleMembers.GetRoleIdListByAdminId(dataItem.AdminId) + ",", ",0,") == 0) { link2.Text = dataItem.AdminName; link2.NavigateUrl = "Administrator.aspx?Action=Modify&AdminId=" + dataItem.AdminId; link2.BeginTag = "<strong><font color=\"blue\">"; link2.EndTag = "</font></strong>"; } else { link2.Text = dataItem.AdminName; link2.NavigateUrl = "Administrator.aspx?Action=Modify&AdminId=" + dataItem.AdminId; } string[] strArray = dataItem.RoleList.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); if (strArray.Length > 1) { label4.Text = strArray[0]; literal.Text = ",<span style=\"cursor:pointer;\" Title='" + dataItem.RoleList.Replace(strArray[0] + ",", "") + "' >[更多]</span>"; } else { label4.Text = dataItem.RoleList; } link.Text = dataItem.UserName; link.NavigateUrl = "UserShow.aspx?UserName="******"允许"; } else { label.Text = "<font color=\"red\">不允许</font>"; } if (dataItem.IsLock) { label3.Text = "<font color=\"red\">已锁定</font>"; button.Text = "解锁"; } else { label3.Text = "<font color=\"blue\">正常</font>"; button.Text = "锁定"; } if (dataItem.LastLogOnTime.HasValue) { label2.Text = dataItem.LastLogOnTime.Value.ToString("yyyy-MM-dd HH:mm:ss"); } if (PEContext.Current.Admin.AdministratorInfo.AdminId == dataItem.AdminId) { ((LinkButton)e.Row.FindControl("LnkLock")).Enabled = false; ((LinkButton)e.Row.FindControl("LnkDelete")).Enabled = false; } } }
protected void EgvContent_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { CommonModelInfo dataItem = (CommonModelInfo)e.Row.DataItem; int length = 0; NodeInfo cacheNodeById = null; if (this.m_NodeInfoDictionary.ContainsKey(dataItem.NodeId)) { cacheNodeById = this.m_NodeInfoDictionary[dataItem.NodeId]; } else { cacheNodeById = Nodes.GetCacheNodeById(dataItem.NodeId); if (!cacheNodeById.IsNull) { this.m_NodeInfoDictionary.Add(dataItem.NodeId, cacheNodeById); } } if (dataItem.NodeId != this.m_NodeId) { ExtendedHyperLink link = e.Row.FindControl("LnkNodeLink") as ExtendedHyperLink; link.BeginTag = "<strong>["; link.Text = cacheNodeById.NodeName; link.EndTag = "]</strong>"; link.NavigateUrl = "ContentManage.aspx?NodeID=" + dataItem.NodeId.ToString() + "&NodeName=" + base.Server.UrlEncode(cacheNodeById.NodeName); length = StringHelper.SubStringLength(cacheNodeById.NodeName) + 2; } LinkImage image = e.Row.FindControl("LinkImageModel") as LinkImage; string itemIcon = ModelManager.GetCacheModelById(dataItem.ModelId).ItemIcon; if (string.IsNullOrEmpty(itemIcon)) { itemIcon = "Default.gif"; } image.Icon = itemIcon; if (dataItem.LinkType != 0) { image.IsShowLink = true; } HyperLink link2 = (HyperLink)e.Row.FindControl("ContentModify"); LinkButton button = (LinkButton)e.Row.FindControl("LtnDelete"); string str2 = dataItem.NodeId.ToString(); if (cacheNodeById.ParentId > 0) { str2 = str2 + "," + cacheNodeById.ParentPath; } if (!StringHelper.FoundCharInArr(this.m_arrNodeIdInput, dataItem.NodeId.ToString())) { link2.Enabled = false; button.Enabled = false; button.OnClientClick = ""; } else if (!this.m_IsManageStatusPassContent && (dataItem.Status == 0x63)) { CheckBox box = (CheckBox)e.Row.FindControl("CheckBoxButton"); link2.Enabled = false; button.Enabled = false; button.OnClientClick = ""; box.Enabled = false; } if (ModelManager.GetCacheModelById(dataItem.ModelId).Disabled) { link2.Enabled = false; button.Enabled = false; button.OnClientClick = ""; } if (dataItem.IsEshop) { link2.NavigateUrl = string.Concat(new object[] { "../Shop/Product.aspx?Action=Modify&NodeID=", dataItem.NodeId.ToString(), "&GeneralID=", dataItem.GeneralId, "&ModelID=", dataItem.ModelId.ToString() }); } else { link2.NavigateUrl = string.Concat(new object[] { "Content.aspx?Action=Modify&NodeID=", dataItem.NodeId.ToString(), "&GeneralID=", dataItem.GeneralId, "&ModelID=", dataItem.ModelId.ToString() }); } HyperLink link3 = e.Row.FindControl("LnkItem") as HyperLink; length = 0x25 - length; link3.Text = StringHelper.SubString(dataItem.Title, length, "..."); link3.ToolTip = dataItem.Title; link3.Target = "_blank"; link3.NavigateUrl = base.FullBasePath + "Item/" + dataItem.GeneralId.ToString() + ".aspx"; if (dataItem.Status != 0x63) { link3.Target = ""; link3.NavigateUrl = link2.NavigateUrl; } } }
protected void EgvContentRecycle_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { CommonModelInfo dataItem = new CommonModelInfo(); dataItem = (CommonModelInfo)e.Row.DataItem; NodeInfo cacheNodeById = new NodeInfo(true); int length = 0; string nodeName = ""; if (dataItem.NodeId != this.nodeId) { this.nodeId = dataItem.NodeId; if (this.m_NodeNameDictionary.ContainsKey(dataItem.NodeId)) { nodeName = this.m_NodeNameDictionary[dataItem.NodeId]; } else { cacheNodeById = Nodes.GetCacheNodeById(dataItem.NodeId); if (cacheNodeById != null) { nodeName = cacheNodeById.NodeName; this.m_NodeNameDictionary.Add(dataItem.NodeId, nodeName); } } ExtendedHyperLink link = e.Row.FindControl("LnkNodeLink") as ExtendedHyperLink; link.BeginTag = "<strong>["; link.Text = nodeName; link.EndTag = "]</strong>"; link.NavigateUrl = "ContentManage.aspx?NodeID=" + dataItem.NodeId.ToString() + "&NodeName=" + base.Server.UrlEncode(nodeName); length = StringHelper.SubStringLength(nodeName) + 2; } HyperLink link2 = e.Row.FindControl("HypTitle") as HyperLink; length = 0x25 - length; link2.Text = StringHelper.SubString(dataItem.Title, length, "..."); link2.ToolTip = dataItem.Title; link2.NavigateUrl = "ContentView.aspx?GeneralID=" + dataItem.GeneralId.ToString(); Label label = e.Row.FindControl("LblIsCreateHtml") as Label; label.Text = "<span style=\"color:Red\"><b>\x00d7</b></span>"; LinkImage image = e.Row.FindControl("LinkImageModel") as LinkImage; string itemIcon = ModelManager.GetCacheModelById(dataItem.ModelId).ItemIcon; if (string.IsNullOrEmpty(itemIcon)) { itemIcon = "Default.gif"; } image.Icon = itemIcon; if (dataItem.LinkType != 0) { image.IsShowLink = true; } if (!this.m_Administrator) { string checkStr = this.nodeId.ToString(); if (cacheNodeById.IsNull) { cacheNodeById = Nodes.GetCacheNodeById(this.nodeId); } if (cacheNodeById.ParentId > 0) { checkStr = checkStr + "," + cacheNodeById.ParentPath; } if (!StringHelper.FoundCharInArr(checkStr, this.m_arrContentNodeIdManage)) { ((LinkButton)e.Row.FindControl("DeleteContent")).Enabled = false; ((LinkButton)e.Row.FindControl("RestoreContent")).Enabled = false; } } } }