private void DataBinds()
        {
            int totalCount = 0;


            if (!string.IsNullOrEmpty(CustName))
            {
                BitAuto.YanFa.Crm2009.Entities.QueryCustInfo query = new YanFa.Crm2009.Entities.QueryCustInfo();
                if (CustName != "")
                {
                    query.CustName = CustName;
                }
                if (NeedPageLoad == "1")
                {
                    DataTable dt = BitAuto.YanFa.Crm2009.BLL.CustInfo.Instance.GetCustInfo(query, "",
                                                                                           PageCommon.Instance.PageIndex, PageSize, out totalCount);
                    if (dt != null && dt.Rows.Count > 0)
                    {
                        repterFriendCustMappingList.DataSource = dt;
                        repterFriendCustMappingList.DataBind();
                    }
                    litPagerDown.Text = PageCommon.Instance.LinkStringByPost(GetWhere(), GroupLength, totalCount,
                                                                             PageSize, PageCommon.Instance.PageIndex, 1);
                }
            }
        }
        private void CustUserBind()
        {
            int totalCount = 0;

            if (!string.IsNullOrEmpty(CrmCustID))
            {
                BitAuto.YanFa.Crm2009.Entities.QueryCustInfo mode = new YanFa.Crm2009.Entities.QueryCustInfo();
                mode.CustID = CrmCustID;
                DataTable dt = BitAuto.YanFa.Crm2009.BLL.CustInfo.Instance.GetCustInfo(mode, "", BLL.PageCommon.Instance.PageIndex, 10, out totalCount);
                rptUser.DataSource = dt;
                rptUser.DataBind();
                litPagerDown.Text = BLL.PageCommon.Instance.LinkStringByPost(BLL.Util.GetUrl(), 10, totalCount, 10, BLL.PageCommon.Instance.PageIndex, 3);
            }
            else
            {
                BitAuto.YanFa.Crm2009.Entities.QueryCustInfo mode = new YanFa.Crm2009.Entities.QueryCustInfo();
                mode.CustName = UserName;
                DataTable dt = BitAuto.YanFa.Crm2009.BLL.CustInfo.Instance.GetCustInfo(mode, "", BLL.PageCommon.Instance.PageIndex, 10, out totalCount);
                rptUser.DataSource = dt;
                rptUser.DataBind();
                litPagerDown.Text = BLL.PageCommon.Instance.LinkStringByPost(BLL.Util.GetUrl(), 10, totalCount, 10, BLL.PageCommon.Instance.PageIndex, 3);
            }
        }