private void CheickCodeRedevanceExist() { try { //if (SessionObject.ListeDesProduit.Count != 0) //{ // LstDeProduit = SessionObject.ListeDesProduit; // return; //} Galatee.Silverlight.ServiceTarification.TarificationServiceClient service1 = new Galatee.Silverlight.ServiceTarification.TarificationServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Tarification")); service1.CheickCodeRedevanceExistCompleted += (sr, res) => { if (res != null && res.Cancelled) { return; } //SessionObject.ListeDesProduit = res.Result; //LstDeTypeRedevence = res.Result; if (res.Result == false) { Message.ShowError("Le code de redevence exite deja,Veuillez le modifier", "Avertissement"); txt_code.Text = string.Empty; txt_code.Focus(); } }; service1.CheickCodeRedevanceExistAsync(txt_code.Text.Trim()); service1.CloseAsync(); } catch (Exception ex) { Message.ShowError(ex.Message, "ChargerListeDeProduit"); } }
private void LoadAllContenantCritereTarif() { try { //if (SessionObject.ListeDesProduit.Count != 0) //{ // LstDeProduit = SessionObject.ListeDesProduit; // return; //} Galatee.Silverlight.ServiceTarification.TarificationServiceClient service1 = new Galatee.Silverlight.ServiceTarification.TarificationServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Tarification")); service1.LoadAllContenantCritereTarifCompleted += (sr, res) => { if (res != null && res.Cancelled) { return; } //SessionObject.ListeDesProduit = res.Result; LstDeContenantCritereTarif = res.Result; CboTable.ItemsSource = LstDeContenantCritereTarif; CboTable.DisplayMemberPath = "LIBELLE"; CboTable.SelectedValuePath = "PK_ID"; }; service1.LoadAllContenantCritereTarifAsync(); service1.CloseAsync(); } catch (Exception ex) { Message.ShowError(ex.Message, "ChargerListeDeProduit"); } }
private void LoadAllTypeLienProduit() { try { //if (SessionObject.ListeDesProduit.Count != 0) //{ // LstDeProduit = SessionObject.ListeDesProduit; // return; //} Galatee.Silverlight.ServiceTarification.TarificationServiceClient service1 = new Galatee.Silverlight.ServiceTarification.TarificationServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Tarification")); service1.LoadAllTypeLienProduitCompleted += (sr, res) => { if (res != null && res.Cancelled) { return; } //SessionObject.ListeDesProduit = res.Result; LstDeTypeLienProduit = res.Result; btn_TypeLienRed.IsEnabled = true; }; service1.LoadAllTypeLienProduitAsync(); service1.CloseAsync(); } catch (Exception ex) { Message.ShowError(ex.Message, "ChargerListeDeTypeDeLienDeRedevance"); } }