Example #1
0
        public static List <IES.CC.OC.Model.OC> OC_List()
        {
            IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL();
            IES.JW.Model.User       user  = IES.Service.UserService.CurrentUser;

            WebCache.SetExpire(user.UserID.ToString(), "_" + user.Role.ToString() + "OC_List");
            return(ocbll.OC_List(user.UserID, user.Role));
        }
Example #2
0
        //根据用户获取网站
        public void Get_Site(HttpContext context)
        {
            IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL();
            IES.JW.Model.User       user  = IES.Service.UserService.CurrentUser;
            WebCache.SetExpire(user.UserID.ToString(), "_" + user.Role.ToString() + "OC_List");
            DataTable dt = IES.Common.ListToDateUtil.ListToDataTable <IES.CC.OC.Model.OC>(ocbll.OC_List(user.UserID, user.Role));

            if (dt != null && dt.Rows.Count > 0)
            {
                context.Response.Write(Tools.JsonConvert.GetJSON(dt));
            }
            else
            {
                context.Response.Write("False");
            }
        }