Ejemplo n.º 1
0
        /// <summary>
        /// 查询业务员对应客户列表
        /// </summary>
        /// <param name="salerCode"></param>
        /// <returns></returns>
        public static List <SalerRelationEntity> GetSalerCustomerBySalerCode(string salerCode)
        {
            List <SalerRelationEntity> listSalerRelation = new List <SalerRelationEntity>();
            SalerRepository            mr        = new SalerRepository();
            List <SalerRelation>       listSaler = mr.GetSalerCustomerBySalerCode(salerCode);

            if (listSaler != null && listSaler.Count > 0)
            {
                foreach (SalerRelation info in listSaler)
                {
                    listSalerRelation.Add(TranslateSalerRelation(info));
                }
            }
            return(listSalerRelation);
        }