/// <summary> /// /// </summary> /// <param name="customerName"></param> /// <param name="rmId"></param> /// <returns></returns> public List <CustomerVo> GetCustomerList(string customerName, int rmId) { List <CustomerVo> customerList = null; AdvisorStaffDao advisorStaffDao = new AdvisorStaffDao(); try { customerList = advisorStaffDao.GetCustomerList(customerName, rmId); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "AdvisorStaffBo.cs:GetCustomerList()"); object[] objects = new object[1]; objects[0] = rmId; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } return(customerList); }
/// <summary> /// /// </summary> /// <param name="rmId"></param> /// <param name="Flag"></param> /// <returns></returns> public int GetCustomerList(int rmId, string Flag) { AdvisorStaffDao advisorStaffDao = new AdvisorStaffDao(); int rowCount = 0; try { rowCount = advisorStaffDao.GetCustomerList(rmId, Flag); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "AdvisorStaffBo.cs:GetCustomerList()"); object[] objects = new object[1]; objects[0] = rmId; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } return(rowCount); }
/// <summary> /// /// </summary> /// <param name="rmId"></param> /// <param name="currentPage"></param> /// <param name="count"></param> /// <param name="sortExpression"></param> /// <param name="nameFilter"></param> /// <param name="areaFilter"></param> /// <param name="pincodeFilter"></param> /// <param name="parentFilter"></param> /// <param name="cityFilter"></param> /// <param name="genDictParent"></param> /// <param name="genDictCity"></param> /// <returns></returns> public List <CustomerVo> GetCustomerList(int rmId, int currentPage, out int count, string sortExpression, string nameFilter, string areaFilter, string pincodeFilter, string parentFilter, string cityFilter, string active, out Dictionary <string, string> genDictParent, out Dictionary <string, string> genDictCity) { List <CustomerVo> customerList = null; AdvisorStaffDao advisorStaffDao = new AdvisorStaffDao(); genDictParent = new Dictionary <string, string>(); genDictCity = new Dictionary <string, string>(); try { customerList = advisorStaffDao.GetCustomerList(rmId, currentPage, out count, sortExpression, nameFilter, areaFilter, pincodeFilter, parentFilter, cityFilter, active, out genDictParent, out genDictCity); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "AdvisorStaffBo.cs:GetCustomerList()"); object[] objects = new object[1]; objects[0] = rmId; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } return(customerList); }