예제 #1
0
        public PartialViewResult Appmanage()
        {
            UCHome_SkinBLL            skinbll = new UCHome_SkinBLL();
            IEnumerable <UCHome_Skin> applist = skinbll.getsysskinlist();

            return(PartialView(applist));
        }
예제 #2
0
        public JsonResult AddSkin(string SkinTheme, string SkinColor, string SkinName, string SkinBackground, string memo)
        {
            UCHome_SkinBLL skinbll = new UCHome_SkinBLL();
            UCHome_Skin    sysskin = new UCHome_Skin {
                PKID           = Guid.NewGuid(),
                SkinTheme      = SkinTheme,
                Status         = "1",
                SkinColor      = SkinColor,
                SkinName       = SkinName,
                SkinBackground = SkinBackground,
                Memo           = memo,
            };
            string statuscode = "200";
            string msg        = "";

            try {
                skinbll.Addsystemskin(sysskin);
            }
            catch (Exception) {
                statuscode = "500";
                msg        = "操作失败,请重试!";
                throw;
            }
            JsonResult jr = new JsonResult {
                Data = new { statuscode, msg }
            };

            return(Json(jr, JsonRequestBehavior.AllowGet));
        }
예제 #3
0
        public JsonResult GetSysSkin()
        {
            UCHome_SkinBLL            skinbll = new UCHome_SkinBLL();
            IEnumerable <UCHome_Skin> applist = skinbll.getsysskinlist();

            return(Json(applist, JsonRequestBehavior.AllowGet));
        }
예제 #4
0
        public PartialViewResult Skins()
        {
            UCHome_SkinBLL            skinbll  = new UCHome_SkinBLL();
            IEnumerable <UCHome_Skin> skinlist = skinbll.getsysskinlist();

            return(PartialView("Skins", skinlist));
        }
예제 #5
0
        public JsonResult MoveSkin(Guid pkid, string skinstatus)
        {
            UCHome_SkinBLL skinbll    = new UCHome_SkinBLL();
            string         statuscode = "200";
            string         msg        = "";
            UCHome_Skin    newskin;

            try {
                newskin = skinbll.Removesystemskin(pkid, skinstatus);
            }
            catch (Exception) {
                statuscode = "500";
                msg        = "操作失败,请重试!";
                throw;
            }
            JsonResult jr = new JsonResult {
                Data = new { statuscode, newskin }
            };

            return(Json(jr, JsonRequestBehavior.AllowGet));
        }