Example #1
0
 /// <summary>
 /// Procedura determina secretarele departamentelor
 /// </summary>
 /// <returns>Returneaza un DataSet care contine datele respective</returns>
 public DataSet GetSecretaraPentruDepartament()
 {
     Salaries.Data.AdminDepartament departament = new Salaries.Data.AdminDepartament(settings.ConnectionString);
     return(departament.GetSecretaraPentruDepartament());
 }
Example #2
0
 // Autor: Lungu Andreea
 // Data: 02.11.2007
 /// <summary>
 /// Procedura determina toate datele despre toate departamentele.
 /// </summary>
 /// <returns> Returneaza un DataSet care contine toate departamentele.</returns>
 public DataSet GetAllDepartamente()
 {
     Salaries.Data.AdminDepartament departament = new Salaries.Data.AdminDepartament(settings.ConnectionString);
     return(departament.GetAllDepartamente());
 }
Example #3
0
 /// <summary>
 /// Procedura verifica daca se poate face adaugare/modificare in tabela Departamente fara a se crea duplicate
 /// </summary>
 /// <returns>Returneaza true daca se poate face adaugare/modificare si false altfel</returns>
 public bool CheckIfAdminDepartamentCanBeAdded()
 {
     Salaries.Data.AdminDepartament departament = new Salaries.Data.AdminDepartament(settings.ConnectionString);
     return(departament.CheckIfAdminDepartamentCanBeAdded(departamentId, centruCostId, denumire, deptParinte));
 }
Example #4
0
 /// <summary>
 /// Procedura verifica daca un departament poate fi sters
 /// </summary>
 /// <returns>Returneaza rezultatul verificarii daca departamentul poate fi sters
 /// 0 - se poate sterge
 /// 1 - este asociat unor angajati
 /// 2 - este departament parinte
 /// 3 - este ultimul din lista
 /// </returns>
 /// <remarks>
 /// Modificat:	Oprescu Claudia
 /// Data:		27.02.2007
 /// </remarks>
 public int CheckIfDepartamentCanBeDeleted()
 {
     Salaries.Data.AdminDepartament departament = new Salaries.Data.AdminDepartament(settings.ConnectionString);
     return(departament.CheckIfDepartamentCanBeDeleted(departamentId));
 }
Example #5
0
 /// <summary>
 /// Procedura sterge un departament
 /// </summary>
 public void DeleteDepartament()
 {
     Salaries.Data.AdminDepartament departament = new Salaries.Data.AdminDepartament(settings.ConnectionString);
     departament.DeleteDepartament(departamentId);
 }
Example #6
0
 /// <summary>
 /// Procedura modifica un departament
 /// </summary>
 public void UpdateDepartament()
 {
     Salaries.Data.AdminDepartament departament = new Salaries.Data.AdminDepartament(settings.ConnectionString);
     departament.UpdateDepartament(departamentId, denumire, centruCostId, sefId, inlocSefId, secretariat, deptParinte);
 }
Example #7
0
 /// <summary>
 /// Procedura determina toate datele despre departamentele cu un anumit parinte
 /// </summary>
 /// <returns>Returneaza un DataSet care contine toate subdepartamentele unui departament parinte</returns>
 public DataSet LoadInfoDepartamente()
 {
     Salaries.Data.AdminDepartament departament = new Salaries.Data.AdminDepartament(settings.ConnectionString);
     return(departament.LoadInfoDepartamente(deptParinte));
 }