/// <summary>
        /// 自訂廣告管理 Index
        /// </summary>
        /// <param name="Advertisement_ID">廣告區 ID</param>
        /// <returns></returns>
        public ActionResult AdsCustomizeIndex(AdsCustomizeSearchModel search, long siteId, long menuId, long Advertisement_ID, int?page)
        {
            if (Request.HttpMethod == "GET")
            {
                if (page == null)
                {
                    WorkV3.Common.Utility.ClearSearchValue();
                }
                else
                {
                    AdsCustomizeSearchModel prevSearch = WorkV3.Common.Utility.GetSearchValue <AdsCustomizeSearchModel>();
                    if (prevSearch != null)
                    {
                        search = prevSearch;
                    }
                }
            }
            else if (Request.HttpMethod == "POST")
            {
                WorkV3.Common.Utility.SetSearchValue(search);
                ViewBag.IsSearchMode = "IsSearchMode";
            }
            ViewBag.Search = search;

            List <AdsCustomizeModel> list = new List <AdsCustomizeModel>();
            Pagination pagination         = new Pagination
            {
                PageIndex = page ?? 1,
                PageSize  = WebInfo.PageSize
            };
            int totalRecord = 0;

            list = AdvertisementDAO.GetAdsCustomize(search, pagination.PageSize, pagination.PageIndex, Advertisement_ID, siteId, out totalRecord);
            pagination.TotalRecord = totalRecord;
            ViewBag.Pagination     = pagination;

            ViewBag.UploadUrl        = WorkV3.Golbal.UpdFileInfo.GetVPathByMenuID(siteId, menuId);
            ViewBag.Advertisement_ID = Advertisement_ID;
            ViewBag.SiteID           = siteId;
            ViewBag.MenuID           = menuId;

            AdvertisementModel ad = AdvertisementDAO.GetAdvertisementItem(Advertisement_ID);

            ViewBag.HasComputerVer = ad.IsUseForComputer;

            return(View(list));
        }