public static List <OCTeam> OCTeam_List(int OCID) { OCTeamBLL oCTeamBLL = new OCTeamBLL(); List <OCTeam> octeamlist = oCTeamBLL.OCTeam_List(OCID, 1); return(octeamlist); }
public static List <OCTeam> OCTeam_List(int OCID, int Role) { OCTeamBLL octeambll = new OCTeamBLL(); List <OCTeam> octeam = octeambll.OCTeam_List(OCID, Role); return(octeam); }
public static bool OCTeam_Brief_Upd(OCTeam octeam) { OCTeamBLL oCTeamBLL = new OCTeamBLL(); return(oCTeamBLL.OCTeam_Brief_Upd(octeam)); //return true; }
public static OcTeamFunctionInfo GetOcTeamFunctionInfo(int OCID, int UserID) { if (!UserService.OC_IsRole(OCID)) { return new OcTeamFunctionInfo(); } OCTeamBLL oCTeamBLL = new OCTeamBLL(); return oCTeamBLL.OCTeam_Class_Function_Get(OCID, UserID); }
public static OCTeam OCTeam_Class_Function_Save(OcTeamFunctionInfo octeamfunctioninfo) { if (!UserService.OC_IsRole(octeamfunctioninfo.OCTeam.OCID)) { return null; } OCTeamBLL oCTeamBLL = new OCTeamBLL(); return oCTeamBLL.OCTeam_Class_Function_Save(octeamfunctioninfo); }
public static OcTeamFunctionInfo GetOcTeamFunctionInfo(int OCID, int UserID) { if (!UserService.OC_IsRole(OCID)) { return(new OcTeamFunctionInfo()); } OCTeamBLL oCTeamBLL = new OCTeamBLL(); return(oCTeamBLL.OCTeam_Class_Function_Get(OCID, UserID)); }
public static OCTeam OCTeam_ADD(OCTeam octeam) { if (!UserService.OC_IsRole(octeam.OCID)) { return null; } OCTeamBLL oCTeamBLL = new OCTeamBLL(); return oCTeamBLL.OCTeam_ADD(octeam); }
public static OCTeamRole OCTeamRole_Get(int OCID) { OCTeamRole octeamrole = new OCTeamRole(); OCTeamBLL oCTeamBLL = new OCTeamBLL(); IES.JW.Model.User user = IES.Service.UserService.CurrentUser; octeamrole = oCTeamBLL.OCTeamRole_Get(user.UserID, OCID); octeamrole.UserID = user.UserID; octeamrole.OCID = OCID; return(octeamrole); }
public static OCTeam OCTeam_Class_Function_Save(OcTeamFunctionInfo octeamfunctioninfo) { if (!UserService.OC_IsRole(octeamfunctioninfo.OCTeam.OCID)) { return(null); } OCTeamBLL oCTeamBLL = new OCTeamBLL(); return(oCTeamBLL.OCTeam_Class_Function_Save(octeamfunctioninfo)); }
public static bool OCTeam_Del(OCTeam motal) { if (!UserService.OC_IsRole(motal.OCID)) { return(false); } OCTeamBLL oCTeamBLL = new OCTeamBLL(); return(oCTeamBLL.OCTeam_Del(motal)); //return true; }
public static OCTeam OCTeam_ADD(OCTeam octeam) { if (!UserService.OC_IsRole(octeam.OCID)) { return(null); } OCTeamBLL oCTeamBLL = new OCTeamBLL(); return(oCTeamBLL.OCTeam_ADD(octeam)); }
public static OCTeamInfo TeacherInfo(int UserID) { IES.JW.Model.User user = IES.Service.UserService.CurrentUser; if (UserID == -1) { UserID = user.UserID; } OCTeamBLL oCTeamBLL = new OCTeamBLL(); OCTeamInfo octeaminfo = new OCTeamInfo(); octeaminfo = oCTeamBLL.TeacherInfo_Get(UserID); octeaminfo.OcTeam.UserImgUrl = IES.Service.FileService.UserIMGURL(UserID); return(octeaminfo); }
public static OCTeamRole OCTeamRole_Get(int OCID) { OCTeamRole octeamrole = new OCTeamRole(); OCTeamBLL oCTeamBLL = new OCTeamBLL(); IES.JW.Model.User user = IES.Service.UserService.CurrentUser; try { octeamrole = oCTeamBLL.OCTeamRole_Get(user.UserID, OCID); } catch { octeamrole.Role = 0; } octeamrole.UserID = user.UserID; return octeamrole; }
public static List <OCTeam> OCTeam_List(int OCID) { if (!UserService.OC_IsRole(OCID)) { return(new List <OCTeam>()); } OCTeamBLL oCTeamBLL = new OCTeamBLL(); List <OCTeam> octeamlist = oCTeamBLL.OCTeam_List(OCID, -1); //for (int i = 0; i < octeamlist.Count; i++) //{ // octeamlist[i].UserImgUrl = FileService.UserIMGURL(octeamlist[i].UserID); //} return(octeamlist); }
public static bool OCTeam_IsLocked_Upd(OCTeam octeam) { OCTeamBLL oCTeamBLL = new OCTeamBLL(); return oCTeamBLL.OCTeam_IsLocked_Upd(octeam); }
public static bool OCTeam_Brief_Upd(OCTeam octeam) { OCTeamBLL oCTeamBLL = new OCTeamBLL(); return oCTeamBLL.OCTeam_Brief_Upd(octeam); //return true; }
public static bool OCTeam_IsLocked_Upd(OCTeam octeam) { OCTeamBLL oCTeamBLL = new OCTeamBLL(); return(oCTeamBLL.OCTeam_IsLocked_Upd(octeam)); }
public static bool OCTeam_Del(OCTeam motal) { if (!UserService.OC_IsRole(motal.OCID)) { return false; } OCTeamBLL oCTeamBLL = new OCTeamBLL(); return oCTeamBLL.OCTeam_Del(motal); //return true; }
public static List<OCTeam> OCTeam_List(int OCID) { if (!UserService.OC_IsRole(OCID)) { return new List<OCTeam>(); } OCTeamBLL oCTeamBLL = new OCTeamBLL(); List<OCTeam> octeamlist = oCTeamBLL.OCTeam_List(OCID, -1); //for (int i = 0; i < octeamlist.Count; i++) //{ // octeamlist[i].UserImgUrl = FileService.UserIMGURL(octeamlist[i].UserID); //} return octeamlist; }
public static List<OCTeam> OCTeam_List(int OCID, int Role) { OCTeamBLL octeambll = new OCTeamBLL(); List<OCTeam> octeam = octeambll.OCTeam_List(OCID, Role); return octeam; }
public static OCTeamInfo TeacherInfo(int UserID) { IES.JW.Model.User user = IES.Service.UserService.CurrentUser; if (UserID == -1) { UserID = user.UserID; } OCTeamBLL oCTeamBLL = new OCTeamBLL(); OCTeamInfo octeaminfo = new OCTeamInfo(); octeaminfo = oCTeamBLL.TeacherInfo_Get(UserID); octeaminfo.OcTeam.UserImgUrl = IES.Service.FileService.UserIMGURL(UserID); return octeaminfo; }
public static List<OCTeam> OCTeam_List(int OCID) { OCTeamBLL oCTeamBLL = new OCTeamBLL(); List<OCTeam> octeamlist = oCTeamBLL.OCTeam_List(OCID, 1); return octeamlist; }