示例#1
0
        public static OCTeam OCTeam_ADD(OCTeam octeam)
        {
            if (!UserService.OC_IsRole(octeam.OCID))
            {
                return null;
            }

            OCTeamBLL oCTeamBLL = new OCTeamBLL();
            return oCTeamBLL.OCTeam_ADD(octeam);
        }
示例#2
0
 public static IES.CC.OC.Model.OC OCCourse_ADD(IES.CC.OC.Model.OC OC, OCTeam octeam)
 {
     IES.JW.Model.User user = IES.Service.UserService.CurrentUser;
     OC.RowNum = user.UserID;
     OC.TemplateID = Int32.Parse(user.CurrentUserSpace);
     //新建课程的时候自己已经作为创建者添加到教学团队 不需要再作为主讲教师了
     if (user.UserID == octeam.UserID)
     {
         octeam.UserID = -1;
     }
     IES.G2S.OC.BLL.OC.OCBLL ocBLL = new IES.G2S.OC.BLL.OC.OCBLL();
     return ocBLL.OCCourse_ADD(OC, octeam);
 }
示例#3
0
 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;
 }
示例#4
0
 public static bool OCTeam_Brief_Upd(OCTeam octeam)
 {
     OCTeamBLL oCTeamBLL = new OCTeamBLL();
     return oCTeamBLL.OCTeam_Brief_Upd(octeam);
     //return true;
 }
示例#5
0
 public static bool OCTeam_IsLocked_Upd(OCTeam octeam)
 {
     OCTeamBLL oCTeamBLL = new OCTeamBLL();
     return oCTeamBLL.OCTeam_IsLocked_Upd(octeam);
 }