/// <summary> /// Gets master data such as ProjectStatus, MRFStatus etc. /// </summary> /// <returns>List</returns> public List <BusinessEntities.Master> GetMasterData(string Category) { try { Rave.HR.DataAccessLayer.Common.Master masterData = new Rave.HR.DataAccessLayer.Common.Master(); DataTable dtMasterData = new DataTable(); dtMasterData = masterData.FillDropDownList(Category); List <BusinessEntities.Master> listMasterData = new List <BusinessEntities.Master>(); BusinessEntities.Master fetchMasterData = null; foreach (DataRow drMasterData in dtMasterData.Rows) { fetchMasterData = new BusinessEntities.Master(); fetchMasterData.MasterId = int.Parse(drMasterData["MasterID"].ToString()); fetchMasterData.MasterName = drMasterData["MasterName"].ToString(); listMasterData.Add(fetchMasterData); } return(listMasterData); } catch (RaveHRException ex) { throw ex; } catch (Exception ex) { throw ex; //throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, "RaveHRMaster.cs", "GetMasterData"); } }
//Siddhesh Arekar Issue ID : 55884 Closure Type /// <summary> /// Get Master Type Details /// </summary> /// <param name="category"></param> /// <returns>string</returns> public KeyValue <string> GetMasterTypeDetails(int categoryId, string key) { try { BusinessEntities.RaveHRCollection raveHRCollection = new BusinessEntities.RaveHRCollection(); Rave.HR.DataAccessLayer.Common.Master master = new Rave.HR.DataAccessLayer.Common.Master(); return(master.GetMasterTypeDetails(categoryId, key)); } catch (RaveHRException ex) { throw ex; } }
//Ishwar Patil : Trainging Module 29/04/2014 : End // Ishwar NISRMS 13032015 Start public BusinessEntities.RaveHRCollection FillDropDownsBLForStatus(int categoryId) { try { BusinessEntities.RaveHRCollection raveHRCollection = new BusinessEntities.RaveHRCollection(); Rave.HR.DataAccessLayer.Common.Master master = new Rave.HR.DataAccessLayer.Common.Master(); raveHRCollection = master.FillDropDownsDLForStatus(categoryId); return(raveHRCollection); } catch (RaveHRException ex) { throw ex; } }
/// <summary> /// Added by Kanchan for the requirment specified in the Discussion with Sawita Kamath and Gaurav Thakkar. /// Requirment raised: /// Gives the emailId for the employee whose Employee id is supplied. /// </summary> /// <param name="empId"></param> /// <returns></returns> public string GetEmailID(int empId) { try { Rave.HR.DataAccessLayer.Common.Master master = new Rave.HR.DataAccessLayer.Common.Master(); return(master.getEmployeeEmailID(empId)); } catch (RaveHRException ex) { throw ex; } catch (Exception ex) { throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, "master", "GetEmailID", EventIDConstants.RAVE_HR_MASTER_BUSINESS_ACCESS_LAYER); } }
/// <summary> /// Master data for GetClientName dropdown /// </summary> /// <returns>Collection</returns> public BusinessEntities.RaveHRCollection GetClientNameBL() { try { // initialise Collection class object BusinessEntities.RaveHRCollection raveHRCollection = new BusinessEntities.RaveHRCollection(); // Initialise Data Layer object Rave.HR.DataAccessLayer.Common.Master master = new Rave.HR.DataAccessLayer.Common.Master(); // call the Data layer Method raveHRCollection = master.GetClientNameDL(); //return the Collection return(raveHRCollection); } catch (RaveHRException ex) { throw ex; } }
// Mohamed : NIS-RMS : 29/12/2014 : Starts // Desc : Show Departement for which the person is eligible /// <summary> /// Master data for Department dropdown /// </summary> /// <returns>Collection</returns> public BusinessEntities.RaveHRCollection FillEligibleDepartmentDropDownBL(string strCurrentUser) { try { // initialise Collection class object BusinessEntities.RaveHRCollection raveHRCollection = new BusinessEntities.RaveHRCollection(); // Initialise Data Layer object Rave.HR.DataAccessLayer.Common.Master master = new Rave.HR.DataAccessLayer.Common.Master(); // call the Data layer Method raveHRCollection = master.FillEligibleDepartmentDropDownDL(strCurrentUser); //return the Collection return(raveHRCollection); } catch (RaveHRException ex) { throw ex; } }
/// <summary> /// Gets Employee ID. /// </summary> /// <returns>List</returns> public int GetLoggedInUserID(string EmailId) { int employeeID; try { Rave.HR.DataAccessLayer.Common.Master getEmployeeID = new Rave.HR.DataAccessLayer.Common.Master(); employeeID = getEmployeeID.GetEmployeeID(EmailId); return(employeeID); } catch (RaveHRException ex) { throw ex; } catch (Exception ex) { throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, "RaveHRProjects.cs", "getProjectName", EventIDConstants.RAVE_HR_PROJECTS_BUSNIESS_LAYER); } //return Con_Obj; }
/// <summary> /// Get_s the client abbrivation. /// </summary> /// <param name="MasterId">The master id.</param> /// <returns></returns> public string Get_ClientAbbrivation(int MasterId) { string sname = string.Empty; try { Rave.HR.DataAccessLayer.Common.Master masterData = new Rave.HR.DataAccessLayer.Common.Master(); DataTable dtMasterData = new DataTable(); sname = masterData.Get_ClientAbbrivation(MasterId); } catch (RaveHRException ex) { throw ex; } catch (Exception ex) { throw ex; //throw new RaveHRException(ex.Message, ex, Sources.BusinessLayer, "RaveHRMaster.cs", "GetMasterData"); } return(sname); }