Beispiel #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));
        }
Beispiel #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            IES.JW.Model.User user = new IES.JW.Model.User { LoginName = tbuser.Text, Pwd = tbpassword.Text };

            if( IES.Service.UserService.Login(user))
            {
                IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL();
                List<IES.CC.OC.Model.OC> oclist = ocbll.OC_List(user.UserID, 1);

                if(  Request.QueryString["ReturnUrl"] != null  )
                {
                    string ReturnUrl = Request.QueryString["ReturnUrl"];
                    Response.Redirect(ReturnUrl);
                }
            }
        }
Beispiel #3
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");
     }
 }
Beispiel #4
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);
        }
Beispiel #5
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");
            }
        }