public void Page_Load(object sender, EventArgs e) { PageUtils.CheckRequestParameter("siteId"); if (!IsPostBack) { BreadCrumb(AppManager.Wcm.LeftMenu.IdGovInteract, AppManager.Wcm.LeftMenu.GovInteract.IdGovInteractAnalysis, "互动交流统计", AppManager.Wcm.Permission.WebSite.GovInteractAnalysis); StartDate.Text = string.Empty; EndDate.Now = true; var nodeInfoList = GovInteractManager.GetNodeInfoList(PublishmentSystemInfo); var listItem = new ListItem("<<全部>>", "0"); ddlNodeID.Items.Add(listItem); foreach (var nodeInfo in nodeInfoList) { listItem = new ListItem(nodeInfo.NodeName, nodeInfo.NodeId.ToString()); ddlNodeID.Items.Add(listItem); } ClientScriptRegisterClientScriptBlock("TreeScript", DepartmentTreeItem.GetScript(EDepartmentLoadingType.List, null)); BindGrid(); } }
public void Page_Load(object sender, EventArgs e) { if (IsForbidden) { return; } _nodeId = TranslateUtils.ToInt(Request.QueryString["NodeID"]); _idArrayList = TranslateUtils.StringCollectionToIntList(Request.QueryString["IDCollection"]); if (!IsPostBack) { var nodeInfoList = GovInteractManager.GetNodeInfoList(PublishmentSystemInfo); foreach (var nodeInfo in nodeInfoList) { if (nodeInfo.NodeId != _nodeId) { var listItem = new ListItem(nodeInfo.NodeName, nodeInfo.NodeId.ToString()); ddlNodeID.Items.Add(listItem); } } ltlDepartmentName.Text = DepartmentManager.GetDepartmentName(Body.AdministratorInfo.DepartmentId); ltlUserName.Text = Body.AdministratorInfo.DisplayName; } }
public void BindGrid() { if (tableStyle == ETableStyle.GovInteractContent) { var nodeInfoList = GovInteractManager.GetNodeInfoList(PublishmentSystemInfo); dgContents.DataSource = nodeInfoList; } dgContents.ItemDataBound += dgContents_ItemDataBound; dgContents.DataBind(); }
public void BindGrid() { try { var channelInfo = DataProvider.GovInteractChannelDao.GetChannelInfo(PublishmentSystemId, _nodeId); rptCategory.DataSource = GovInteractManager.GetFirstDepartmentIdList(channelInfo); rptCategory.ItemDataBound += rptCategory_ItemDataBound; rptCategory.DataBind(); } catch (Exception ex) { PageUtils.RedirectToErrorPage(ex.Message); } }
private string GetDepartmentTreeHtml(GovInteractChannelInfo channelInfo) { var htmlBuilder = new StringBuilder(); var departmentIdList = GovInteractManager.GetFirstDepartmentIdList(channelInfo); var treeDirectoryUrl = SiteServerAssets.GetIconUrl("tree"); var theDepartmentIdArrayList = DepartmentManager.GetDepartmentIdList(); var isLastNodeArray = new bool[theDepartmentIdArrayList.Count]; foreach (var theDepartmentId in theDepartmentIdArrayList) { var departmentInfo = DepartmentManager.GetDepartmentInfo(theDepartmentId); htmlBuilder.Append(GetTitle(departmentInfo, treeDirectoryUrl, isLastNodeArray, departmentIdList)); htmlBuilder.Append("<br/>"); } return(htmlBuilder.ToString()); }
public void Insert(GovInteractChannelInfo channelInfo) { channelInfo.ApplyStyleID = DataProvider.TagStyleDao.Insert(new TagStyleInfo(0, channelInfo.NodeID.ToString(), StlGovInteractApply.ElementName, channelInfo.PublishmentSystemID, false, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty)); channelInfo.QueryStyleID = DataProvider.TagStyleDao.Insert(new TagStyleInfo(0, channelInfo.NodeID.ToString(), StlGovInteractQuery.ElementName, channelInfo.PublishmentSystemID, false, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty)); var parms = new IDataParameter[] { GetParameter(ParmNodeId, EDataType.Integer, channelInfo.NodeID), GetParameter(ParmPublishmentsystemid, EDataType.Integer, channelInfo.PublishmentSystemID), GetParameter(ParmApplyStyleId, EDataType.Integer, channelInfo.ApplyStyleID), GetParameter(ParmQueryStyleId, EDataType.Integer, channelInfo.QueryStyleID), GetParameter(ParmDepartmentidCollection, EDataType.NVarChar, 255, channelInfo.DepartmentIDCollection), GetParameter(ParmSummary, EDataType.NVarChar, 255, channelInfo.Summary) }; ExecuteNonQuery(SqlInsert, parms); GovInteractManager.AddDefaultTypeInfos(channelInfo.PublishmentSystemID, channelInfo.NodeID); }
public void Page_Load(object sender, EventArgs e) { _nodeId = TranslateUtils.ToInt(Request.QueryString["NodeID"]); if (!IsPostBack) { BreadCrumb(AppManager.Wcm.LeftMenu.IdGovInteract, AppManager.Wcm.LeftMenu.GovInteract.IdGovInteractConfiguration, "负责人员设置", AppManager.Wcm.Permission.WebSite.GovInteractConfiguration); var channelInfo = DataProvider.GovInteractChannelDao.GetChannelInfo(PublishmentSystemId, _nodeId); var departmentIdList = GovInteractManager.GetFirstDepartmentIdList(channelInfo); var userNameArrayList = new ArrayList(); foreach (var departmentId in departmentIdList) { userNameArrayList.AddRange(BaiRongDataProvider.AdministratorDao.GetUserNameArrayList(departmentId, true)); } dgContents.DataSource = userNameArrayList; dgContents.ItemDataBound += dgContents_ItemDataBound; dgContents.DataBind(); } }
public static TabCollection GetTabCollection(Tab parent, int publishmentSystemId) { TabCollection tabCollection; if (StringUtils.EqualsIgnoreCase(parent.Id, AppManager.Cms.LeftMenu.Function.IdResume)) { tabCollection = new TabCollection(parent.Children); } else if (StringUtils.EqualsIgnoreCase(parent.Id, AppManager.Wcm.LeftMenu.IdGovInteract)) { Tab[] tabs; var publishmentSystemInfo = PublishmentSystemManager.GetPublishmentSystemInfo(publishmentSystemId); var nodeInfoList = GovInteractManager.GetNodeInfoList(publishmentSystemInfo); if (nodeInfoList.Count > 0 && ProductPermissionsManager.Current.GovInteractPermissionDict.ContainsKey(publishmentSystemId)) { var govInteractPermissionListOfPublishmentSystemId = ProductPermissionsManager.Current.GovInteractPermissionDict[publishmentSystemId]; var govInteractPermissionList = govInteractPermissionListOfPublishmentSystemId; var tabList = new List <Tab>(); foreach (var nodeInfo in nodeInfoList) { if (govInteractPermissionListOfPublishmentSystemId == null || govInteractPermissionListOfPublishmentSystemId.Count == 0) { if (ProductPermissionsManager.Current.GovInteractPermissionDict.ContainsKey(nodeInfo.NodeId)) { govInteractPermissionList = ProductPermissionsManager.Current.GovInteractPermissionDict[nodeInfo.NodeId]; } } if (govInteractPermissionList != null && govInteractPermissionList.Count > 0) { var tab = new Tab { Text = nodeInfo.NodeName, Id = AppManager.Wcm.LeftMenu.IdGovInteract + "_" + nodeInfo.NodeId }; var childList = new List <Tab>(); if (govInteractPermissionList.Contains(AppManager.Wcm.Permission.GovInteract.GovInteractAccept)) { childList.Add(new Tab { Text = "待受理办件", Href = PageGovInteractListAccept.GetRedirectUrl(nodeInfo.PublishmentSystemId, nodeInfo.NodeId), KeepQueryString = false, Target = "right" }); } if (govInteractPermissionList.Contains(AppManager.Wcm.Permission.GovInteract.GovInteractReply)) { childList.Add(new Tab { Text = "待办理办件", Href = PageGovInteractListReply.GetRedirectUrl(nodeInfo.PublishmentSystemId, nodeInfo.NodeId), KeepQueryString = false, Target = "right" }); } if (govInteractPermissionList.Contains(AppManager.Wcm.Permission.GovInteract.GovInteractCheck)) { childList.Add(new Tab { Text = "待审核办件", Href = PageGovInteractListCheck.GetRedirectUrl(nodeInfo.PublishmentSystemId, nodeInfo.NodeId), KeepQueryString = false, Target = "right" }); } if (govInteractPermissionList.Contains(AppManager.Wcm.Permission.GovInteract.GovInteractView) || govInteractPermissionList.Contains(AppManager.Wcm.Permission.GovInteract.GovInteractDelete)) { childList.Add(new Tab { Text = "所有办件", Href = PageGovInteractListAll.GetRedirectUrl(nodeInfo.PublishmentSystemId, nodeInfo.NodeId), KeepQueryString = false, Target = "right" }); } if (govInteractPermissionList.Contains(AppManager.Wcm.Permission.GovInteract.GovInteractAdd)) { var redirectUrl = PageGovInteractListAccept.GetRedirectUrl(nodeInfo.PublishmentSystemId, nodeInfo.NodeId); var child = new Tab { Text = "新增办件", Href = WebUtils.GetContentAddAddUrl(publishmentSystemId, nodeInfo, redirectUrl), KeepQueryString = false, Target = "right" }; childList.Add(child); } tab.Children = new Tab[childList.Count]; for (var i = 0; i < childList.Count; i++) { tab.Children[i] = childList[i]; } tabList.Add(tab); } } var k = 0; tabs = new Tab[parent.Children.Length + tabList.Count]; for (; k < tabList.Count; k++) { tabs[k] = tabList[k]; } for (var j = 0; j < parent.Children.Length; j++) { tabs[j + k] = parent.Children[j]; } } else { tabs = parent.Children; } tabCollection = new TabCollection(tabs); } else { tabCollection = new TabCollection(parent.Children); } return(tabCollection); }
protected override void OnInit(EventArgs e) { base.OnInit(e); GovInteractManager.Initialize(PublishmentSystemInfo); }
protected override void OnInit(EventArgs e) { base.OnInit(e); PageUtils.CheckRequestParameter("PublishmentSystemID", "NodeID"); nodeID = TranslateUtils.ToInt(Request.QueryString["NodeID"]); isPermissionReply = GovInteractManager.IsPermission(PublishmentSystemId, nodeID, AppManager.Wcm.Permission.GovInteract.GovInteractReply); isPermissionEdit = GovInteractManager.IsPermission(PublishmentSystemId, nodeID, AppManager.Wcm.Permission.GovInteract.GovInteractEdit); if (Body.IsQueryExists("Delete")) { var arraylist = TranslateUtils.StringCollectionToIntList(Request.QueryString["IDCollection"]); if (arraylist.Count > 0) { try { DataProvider.ContentDao.DeleteContents(PublishmentSystemId, PublishmentSystemInfo.AuxiliaryTableForGovInteract, arraylist, nodeID); Body.AddSiteLog(PublishmentSystemId, "删除申请", Body.AdministratorName); SuccessMessage("删除成功!"); } catch (Exception ex) { FailMessage(ex, "删除失败!"); } } } else if (Body.IsQueryExists("Accept")) { var arraylist = TranslateUtils.StringCollectionToIntList(Request.QueryString["IDCollection"]); foreach (var contentId in arraylist) { var contentInfo = DataProvider.GovInteractContentDao.GetContentInfo(PublishmentSystemInfo, contentId); if (contentInfo.State == EGovInteractState.New || contentInfo.State == EGovInteractState.Denied) { GovInteractApplyManager.Log(PublishmentSystemId, contentInfo.NodeId, contentInfo.Id, EGovInteractLogType.Accept, Body.AdministratorName, Body.AdministratorInfo.DepartmentId); DataProvider.GovInteractContentDao.UpdateState(PublishmentSystemInfo, contentInfo.Id, EGovInteractState.Accepted); } } SuccessMessage("受理申请成功!"); } else if (Body.IsQueryExists("Deny")) { var arraylist = TranslateUtils.StringCollectionToIntList(Request.QueryString["IDCollection"]); foreach (var contentId in arraylist) { var contentInfo = DataProvider.GovInteractContentDao.GetContentInfo(PublishmentSystemInfo, contentId); if (contentInfo.State == EGovInteractState.New || contentInfo.State == EGovInteractState.Accepted) { GovInteractApplyManager.Log(PublishmentSystemId, contentInfo.NodeId, contentInfo.Id, EGovInteractLogType.Deny, Body.AdministratorName, Body.AdministratorInfo.DepartmentId); DataProvider.GovInteractContentDao.UpdateState(PublishmentSystemInfo, contentId, EGovInteractState.Denied); } } SuccessMessage("拒绝受理申请成功!"); } else if (Body.IsQueryExists("Check")) { var arraylist = TranslateUtils.StringCollectionToIntList(Request.QueryString["IDCollection"]); foreach (var contentId in arraylist) { var contentInfo = DataProvider.GovInteractContentDao.GetContentInfo(PublishmentSystemInfo, contentId); if (contentInfo.State == EGovInteractState.Replied) { GovInteractApplyManager.Log(PublishmentSystemId, contentInfo.NodeId, contentInfo.Id, EGovInteractLogType.Check, Body.AdministratorName, Body.AdministratorInfo.DepartmentId); DataProvider.GovInteractContentDao.UpdateState(PublishmentSystemInfo, contentId, EGovInteractState.Checked); } } SuccessMessage("审核申请成功!"); } spContents.ControlToPaginate = rptContents; spContents.ItemsPerPage = PublishmentSystemInfo.Additional.PageSize; spContents.SelectCommand = GetSelectString(); spContents.SortField = ContentAttribute.Taxis; spContents.SortMode = GetSortMode(); rptContents.ItemDataBound += rptContents_ItemDataBound; if (!IsPostBack) { spContents.DataBind(); ltlTotalCount.Text = spContents.TotalCount.ToString(); if (phAccept != null) { phAccept.Visible = GovInteractManager.IsPermission(PublishmentSystemId, nodeID, AppManager.Wcm.Permission.GovInteract.GovInteractAccept); if (hlAccept != null) { hlAccept.Attributes.Add("onclick", PageUtils.GetRedirectStringWithCheckBoxValueAndAlert(PageUrl + "&Accept=True", "IDCollection", "IDCollection", "请选择需要受理的申请!", "此操作将受理所选申请,确定吗?")); } if (hlDeny != null) { hlDeny.Attributes.Add("onclick", PageUtils.GetRedirectStringWithCheckBoxValueAndAlert(PageUrl + "&Deny=True", "IDCollection", "IDCollection", "请选择需要拒绝的申请!", "此操作将拒绝受理所选申请,确定吗?")); } } if (phCheck != null) { phCheck.Visible = GovInteractManager.IsPermission(PublishmentSystemId, nodeID, AppManager.Wcm.Permission.GovInteract.GovInteractCheck); if (hlCheck != null) { hlCheck.Attributes.Add("onclick", PageUtils.GetRedirectStringWithCheckBoxValueAndAlert(PageUrl + "&Check=True", "IDCollection", "IDCollection", "请选择需要审核的申请!", "此操作将审核所选申请,确定吗?")); } if (hlRedo != null) { hlRedo.Attributes.Add("onclick", ModalGovInteractApplyRedo.GetOpenWindowString(PublishmentSystemId)); } } if (phSwitchToTranslate != null) { phSwitchToTranslate.Visible = GovInteractManager.IsPermission(PublishmentSystemId, nodeID, AppManager.Wcm.Permission.GovInteract.GovInteractSwitchToTranslate); if (hlSwitchTo != null) { hlSwitchTo.Attributes.Add("onclick", ModalGovInteractApplySwitchTo.GetOpenWindowString(PublishmentSystemId, nodeID)); } if (hlTranslate != null) { hlTranslate.Attributes.Add("onclick", ModalGovInteractApplyTranslate.GetOpenWindowString(PublishmentSystemId, nodeID)); } } if (phComment != null) { phComment.Visible = GovInteractManager.IsPermission(PublishmentSystemId, nodeID, AppManager.Wcm.Permission.GovInteract.GovInteractComment); hlComment.Attributes.Add("onclick", ModalGovInteractApplyComment.GetOpenWindowString(PublishmentSystemId)); } if (phDelete != null) { phDelete.Visible = GovInteractManager.IsPermission(PublishmentSystemId, nodeID, AppManager.Wcm.Permission.GovInteract.GovInteractDelete) && PublishmentSystemInfo.Additional.GovInteractApplyIsDeleteAllowed; hlDelete.Attributes.Add("onclick", PageUtils.GetRedirectStringWithCheckBoxValueAndAlert(PageUrl + "&Delete=True", "IDCollection", "IDCollection", "请选择需要删除的申请!", "此操作将删除所选申请,确定吗?")); } if (hlExport != null) { hlExport.Attributes.Add("onclick", ModalContentExport.GetOpenWindowString(PublishmentSystemId, nodeID)); } } }
protected override void OnInit(EventArgs e) { base.OnInit(e); PageUtils.CheckRequestParameter("ContentID", "ReturnUrl"); contentInfo = DataProvider.GovInteractContentDao.GetContentInfo(PublishmentSystemInfo, TranslateUtils.ToInt(Request.QueryString["ContentID"])); returnUrl = StringUtils.ValueFromUrl(Request.QueryString["ReturnUrl"]); if (!IsPostBack) { if (phBtnAccept != null) { phBtnAccept.Visible = GovInteractManager.IsPermission(PublishmentSystemId, contentInfo.NodeId, AppManager.Wcm.Permission.GovInteract.GovInteractAccept); } if (phBtnSwitchToTranslate != null) { phBtnSwitchToTranslate.Visible = GovInteractManager.IsPermission(PublishmentSystemId, contentInfo.NodeId, AppManager.Wcm.Permission.GovInteract.GovInteractSwitchToTranslate); } if (phBtnReply != null) { phBtnReply.Visible = GovInteractManager.IsPermission(PublishmentSystemId, contentInfo.NodeId, AppManager.Wcm.Permission.GovInteract.GovInteractReply); } if (phBtnCheck != null) { if (contentInfo.State == EGovInteractState.Checked) { phBtnCheck.Visible = false; } else { phBtnCheck.Visible = GovInteractManager.IsPermission(PublishmentSystemId, contentInfo.NodeId, AppManager.Wcm.Permission.GovInteract.GovInteractCheck); } } if (phBtnComment != null) { if (contentInfo.State == EGovInteractState.Checked) { phBtnComment.Visible = false; } else { phBtnComment.Visible = GovInteractManager.IsPermission(PublishmentSystemId, contentInfo.NodeId, AppManager.Wcm.Permission.GovInteract.GovInteractComment); } } if (phBtnReturn != null) { phBtnReturn.Visible = !PublishmentSystemInfo.Additional.GovInteractApplyIsOpenWindow; } var builder = new StringBuilder(); var styleInfoList = TableStyleManager.GetTableStyleInfoList(ETableStyle.GovInteractContent, PublishmentSystemInfo.AuxiliaryTableForGovInteract, RelatedIdentities.GetChannelRelatedIdentities(PublishmentSystemId, contentInfo.NodeId)); var isPreviousSingleLine = true; var isPreviousLeftColumn = false; foreach (var styleInfo in styleInfoList) { if (styleInfo.IsVisible && !StringUtils.EqualsIgnoreCase(styleInfo.AttributeName, GovInteractContentAttribute.DepartmentId)) { var value = contentInfo.GetExtendedAttribute(styleInfo.AttributeName); if (StringUtils.EqualsIgnoreCase(styleInfo.AttributeName, GovInteractContentAttribute.TypeId)) { value = GovInteractManager.GetTypeName(TranslateUtils.ToInt(value)); } else if (StringUtils.EqualsIgnoreCase(styleInfo.AttributeName, GovInteractContentAttribute.IsPublic)) { value = TranslateUtils.ToBool(value) ? "公开" : "不公开"; } else if (StringUtils.EqualsIgnoreCase(styleInfo.AttributeName, GovInteractContentAttribute.FileUrl)) { if (!string.IsNullOrEmpty(value)) { value = $@"<a href=""{PageUtility.ParseNavigationUrl(PublishmentSystemInfo, value)}"" target=""_blank"">{value}</a>"; } } if (builder.Length > 0) { if (isPreviousSingleLine) { builder.Append("</tr>"); } else { if (!isPreviousLeftColumn) { builder.Append("</tr>"); } else if (styleInfo.IsSingleLine) { builder.Append(@"<td bgcolor=""#f0f6fc"" class=""attribute""></td><td></td></tr>"); } } } //this line if (styleInfo.IsSingleLine || isPreviousSingleLine || !isPreviousLeftColumn) { builder.Append("<tr>"); } builder.Append( $@"<td bgcolor=""#f0f6fc"" class=""attribute"">{styleInfo.DisplayName}</td><td {(styleInfo .IsSingleLine ? @"colspan=""3""" : string.Empty)} class=""tdBorder"">{value}</td>"); if (styleInfo.IsSingleLine) { isPreviousSingleLine = true; isPreviousLeftColumn = false; } else { isPreviousSingleLine = false; isPreviousLeftColumn = !isPreviousLeftColumn; } } } if (builder.Length > 0) { if (isPreviousSingleLine || !isPreviousLeftColumn) { builder.Append("</tr>"); } else { builder.Append(@"<td bgcolor=""#f0f6fc"" class=""attribute""></td><td></td></tr>"); } } ltlTitle.Text = contentInfo.Title; ltlApplyAttributes.Text = builder.ToString(); ltlAddDate.Text = DateUtils.GetDateAndTimeString(contentInfo.AddDate); ltlQueryCode.Text = contentInfo.QueryCode; ltlState.Text = EGovInteractStateUtils.GetText(contentInfo.State); ltlDepartmentName.Text = contentInfo.DepartmentName; if (phReply != null) { if (contentInfo.State == EGovInteractState.Denied || contentInfo.State == EGovInteractState.Replied || contentInfo.State == EGovInteractState.Redo || contentInfo.State == EGovInteractState.Checked) { var replyInfo = DataProvider.GovInteractReplyDao.GetReplyInfoByContentId(PublishmentSystemId, contentInfo.Id); if (replyInfo != null) { phReply.Visible = true; ltlDepartmentAndUserName.Text = $"{DepartmentManager.GetDepartmentName(replyInfo.DepartmentID)}({replyInfo.UserName})"; ltlReplyAddDate.Text = DateUtils.GetDateAndTimeString(replyInfo.AddDate); ltlReply.Text = replyInfo.Reply; if (!string.IsNullOrEmpty(replyInfo.FileUrl)) { ltlReplyFileUrl.Text = $@"<a href=""{PageUtility.ParseNavigationUrl(PublishmentSystemInfo, replyInfo.FileUrl)}"" target=""_blank"">{replyInfo.FileUrl}</a>"; } } } } if (divAddDepartment != null) { divAddDepartment.Attributes.Add("onclick", ModalGovInteractDepartmentSelect.GetOpenWindowString(PublishmentSystemId, contentInfo.NodeId)); var scriptBuilder = new StringBuilder(); if (contentInfo.DepartmentId > 0) { var departmentName = DepartmentManager.GetDepartmentName(contentInfo.DepartmentId); scriptBuilder.Append( $@"<script>showCategoryDepartment('{departmentName}', '{contentInfo.DepartmentId}');</script>"); } ltlScript.Text = scriptBuilder.ToString(); } if (ddlTranslateNodeID != null) { var nodeInfoList = GovInteractManager.GetNodeInfoList(PublishmentSystemInfo); foreach (var nodeInfo in nodeInfoList) { if (nodeInfo.NodeId != contentInfo.NodeId) { var listItem = new ListItem(nodeInfo.NodeName, nodeInfo.NodeId.ToString()); ddlTranslateNodeID.Items.Add(listItem); } } } rptRemarks.DataSource = DataProvider.GovInteractRemarkDao.GetDataSourceByContentId(PublishmentSystemId, contentInfo.Id); rptRemarks.ItemDataBound += rptRemarks_ItemDataBound; rptRemarks.DataBind(); if (rptLogs != null) { rptLogs.DataSource = DataProvider.GovInteractLogDao.GetDataSourceByContentId(PublishmentSystemId, contentInfo.Id); rptLogs.ItemDataBound += rptLogs_ItemDataBound; rptLogs.DataBind(); } } }
public void BindGrid() { try { _nodeId = TranslateUtils.ToInt(ddlNodeID.SelectedValue); var departmentIdList = new List <int>(); if (_nodeId > 0) { var channelInfo = DataProvider.GovInteractChannelDao.GetChannelInfo(PublishmentSystemId, _nodeId); departmentIdList = BaiRongDataProvider.DepartmentDao.GetDepartmentIdListByFirstDepartmentIdList(GovInteractManager.GetFirstDepartmentIdList(channelInfo)); } if (departmentIdList.Count == 0) { departmentIdList = DepartmentManager.GetDepartmentIdList(); } rptContents.DataSource = departmentIdList; rptContents.ItemDataBound += rptContents_ItemDataBound; rptContents.DataBind(); } catch (Exception ex) { PageUtils.RedirectToErrorPage(ex.Message); } }