Exemple #1
0
        /// <summary>
        /// Carico i gruppi nella Combo
        /// </summary>
        private void LoadGruppo()
        {
            string Progetto = "";

            if (Request.QueryString["VarApp"] != null)
            {
                Progetto = Request.QueryString["VarApp"];
            }

            Classi.ClassiAnagrafiche.Richiedenti_tipo _Richiedenti = new TheSite.Classi.ClassiAnagrafiche.Richiedenti_tipo();
            DataSet Ds = _Richiedenti.GetAllAddProg(Progetto).Copy();

            //Carico il combo del Gruppo
            this.S_cbgruppo.DataSource = Classi.GestoreDropDownList.ItemBlankDataSource(
                Ds.Tables[0], "descrizione", "id", "Selezionare un Gruppo", "0");
            this.S_cbgruppo.DataTextField  = "descrizione";
            this.S_cbgruppo.DataValueField = "id";
            this.S_cbgruppo.DataBind();
        }
Exemple #2
0
        public void BindGruppo(string id_tipo)
        {
            this.cmbsGruppo.Items.Clear();
            Classi.ClassiAnagrafiche.Richiedenti_tipo _Richiedenti = new TheSite.Classi.ClassiAnagrafiche.Richiedenti_tipo();

            DataSet _MyDs = _Richiedenti.GetAllAddProg(Progetto).Copy();

            if (_MyDs.Tables[0].Rows.Count > 0)
            {
                this.cmbsGruppo.DataSource = Classi.GestoreDropDownList.ItemBlankDataSource(
                    _MyDs.Tables[0], "descrizione", "id", "- - - - - - -", "0");
                this.cmbsGruppo.DataTextField  = "descrizione";
                this.cmbsGruppo.DataValueField = "id";
//				if(id_tipo!="")
//					this.cmbsGruppo.SelectedValue=id_tipo;
                this.cmbsGruppo.DataBind();
            }
            else
            {
                string s_Messagggio = "- Nessun Gruppo -";
                this.cmbsGruppo.Items.Add(Classi.GestoreDropDownList.ItemMessaggio(s_Messagggio, String.Empty));
            }
        }