Exemplo n.º 1
0
        protected void btnBuscarPauta_Click(object sender, EventArgs e)
        {
            try
            {
                var estimadoCab = Estimados.Buscar(txNroPauta.Text.Trim());

                if (estimadoCab != null)
                {
                    Response.Redirect("EstimadoAnulacionReemplazo.aspx?Estimado.RecId=" + estimadoCab.RecId.ToString(), true);
                }
                else
                {
                    lblMsg.Text = "No existe Pauta Estimada.";
                }
            }
            catch (Exception ex)
            {
                FormsHelper.MsgError(lblMsg, ex);
            }
        }
Exemplo n.º 2
0
        protected void btnBuscarEspacioPeriodo_Click(object sender, EventArgs e)
        {
            try
            {
                var estimadoCab = Estimados.Buscar((string)ucIdentifEspacio.SelectedValue, Convert.ToInt32(seAño.Value), Convert.ToInt32(seMes.Value));

                if (estimadoCab != null)
                {
                    Response.Redirect("EstimadoAnulacionReemplazo.aspx?Estimado.RecId=" + estimadoCab.RecId.ToString(), true);
                }
                else
                {
                    lblMsg.Text = "No existe Pauta Estimada.";
                }
            }
            catch (Exception ex)
            {
                FormsHelper.MsgError(lblMsg, ex);
            }
        }