예제 #1
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 });
        }
예제 #2
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;
 }
예제 #3
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();
            }
        }
예제 #4
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);
     }
 }
예제 #5
0
 protected void btnMostrarTodos_ServerClick(object sender, EventArgs e)
 {
     AbstractHelp.CargarGridR(oBLLInstrumentoLegal, gvInstLegal, "", true);
     this.primerIngeso = false;
 }