private void BindData() { if (!this.CurrentUserInfo.Account.Contains("dmin")) { return; } if (this.CurrentUserInfo.Sn == "319ccd97-9af5-4eaf-9316-8ef9af273915" || this.CurrentUserInfo.Sn == "5105d065-40a8-482a-baa2-5c9829cbe93f") { this.btnExport.Visible = true; } string whereString = "IsDel=0"; string key = this.txtKeywords.Text.FormatSqlParm(); if (!string.IsNullOrEmpty(key)) { whereString += string.Format(" and (UserAccount LIKE '%{0}%' or Nickname LIKE '%{0}%')", key); } if (!string.IsNullOrEmpty(this.txtPhone.Text)) { whereString += string.Format(" and Mobile LIKE '%{0}%'", this.txtPhone.Text); } int count = _dbus.RecordCount(whereString); this.NPager1.PageSize = 15; this.NPager1.RecordCount = count; DataTable dt = _dbus.Query(this.NPager1.CurrentPage, this.NPager1.PageSize, whereString, "Memo DESC"); this.list.DataSource = dt.DefaultView; this.list.DataBind(); }