Esempio n. 1
0
    //protected void rdcTipoCampo_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
    //{

    //}

    //protected void rdcTipoCampo_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
    //{
    //    if (e.Text == "") return;
    //    RadComboBox combo = (RadComboBox)sender;
    //    combo.Items.Clear();
    //    foreach (TipoCampo tipocampo in CntLainsaSci.GetTiposCampo(e.Text, ctx))
    //    {
    //        combo.Items.Add(new RadComboBoxItem(tipocampo.Descripcion, tipocampo.TipoId.ToString()));
    //    }
    //}

    protected void rdcPlantilla_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
    {
        if (e.Text == "")
        {
            return;
        }
        RadComboBox combo = (RadComboBox)sender;

        combo.Items.Clear();
        foreach (PlantillaRevision plantilla in CntLainsaSci.GetPlantillaRevisiones(e.Text, ctx))
        {
            combo.Items.Add(new RadComboBoxItem(plantilla.Descripcion, plantilla.PlantillaId.ToString()));
        }
    }
Esempio n. 2
0
 protected void CargaPlantilla(PlantillaRevision plantilla)
 {
     if (plantilla == null)
     {
         rdcPlantilla.DataSource     = CntLainsaSci.GetPlantillaRevisiones(ctx);
         rdcPlantilla.DataTextField  = "Nombre";
         rdcPlantilla.DataValueField = "PlantillaId";
     }
     rdcPlantilla.Items.Clear();
     rdcPlantilla.Items.Add(new RadComboBoxItem(plantilla.Descripcion, plantilla.PlantillaId.ToString()));
     rdcPlantilla.SelectedValue = plantilla.PlantillaId.ToString();
     if (caller.Equals("PlantillaRevisionTab"))
     {
         ImageButton1.Enabled = false;
         rdcPlantilla.Enabled = false;
     }
 }
Esempio n. 3
0
 protected void RefreshGrid(bool rebind)
 {
     if (tipo == null)
     {
         RadGrid1.DataSource = CntLainsaSci.GetPlantillaRevisiones(usuario, ctx);
     }
     else
     {
         if (usuario == null)
         {
             RadGrid1.DataSource = tipo.PlantillaRevisions;
         }
         else
         {
             RadGrid1.DataSource = CntLainsaSci.GetPlantillaRevisiones(tipo, usuario, ctx);
         }
     }
     if (rebind)
     {
         RadGrid1.Rebind();
     }
 }