Exemplo n.º 1
0
        /// <summary>
        /// Gets the list of items based on the CAML query and the fields to view. 
        /// </summary>
        /// <param name="strListName"></param>
        /// <param name="strCamlQuery"></param>
        /// <param name="strFieldsView"></param>
        /// <returns></returns>
        protected void UpdateListItemSequence(string strListName, DataView dvUpdatedListItem,
            string strAuditListName, string strActionPerformed, string pageType)
        {
            CommonUtility objCommonUtility; ;
            try
            {
                switch (pageType)
                {
                    case MASTERPAGE:
                    case CHAPTERPAGEMAPPING:
                        objMasterBLL = new MasterPageBLL();
                        objMasterBLL.UpdatepageSequence(strParentSiteURL, strListName, strAuditListName,
                            dvUpdatedListItem, strActionPerformed);

                        break;
                    case CHAPTER:
                        objChapterBLL = new ChapterBLL();
                        objCommonUtility = new CommonUtility();
                        objChapterBLL.UpdateChapterSequence(strParentSiteURL, strListName, strAuditListName,
                            dvUpdatedListItem, strActionPerformed, objCommonUtility.GetUserName());
                        break;
                    case TEMPLATEPAGESSEQUENCE:
                        {
                            objTemplateBLL = new TemplateDetailBLL();
                            objCommonUtility = new CommonUtility();
                            objTemplateBLL.UpdatePageSequence(strParentSiteURL, strListName, strAuditListName, strActionPerformed, objCommonUtility.GetUserName(), dvUpdatedListItem);
                            break;
                        }

                }

            }
            catch
            { throw; }
        }