Esempio n. 1
0
        public static List <OCTeam> OCTeam_List(int OCID)
        {
            OCTeamBLL     oCTeamBLL  = new OCTeamBLL();
            List <OCTeam> octeamlist = oCTeamBLL.OCTeam_List(OCID, 1);

            return(octeamlist);
        }
Esempio n. 2
0
        public static List <OCTeam> OCTeam_List(int OCID, int Role)
        {
            OCTeamBLL     octeambll = new OCTeamBLL();
            List <OCTeam> octeam    = octeambll.OCTeam_List(OCID, Role);

            return(octeam);
        }
Esempio n. 3
0
        public static bool OCTeam_Brief_Upd(OCTeam octeam)
        {
            OCTeamBLL oCTeamBLL = new OCTeamBLL();

            return(oCTeamBLL.OCTeam_Brief_Upd(octeam));
            //return true;
        }
Esempio n. 4
0
 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);
 }
Esempio n. 5
0
        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);
        }
Esempio n. 6
0
        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));
        }
Esempio n. 7
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);
        }
Esempio n. 8
0
        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);
        }
Esempio n. 9
0
        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));
        }
Esempio n. 10
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;
        }
Esempio n. 11
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));
        }
Esempio n. 12
0
        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);
        }
Esempio n. 13
0
 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;
 }
Esempio n. 14
0
        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);
        }
Esempio n. 15
0
 public static bool OCTeam_IsLocked_Upd(OCTeam octeam)
 {
     OCTeamBLL oCTeamBLL = new OCTeamBLL();
     return oCTeamBLL.OCTeam_IsLocked_Upd(octeam);
 }
Esempio n. 16
0
 public static bool OCTeam_Brief_Upd(OCTeam octeam)
 {
     OCTeamBLL oCTeamBLL = new OCTeamBLL();
     return oCTeamBLL.OCTeam_Brief_Upd(octeam);
     //return true;
 }
Esempio n. 17
0
        public static bool OCTeam_IsLocked_Upd(OCTeam octeam)
        {
            OCTeamBLL oCTeamBLL = new OCTeamBLL();

            return(oCTeamBLL.OCTeam_IsLocked_Upd(octeam));
        }
Esempio n. 18
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;
 }
Esempio n. 19
0
        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;
        }
Esempio n. 20
0
 public static List<OCTeam> OCTeam_List(int OCID, int Role)
 {
     OCTeamBLL octeambll = new OCTeamBLL();
     List<OCTeam> octeam = octeambll.OCTeam_List(OCID, Role);
     return octeam;
 }
Esempio n. 21
0
 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;
 }
Esempio n. 22
0
 public static List<OCTeam> OCTeam_List(int OCID)
 {
     OCTeamBLL oCTeamBLL = new OCTeamBLL();
     List<OCTeam> octeamlist = oCTeamBLL.OCTeam_List(OCID, 1);
     return octeamlist;
 }