Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void cmdPesquisar_Click(object sender, EventArgs e)
- {
- ClienteNE clienteNE = new ClienteNE();
- Cliente cliente = new Cliente();
- string valorBusca = txtPesquisar.Text;
- if (valorBusca != string.Empty)
- {
- bool isnumeric = Information.IsNumeric(valorBusca);
- if (isnumeric)
- {
- if (valorBusca.Length == 11 || valorBusca.Length == 14)
- {
- cliente.cpf = valorBusca;
- /*
- AQUI COMO EXIBIR O RESULTADO NO GRID
- AXO QUE SERIA ALGO +/- ASSIM
- */
- ObjectDataSource.Parametro = clienteNE.ListaCliente(cliente,idEmpresa);
- }
- else
- {
- ScriptManager.RegisterClientScriptBlock(this, typeof(Page), "msgbox", "alert('CPF/CNPJ Invalido')", true);
- }
- }
- else
- {
- cliente.razaoSocail = valorBusca;
- /*
- AQUI COMO EXIBIR O RESULTADO NO GRID
- AXO QUE SERIA ALGO +/- ASSIM
- */
- ObjectDataSource.Parametro = clienteNE.ListaCliente(cliente,idEmpresa);
- }
- cmdTodosClientes.CssClass = "button small orange";
- }
- else
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement