private void btn_Categorie_Click(object sender, RoutedEventArgs e) { try { List <ServiceAccueil.CParametre> lstParametre = Shared.ClasseMEthodeGenerique.RetourneValueFromClasse <ServiceAccueil.CsCategorieClient>(SessionObject.LstCategorie); Shared.UcListeParametre ctr = new Galatee.Silverlight.Shared.UcListeParametre(lstParametre, true, "Liste de catégorie"); LstParametresInit = lstParametre; #region Y2R 21/02/2019 garder les élements cocher en memoire SessionObject.ListCheckeditems = SessionObject.ListCheckedItemsSessionCategorie; if (null != ListCheckeditems && SessionObject.ListCheckeditems.Count > 0) { foreach (ServiceAccueil.CParametre lE in SessionObject.ListDesElts) { foreach (ServiceAccueil.CParametre lC in SessionObject.ListCheckeditems) { if (lC.CODE == lE.CODE && lC.LIBELLE == lE.LIBELLE) { lE.IsSelect = lC.IsSelect; } } } } #endregion ctr.Closed += new EventHandler(categorie_OkClicked); ctr.Show(); } catch (Exception ex) { Message.ShowError(ex, "Erreur"); } }
private void btn_TypeReclamation_Click_1(object sender, RoutedEventArgs e) { try { if (SessionObject.ListeDesReclamation.Count > 0) { this.btn_TypeReclamation.IsEnabled = false; List <ServiceAccueil.CParametre> lstParametre = Shared.ClasseMEthodeGenerique.RetourneValueFromClasse <Galatee.Silverlight.ServiceReclamation.CsTypeReclamationRcl>(SessionObject.ListeDesReclamation); Shared.UcListeParametre ctr = new Galatee.Silverlight.Shared.UcListeParametre(lstParametre, true, "Type Reclamation"); ctr.Closed += new EventHandler(galatee_OkClickedTypeReclamation); ctr.Show(); //this.btn_TypeReclamation.IsEnabled = false; //List<object> _Listgen = Galatee.Silverlight.Shared.ClasseMEthodeGenerique.RetourneListeObjet(SessionObject.ListeDesReclamation); //Galatee.Silverlight.MainView.UcListeGenerique ctr = new Galatee.Silverlight.MainView.UcListeGenerique(_Listgen, "CODE", "LIBELLE", "Liste"); //ctr.Closed += new EventHandler(galatee_OkClickedTypeReclamation); //ctr.Show(); } else { Message.ShowError("La liste est vide", "Report"); } } catch (Exception ex) { Message.ShowError(ex.Message, "Report"); } }
private void btnzone_Click(object sender, RoutedEventArgs e) { try { if (SessionObject.LstZone == null || SessionObject.LstZone.Count == 0) { return; } if (this.Txt_LibelleCentre.Tag == null) { Message.ShowInformation("Selectionnez le centre", "Reporting"); return; } List <int> lstIdCentreSelect = (List <int>) this.Txt_LibelleCentre.Tag; List <ServiceAccueil.CsTournee> lstTourneCentre = SessionObject.LstZone.Where(t => lstIdCentreSelect.Contains(t.FK_IDCENTRE)).ToList(); List <ServiceAccueil.CParametre> lstParametre = Shared.ClasseMEthodeGenerique.RetourneValueFromClasse <ServiceAccueil.CsTournee>(lstTourneCentre); Shared.UcListeParametre ctr = new Galatee.Silverlight.Shared.UcListeParametre(lstParametre, true, "Tournée"); ctr.Closed += new EventHandler(zones_OkClicked); ctr.Show(); } catch (Exception ex) { Message.ShowError(ex, "Erreur"); } }
private void btn_Regroupement_Click(object sender, RoutedEventArgs e) { if (SessionObject.LstCodeRegroupement != null && SessionObject.LstCodeRegroupement.Count != 0) { List <ServiceAccueil.CParametre> lstParametre = Shared.ClasseMEthodeGenerique.RetourneValueFromClasse <ServiceAccueil.CsRegCli>(SessionObject.LstCodeRegroupement); Shared.UcListeParametre ctr = new Galatee.Silverlight.Shared.UcListeParametre(lstParametre, false, "Agent de recouvrement"); ctr.Closed += new EventHandler(controller_OkClicked); ctr.Show(); } }
private void btnController_Click(object sender, RoutedEventArgs e) { if (ListeGestionnaire != null && ListeGestionnaire.Count != 0) { List <ServiceAccueil.CParametre> lstParametre = Shared.ClasseMEthodeGenerique.RetourneValueFromClasse <ServiceReport.CsUtilisateur>(ListeGestionnaire); Shared.UcListeParametre ctr = new Galatee.Silverlight.Shared.UcListeParametre(lstParametre, false, "Agent de recouvrement"); ctr.Closed += new EventHandler(controller_OkClicked); ctr.Show(); } }
private void btnController_Click(object sender, RoutedEventArgs e) { if (lstPia != null && lstPia.Count != 0) { List <Galatee.Silverlight.ServiceRecouvrement.CsUtilisateur> lstPiaCentre = lstPia; lstPiaCentre.ForEach(t => t.CODE = string.IsNullOrEmpty(t.MATRICULE)? "00000": t.MATRICULE); List <ServiceAccueil.CParametre> lstParametre = Shared.ClasseMEthodeGenerique.RetourneValueFromClasse <ServiceRecouvrement.CsUtilisateur>(lstPiaCentre); Shared.UcListeParametre ctr = new Galatee.Silverlight.Shared.UcListeParametre(lstParametre, true, "Agent de recouvrement"); ctr.Closed += new EventHandler(controller_OkClicked); ctr.Show(); } }
private void btn_Produit_Click(object sender, RoutedEventArgs e) { if (SessionObject.ListeDesProduit != null && SessionObject.ListeDesProduit.Count > 0) { this.btn_Produit.IsEnabled = false; List <ServiceAccueil.CParametre> lstParametre = Shared.ClasseMEthodeGenerique.RetourneValueFromClasse <ServiceAccueil.CsProduit>(SessionObject.ListeDesProduit); Shared.UcListeParametre ctr = new Galatee.Silverlight.Shared.UcListeParametre(lstParametre, true, "Typde demande"); //List<object> _Listgen = Galatee.Silverlight.Shared.ClasseMEthodeGenerique.RetourneListeObjet(lProduitSelect); //Galatee.Silverlight.MainView.UcListeGenerique ctr = new Galatee.Silverlight.MainView.UcListeGenerique(_Listgen, "CODE", "LIBELLE", "Liste"); ctr.Closed += new EventHandler(galatee_OkClickedProduit); ctr.Show(); } }
private void btn_Site_Click(object sender, RoutedEventArgs e) { try{ List <ServiceAccueil.CParametre> lstParametre = Shared.ClasseMEthodeGenerique.RetourneValueFromClasse <ServiceAccueil.CsSite>(lstSite); Shared.UcListeParametre ctr = new Galatee.Silverlight.Shared.UcListeParametre(lstParametre, true, "Site"); ctr.Closed += new EventHandler(galatee_OkClickedSite); ctr.Show(); } catch (Exception ex) { Message.ShowError(ex, "Erreur"); } }
private void btnCategorie_Click(object sender, RoutedEventArgs e) { try { List <ServiceAccueil.CParametre> lstParametre = Shared.ClasseMEthodeGenerique.RetourneValueFromClasse <ServiceAccueil.CsCategorieClient>(SessionObject.LstCategorie); Shared.UcListeParametre ctr = new Galatee.Silverlight.Shared.UcListeParametre(lstParametre, true, "Liste de catégorie"); ctr.Closed += new EventHandler(categorie_OkClicked); ctr.Show(); } catch (Exception ex) { Message.ShowError(ex, "Erreur"); } }
private void btn_TypeDemande_Click(object sender, RoutedEventArgs e) { try { if (SessionObject.LstTypeDemande.Count > 0) { btn_TypeDemande.IsEnabled = false; List <ServiceAccueil.CParametre> lstParametre = Shared.ClasseMEthodeGenerique.RetourneValueFromClasse <ServiceAccueil.CsTdem>(SessionObject.LstTypeDemande); Shared.UcListeParametre ctr = new Galatee.Silverlight.Shared.UcListeParametre(lstParametre, true, "Typde demande"); ctr.Closed += new EventHandler(galatee_OkClickedTypeDemande); ctr.Show(); } } catch (Exception ex) { Message.ShowError(ex.Message, "Report"); } }
private void btn_Centre_Click(object sender, RoutedEventArgs e) { try { if (LstCentrePerimetre.Count != 0 && btn_Site.Tag != null) { List <ServiceAccueil.CParametre> lstParametre = Shared.ClasseMEthodeGenerique.RetourneValueFromClasse <ServiceAccueil.CsCentre>(LstCentrePerimetre.Where(c => c.CODESITE == btn_Site.Tag.ToString()).ToList()); Shared.UcListeParametre ctr = new Galatee.Silverlight.Shared.UcListeParametre(lstParametre, true, "Centre"); ctr.Closed += new EventHandler(galatee_OkClickedCentre); ctr.Show(); } else { Message.ShowError("Veillez vous ssurer que qu'un site est sélectionné ou que vous ete habilité sur des centres", "Erreur"); } } catch (Exception ex) { Message.ShowError(ex, "Erreur"); } }
private void btn_Site_Click(object sender, RoutedEventArgs e) { try { if (lstSite.Count > 0) { this.btn_Site.IsEnabled = false; List <ServiceAccueil.CParametre> lstParametre = Shared.ClasseMEthodeGenerique.RetourneValueFromClasse <ServiceAccueil.CsSite>(lstSite); Shared.UcListeParametre ctr = new Galatee.Silverlight.Shared.UcListeParametre(lstParametre, true, "Liste de centres"); LstParametresInit = lstParametre; ctr.Closed += new EventHandler(galatee_OkClickedSite); ctr.Show(); } } catch (Exception ex) { Message.ShowError(ex.Message, "Report"); } }
private void galatee_OkClickedTypeReclamation(object sender, EventArgs e) { this.btn_TypeReclamation.IsEnabled = true; Galatee.Silverlight.Shared.UcListeParametre ctrs = sender as Galatee.Silverlight.Shared.UcListeParametre; if (ctrs.isOkClick) { List <ServiceAccueil.CParametre> _LesCentreSelect = ctrs.MyObjectList as List <ServiceAccueil.CParametre>; List <string> lstCentre = _LesCentreSelect.Select(t => t.CODE).ToList(); foreach (string item in lstCentre) { this.Txt_LibelleTypeDemande.Text = this.Txt_LibelleTypeDemande.Text + " " + item + " "; } this.Txt_LibelleTypeDemande.Tag = _LesCentreSelect.Select(t => t.PK_ID).ToList(); //ServiceAccueil.CParametre leSite = (ServiceAccueil.CParametre)ctrs.MyObjectList; //this.Txt_LibelleTypeDemande.Text = leSite.LIBELLE; //this.Txt_LibelleTypeDemande.Tag = leSite.PK_ID; //btn_TypeReclamation.Tag = leSite.CODE; //lReclamationRclSelect =SessionObject.ListeDesReclamation.FirstOrDefault(c=>c.Code== leSite.CODE); //List<ServiceAccueil.CsCentre> lsiteCentre = LstCentrePerimetre.Where(t => t.FK_IDCODESITE == (int)this.Txt_LibelleSite.Tag).ToList(); //if (leSite !=null) //{ // List<int> lstIdCentreSelect = new List<int>(); // //lstIdCentreSelect.Add(lsiteCentre.First().PK_ID); // this.Txt_LibelleTypeDemande.Text = leSite.LIBELLE; // this.Txt_LibelleTypeDemande.Tag = leSite; // this.btn_TypeReclamation.IsEnabled = true; //} //else //{ // this.Txt_LibelleCentre.Text = string.Empty; // this.Txt_LibelleCentre.Tag = null; // this.btn_Centre.IsEnabled = true; //} } //this.btn_Site.IsEnabled = true; }
private void btn_Agent_Click(object sender, RoutedEventArgs e) { try { this.btn_Agent.IsEnabled = false; foreach (var agent in SessionObject.lstAgent) { agent.CODE = agent.MATRICULE; } List <ServiceAccueil.CParametre> lstParametre = Shared.ClasseMEthodeGenerique.RetourneValueFromClasse <ServiceAccueil.CsUtilisateur>(SessionObject.lstAgent); Shared.UcListeParametre ctr = new Galatee.Silverlight.Shared.UcListeParametre(lstParametre, true, "UTILISATEUR"); LstParametresInit = lstParametre; #region Y2R 21/02/2019 garder les élements cocher en memoire SessionObject.ListCheckeditems = SessionObject.ListCheckedItemsSessionUTILISATEUR; if (null != ListCheckeditems && SessionObject.ListCheckeditems.Count > 0) { foreach (ServiceAccueil.CParametre lE in SessionObject.ListDesElts) { foreach (ServiceAccueil.CParametre lC in SessionObject.ListCheckeditems) { if (lC.CODE == lE.CODE && lC.LIBELLE == lE.LIBELLE) { lE.IsSelect = lC.IsSelect; } } } } #endregion ctr.Closed += new EventHandler(galatee_OkClickedAgent); ctr.Show(); } catch (Exception ex) { Message.ShowError(ex, "Erreur"); } }
private void btn_Mode_Click(object sender, RoutedEventArgs e) { if (SessionObject.ListeModesReglement != null && SessionObject.ListeModesReglement.Count > 0) { //this.btn_Produit.IsEnabled = false; //List<object> _Listgen = Galatee.Silverlight.Shared.ClasseMEthodeGenerique.RetourneListeObjet(lProduitSelect); //Galatee.Silverlight.MainView.UcListeGenerique ctr = new Galatee.Silverlight.MainView.UcListeGenerique(_Listgen, "CODE", "LIBELLE", "Liste"); //ctr.Closed += new EventHandler(galatee_OkClickedProduit); //ctr.Show(); //this.btn_Produit.IsEnabled = false; List <ServiceAccueil.CParametre> lstParametre = Shared.ClasseMEthodeGenerique.RetourneValueFromClasse <ServiceAccueil.CsProduit>(SessionObject.ListeModesReglement.); Shared.UcListeParametre ctr = new Galatee.Silverlight.Shared.UcListeParametre(lstParametre, true, "Produit"); LstParametresInit = lstParametre; #region Y2R 21/02/2019 garder les élements cocher en memoire SessionObject.ListCheckeditems = SessionObject.ListCheckedItemsSessionProduit; if (null != ListCheckeditems && SessionObject.ListCheckeditems.Count > 0) { foreach (ServiceAccueil.CParametre lE in SessionObject.ListDesElts) { foreach (ServiceAccueil.CParametre lC in SessionObject.ListCheckeditems) { if (lC.CODE == lE.CODE && lC.LIBELLE == lE.LIBELLE) { lE.IsSelect = lC.IsSelect; } } } } #endregion ctr.Closed += new EventHandler(galatee_OkClickedProduit); ctr.Show(); } }
private void btn_Secteur_Click(object sender, RoutedEventArgs e) { try { this.btn_Secteur.IsEnabled = false; List <ServiceAccueil.CParametre> lstParametre = Shared.ClasseMEthodeGenerique.RetourneValueFromClasse <ServiceAccueil.CsSecteur>(SessionObject.LstSecteur); //List<object> _Listgen = Galatee.Silverlight.Shared.ClasseMEthodeGenerique.RetourneListeObjet(SessionObject.LstSecteur.Where(t => t.FK_IDCENTRE == (int)this.Txt_LibelleCentre.Tag).ToList()); Shared.UcListeParametre ctr = new Galatee.Silverlight.Shared.UcListeParametre(lstParametre, true, "Secteur"); LstParametresInit = lstParametre; #region Y2R 21/02/2019 garder les élements cocher en memoire SessionObject.ListCheckeditems = SessionObject.ListCheckedItemsSessionSecteur; if (null != ListCheckeditems && SessionObject.ListCheckeditems.Count > 0) { foreach (ServiceAccueil.CParametre lE in SessionObject.ListDesElts) { foreach (ServiceAccueil.CParametre lC in SessionObject.ListCheckeditems) { if (lC.CODE == lE.CODE && lC.LIBELLE == lE.LIBELLE) { lE.IsSelect = lC.IsSelect; } } } } #endregion ctr.Closed += new EventHandler(galatee_OkClickedbtnSecteur); ctr.Show(); } catch (Exception ex) { Message.ShowError(ex, "Erreur"); } }