Esempio n. 1
0
 /// <summary>
 /// Procedura actualizeaza un departament
 /// </summary>
 public void UpdateDepartament()
 {
     Salaries.Data.IstoricDepartament istDept = new Salaries.Data.IstoricDepartament(settings.ConnectionString);
     istDept.UpdateDepartament(angajatId, departamentId, dataStartNoua, dataStartVeche);
 }
Esempio n. 2
0
 /// <summary>
 /// Procedura selecteaza departamentele unui angajat
 /// </summary>
 /// <returns>Returneaza un DataSet care contine departamentele</returns>
 public DataSet LoadIstoricDepartament()
 {
     Salaries.Data.IstoricDepartament istDept = new Salaries.Data.IstoricDepartament(settings.ConnectionString);
     return(istDept.LoadIstoricDepartament(angajatId));
 }
Esempio n. 3
0
 /// <summary>
 /// Procedura adauga un departament pentru un angajat
 /// </summary>
 public void InsertDepartament()
 {
     Salaries.Data.IstoricDepartament istDept = new Salaries.Data.IstoricDepartament(settings.ConnectionString);
     istDept.InsertDepartament(angajatId, departamentId, dataStartNoua);
 }
Esempio n. 4
0
 /// <summary>
 /// Procedura verifica daca in tabela IstoricAngajatDepartament mai exista un departament adaugat pentru aceeasi data
 /// </summary>
 /// <returns>true daca se poate adauga o noua inregistrare si false altfel</returns>
 public bool CheckIfDepartamentCanBeAdded()
 {
     Salaries.Data.IstoricDepartament istDept = new Salaries.Data.IstoricDepartament(settings.ConnectionString);
     return(istDept.CheckIfDepartamentCanBeAdded(angajatId, dataStartNoua));
 }