protected void btnLocalizar_Click(object sender, EventArgs e) { SGSServico objSGSServico = new SGSServico(); ProcedimentosDTO = new ProcedimentosDTO(); if (ddlAssistido.SelectedValue == "Selecione") { ProcedimentosDTO.AssistidoValor = null; } else { ProcedimentosDTO.AssistidoValor = Convert.ToInt32(ddlAssistido.SelectedValue); } if (txtDataMarcada.Text == "") { ProcedimentosDTO.DataMarcadaValor = null; } else { ProcedimentosDTO.DataMarcadaValor = Convert.ToDateTime(txtDataMarcada.Text); } ProcedimentosDTO = objSGSServico.ConsultarProcedimentos(ProcedimentosDTO); GridProcedimentosDataSource = ProcedimentosDTO.ProcedimentosAssistidoDTOLista; }