string retorno = "CodOrdemServico = CodOrdemServico ";
if (codigo.Length > 0)
{
retorno += String.Format("AND codRemessaEnvio = '{0}'", codigo);
}
if (cliente.Length > 0)
{
//Retorno += "AND codCliente = '" + cliente + "'";
retorno += String.Format("AND Cliente LIKE '%{0}%'", cliente);
}
if (status.Length > 0)
{
retorno += "AND codStatusOrdemServico = '" + status + "'";
}
if (cnpj.Length > 0)