示例#1
0
        /// <summary>
        /// 获取用户或班级下的教师或学生
        /// </summary>
        /// <param name="context"></param>
        public void ClassUser_List(HttpContext context)
        {
            OCTeamClass model = new OCTeamClass
            {
                Key       = context.Request["Key"],
                UserID    = UserService.CurrentUser.UserID,
                OCClassID = Convert.ToInt32(context.Request["OCClassID"]),
                UserType  = Convert.ToInt32(context.Request["UserType"]),
                GroupID   = Convert.ToInt32(context.Request["GroupID"])
            };
            int PageIndex = Convert.ToInt32(context.Request["PageIndex"]);
            int PageSize  = Convert.ToInt32(context.Request["PageSize"]);

            IES.G2S.CourseLive.BLL.Test.MyGroupBLL mygroupbll = new IES.G2S.CourseLive.BLL.Test.MyGroupBLL();
            List <IES.JW.Model.User> list = mygroupbll.ClassUser_List(model, PageIndex, PageSize);

            if (list != null)
            {
                context.Response.Write(Newtonsoft.Json.JsonConvert.SerializeObject(list));
            }
            else
            {
                context.Response.Write("False");
            }
        }
示例#2
0
        public static List <IES.JW.Model.User> ClassUser_List(string Key, int OCClassID, int UserType, int GroupID, int PageIndex, int PageSize)
        {
            string      userid = IESCookie.GetCookieValue("ies");
            OCTeamClass model  = new OCTeamClass {
                UserID = int.Parse(userid), Key = Key, OCClassID = OCClassID, UserType = UserType, GroupID = GroupID
            };

            return(new MyGroupBLL().ClassUser_List(model, PageIndex, PageSize));
        }
示例#3
0
        public static List <OCTeamClass> OCClass_UserID_Tree()
        {
            string      userid = IESCookie.GetCookieValue("ies");
            OCTeamClass model  = new OCTeamClass {
                UserID = int.Parse(userid)
            };

            return(new MyGroupBLL().OCClass_UserID_Tree(model));
        }
示例#4
0
        /// <summary>
        /// 获取用户的在线课程及其下的班级树
        /// </summary>
        /// <param name="context"></param>
        public void OCClass_UserID_Tree(HttpContext context)
        {
            OCTeamClass model = new OCTeamClass
            {
                UserID = UserService.CurrentUser.UserID
            };

            IES.G2S.CourseLive.BLL.Test.MyGroupBLL mygroupbll = new IES.G2S.CourseLive.BLL.Test.MyGroupBLL();
            List <OCTeamClass> list = mygroupbll.OCClass_UserID_Tree(model);

            if (list != null)
            {
                context.Response.Write(Newtonsoft.Json.JsonConvert.SerializeObject(list));
            }
            else
            {
                context.Response.Write("False");
            }
        }