示例#1
0
        private void ListadoDocumentosPendientesCobroClientes()
        {
            int vEstado = 1;

            if (chBorrador.Checked)
            {
                vEstado = 3;
            }
            int idCliente = int.Parse(hIdCliente.Value);

            if (txtFechaInicio.Text == "")
            {
                txtFechaInicio.Text = DateTime.Today.AddYears(-1).ToShortDateString();
            }
            FechaDesde = txtFechaInicio.Text;

            if (txtFechaFinal.Text == "")
            {
                txtFechaFinal.Text = DateTime.Today.ToShortDateString();
            }
            FechaHasta = txtFechaFinal.Text;

            GestorPreciosApp documentos = new GestorPreciosApp();

            documentos.ActualizarMontosDocumentos(idCliente, FechaDesde, FechaHasta);
            GVlistaCobrar.DataSource = documentos.ListaDocumentosPendientesCobrar(idCliente, FechaDesde, FechaHasta, vEstado);
            //GVlistaCobrar.DataSource = NorthwindData.GetAllProduct();
            GVlistaCobrar.DataBind();
        }