Example #1
0
        public static List <OCClassRegStudent> OCClassRegStudent_List(ExamineModel examinemodel, int PageIndex, int PageSize)
        {
            IES.JW.Model.User user = IES.Service.UserService.CurrentUser;
            examinemodel.OCID = user.UserID;
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCClassRegStudent_List(examinemodel, PageIndex, PageSize));
        }
Example #2
0
        public static bool OCMoocRecruit_RecruitStatus_Upd(int recruitID, int OCID)
        {
            if (!UserService.OC_IsRole(OCID))
            {
                return(false);
            }
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCMoocRecruit_RecruitStatus_Upd(recruitID));
        }
Example #3
0
        public static bool OCMoocRecruit_RegNum_Upd(OCMoocRecruit ocmoocrecruit)
        {
            if (!UserService.OC_IsRole(ocmoocrecruit.OCID))
            {
                return(false);
            }
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCMoocRecruit_RegNum_Upd(ocmoocrecruit));
        }
Example #4
0
        public static bool OCMoocRecruit_Del(int recruitid, int OCID)
        {
            if (!UserService.OC_IsRole(OCID))
            {
                return(false);
            }
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCMoocRecruit_Del(recruitid));
        }
Example #5
0
        public static OCClass OCClass_Edit(OCClass occlass, List <OCTeamDropdownList> octeamdropdownlist, List <OCClassStudent> occlassstudent)
        {
            if (!UserService.OC_IsRole(occlass.OCID))
            {
                return(null);
            }
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCClass_Edit(occlass, octeamdropdownlist, occlassstudent));
        }
Example #6
0
        public static bool OCClass_IsHistroy_Upd(OCClass model)
        {
            if (!UserService.OC_IsRole(model.OCID))
            {
                return(false);
            }

            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCClass_IsHistroy_Upd(model));
        }
Example #7
0
        public static OCClass OCClass_Get(OCClass occlass)
        {
            if (!UserService.OC_IsRole(occlass.OCID))
            {
                return(null);
            }

            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCClass_Get(occlass));
        }
Example #8
0
        public static OCMoocRecruit OCMoocRecruit_Edit(OCMoocRecruit ocmoocrecruit)
        {
            if (!UserService.OC_IsRole(ocmoocrecruit.OCID))
            {
                return(null);
            }

            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCMoocRecruit_Edit(ocmoocrecruit));
        }
Example #9
0
        public static List <OCClassStudent> OCMoocRecruitClassStudent_List(ShortSearchModel searchmodel, int PageIndex, int PageSize)
        {
            if (!UserService.OC_IsRole(searchmodel.OCID))
            {
                return(new List <OCClassStudent>());
            }

            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCMoocRecruitClassStudent_List(searchmodel, PageIndex, PageSize));
        }
Example #10
0
        public static List <OCClass> ClassList(OCClass model, int PageIndex, int PageSize)
        {
            if (!UserService.OC_IsRole(model.OCID))
            {
                return(new List <OCClass>());
            }


            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCClass_List(model, PageIndex, PageSize));
        }
Example #11
0
        public static int OC_Register(int OCID, string RegNum)
        {
            OCClass model = new OCClass
            {
                RegNum = RegNum,
                OCID   = OCID,
                UserID = IES.Service.UserService.CurrentUser.UserID
            };
            OCClass occls = new OCClassBLL().OC_Register(model);

            if (occls != null)
            {
                return(occls.output);
            }
            else
            {
                return(0);
            }
        }
Example #12
0
        public static string ExportAllClassStudent(string teachingClassID, int oCID, bool isHistory)
        {
            if (!UserService.OC_IsRole(oCID))
            {
                return("");
            }

            string  fileUrl = "";
            DataSet ds      = new DataSet();
            List <ExportOCClassStudent> occlassstudentlist = new List <ExportOCClassStudent>();
            OCClassBLL oCClassBLL = new OCClassBLL();

            occlassstudentlist = oCClassBLL.ExportAllClassStudent(teachingClassID, oCID, isHistory);
            foreach (var item in occlassstudentlist)
            {
                ds.Tables.Add(IES.Common.ListToDateUtil.ListToDataTable <OCClassStudent>(item.ClassStudent));
            }

            string sheetNames = "";
            string headerName = "学号,姓名,专业,行政班,年级";

            for (int i = 0; i < ds.Tables.Count; i++)
            {
                sheetNames += "政班" + i + ds.Tables[i].Rows[0]["TeachingClassName"] + ",";
                ds.Tables[i].Columns.Remove("EntryDate");
                ds.Tables[i].Columns.Remove("MOOCLearningPace");
            }
            if (!string.IsNullOrEmpty(sheetNames))
            {
                sheetNames = sheetNames.Substring(0, sheetNames.Length - 1);
            }

            try
            {
                fileUrl = NPOIHandler.ExportDataSetToExcelMVC(ds, "StudentAll.xls", sheetNames, headerName);
            }
            catch (Exception e)
            {
                fileUrl = "";
            }
            return(fileUrl);
        }
Example #13
0
        public static List <OCClassStudent> ImportStudent_List(string fileUrl, int teachingclassid, List <OCClassStudent> occlassstudentlist)
        {
            DataTable dt = new DataTable();

            dt = NPOIHandler.ExcelToDataTable(fileUrl, "Student");

            OCClassBLL            oCClassBLL = new OCClassBLL();
            List <OCClassStudent> newList    = new List <OCClassStudent>();
            //newList = IES.Common.ListToDateUtil.ConvertTo<OCClassStudent>(dt);
            //begin检查用户
            string userNo = "";

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                userNo += dt.Rows[i]["UserNo"].ToString() + ",";
            }
            if (userNo != "" && userNo.IndexOf(',') > 0)
            {
                userNo = userNo.Substring(0, userNo.Length - 1);
            }
            newList = oCClassBLL.CheckUserExice(userNo, teachingclassid);
            //end检查用户
            return(oCClassBLL.SelectSelectedStudent_List(newList, occlassstudentlist));
        }
Example #14
0
        public static List <OCClassStudent> SelectAll_List(List <OCClassStudent> occlassstudentsearchlist, bool isselectall)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.SelectAll_List(occlassstudentsearchlist, isselectall));
        }
Example #15
0
        public static bool Save_BatchExamine(ExamineModel examinemodel)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.Save_BatchExamine(examinemodel));
        }
Example #16
0
        public static bool OCMoocRecruitStudent_Del(int RecruitID, string UserIDs)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCMoocRecruitStudent_Del(RecruitID, UserIDs));
        }
Example #17
0
        public static List <ShortOCMoocClass> OCMoocRecruitClass_Dropdown_List(ShortOCMoocClass shortocmoocclass)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCMoocRecruitClass_Dropdown_List(shortocmoocclass));
        }
Example #18
0
        public static bool OCMoocRecruitStudent_Status_Upd(int RecruitID, string UserIDs, int Status)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCMoocRecruitStudent_Status_Upd(RecruitID, UserIDs, Status));
        }
Example #19
0
        public static bool OCClass_RegNum_Upd(OCClass model)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCClass_RegNum_Upd(model));
        }
Example #20
0
        public static List <OCTeamDropdownList> OCTeam_Dropdown_List(OCTeamDropdownList occlass)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCTeam_Dropdown_List(occlass));
        }
Example #21
0
        public static List <IES.JW.Model.Class> Class_List(IES.JW.Model.Class model, int PageIndex, int PageSize)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.Class_List(model, PageIndex, PageSize));
        }
Example #22
0
        public static List <OCMoocRecruit> OCMoocRecruit_List(OCMoocRecruit ocmoocrecruit, int PageIndex, int PageSize)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCMoocRecruit_List(ocmoocrecruit, PageIndex, PageSize));
        }
Example #23
0
        public static List <OCClassStudent> BatchDeleteStudent(List <OCClassStudent> occlassstudentlist)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.BatchDeleteStudent(occlassstudentlist));
        }
Example #24
0
        public static List <OCClassStudent> ClassStudent_List(IES.JW.Model.Class occlass, List <OCClassStudent> occlassstudentlist, int PageIndex, int PageSize)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.ClassStudent_List(occlass, occlassstudentlist, PageIndex, PageSize));
        }
Example #25
0
        public static bool OCClass_InputOutAll(OCClass model)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(true);// oCClassBLL.OCClass_IsHistroy_Upd(model);
        }
Example #26
0
        public static List <OCClassStudent> SelectSelectedStudent_List(List <OCClassStudent> occlassstudentsearchlist, List <OCClassStudent> occlassstudentlist)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.SelectSelectedStudent_List(occlassstudentsearchlist, occlassstudentlist));
        }
Example #27
0
        public static bool OCClass_Del(OCClass model)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCClass_Del(model));
        }
Example #28
0
        public static List <OCClassStudent> Select_Page_List(List <OCClassStudent> occlassstudentsearchlist, bool isselectall, int PageIndex, int PageSize)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.Select_Page_List(occlassstudentsearchlist, isselectall, PageIndex, PageSize));
        }
Example #29
0
        public static List <OCClassStudent> OCClassStudent_List(OCClass occlass, int PageIndex, int PageSize)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCClassStudent_List(occlass, PageIndex, PageSize));
        }
Example #30
0
 public static int OC_Register(int OCID, string RegNum)
 {
     OCClass model = new OCClass
     {
         RegNum = RegNum,
         OCID = OCID,
         UserID = IES.Service.UserService.CurrentUser.UserID
     };
     OCClass occls = new OCClassBLL().OC_Register(model);
     if (occls != null)
     {
         return occls.output;
     }
     else
     {
         return 0;
     }
 }