/// <summary>
        /// 查看链接
        /// </summary>
        /// <param name="taskid"></param>
        /// <param name="carType"></param>
        /// <param name="source"></param>
        /// <param name="htmlstr"></param>
        /// <returns></returns>
        public string getview(string taskid, string carType, string source, string TaskStatus)
        {
            string html = "";

            if (TaskStatus == "180012")
            {
                return(taskid);
            }

            if (taskid.Length > 3 && taskid.Substring(0, 3) == "OLD")
            {
                return(taskid);
            }

            #region 查看URL

            string url = "";

            if (source == "0")//客户核实
            {
                url = "/CRMStopCust/Edit.aspx?TaskID=" + taskid;
            }
            else if (source == "-1")//其他任务
            {
                url = "/OtherTask/OtherTaskDealView.aspx?OtherTaskID=" + taskid;
            }
            else if (source == "2")
            {
                //CRM
                if (carType == "2")
                {
                    url += "/CustCheck/CrmCustCheck/SecondCarView.aspx?TID=" + taskid + "&Page=" + PagerHelper.GetCurrentPage() + "&PageSize=" + PagerHelper.GetPageSize() + "&QueryParams=&Action=view";
                }
                else
                {
                    url += "/CustCheck/CrmCustCheck/View.aspx?TID=" + taskid + "&Page=" + PagerHelper.GetCurrentPage() + "&PageSize=" + PagerHelper.GetPageSize() + "&QueryParams=&Action=view";
                }
            }
            else
            {
                //Excel
                if (carType == "2")
                {
                    url += "/CustCheck/NewCustCheck/SecondCarView.aspx?TID=" + taskid + "&Page=" + PagerHelper.GetCurrentPage() + "&PageSize=" + PagerHelper.GetPageSize() + "&QueryParams=&Action=view";
                }
                else
                {
                    url += "/CustCheck/NewCustCheck/View.aspx?TID=" + taskid + "&Page=" + PagerHelper.GetCurrentPage() + "&PageSize=" + PagerHelper.GetPageSize() + "&QueryParams=&Action=view";
                }
            }
            #endregion

            html += " <a target='_blank' href='" + url + "'>" + taskid + "</a>";

            return(html);
        }
 /// <summary>
 /// 获得请求的当前页面大小(默认为20)
 /// </summary>
 public static int GetPageSize()
 {
     return(PagerHelper.GetPageSize(20));
 }
        /// <summary>
        /// 查看链接
        /// </summary>
        /// <param name="taskid"></param>
        /// <param name="carType"></param>
        /// <param name="source"></param>
        /// <param name="htmlstr"></param>
        /// <returns></returns>
        public string getview(string taskid, string carType, string source, string TaskStatus)
        {
            string html = "";

            if (TaskStatus == "180012")
            {
                return(taskid);
            }

            #region 查看URL

            string url = "";

            if (source == "2")
            {
                //CRM
                if (carType == "2")
                {
                    url += "/CustCheck/CrmCustCheck/SecondCarView.aspx?TID=" + taskid + "&Page=" + PagerHelper.GetCurrentPage() + "&PageSize=" + PagerHelper.GetPageSize() + "&QueryParams=" + this.QueryParams + "&Action=view";
                }
                else
                {
                    url += "/CustCheck/CrmCustCheck/View.aspx?TID=" + taskid + "&Page=" + PagerHelper.GetCurrentPage() + "&PageSize=" + PagerHelper.GetPageSize() + "&QueryParams=" + this.QueryParams + "&Action=view";
                }
            }
            else
            {
                //Excel
                if (carType == "2")
                {
                    url += "/CustCheck/NewCustCheck/SecondCarView.aspx?TID=" + taskid + "&Page=" + PagerHelper.GetCurrentPage() + "&PageSize=" + PagerHelper.GetPageSize() + "&QueryParams=" + this.QueryParams + "&Action=view";
                }
                else
                {
                    url += "/CustCheck/NewCustCheck/View.aspx?TID=" + taskid + "&Page=" + PagerHelper.GetCurrentPage() + "&PageSize=" + PagerHelper.GetPageSize() + "&QueryParams=" + this.QueryParams + "&Action=view";
                }
            }
            #endregion

            html += " <a target='_blank' href='" + url + "'>" + taskid + "</a>";

            return(html);
        }