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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
public static OCClass OCClass_Get(OCClass occlass) { if (!UserService.OC_IsRole(occlass.OCID)) { return(null); } OCClassBLL oCClassBLL = new OCClassBLL(); return(oCClassBLL.OCClass_Get(occlass)); }
public static OCMoocRecruit OCMoocRecruit_Edit(OCMoocRecruit ocmoocrecruit) { if (!UserService.OC_IsRole(ocmoocrecruit.OCID)) { return(null); } OCClassBLL oCClassBLL = new OCClassBLL(); return(oCClassBLL.OCMoocRecruit_Edit(ocmoocrecruit)); }
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)); }
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)); }
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); } }
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); }
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)); }
public static List <OCClassStudent> SelectAll_List(List <OCClassStudent> occlassstudentsearchlist, bool isselectall) { OCClassBLL oCClassBLL = new OCClassBLL(); return(oCClassBLL.SelectAll_List(occlassstudentsearchlist, isselectall)); }
public static bool Save_BatchExamine(ExamineModel examinemodel) { OCClassBLL oCClassBLL = new OCClassBLL(); return(oCClassBLL.Save_BatchExamine(examinemodel)); }
public static bool OCMoocRecruitStudent_Del(int RecruitID, string UserIDs) { OCClassBLL oCClassBLL = new OCClassBLL(); return(oCClassBLL.OCMoocRecruitStudent_Del(RecruitID, UserIDs)); }
public static List <ShortOCMoocClass> OCMoocRecruitClass_Dropdown_List(ShortOCMoocClass shortocmoocclass) { OCClassBLL oCClassBLL = new OCClassBLL(); return(oCClassBLL.OCMoocRecruitClass_Dropdown_List(shortocmoocclass)); }
public static bool OCMoocRecruitStudent_Status_Upd(int RecruitID, string UserIDs, int Status) { OCClassBLL oCClassBLL = new OCClassBLL(); return(oCClassBLL.OCMoocRecruitStudent_Status_Upd(RecruitID, UserIDs, Status)); }
public static bool OCClass_RegNum_Upd(OCClass model) { OCClassBLL oCClassBLL = new OCClassBLL(); return(oCClassBLL.OCClass_RegNum_Upd(model)); }
public static List <OCTeamDropdownList> OCTeam_Dropdown_List(OCTeamDropdownList occlass) { OCClassBLL oCClassBLL = new OCClassBLL(); return(oCClassBLL.OCTeam_Dropdown_List(occlass)); }
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)); }
public static List <OCMoocRecruit> OCMoocRecruit_List(OCMoocRecruit ocmoocrecruit, int PageIndex, int PageSize) { OCClassBLL oCClassBLL = new OCClassBLL(); return(oCClassBLL.OCMoocRecruit_List(ocmoocrecruit, PageIndex, PageSize)); }
public static List <OCClassStudent> BatchDeleteStudent(List <OCClassStudent> occlassstudentlist) { OCClassBLL oCClassBLL = new OCClassBLL(); return(oCClassBLL.BatchDeleteStudent(occlassstudentlist)); }
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)); }
public static bool OCClass_InputOutAll(OCClass model) { OCClassBLL oCClassBLL = new OCClassBLL(); return(true);// oCClassBLL.OCClass_IsHistroy_Upd(model); }
public static List <OCClassStudent> SelectSelectedStudent_List(List <OCClassStudent> occlassstudentsearchlist, List <OCClassStudent> occlassstudentlist) { OCClassBLL oCClassBLL = new OCClassBLL(); return(oCClassBLL.SelectSelectedStudent_List(occlassstudentsearchlist, occlassstudentlist)); }
public static bool OCClass_Del(OCClass model) { OCClassBLL oCClassBLL = new OCClassBLL(); return(oCClassBLL.OCClass_Del(model)); }
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)); }
public static List <OCClassStudent> OCClassStudent_List(OCClass occlass, int PageIndex, int PageSize) { OCClassBLL oCClassBLL = new OCClassBLL(); return(oCClassBLL.OCClassStudent_List(occlass, PageIndex, PageSize)); }
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; } }