Beispiel #1
0
        /// <summary>
        /// 搜索回访
        /// </summary>
        /// <param name="PageSize"></param>
        /// <param name="PageIndex"></param>
        /// <param name="CompanyId"></param>
        /// <param name="CustomerUser">被回访者</param>
        /// <param name="CallBacker">回访者</param>
        /// <param name="RecordCount"></param>
        /// <param name="PageCount"></param>
        /// <returns></returns>
        public IList <EyouSoft.Model.CompanyStructure.CustomerCallBackInfo> SearchCustomerCallBackList(EyouSoft.Model.EnumType.CompanyStructure.CallBackType CallType, int PageSize, int PageIndex, int CompanyId, string CustomerUser, string CallBacker, ref int RecordCount, ref int PageCount)
        {
            StringBuilder strWhere = new StringBuilder(" and 1=1 ");

            if (!string.IsNullOrEmpty(CustomerUser))
            {
                strWhere.AppendFormat(" and CustomerUser  like '%{0}%'", CustomerUser);
            }
            if (!string.IsNullOrEmpty(CallBacker))
            {
                strWhere.AppendFormat(" and CallBacker like '%{0}%'", CallBacker);
            }

            string filedOrder = "*";

            return(Dal.GetCustomerCallBackList(CallType, PageSize, PageIndex, CompanyId, strWhere.ToString(), filedOrder, ref RecordCount, ref PageCount));
        }
Beispiel #2
0
        /// <summary>
        /// 回访列表
        /// </summary>
        /// <param name="PageSize"></param>
        /// <param name="PageIndex"></param>
        /// <param name="CompanyId">所属公司编号</param>
        /// <param name="RecordCount"></param>
        /// <param name="PageCount"></param>
        /// <returns></returns>
        public IList <EyouSoft.Model.CompanyStructure.CustomerCallBackInfo> GetCustomerCallBackList(EyouSoft.Model.EnumType.CompanyStructure.CallBackType CallType, int PageSize, int PageIndex, int CompanyId, ref int RecordCount, ref int PageCount)
        {
            string strWhere   = string.Empty;
            string filedOrder = "*";

            return(Dal.GetCustomerCallBackList(CallType, PageSize, PageIndex, CompanyId, strWhere, filedOrder, ref RecordCount, ref PageCount));
        }