public PartialViewResult Appmanage() { UCHome_SkinBLL skinbll = new UCHome_SkinBLL(); IEnumerable <UCHome_Skin> applist = skinbll.getsysskinlist(); return(PartialView(applist)); }
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)); }
public JsonResult GetSysSkin() { UCHome_SkinBLL skinbll = new UCHome_SkinBLL(); IEnumerable <UCHome_Skin> applist = skinbll.getsysskinlist(); return(Json(applist, JsonRequestBehavior.AllowGet)); }
public PartialViewResult Skins() { UCHome_SkinBLL skinbll = new UCHome_SkinBLL(); IEnumerable <UCHome_Skin> skinlist = skinbll.getsysskinlist(); return(PartialView("Skins", skinlist)); }
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)); }