void galatee_OkClickedTypeCompte(object sender, EventArgs e) { UcListeGenerique ctrs = sender as UcListeGenerique; if (ctrs.GetisOkClick) { ServiceInterfaceComptable.CsTypeCompte _Leproduit = (ServiceInterfaceComptable.CsTypeCompte)ctrs.MyObject; this.Txt_TypeCompte.Text = _Leproduit.CODE; this.Txt_LibelleTypeCompte.Text = _Leproduit.LIBELLE; this.Txt_LibelleTypeCompte.Tag = _Leproduit; } }
private void Txt_CodeTypeCompte_TextChanged(object sender, TextChangedEventArgs e) { try { if (!string.IsNullOrEmpty(Txt_CodeProduit.Text)) { ServiceInterfaceComptable.CsTypeCompte _LeProduit = ClasseMEthodeGenerique.RetourneObjectFromList(ListeTypeCompte, this.Txt_TypeCompte.Text, "CODE"); if (!string.IsNullOrEmpty(_LeProduit.CODE)) { this.CsCoper_Type_Compte.FK_IDTYPE_COMPTE = _LeProduit.PK_ID; this.Txt_LibelleTypeCompte.Text = _LeProduit.LIBELLE; this.Txt_LibelleTypeCompte.Tag = _LeProduit; } } } catch (Exception ex) { Message.ShowError(ex.Message, Galatee.Silverlight.Resources.Accueil.Langue.lbl_Menu); } }