コード例 #1
0
        protected void DeleteListItem(int itemID,string reportName, string listName, string auditListName)
        {
            objCommonBLL = new CommonBLL();

            switch (reportName)
            {
                case WELLBOOKREPORT:
                case CHAPTERREPORT:
                    {
                        objCommonBLL.MarkItemToDelete(strSiteURL, listName, itemID);
                        break;
                    }
                case CHAPTERPAGEREPORT:
                    {
                        objCommonBLL.DeleteChapterPages(strSiteURL, itemID, string.Empty, listName, auditListName);
                        break;
                    }
                case TEMPLATEREPORT:
                    {
                        objCommonBLL.DeleteTemplate(strSiteURL, itemID, listName, auditListName);
                        break;
                    }
                case TEMPLATEPAGESREPORT:
                case MASTERPAGEREPORT:
                    {
                        objCommonBLL.DeleteListItemById(strSiteURL,itemID,listName,auditListName);
                        break;
                    }
                case USERREGISTRATION:
                    {
                        objCommonBLL.DeleteUser(strSiteURL,itemID,listName);
                        break;
                    }
                case TEAMREGISTRATION:
                    {
                        objCommonBLL.DeleteTeam(strSiteURL, itemID, listName, TEAMSTAFFLIST);
                        break;
                    }
            }
        }