protected void ButtonSrchCompany_Click(object sender, EventArgs e) { if (TextNameCompany.Text.Trim().Length < 2) { return; } var dal = new CompanyManager(); var table = dal.SearchCompanies(this.TextNameCompany.Text); CheckResults.Items.Clear(); CheckAll.Checked = false; CheckResults.DataSource = table; CheckResults.DataTextField = table.company_nameColumn.ColumnName; CheckResults.DataValueField = table.company_nameColumn.ColumnName; CheckResults.DataBind(); Panel1.Visible = true; }
protected void ButtonSrchAlias_Click(object sender, EventArgs e) { if (TextAliasPerson.Text.Trim().Length < 2) { return; } var dal = new LinkManager(); var table = dal.GetIILByAliasSearch(TextAliasPerson.Text); CheckResults.Items.Clear(); CheckAll.Checked = false; CheckResults.DataSource = table; CheckResults.DataTextField = table.individual_aliasColumn.ColumnName; CheckResults.DataValueField = table.individual_aliasColumn.ColumnName; CheckResults.DataBind(); Panel1.Visible = true; }
protected void ButtonSrchPerson_Click(object sender, EventArgs e) { if (TextNamePerson.Text.Trim().Length < 1) { return; } var dal = new IndividualManager(); var table = dal.SearchByName(this.TextNamePerson.Text); CheckAll.Checked = false; CheckResults.Items.Clear(); CheckResults.DataSource = table; CheckResults.DataTextField = table.individual_nameColumn.ColumnName; CheckResults.DataValueField = table.individual_nameColumn.ColumnName; CheckResults.DataBind(); Panel1.Visible = true; }