Esempio n. 1
0
        /// <summary>
        /// Method that returns all TeamHistories
        /// </summary>
        /// <returns>Return a list of teamHistories</returns>
        public List <TeamHistory> getAllTeamHistories()
        {
            List <TeamHistory> _lstTeamHistory = TeamHistoryConnection.readAllTeamHistories();

            foreach (TeamHistory _t in _lstTeamHistory)
            {
                this.returnWithoutSpaces(_t);
            }
            return(_lstTeamHistory);
        }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="_codeTeam"></param>
 /// <returns></returns>
 public List <TeamMember> getMembersInATeam(String _codeTeam)
 {
     return(TeamHistoryConnection.readTeamMembers(_codeTeam));
 }
Esempio n. 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="pNifEmployee"></param>
 /// <returns></returns>
 public TeamHistory getCurrentTeamHistoryByEmployee(String pNifEmployee, String pCodeTeam)
 {
     return(TeamHistoryConnection.getCurrentTeamHistoryByEmployee(pNifEmployee, pCodeTeam));
 }
Esempio n. 4
0
 /// <summary>
 /// Method that returns all TeamHistories by team
 /// </summary>
 /// <param name="pCodeTeam">The code team to search</param>
 /// <returns>Return a list of teamHistories</returns>
 public List <TeamHistory> getAllTeamHistoriesByTeam(String pCodeTeam)
 {
     return(TeamHistoryConnection.readAllTeamHistoriesByTeam(pCodeTeam));
 }
Esempio n. 5
0
 /// <summary>
 /// Method that deletes a TeamHistory if it exists
 /// </summary>
 /// <param name="pNif">The nif employee to delete</param>
 /// <param name="pCode">The code team to delete</param>
 /// <returns>Returns the TeamHistory if it has been remove</returns>
 public TeamHistory deleteTeamHistory(String pNif, String pCode)
 {
     return(TeamHistoryConnection.deleteTeamHistory(pNif, pCode));
 }
Esempio n. 6
0
 /// <summary>
 /// Method that updates a TeamHistory
 /// </summary>
 /// <param name="pNif">The nif employee to update</param>
 /// <param name="pCode">The code team to update</param>
 /// <param name="pEntranceDate">The entrance date to update</param>
 /// <param name="pExitDate">The exit date to update </param>
 /// <returns>Whether if the teamHistory has been correctly updated or not</returns>
 public bool updateTeamHistory(String pNif, String pCode /*, DateTime pEntranceDate*/, DateTime pExitDate)
 {
     return(TeamHistoryConnection.updateTeamHistory(pNif, pCode /*, pEntranceDate*/, pExitDate));
 }
Esempio n. 7
0
 /// <summary>
 /// Method that returns the TeamHistory if it found
 /// </summary>
 /// <param name="pNif">The nif employee to search</param>
 /// <param name="pCode">The code team to search</param>
 /// <returns>Returns the TeamHistory if it found</returns>
 public TeamHistory readTeamHistory(String pNif, String pCode)
 {
     return(TeamHistoryConnection.readTeamHistory(pNif, pCode));
 }