Exemplo n.º 1
0
        public string GetContactList(int?cus_id)
        {
            string customerJson = "";

            try
            {
                var       count = 0;
                DataTable contactTable;

                contactTable =
                    CustomerService.GetContactLsit(Session[teaCRMKeys.SESSION_USER_COMPANY_INFO_NUM].ToString(),
                                                   new string[0], 1,
                                                   10, String.Format("cus_id={0} AND con_trash=0", cus_id), "id", out count);
                LogHelper.Info("用户id为" + Session[teaCRMKeys.SESSION_USER_COMPANY_INFO_ID].ToString() +
                               "的用户获取联系人信息成功。");


                return(JSONHelper.DataTableToLigerUIList(contactTable, count));
            }
            catch (Exception ex)
            {
                LogHelper.Error("用户id为" + Session[teaCRMKeys.SESSION_USER_COMPANY_INFO_ID].ToString() +
                                "的用户获取联系人信息失败", ex);
                return("{\"Rows\":[],\"Total\":\"0\"}");
            }
        }