Example #1
0
        /// <summary>
        /// This function deletes the contract details.
        /// </summary>
        /// <param name="Contract"></param>
        public bool Delete(BusinessEntities.Contract Contract)
        {
            bool result = false;

            try
            {
                //declares a dL layer object to call the Delete function.
                objContractProj = new Rave.HR.DataAccessLayer.Contracts.Contract();

                //Calls the DL function to delete the Contract deatils.
                result = objContractProj.delete(Contract);

                if (result)
                {
                    SendMailForDeleteContract(Contract);
                }
                return(result);
            }
            catch (RaveHRException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, CONTRACT, DELETE, EventIDConstants.RAVE_HR_CONTRACT_BUSNIESS_LAYER);
            }
        }
Example #2
0
 /// <summary>
 /// This Function is used get the email id.
 /// </summary>
 /// <param name="empId"></param>
 /// <returns></returns>
 public string GetEmailID(int empId)
 {
     try
     {
         objContractProj = new Rave.HR.DataAccessLayer.Contracts.Contract();
         return(objContractProj.GetEmailID(empId));
     }
     catch (RaveHRException ex)
     {
         throw ex;
     }
     catch (Exception ex)
     {
         throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, CONTRACT, GETEMAILID, EventIDConstants.RAVE_HR_CONTRACT_BUSNIESS_LAYER);
     }
 }
Example #3
0
 /// <summary>
 /// This method will fetched records for contract summary from data layer and return to presentation layer
 /// </summary>
 /// <param name="criteria"></param>
 /// <returns></returns>
 public List <BusinessEntities.Contract> GetContracts(ContractCriteria criteria)
 {
     try
     {
         //instantiate the onject of data access layer of contract class
         objContractProj = new Rave.HR.DataAccessLayer.Contracts.Contract();
         return(objContractProj.GetContracts(criteria));
     }
     catch (RaveHRException ex)
     {
         throw ex;
     }
     catch (Exception ex)
     {
         throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, CONTRACT, GETCONTRACTS, EventIDConstants.RAVE_HR_CONTRACT_BUSNIESS_LAYER);
     }
 }
Example #4
0
        //GetEmailID
        public string GetEmailIdByEmpId(int EmpId)
        {
            string result = string.Empty;

            try
            {
                //declares a dL layer object to call the Delete function.
                objContractProj = new Rave.HR.DataAccessLayer.Contracts.Contract();

                //Calls the DL function to delete the Contract deatils.
                result = objContractProj.GetEmailID(EmpId);
                return(result);
            }
            catch (RaveHRException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, CONTRACT, DELETE, EventIDConstants.RAVE_HR_CONTRACT_BUSNIESS_LAYER);
            }
        }