protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { userID = BLL.Util.GetLoginUserID(); CustInfoHelper custInfoHelper = new CustInfoHelper(); this.UCMemberDetail1.MemberInfo = custInfoHelper.GetOneMemberFromCRM(); //功能点验证逻辑 if (BLL.Util.CheckRight(userID, "SYS024BUT2201"))//客户联系人 { this.UCMemberDetail1.ListOfContact = true; } if (BLL.Util.CheckRight(userID, "SYS024BUT2202"))//合作项 { this.UCMemberDetail1.ListOfCooperationProjects = true; } if (BLL.Util.CheckRight(userID, "SYS024BUT2203"))//负责员工 { this.UCMemberDetail1.ListOfCustUser = true; } if (BLL.Util.CheckRight(userID, "SYS024BUT2204"))//访问记录 { this.UCMemberDetail1.ListOfReturnVisit = true; } if (BLL.Util.CheckRight(userID, "SYS024BUT2205"))//年检记录 { this.UCMemberDetail1.ListOfBusinessLicense = true; } if (BLL.Util.CheckRight(userID, "SYS024BUT2206"))//二手车规模 { this.UCMemberDetail1.ListOfBusinessScaleInfo = true; } if (BLL.Util.CheckRight(userID, "SYS024BUT2207"))//任务记录 { this.UCMemberDetail1.ListOfTaskRecord = true; } if (BLL.Util.CheckRight(userID, "SYS024BUT2208"))//品牌授权书 { this.UCMemberDetail1.ListOfBusinessBrandLicense = true; } if (BLL.Util.CheckRight(userID, "SYS024BUT2213"))//工单 { this.UCMemberDetail1.ListOfWorkOrder = true; } this.UCMemberDetail1.MemberInfoHref = "/CustCheck/CrmCustSearch/MemberDetail.aspx"; this.UCMemberDetail1.CustInfoHref = "/CustCheck/CrmCustSearch/CustDetail.aspx"; } } catch (Exception ex) { //日志 } }
private void BindMemberControls() { //获得所有会员,加载 CustInfoHelper h = new CustInfoHelper(); if (!string.IsNullOrEmpty(h.TID)) { Control ctl = this.LoadControl("~/CustInfo/EditVWithCalling/UCEditCstMember.ascx", h.TID); this.PlaceHolder.Controls.Add(ctl); } }
private void BindMemberControls() { //获得所有会员,加载 CustInfoHelper h = new CustInfoHelper(); //int tid = -1; //if (int.TryParse(h.TID, out tid)) //{ Control ctl = this.LoadControl("~/CustInfo/EditVWithCalling/UCEditMember.ascx", h.TID); this.PlaceHolder.Controls.Add(ctl); // } }
protected void Page_Load(object sender, EventArgs e) { CustInfoHelper ch = new CustInfoHelper(); this.custID = ch.CustID; //查询 int totalCount = 0; string where = "and CustID='" + this.CustID + "'"; DataTable table = BitAuto.YanFa.Crm2009.BLL.CustUserMappingLog.Instance.GetCustUserMappingLog(where, "BeginTime DESC", ch.CurrentPage, PageSize, out totalCount); //设置数据源 if (table != null && table.Rows.Count > 0) { repeater.DataSource = table; } //绑定列表数据 repeater.DataBind(); //分页控件 AjaxPager_CUMLog.PageSize = 5; AjaxPager_CUMLog.InitPager(totalCount); }
private void BindData() { CustInfoHelper ch = new CustInfoHelper(); this.custID = ch.CustID; //查询 int totalCount = 0; BitAuto.YanFa.Crm2009.Entities.QueryCustUserMapping qcum = new BitAuto.YanFa.Crm2009.Entities.QueryCustUserMapping(); qcum.CustID = ch.CustID; DataTable table = BitAuto.YanFa.Crm2009.BLL.CustUserMapping.Instance.GetCustUserMapping(qcum, "CreateTime DESC", ch.CurrentPage, PageSize, out totalCount); //设置数据源 if (table != null && table.Rows.Count > 0) { this.repeater_CUM.DataSource = table; } //绑定列表数据 this.repeater_CUM.DataBind(); //分页控件 AjaxPager_CUM.PageSize = 5; AjaxPager_CUM.InitPager(totalCount); }