/// <summary> /// Procedura selecteaza toate contrele de cost /// </summary> /// <returns>Returneaza un DataSet care contine aceste centre de cost</returns> public DataSet LoadInfoCentreCost() { Salaries.Data.AdminCentreCost centruCost = new Salaries.Data.AdminCentreCost(settings.ConnectionString); return(centruCost.LoadInfoCentreCost()); }
/// <summary> /// Procedura actualizeaza un centru de cost /// </summary>s public void UpdateCentruCost() { Salaries.Data.AdminCentreCost centruCost = new Salaries.Data.AdminCentreCost(settings.ConnectionString); centruCost.UpdateCentruCost(centruCostId, cod, nume, descriere); }
/// <summary> /// Procedura determina centrul de cost al unui departament /// </summary> /// <param name="departamentId">Id-ul departamentului pentru care se determina centrul de cost</param> /// <returns>Returneaza id-ul centrului de cost corespunzator departamentului</returns> public int GetCentruCostPentruDepartament(int departamentId) { Salaries.Data.AdminCentreCost centruCost = new Salaries.Data.AdminCentreCost(settings.ConnectionString); return(centruCost.GetCentruCostPentruDepartament(departamentId)); }
/// <summary> /// Procedura verifica sa nu se creeze duplicate la daugare sau modificare in tabela CentreCost /// </summary> /// <returns>Returneaza true daca se poate face adaugare/modificare si false altfel</returns> public bool CheckIfCentruCostCanBeAdded() { Salaries.Data.AdminCentreCost centruCost = new Salaries.Data.AdminCentreCost(settings.ConnectionString); return(centruCost.CheckIfCentruCostCanBeAdded(centruCostId, cod)); }
/// <summary> /// Procedura verifica daca un centru de cost se poate sterge /// </summary> /// <returns>Returneaza rezultatul verificarii</returns> public int CheckIfCentruCostCanBeDeleted() { Salaries.Data.AdminCentreCost centruCost = new Salaries.Data.AdminCentreCost(settings.ConnectionString); return(centruCost.CheckIfCentruCostCanBeDeleted(centruCostId)); }
/// <summary> /// Procedura selecteaza un centru de cost /// </summary> /// <returns>Returneaza un DataSet care contine datele despre un centru de cost</returns> public DataSet GetCentruCostInfo() { Salaries.Data.AdminCentreCost centruCost = new Salaries.Data.AdminCentreCost(settings.ConnectionString); return(centruCost.GetCentruCostInfo(centruCostId)); }
/// <summary> /// Procedura sterge un centru de cost /// </summary> public void DeleteCentruCost() { Salaries.Data.AdminCentreCost centruCost = new Salaries.Data.AdminCentreCost(settings.ConnectionString); centruCost.DeleteCentruCost(centruCostId); }