private void LlenarGrid() { PagoCTRL oInformePago = new PagoCTRL(); oInformePago.grdInformePagos = grdInformePagos; if (ddlOrdenar.SelectedValue == "0") { if (!oInformePago.LlenarGrid()) { lblError.Text = oInformePago.error; } else { lblError.Text = ""; } } else { oInformePago.parametroBusqueda = ddlValorCriterio.SelectedValue; oInformePago.parametroFechaInicial = txtFechaInicial.Text.Replace("-", ""); oInformePago.parametroFechaFinal = txtFechaFinal.Text.Replace("-", ""); if (!oInformePago.LlenarGridPorCriterio()) { lblError.Text = oInformePago.error; } else { lblError.Text = ""; } } oInformePago = null; }
private void LlenarComboClientes() { PagoCTRL oInformePago = new PagoCTRL(); oInformePago.cboCliente = ddlValorCriterio; if (oInformePago.LlenarCombo()) { lblError.Text = ""; } else { lblError.Text = oInformePago.error; } oInformePago = null; }