Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Bom dia,
Não estou conseguindo carregar o metodo
private void supervisor_SelectedIndexChanged(object sender, System.EventArgs e)// evento que seleciona o supervisor
{
if(supervisor.SelectedValue !="")// pega o valor do codigo do supervisor
{
carregasupervisor(this.agente1);// carrega o metodo do carregalistaagente2 para o listbox do agente1
}
}
private string agentesSupervisor(string supervisor)
{
Vox.Net.Database.cDataBase db = new Vox.Net.Database.cDataBase();
// faz um select na tabela equipe_agente
string SQL="";
DataTable Dt;
SQL = "select cod_agnt from "+InstanciaQA+"equipe_agente where cod_equipe = "+supervisor;
Dt = db.criarDataTable(SQL);
for(int x = 0; x < Dt.Rows.Count;x++)
{
ListItem item = new ListItem(Dt.Rows[x][0].ToString());
}
DataSet ds = new DataSet();
return supervisor;
} Vox.Net.Database.cDataBase db = new Vox.Net.Database.cDataBase();
string SQL = "";
DataTable Dt;
SQL = "select codigo, nome_supervisor from "+InstanciaQA+"equipe where cod_usuario = "+Request.Cookies["QA"].Values["Cod_Usu"].ToString();
Dt = db.criarDataTable(SQL);
for(int x = 0; x < Dt.Rows.Count; x++)
{
ListItem item = new ListItem(Dt.Rows[x][1].ToString(),Dt.Rows[x][0].ToString());
}
Onde estou errando?
Obrigado.
Carregando comentários...