"Error" when loading data

2

I have a screen whose given "Reference Date" field receives the next available date from a file, following the dates that are in the database.

On the side of the field I have a "calendar" icon which when triggered should load the calendar.

Well, I do not know what's happening, it does not return the next date and it does not load the calendar, I'm not seeing errors in the code.

"Reference Date" > txtDataArchive

Periodicity Check and date="CheckDataAvailable (ds)"

Calendar action > "dpbDataArchive"

    if (ds.Tables[0].Rows[0]["DATELASTARCHIVE"] != DBNull.Value && ds.Tables[0].Rows[0]

     ["PERIODICIDADE"].ToString().Equals("0"))
        {
            this.txtDataArchive.Visible = false;

            this.dpbDataArchive.Visible = false;

            this.ddlDataPub.Visible = true;

            VerificaDataDisponivel(ds);
        }


  //Método VerificaDataDisponivel(ds)

   DataTable dtDataDisponivel = new DataTable("DataDisponivel");

        dtDataDisponivel.Columns.AddRange(new System.Data.DataColumn[] {new DataColumn("COD_DATA"), new DataColumn("DSC_DATA")});

        DataRow drData = null;
        bool flgFimCalendario = false;

        //Verify the possible dates 
        BO.Feriado feriado = new BO.Feriado();
        DataSet dsQuantArquPasta = BO.Pasta.BuscarQuantidadeArquivoPasta(this.CodPasta);

        DateTime dtul = DateTime.MinValue;
        //DateTime dtfimperio = DateTime.MinValue;

        int tipoPeriodicidade = Convert.ToInt32(ds.Tables[0].Rows[0]["TipoPeriodicidade"]);

        if(ds.Tables[0].Rows[0]["DATELASTARCHIVE"] != DBNull.Value)
        {
            dtul = (DateTime)ds.Tables[0].Rows[0]["DATELASTARCHIVE"];
        }
    
asked by anonymous 21.04.2015 / 16:57

0 answers