Exemplo n.º 1
0
        private string ConstructUrlForInfoLibItemFile(int InfoLibItemId, InfoLibFileServerTypes type)
        {
            NameValueCollection nvColl = new NameValueCollection();

            nvColl.Add(QueryStringHelper.QueryStringParamNames.INFOLIB_ITEMID_INT.Description(), InfoLibItemId.ToString());
            nvColl.Add(QueryStringHelper.QueryStringParamNames.INFOLIB_REQ_FILE_IDEN_INT.Description(), type.EnumValue <int>().ToString());
            return(InfoLibUtil.ConstructInfoLibFileServerUrl(nvColl));
            //return string.Format(InfoLib_File_Server_Url + "?" + InfoLib_File_Server_Url_QS_Params_Fmt, InfoLibItemId, type.EnumValue<int>());
        }
Exemplo n.º 2
0
 private string GetParentLink()
 {
     if (ParentId.HasValue && ParentId.Value != 0)
     {
         if (ParentItem != null && ParentItem.InfoLibItemId != 0)
         {
             return(InfoLibUtil.ConstructInfoLibItemNavigationUrl(
                        QueryStringHelper.QueryStringParamNames.INFOLIB_PARENTID_INT.Description(), ParentId.Value.ToString()));
             //return RouteController.ViewInfoLibItems(ParentId.Value);
         }
     }
     return(string.Empty);
 }
Exemplo n.º 3
0
        private string GetTopLevelParentLink()
        {
            if (ParentId != 0)
            {
                InfoLibItem item = InfoLibBLL.GetInfoLibTopLevelParent(ParentId.Value, false);
                if (item != null && ParentItem.ParentId != 0)
                {
                    //return RouteController.ViewInfoLibItems(item.InfoLibItemId);
                    return(InfoLibUtil.ConstructInfoLibItemNavigationUrl(
                               QueryStringHelper.QueryStringParamNames.INFOLIB_PARENTID_INT.Description(), item.InfoLibItemId.ToString()));
                }
            }

            return(string.Empty);
        }
        private void InitializeView()
        {
            InfoLibForumCallItem forumCallItem = InfoLibBLL.GetInfoLibForumCallItem();

            if (forumCallItem != null)
            {
                divforumCallSummaryView.Visible = true;
                InfoLibItem summaryItem = forumCallItem.SummaryItem;
                litSummaryViewContent.Text = summaryItem.ItemHeader.HeaderText;

                if (forumCallItem.DetailedItem != null)
                {
                    hlMoreLink.Visible = true;
                    NameValueCollection nvColl = new NameValueCollection();
                    nvColl.Add(QueryStringHelper.QueryStringParamNames.INFOLIB_ITEMID_INT.Description(),
                               forumCallItem.DetailedItem.InfoLibItemId.ToString());
                    nvColl.Add(QueryStringHelper.QueryStringParamNames.INFOLIB_PARENTID_INT.Description(),
                               forumCallItem.DetailedItem.ParentId.ToString());
                    nvColl.Add(QueryStringHelper.QueryStringParamNames.INFOLIB_SPECIAL_IDENTIFIER.Description(),
                               InfoLibSpecialIdentifiers.Forum_call.EnumValue <int>().ToString());
                    hlMoreLink.NavigateUrl = InfoLibUtil.ConstructInfoLibItemNavigationUrl(nvColl);
                }
            }
        }