/// <summary>
 /// Procedura sterge o carte de identitate
 /// </summary>
 public void DeleteCarteIdentitate()
 {
     Salaries.Data.IstoricCartiIdentitate ci = new Salaries.Data.IstoricCartiIdentitate(settings.ConnectionString);
     ci.DeleteCarteIdentitate(carteIdentitateId);
 }
 /// <summary>
 /// Verifica daca este activa o carte de identitate.
 /// </summary>
 /// <returns>true daca este activa, false altfel</returns>
 /// <remarks>
 /// Autor: Cristina Raluca Muntean
 /// Data: 26.05.2006
 /// </remarks>
 public bool CheckIfIsCarteIdentitateActiva()
 {
     Salaries.Data.IstoricCartiIdentitate ci = new Salaries.Data.IstoricCartiIdentitate(settings.ConnectionString);
     return(ci.CheckIfIsCarteIdentitateActiva(carteIdentitateId));
 }
 /// <summary>
 /// Procedura actualizeaza o carte de identitate
 /// </summary>
 /// <returns>Returneaza true daca s-a facut adaugarea si false altfel</returns>
 public bool UpdateCarteIdentitate()
 {
     Salaries.Data.IstoricCartiIdentitate ci = new Salaries.Data.IstoricCartiIdentitate(settings.ConnectionString);
     return(ci.UpdateCarteIdentitate(carteIdentitateId, angajatId, cnp, cnpAnterior, serie, numar, eliberatDe, dataEliberarii, valabilPanaLa, activ));
 }
 /// <summary>
 /// Procedura selecteaza cartile de identitate ale unui angajat
 /// </summary>
 /// <returns>Returneaza un DataSet care contine cartile de identitate ale angajatului</returns>
 public DataSet LoadIstoricCartiIdentitate()
 {
     Salaries.Data.IstoricCartiIdentitate ci = new Salaries.Data.IstoricCartiIdentitate(settings.ConnectionString);
     return(ci.LoadIstoricCartiIdentitate(angajatId));
 }