/// <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); }
/// <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)); }
/// <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); }
/// <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)); }