private void ChargeDetailDEvis(int IdDemandeDevis) { AcceuilServiceClient client = new AcceuilServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Accueil")); client.ChargerDetailDemandeAsync(IdDemandeDevis, string.Empty); client.ChargerDetailDemandeCompleted += (ssender, args) => { if (args.Cancelled || args.Error != null) { LayoutRoot.Cursor = Cursors.Arrow; string error = args.Error.Message; Message.ShowError(error, Silverlight.Resources.Devis.Languages.txtDevis); return; } if (args.Result == null) { LayoutRoot.Cursor = Cursors.Arrow; Message.ShowError(Silverlight.Resources.Devis.Languages.AucunesDonneesTrouvees, Silverlight.Resources.Devis.Languages.txtDevis); return; } else { laDetailDemande = args.Result; #region DocumentScanne if (laDetailDemande.ObjetScanne != null && laDetailDemande.ObjetScanne.Count != 0) { foreach (var item in laDetailDemande.ObjetScanne) { LstPiece.Add(item); ObjetScanne.Add(item); } dgListePiece.ItemsSource = null; dgListePiece.ItemsSource = ObjetScanne; } #endregion if (laDetailDemande.LaDemande.TYPEDEMANDE == SessionObject.Enumere.Resiliation) { this.Chk_PasDeFacture.Visibility = System.Windows.Visibility.Visible; } laDemandeSelect = laDetailDemande.LaDemande; RenseignerInformationsDevis(laDetailDemande); RenseignerInformationsDemandeDevis(laDetailDemande); RenseignerInformationsAppareilsDevis(laDetailDemande); RenseignerInformationsFournitureDevis(laDetailDemande); RenseignerInformationsAbonnement(laDetailDemande); RenseignerInformationsBrt(laDetailDemande); RenseignerInformationsAnnotationDevis(laDetailDemande); LayoutRoot.Cursor = Cursors.Arrow; } LayoutRoot.Cursor = Cursors.Arrow; }; }
private void ChargeDetailDEvis(int IdDemandeDevis) { AcceuilServiceClient client = new AcceuilServiceClient(Utility.Protocole(), Utility.EndPoint("Accueil")); client.ChargerDetailDemandeCompleted += (ssender, args) => { if (args.Cancelled || args.Error != null) { LayoutRoot.Cursor = Cursors.Arrow; string error = args.Error.Message; Message.ShowError(error, Silverlight.Resources.Devis.Languages.txtDevis); return; } if (args.Result == null) { LayoutRoot.Cursor = Cursors.Arrow; Message.ShowError(Silverlight.Resources.Devis.Languages.AucunesDonneesTrouvees, Silverlight.Resources.Devis.Languages.txtDevis); return; } else { laDetailDemande = args.Result; #region DocumentScanne if (laDetailDemande.ObjetScanne != null && laDetailDemande.ObjetScanne.Count != 0) { foreach (var item in laDetailDemande.ObjetScanne) { LstPiece.Add(item); ObjetScanne.Add(item); } dgListePiece.ItemsSource = ObjetScanne; } #endregion laDemandeSelect = laDetailDemande.LaDemande; RenseignerInformationsDevis(laDetailDemande); RenseignerInformationsDemandeDevis(laDetailDemande); RenseignerInformationsAppareilsDevis(laDetailDemande); RenseignerInformationsFournitureDevis(laDetailDemande); if (laDetailDemande.TravauxDevis != null) { RenseignerInformationsTravauxDevis(laDetailDemande); } ChargerCompteDeResiliation(laDetailDemande.LeClient); LayoutRoot.Cursor = Cursors.Arrow; } LayoutRoot.Cursor = Cursors.Arrow; }; client.ChargerDetailDemandeAsync(IdDemandeDevis, string.Empty); }
private void GetInformationFromChildWindowImagePreuve(object sender, EventArgs e) { this.LstPiece.Add(new ObjDOCUMENTSCANNE { PK_ID = Guid.NewGuid(), NOMDOCUMENT = ((CsTypeDOCUMENTSCANNE)cbo_typedoc.SelectedItem).LIBELLE, FK_IDTYPEDOCUMENT = ((CsTypeDOCUMENTSCANNE)cbo_typedoc.SelectedItem).PK_ID, CONTENU = image, DATECREATION = DateTime.Now, DATEMODIFICATION = DateTime.Now, USERCREATION = UserConnecte.matricule, USERMODIFICATION = UserConnecte.matricule }); this.dgListePiece.ItemsSource = this.LstPiece; if (LstPiece.Count() > 0) { this.isPreuveSelectionnee = true; //EnabledDevisInformations(true); } else { this.isPreuveSelectionnee = false; //EnabledDevisInformations(false); } }