示例#1
0
 protected void btnHabilitaBusqueda_ServerClick(object sender, EventArgs e)
 {
     //Boton que habilita los parametros de busqueda
     AbstractHelp.EnabledControls(new object[] { this.DivBusqueda });
     AbstractHelp.DisabledControls(new object[] { this.DivGridView, this.btnNuevo, this.btnMostrarTodos, this.btnHabilitaBusqueda });
     this.primerIngeso = false;
 }
示例#2
0
        protected void btnBuscar_ServerClick(object sender, EventArgs e)
        {
            bool activo = chkBusqueda.Checked;

            AbstractHelp.CargarGridR(oBLLInstrumentoLegal, gvInstLegal, txtBusquedaNombre.Value, activo);
            AbstractHelp.EnabledControls(new object[] { this.DivGridView, this.btnNuevo, this.btnMostrarTodos, this.btnHabilitaBusqueda });
            AbstractHelp.DisabledControls(new object[] { this.DivBusqueda });
        }
示例#3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         AbstractHelp.CargarGridR(oBLLInstrumentoLegal, gvInstLegal, "", true);
         //gvInstLegal.DataSource = instrumentoLegalBLL.ListInstrumentoLegal();
         //gvInstLegal.DataBind();
         this.primerIngeso = true;
     }
     msgAccept.MsgBoxAnswered       += MessageAnswered;
     msgAcceptCancel.MsgBoxAnswered += MessageAnsweredAC;
 }
示例#4
0
        protected void gvInstLegal_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            chkBusqueda.Checked = this.primerIngeso;
            AbstractHelp.CargarGridR(oBLLInstrumentoLegal, gvInstLegal, txtBusquedaNombre.Value, chkBusqueda.Checked);
            gvInstLegal.SelectedIndex = -1;

            if (e.NewPageIndex >= 0)
            {
                gvInstLegal.PageIndex         = e.NewPageIndex;
                Session["PaginaActual"]       = gvInstLegal.PageIndex.ToString();
                Session["RegistrosPorPagina"] = gvInstLegal.PageSize.ToString();
                gvInstLegal.DataBind();
            }
        }
示例#5
0
 public void Remove()
 {
     if (oBLLInstrumentoLegal.IntegrityCheck(oINSTRUMENTOLEGAL))
     {
         if (oBLLInstrumentoLegal.DeletedLogical(this.oINSTRUMENTOLEGAL.idInstrumentoLegal))
         {
             AbstractHelp.CargarGridR(oBLLInstrumentoLegal, gvInstLegal, "", true);
             msgAccept.AddMessage("Se ha desactivado el registro.", Correcto);
         }
         else
         {
             msgAccept.AddMessage("El registro tiene asociado un Registro Activo.", "Instrumento Legal", Errors);
         }
     }
     else
     {
         msgAccept.AddMessage("El Registro Tiene asociado un Registro Activo.", "Instrumento Legal", Errors, false, false, string.Empty);
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadDDLTipoInstrumentoLegal();

                if (this.Accion == "Insert")
                {
                    lblTitulo.Text = "Nuevo Instrumento Legal";
                }

                if (this.Accion == "Edit")
                {
                    lblTitulo.Text = "Actualizar Instrumento Legal";
                    AbstractHelp.EnabledControls(new object[] { DivAlta });
                    LoadData();
                }
            }

            msgAccept.MsgBoxAnswered += MessageAnswered;
        }
示例#7
0
 protected void btnMostrarTodos_ServerClick(object sender, EventArgs e)
 {
     AbstractHelp.CargarGridR(oBLLInstrumentoLegal, gvInstLegal, "", true);
     this.primerIngeso = false;
 }