protected void Page_Load(object sender, EventArgs e) { GSB.Cmedicaments omedicaments = GSB.Cmedicaments.getInstance(); foreach (GSB.Cmedicament oMedicament in omedicaments.oCollmedicament) { ddMedicament.Items.Add(oMedicament.MED_NOMCOMMERCIAL); } }
protected void ddMedicament_SelectedIndexChanged(object sender, EventArgs e) { string name = ddMedicament.SelectedValue.ToString(); GSB.Cmedicaments omedicaments = GSB.Cmedicaments.getInstance(); foreach (GSB.Cmedicament oMedicament in omedicaments.oCollmedicament) { if (oMedicament.MED_NOMCOMMERCIAL == name) { tbCF.Text = oMedicament.FAM_CODE; } } }
protected void ddMedicament_SelectedIndexChanged(object sender, EventArgs e) { string nom = ddMedicament.SelectedValue.ToString(); GSB.Cmedicaments omedicaments = GSB.Cmedicaments.getInstance(); foreach (GSB.Cmedicament oMedicament in omedicaments.oCollmedicament) { if (oMedicament.MED_NOMCOMMERCIAL == nom) { tbDptL.Text = oMedicament.MED_DEPOTLEGAL; tbCompo.Text = oMedicament.MED_COMPOSITION; tbEffet.Text = oMedicament.MED_EFFETS; tbContreInd.Text = oMedicament.MED_CONTREINDIC; } } }
protected void Page_Init(object sender, EventArgs e) { GSB.Cpraticiens opraticiens = GSB.Cpraticiens.getInstance(); foreach (GSB.Cpraticien oPraticien in opraticiens.oCollpraticien) { //peuple la ComboBox ddPraticien.Items.Add(oPraticien.PRA_NOM); } GSB.Cmedicaments omedicaments = GSB.Cmedicaments.getInstance(); foreach (GSB.Cmedicament oMedicament in omedicaments.oCollmedicament) { ddMedicament.Items.Add(oMedicament.MED_NOMCOMMERCIAL); } GSB.Ctransporteurs otransporteurs = GSB.Ctransporteurs.getInstance(); foreach (GSB.Ctransporteur oTransporteur in otransporteurs.oColltransporteur) { ddTransporteur.Items.Add(oTransporteur.TRANS_NOM); } }