public DataSet GetTreeNodes(int userlevelId, int advisorId) { AdvisorPreferenceDao advisorPreferenceDao = new AdvisorPreferenceDao(); DataSet dsGetTreeNodes = new DataSet(); try { dsGetTreeNodes = advisorPreferenceDao.GetTreeNodes(userlevelId, advisorId); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "OnlineNCDBackOfficeBo.cs:GetTreeNodes()"); object[] objects = new object[0]; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } return(dsGetTreeNodes); }
public AdvisorPreferenceVo GetAdviserPreference(int adviserId) { AdvisorPreferenceVo advisorPreferenceVo = new AdvisorPreferenceVo(); try { AdvisorPreferenceDao advisorPreferenceDao = new AdvisorPreferenceDao(); advisorPreferenceVo = advisorPreferenceDao.GetAdviserPreference(adviserId); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "AdviserPreferenceBo.cs:GetAdviserPreference()"); object[] objects = new object[2]; objects[0] = adviserId; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } return(advisorPreferenceVo); }
public bool AdviserPreferenceSetUp(AdvisorPreferenceVo advisorPreferenceVo, int adviserId, int UserId, string strCommand) { bool isSuccess = false; try { AdvisorPreferenceDao advisorPreferenceDao = new AdvisorPreferenceDao(); isSuccess = advisorPreferenceDao.AdviserPreferenceSetUp(advisorPreferenceVo, adviserId, UserId, strCommand); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "AdviserPreferenceBo.cs:AdviserPreferenceSetUp()"); object[] objects = new object[2]; objects[0] = adviserId; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } return(isSuccess); }
//public DataSet GetUserRoleDepartmentWise(int departmentid) //{ // DataSet dsGetUserRoleDepartmentWise; // AdvisorPreferenceDao advisorPreferenceDao = new AdvisorPreferenceDao(); // dsGetUserRoleDepartmentWise = advisorPreferenceDao.GetUserRoleDepartmentWise(departmentid); // return dsGetUserRoleDepartmentWise; //} public DataTable GetUserRoleDepartmentWise(int departmentid) { AdvisorPreferenceDao advisorPreferenceDao = new AdvisorPreferenceDao(); DataTable dtGetUserRoleDepartmentWise; try { dtGetUserRoleDepartmentWise = advisorPreferenceDao.GetUserRoleDepartmentWise(departmentid); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "CommonLookupBo.cs:GetUserRoleDepartmentWise(int departmentid)"); object[] objects = new object[1]; objects[0] = departmentid; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } return(dtGetUserRoleDepartmentWise); }
public bool UpdateUserrole(int rollid, int userrole, string rolename, string purpose, int userid, string StrUserLeve) { bool blResult = false; AdvisorPreferenceDao advisorPreferenceDao = new AdvisorPreferenceDao(); try { blResult = advisorPreferenceDao.UpdateUserrole(rollid, userrole, rolename, purpose, userid, StrUserLeve); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "advisorPreferenceDao.cs:UpdateUserrole()"); object[] objects = new object[3]; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } return(blResult); }
public DataSet GetDepartment(int AdviserId) { DataSet dsGetUserRole; AdvisorPreferenceDao advisorPreferenceDao = new AdvisorPreferenceDao(); dsGetUserRole = advisorPreferenceDao.GetDepartment(AdviserId); return(dsGetUserRole); }
public DataSet GetUserRole(int adviserid) { DataSet dsGetUserRole; AdvisorPreferenceDao advisorPreferenceDao = new AdvisorPreferenceDao(); dsGetUserRole = advisorPreferenceDao.GetUserRole(adviserid); return(dsGetUserRole); }
public int RemoveTreeNodeMapping(DataTable dtSubSubTreeNodes, DataTable dtSubTreeNodes, DataTable dtTreeNodes) { try { AdvisorPreferenceDao advisorPreferenceDao = new AdvisorPreferenceDao(); return(advisorPreferenceDao.RemoveTreeNodeMapping(dtSubSubTreeNodes, dtSubTreeNodes, dtTreeNodes)); } catch (BaseApplicationException Ex) { throw Ex; } }
public int CreateOrUpdateTreeSubSubNodeMapping(DataTable dtSubSubTreeNodes, string commandType, int userId, int levelId) { try { AdvisorPreferenceDao advisorPreferenceDao = new AdvisorPreferenceDao(); return(advisorPreferenceDao.CreateOrUpdateTreeSubSubNodeMapping(dtSubSubTreeNodes, commandType, userId, levelId)); } catch (BaseApplicationException Ex) { throw Ex; } }
public bool CreateUserRole(int UserRole, string RoleName, string Purpose, int AdviserId, int UserId, string StrUserLeve) { AdvisorPreferenceDao advisorPreferenceDao = new AdvisorPreferenceDao(); bool bResult = false; try { bResult = advisorPreferenceDao.CreateUserRole(UserRole, RoleName, Purpose, AdviserId, UserId, StrUserLeve); } catch (BaseApplicationException Ex) { throw Ex; } return(bResult); }
public bool DeleteUserRole(int rollid) { bool blResult = false; AdvisorPreferenceDao advisorPreferenceDao = new AdvisorPreferenceDao(); try { //return advisorPreferenceDao.deleteTradeBusinessDate(tradeBusinessDateVo); blResult = advisorPreferenceDao.DeleteUserRole(rollid); } catch (BaseApplicationException Ex) { throw Ex; } return(blResult); }
public DataSet GetAdviserRoledepartmentwise(int roleid) { AdvisorPreferenceDao advisorPreferenceDao = new AdvisorPreferenceDao(); try { return(advisorPreferenceDao.GetAdviserRoledepartmentwise(roleid)); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "OnlineNCDBackOfficeBo.cs:GetAdviserRoledepartmentwise()"); object[] objects = new object[0]; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }