예제 #1
0
 public void update()
 {
     ProjectDAC projectDAC = new ProjectDAC();
     projectDAC.updateProject(this);
 }
예제 #2
0
 public void delete()
 {
     ProjectDAC projectDAC = new ProjectDAC();
     projectDAC.deleteProject(code);
 }
예제 #3
0
 /// <summary>
 /// Last Code Getter.
 /// Gets the last created project code.
 /// </summary>
 /// <returns>The last project code.</returns>
 public int getLastCode()
 {
     ProjectDAC projectDAC = new ProjectDAC();
     return projectDAC.lastCode();
 }
예제 #4
0
 /* ****************************************************************** */
 /* Methods                                                            */
 /* ****************************************************************** */
 public void create()
 {
     ProjectDAC projectDAC = new ProjectDAC();
     projectDAC.insertProject(this);
 }
예제 #5
0
 /// <summary>
 /// By Code Fetcher.
 /// Uses the data access component to fetch a determined
 /// project from the database using the code of the
 /// current project.
 /// </summary>
 /// <returns>The fetched project.</returns>
 public ProjectBE getByCode()
 {
     ProjectDAC projectDAC = new ProjectDAC();
     return projectDAC.getProject(this.code);
 }