public List <TeamDetails> GetTeamDetails()
        {
            DAL_Team           team        = new DAL_Team();
            List <TeamDetails> teamDetails = team.GetTeamDetails();

            return(teamDetails);
        }//View Team Details
        }//View Team Details

        public SaveResponses SaveTeamMembers(TeamDetails teamDetails)
        {
            SaveResponses saveResponses = new SaveResponses();
            DAL_Team      team          = new DAL_Team();

            try
            {
                if (teamDetails.MemberList.Count > 0)
                {
                    bool saveSuccess = team.SaveTeamMembers(teamDetails);
                    if (saveSuccess)
                    {
                        saveResponses.saveStatus  = "true";
                        saveResponses.messageType = "success";
                    }
                    else
                    {
                        saveResponses.saveStatus  = "false";
                        saveResponses.messageType = "error";
                    }
                }
                else
                {
                    saveResponses.saveStatus  = "false";
                    saveResponses.messageType = "error";
                }
                return(saveResponses);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Пример #3
0
 public static bool joinTeam(string teamID, string stuID)
 {
     if (queryJoinStatus(teamID, stuID, true).IndexOf('*') != -1)
     {
         return(DAL_Team.joinTeam(teamID, stuID));
     }
     else
     {
         return(DAL_Team.joinTeam(teamID, stuID, true));
     }
 }
Пример #4
0
        public static string queryJoinStatus(string teamID, string stuID, bool returnExists = false)
        {
            string ret = DAL_Team.queryJoinStatus(teamID, stuID);

            if (ret.IndexOf('*') != -1)
            {
                if (returnExists)
                {
                    return(ret);
                }
                else
                {
                    return("未加入");
                }
            }
            return(ret);
        }
        public bool CheckSameTeam(string teamName, string userName)
        {
            DAL_Team team = new DAL_Team();

            try
            {
                if (team.CheckSameTeam(teamName, userName))
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public bool CheckTeamAvailable(TaskDetails taskDetails)
        {
            DAL_Team team = new DAL_Team();

            try
            {
                if (team.CheckTeamAvailable(taskDetails))
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Пример #7
0
 public static DataSet queryAllTeam()
 {
     return(DAL_Team.queryAllTeam());
 }
Пример #8
0
 public static bool quitTeam(string teamID, string stuID)
 {
     return(DAL_Team.quitTeam(teamID, stuID));
 }
Пример #9
0
 public static DataSet queryMember(string TeamID)
 {
     return(DAL_Team.queryMember(TeamID));
 }
Пример #10
0
 public static bool modifyTeam(Team team)
 {
     return(DAL_Team.modifyTeam(team));
 }
Пример #11
0
 public static bool deleteTeamByID(string id)
 {
     return(DAL_Team.deleteTeamByID(id));
 }