示例#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));
        }
示例#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);
                }
            }
        }
示例#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");
            }
        }
示例#4
0
        public static List<StudentOC> StudentOC_List(int ishistory, int pageindex, int pagesize)
        {
            StudentOC studentoc = new StudentOC();
            IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL();
            IES.JW.Model.User user = IES.Service.UserService.CurrentUser;
            studentoc.IsHistory = ishistory;
            studentoc.UserID = user.UserID;

            //List<StudentOC> studentoclist = new List<StudentOC>();
            return ocbll.StudentOC_List(studentoc, pageindex, pagesize);

            //for (int i = 0; i < studentoclist.Count; i++)
            //{
            //    studentoclist[i].ImgFileUrl = FileService.g(responseList[i].UserID);
            //}
            //return studentoclist;
        }
示例#5
0
        //int ishistory, int pageindex, int pagesize
        public static List <StudentOC> StudentOC_List(int ishistory, int pageindex, int pagesize)
        {
            StudentOC studentoc = new StudentOC();

            IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL();
            IES.JW.Model.User       user  = IES.Service.UserService.CurrentUser;
            studentoc.IsHistory = ishistory;
            studentoc.UserID    = user.UserID;

            //List<StudentOC> studentoclist = new List<StudentOC>();
            return(ocbll.StudentOC_List(studentoc, pageindex, pagesize));

            //for (int i = 0; i < studentoclist.Count; i++)
            //{
            //    studentoclist[i].ImgFileUrl = FileService.g(responseList[i].UserID);
            //}
            //return studentoclist;
        }
示例#6
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");
     }
 }
示例#7
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);
        }
示例#8
0
 public static int OC_Del(int OCID)
 {
     IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL();
     IES.JW.Model.User user = IES.Service.UserService.CurrentUser;
     return ocbll.OC_Del(OCID, user.UserID, user.Role);
 }
示例#9
0
 public static IES.CC.OC.Model.WaitingProcess WaitingProcess_Get(bool isCache)
 {
     IES.JW.Model.User user = IES.Service.UserService.CurrentUser;
     IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL();
     return ocbll.WaitingProcess_Get(user.UserID, Convert.ToInt32(Browse.UserSpace), isCache);
 }
示例#10
0
 public static int OC_Del(int OCID)
 {
     IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL();
     IES.JW.Model.User       user  = IES.Service.UserService.CurrentUser;
     return(ocbll.OC_Del(OCID, user.UserID, user.Role));
 }
示例#11
0
 public static IES.CC.OC.Model.WaitingProcess WaitingProcess_Get(bool isCache)
 {
     IES.JW.Model.User       user  = IES.Service.UserService.CurrentUser;
     IES.G2S.OC.BLL.OC.OCBLL ocbll = new IES.G2S.OC.BLL.OC.OCBLL();
     return(ocbll.WaitingProcess_Get(user.UserID, Convert.ToInt32(Browse.UserSpace), isCache));
 }