Beispiel #1
0
        /// <summary>
        /// 取得瀏覽目錄by SiteID
        /// </summary>
        /// <param name="SiteID"></param>
        /// <param name="MenuID"></param>
        /// <returns></returns>
        public static string GetVPathByMenuID(long SiteID, long MenuID)
        {
            string      Path  = GetItem.ViewUpdUrl().TrimEnd('/');
            MenusModels datas = MenusDAO.GetInfo(SiteID, MenuID);

            if (datas != null)
            {
                Path += "/" + datas.SiteSN + "/" + datas.SN + "/";
            }

            return(Path);
        }
Beispiel #2
0
        /// <summary>
        /// 取得瀏覽目錄by SiteID
        /// </summary>
        /// <param name="SiteID"></param>
        /// <returns></returns>
        public static string GetVPathBySiteID(long SiteID, string CustomFolder = "")
        {
            string      Path  = GetItem.ViewUpdUrl().TrimEnd('/');
            SitesModels datas = SitesDAO.GetInfo(SiteID);

            if (datas != null)
            {
                Path += "/" + datas.SN + "/";
            }

            if (CustomFolder != "")
            {
                Path += CustomFolder + "/";
            }

            return(Path);
        }
Beispiel #3
0
        public ActionResult Edit(long?ID, long siteId = 0)
        {
            MemberModels m = new MemberModels();

            if (ID.HasValue)
            {
                m             = ManagerDAO.GetItem((long)ID);
                ViewBag.IsNew = false;
            }
            else
            {
                ViewBag.IsNew = true;
            }

            var group = GroupDAO.GetItems();

            ViewBag.group = group;

            ViewBag.ID        = ID ?? 0;
            ViewBag.UploadUrl = GetItem.ViewUpdUrl().TrimEnd('/') + "/";
            ViewBag.SiteID    = siteId;
            return(View(m));
        }