Example #1
0
        protected void btnAceptar_Click(object sender, EventArgs e)
        {
            int id;

            int.TryParse(ddlPeriodo.SelectedValue.ToString(), out id);
            objPeriodo.IDPeriodo = id;
            if (objDPeriodo.cerrarPeriodo(objPeriodo))
            {
                Response.Write(@"<script>alert('RESULTADO CIERRE PERIODO: CORRECTO');setTimeout(function(){window.location = '" + Request.RawUrl + @"';}, 10);</script>");
            }
            else
            {
                Response.Write("<script>window.alert('Error en el proceso');</script>");
            }
        }