您目前尚未登陆,请选择【登陆】或【注册
首页->新闻文章->破竹CMS4.0免安装版源码>>admin/DocumentTypes/DocumentTypes.aspx.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:破竹CMS4.0免安装版源码
当前文件:文件类型 PozhuCMS/admin/DocumentTypes/DocumentTypes.aspx.cs打开代码结构图
普通视图
		            
1using System; 2using System.Data; 3using System.Configuration; 4using System.Collections; 5using System.Web; 6using System.Web.Security; 7using System.Web.UI; 8using System.Web.UI.WebControls; 9using System.Web.UI.WebControls.WebParts; 10using System.Web.UI.HtmlControls; 11using Pozhu.CMS.DocumentTypes; 12using Pozhu.CMS.Categories; 13using Pozhu.CMS; 14using Pozhu.Common.Utilities; 15using Pozhu.Sites; 16using Pozhu.CMS.Web; 17 18public partial class admin_DocumentTypes_DocumentTypes : AdminPageBase 19{ 20 protected void Page_Load(object sender, EventArgs e) 21 { 22 int categoryID; 23 string path = CategoryPath.CheckRepairPath(Request.QueryString["path"]); 24 int siteID = SiteController.GetCurrentSite().SiteID; 25 categoryID = CategoryController.GetCategory(siteID,path).CategoryID; 26 27 DocumentTypeController objTypes = new DocumentTypeController(); 28 this.rptDocumentTypeGroups.DataSource = objTypes.GetDocumentTypeGroups(categoryID); 29 this.rptDocumentTypeGroups.DataBind(); 30 } 31 protected void rptDocumentTypeGroups_ItemDataBound(object sender, RepeaterItemEventArgs e) 32 { 33 DocumentTypeController objTypes = new DocumentTypeController(); 34 int categoryID; 35 string path = CategoryPath.CheckRepairPath(Request.QueryString["path"]); 36 int siteID = SiteController.GetCurrentSite().SiteID; 37 categoryID = CategoryController.GetCategory(siteID,path).CategoryID; 38 39 if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem)) 40 { 41 Repeater rptDocumentTypes = (Repeater)e.Item.FindControl("rptDocumentTypes"); 42 43 DocumentTypeGroup group = (DocumentTypeGroup)(e.Item.DataItem); 44 ArrayList types = objTypes.GetDocumentTypesByGroupID(categoryID,group.TypeGroupID, true); 45 rptDocumentTypes.DataSource = types; 46 rptDocumentTypes.DataBind(); 47 } 48 49 //邦定未分组的文档类型 50 if (e.Item.ItemType == ListItemType.Footer) 51 { 52 Repeater rptDocumentTypes = (Repeater)e.Item.FindControl("rptDocumentTypes"); 53 54 ArrayList noGroupTypes = objTypes.GetNoGroupTypes(categoryID, true); 55 56 if (noGroupTypes.Count > 0) 57 { 58 //bind 59 rptDocumentTypes.DataSource = noGroupTypes; 60 rptDocumentTypes.DataBind(); 61 } 62 } 63 } 64} 65
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:破竹CMS4.0免安装版源码
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号