# HG changeset patch # User totetm <> # Date 1265725846 -3600 # Node ID 0f2bde8fdfeba0131721fade02de841544183d1a # Parent bd33267300aa4f16469c7046df4ca988908a6950 WebService-like diff -r bd33267300aa -r 0f2bde8fdfeb client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs --- a/client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs Thu Feb 04 16:38:04 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs Tue Feb 09 15:30:46 2010 +0100 @@ -15,8 +15,8 @@ using System.Collections.Generic; using System.Linq; using Iri.Modernisation.Controls.View; +using System.IO; using Iri.Modernisation.Data.LDTClass; - namespace Iri.Modernisation.Controls.ViewModel { @@ -322,6 +322,14 @@ { _newAnnotation.Type = _selectedType ; _basicRelation.ToElement = _newAnnotation; + _basicRelation.Type = _newAnnotation.Type; + _refElement.Chapter.Annotations.Add(_newAnnotation); + _refElement.Chapter.Book.BasicLinks.Add(_basicRelation); + if(_polemicRelation.ToElement != null) + { + _refElement.Chapter.Book.PolemicLinks.Add(_polemicRelation); + } + LDTElement newAnnotation = new LDTElement(_newAnnotation); /* @@ -335,6 +343,7 @@ LDTFile newfile = new LDTFile() { + Medias = new List() { new LDTMedia() @@ -342,7 +351,7 @@ Src = _refElement.Chapter.Book.IriPath } }, - Relations = new List() + BasicRelations = new List() { new LDTRelation() { @@ -351,6 +360,7 @@ //Title = _basicRelation.Title } }, + Annotations = new List() { new LDTAnnotationsContent() @@ -377,18 +387,31 @@ IdElementTo = _polemicRelation.ToElement.Id, Title = _polemicRelation.Title }; - newfile.Relations.Add(polemicRelation); + newfile.BasicRelations.Add(polemicRelation); } + + //MessageBox.Show(newfile.ToString()); - - /** HttpSend For Web Mode **/ - /* Application app = Application.Current as Application; - HttpSender helper = new HttpSender(new Uri("http://mtotet.free.fr/TestHttpSender/index.php"), "POST", - new KeyValuePair("authKey", "123456" ), - new KeyValuePair("newAnnotation", newfile.ToString()), - new KeyValuePair("msg", "303")); + + /* HttpSend For Web Mode */ + Application app = Application.Current as Application; + HttpSender helper = new HttpSender(new Uri(FactoryVideoLivre.UpdateBookService, UriKind.RelativeOrAbsolute), "POST", + new KeyValuePair("newAnnotation",System.Windows.Browser.HttpUtility.UrlEncode( + System.Windows.Browser.HttpUtility.HtmlEncode( + _refElement.Chapter.Book.GetLDTFile().ToString()) + )), + new KeyValuePair("ldtFileURI",_refElement.Chapter.Book.LdtPath)); helper.ResponseComplete += new HttpResponseCompleteEventHandler(helper_ResponseComplete); - helper.Execute();*/ + helper.Execute(); + + + /* HttpSendHelper hsh = new HttpSendHelper("POST", FactoryVideoLivre.UpdateBookService, + new Dictionary { + { "ldtIs", "world" }, + {"AnnotationLdtFile",newfile.ToString()} + }); + hsh.Execute();*/ + /** Local Mode **/ Commands.AnnotationMaker.NewAnnotationFinished.Execute(_newAnnotation,_refElement); @@ -400,7 +423,7 @@ OnPropertyChanged("IsControlEnable"); } - + private String _sendAnnotationResponse; public String SendAnnotationResponse { diff -r bd33267300aa -r 0f2bde8fdfeb client/src/Iri.Modernisation.Controls/ViewModel/ConsultationView/ConsultationViewVM.cs --- a/client/src/Iri.Modernisation.Controls/ViewModel/ConsultationView/ConsultationViewVM.cs Thu Feb 04 16:38:04 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/ViewModel/ConsultationView/ConsultationViewVM.cs Tue Feb 09 15:30:46 2010 +0100 @@ -126,7 +126,7 @@ { Annotation createdAnnotation = ((Annotation)e.Parameter); PolemicElement refElement = ((PolemicElement)e.Source); - refElement.Chapter.Annotations.Add(createdAnnotation); + // refElement.Chapter.Annotations.Add(createdAnnotation); //refElement.Chapter.Book.Save(); diff -r bd33267300aa -r 0f2bde8fdfeb client/src/Iri.Modernisation.Data/Ldt/LDTDecoupage.cs --- a/client/src/Iri.Modernisation.Data/Ldt/LDTDecoupage.cs Thu Feb 04 16:38:04 2010 +0100 +++ b/client/src/Iri.Modernisation.Data/Ldt/LDTDecoupage.cs Tue Feb 09 15:30:46 2010 +0100 @@ -21,7 +21,9 @@ /// Attribut /// public String Id { get; set; } - public LDTDecoupage(){} + public LDTDecoupage(){ + Id = System.Guid.NewGuid().ToString(); + } } diff -r bd33267300aa -r 0f2bde8fdfeb client/src/Iri.Modernisation.Data/Ldt/LDTDisplay.cs --- a/client/src/Iri.Modernisation.Data/Ldt/LDTDisplay.cs Thu Feb 04 16:38:04 2010 +0100 +++ b/client/src/Iri.Modernisation.Data/Ldt/LDTDisplay.cs Tue Feb 09 15:30:46 2010 +0100 @@ -60,10 +60,12 @@ Zoom = int.Parse(e.Attribute("zoom").Value); Scroll = int.Parse(e.Attribute("scroll").Value); InfoBAB = e.Attribute("infoBAB").Value; - - foreach (XElement Elem in e.Element("content").Elements()) + if (e.Element("content")!=null) { - Content.Add(new LDTDisplaysContent(Elem)); + foreach (XElement Elem in e.Element("content").Elements()) + { + Content.Add(new LDTDisplaysContent(Elem)); + } } } public XElement XML diff -r bd33267300aa -r 0f2bde8fdfeb client/src/Iri.Modernisation.Data/Ldt/LDTElement.cs --- a/client/src/Iri.Modernisation.Data/Ldt/LDTElement.cs Thu Feb 04 16:38:04 2010 +0100 +++ b/client/src/Iri.Modernisation.Data/Ldt/LDTElement.cs Tue Feb 09 15:30:46 2010 +0100 @@ -62,11 +62,7 @@ /// Elements /// public List Tags { get; set; } - - /// - /// Attribute - /// - public int Type { get; set; } + /// /// Elements @@ -88,7 +84,7 @@ Video = String.Empty; Color = double.Parse(annotation.Type.Color.A.ToString() + annotation.Type.Color.R.ToString() + annotation.Type.Color.G.ToString() + annotation.Type.Color.B.ToString()); - Type = 0; + } @@ -114,14 +110,7 @@ { Video = e.Element("video").Value; } - if(e.Attribute("type")==null) - { - Type = 0; - } - else - { - Type = int.Parse(e.Attribute("type").Value); - } + foreach (XElement Str in e.Element("tags").Elements()) { Tags.Add(Str.Value); @@ -130,7 +119,7 @@ public LDTElement() { Id = System.Guid.NewGuid().ToString(); - Type = 0; + Begin = 0; Dur = 0; Author = String.Empty; @@ -156,7 +145,6 @@ new XAttribute("date",Date.ToString("")), new XAttribute("color",Color), new XAttribute("src",Src), - new XAttribute("type",Type.ToString()), new XElement("title",Title), new XElement("abstract",Abstract), new XElement("audio",Audio), diff -r bd33267300aa -r 0f2bde8fdfeb client/src/Iri.Modernisation.Data/Ldt/LDTFile.cs --- a/client/src/Iri.Modernisation.Data/Ldt/LDTFile.cs Thu Feb 04 16:38:04 2010 +0100 +++ b/client/src/Iri.Modernisation.Data/Ldt/LDTFile.cs Tue Feb 09 15:30:46 2010 +0100 @@ -46,7 +46,9 @@ /// public List Edits { get; set; } - public List Relations { get; set; } + public List BasicRelations { get; set; } + + public List PolemicRelations { get; set; } public LDTFile() { @@ -55,7 +57,8 @@ Annotations = new List(); Displays = new List(); Edits = new List(); - Relations = new List(); + BasicRelations = new List(); + PolemicRelations = new List(); } public void Load(String _path) { @@ -91,11 +94,18 @@ Edits.Add(new LDTEditing(Elem)); } - if(xdoc.Root.Element("realtions")!=null) + if(xdoc.Root.Element("basicRelations")!=null) { - foreach (XElement Elem in xdoc.Root.Element("realtions").Elements()) + foreach (XElement Elem in xdoc.Root.Element("basicRelations").Elements()) { - Relations.Add(new LDTRelation(Elem)); + BasicRelations.Add(new LDTRelation(Elem)); + } + } + if (xdoc.Root.Element("polemicRelations") != null) + { + foreach (XElement Elem in xdoc.Root.Element("polemicRelations").Elements()) + { + PolemicRelations.Add(new LDTRelation(Elem)); } } } @@ -123,11 +133,18 @@ returnFile.Edits.Add(new LDTEditing(Elem)); } - if (xdoc.Root.Element("realtions") != null) + if (xdoc.Root.Element("basicRelations") != null) { - foreach (XElement Elem in xdoc.Root.Element("realtions").Elements()) + foreach (XElement Elem in xdoc.Root.Element("basicRelations").Elements()) { - returnFile.Relations.Add(new LDTRelation(Elem)); + returnFile.BasicRelations.Add(new LDTRelation(Elem)); + } + } + if (xdoc.Root.Element("polemicRelations") != null) + { + foreach (XElement Elem in xdoc.Root.Element("polemicRelations").Elements()) + { + returnFile.PolemicRelations.Add(new LDTRelation(Elem)); } } return returnFile; @@ -191,12 +208,20 @@ temp.Add(XEdits); // - XElement XRelations = new XElement("relations"); - foreach (LDTRelation relation in Relations) + XElement XBasicRelations = new XElement("basicRelations"); + foreach (LDTRelation relation in BasicRelations) { - XRelations.Add(relation.XML); + XBasicRelations.Add(relation.XML); } - temp.Add(XRelations); + temp.Add(XBasicRelations); + + // + XElement XPolemicRelations = new XElement("polemicRelations"); + foreach (LDTRelation relation in PolemicRelations) + { + XPolemicRelations.Add(relation.XML); + } + temp.Add(XPolemicRelations); return temp; } diff -r bd33267300aa -r 0f2bde8fdfeb client/src/Iri.Modernisation.Data/Ldt/LDTRelation.cs --- a/client/src/Iri.Modernisation.Data/Ldt/LDTRelation.cs Thu Feb 04 16:38:04 2010 +0100 +++ b/client/src/Iri.Modernisation.Data/Ldt/LDTRelation.cs Tue Feb 09 15:30:46 2010 +0100 @@ -17,12 +17,13 @@ public String IdElementFrom { get; set; } public String IdElementTo { get; set; } public String Title { get; set; } - + public String Type { get; set; } public LDTRelation() { IdElementFrom = String.Empty; IdElementTo = String.Empty; Title = String.Empty; + Type = String.Empty; } public LDTRelation(XElement elem) { @@ -31,6 +32,7 @@ IdElementFrom = elem.Attribute("idElementFrom").Value; IdElementTo = elem.Attribute("idElementTo").Value; Title = elem.Attribute("title").Value; + Type = elem.Attribute("type").Value; } public XElement XML @@ -49,11 +51,15 @@ { Title = String.Empty; } + if(Type == null) + { + Type = String.Empty; + } return new XElement("relation", new XAttribute("idElementFrom", IdElementFrom), new XAttribute("idElementTo", IdElementTo), - new XAttribute("title", Title) - + new XAttribute("title", Title), + new XAttribute("type",Type) ); } } diff -r bd33267300aa -r 0f2bde8fdfeb client/src/Iri.Modernisation.Data/Ldt/Readers.cs --- a/client/src/Iri.Modernisation.Data/Ldt/Readers.cs Thu Feb 04 16:38:04 2010 +0100 +++ b/client/src/Iri.Modernisation.Data/Ldt/Readers.cs Tue Feb 09 15:30:46 2010 +0100 @@ -10,6 +10,7 @@ using System.Windows.Shapes; using Iri.Modernisation.Data.Models; using System.Xml.Linq; +using System.Collections.Generic; namespace Iri.Modernisation.Data.LDTClass { public class LDTFileReader @@ -151,28 +152,35 @@ } chapter++; } - + + Dictionary BasicRelation = new Dictionary(); + foreach (LDTRelation LDTR in ldt.BasicRelations) + { + BasicRelation.Add(LDTR.IdElementTo, LDTR.Type); + } + foreach (LDTAnnotationsContent LDTAC in ldt.Annotations) { int chapterIndex = 0; foreach(LDTAnnotationsDecoupage LDTAD in LDTAC.Content) { User author = new User() {UserName = LDTAD.Author }; - foreach(LDTElement elem in LDTAD.Elements) - { + LDTElement elem = LDTAD.Elements[0]; + _videoBook.Chapters[chapterIndex].Annotations.Add( new Annotation(_videoBook.Chapters[chapterIndex]) { + Id = elem.Id, Title = elem.Title, Description = elem.Abstract, Tags = elem.Tags, TimerIn = new TimeSpan(0, 0, 0, 0, (int)elem.Begin), Duration = new TimeSpan(0, 0, 0, 0, (int)elem.Dur), - Type = FactoryVideoLivre.AnnotationDescriptions[elem.Type], + Type = FactoryVideoLivre.DictionaryAnnotationDescriptions[BasicRelation[elem.Id]], Contributer = author }); - } + } chapterIndex++; diff -r bd33267300aa -r 0f2bde8fdfeb client/src/Iri.Modernisation.Data/Models/FactoryVideoLivre.cs --- a/client/src/Iri.Modernisation.Data/Models/FactoryVideoLivre.cs Thu Feb 04 16:38:04 2010 +0100 +++ b/client/src/Iri.Modernisation.Data/Models/FactoryVideoLivre.cs Tue Feb 09 15:30:46 2010 +0100 @@ -14,12 +14,26 @@ { public static class FactoryVideoLivre { + public static WebClient xmlClient = new WebClient(); private static XDocument _configDoc; public static VideoChapterDescription[] VideoChapterDescriptions {get;private set;} + public static Dictionary DictionaryAnnotationDescriptions + { + get + { + Dictionary returnDic = new Dictionary(); + foreach(PolemicTypeDescription Ptd in AnnotationDescriptions) + { + returnDic.Add(Ptd.Title, Ptd); + } + return returnDic; + } + } public static PolemicTypeDescription[] AnnotationDescriptions { get; private set; } public static String VideoBookListPath; public static String ProductionVideoPath; + public static String UpdateBookService; public static int NumberOfChapters { get @@ -60,6 +74,7 @@ int nb = 0; VideoBookListPath = _configDoc.Root.Attribute("VideoBookList").Value; ProductionVideoPath = _configDoc.Root.Attribute("ProductionVideo").Value; + UpdateBookService = _configDoc.Root.Attribute("UpdateBookService").Value; foreach (XElement XChapter in _configDoc.Root.Element("VideoBook").Elements()) { temp.Add(new VideoChapterDescription(nb, XChapter.Attribute("name").Value, XChapter.Attribute("color").Value)); diff -r bd33267300aa -r 0f2bde8fdfeb client/src/Iri.Modernisation.Data/Models/SettingsProject.cs --- a/client/src/Iri.Modernisation.Data/Models/SettingsProject.cs Thu Feb 04 16:38:04 2010 +0100 +++ b/client/src/Iri.Modernisation.Data/Models/SettingsProject.cs Tue Feb 09 15:30:46 2010 +0100 @@ -19,15 +19,16 @@ /// public static class SettingsProject { - - - + + + static public User ActualUser { get; set; } static public List ListVideoBook { get; set; } static public List ProductionVideo { get; set; } static public Sync Synchronizer { get; set; } static SettingsProject() { + ActualUser = new User() { UserName = "TestUser" }; Synchronizer = new Sync(); Synchronizer.Completed += new EventHandler(Synchronizer_Completed); } diff -r bd33267300aa -r 0f2bde8fdfeb client/src/Iri.Modernisation.Data/Models/VideoBook.cs --- a/client/src/Iri.Modernisation.Data/Models/VideoBook.cs Thu Feb 04 16:38:04 2010 +0100 +++ b/client/src/Iri.Modernisation.Data/Models/VideoBook.cs Tue Feb 09 15:30:46 2010 +0100 @@ -55,13 +55,17 @@ /// public String IriPath { get; set; } - + public List BasicLinks { get; set; } + + public List PolemicLinks { get; set; } /// /// Constructeur par défaut /// public VideoBook() { + BasicLinks = new List(); + PolemicLinks = new List(); Chapters = new VideoChapter[FactoryVideoLivre.VideoChapterDescriptions.Length]; for (int nbChapitre = 0; nbChapitre < FactoryVideoLivre.VideoChapterDescriptions.Length; nbChapitre++) { @@ -74,6 +78,78 @@ } + public LDTFile GetLDTFile() + { + LDTFile ldt = new LDTFile(); + ldt.Project = new LDTProject() + { + + }; + ldt.Medias = new List() + { + new LDTMedia() + { + Src = IriPath + } + }; + foreach (VideoChapter Vc in Chapters) + { + ldt.Annotations.Add( + new LDTAnnotationsContent() + { + + }); + foreach (Annotation An in Vc.Annotations) + { + LDTAnnotationsDecoupage decoupage = new LDTAnnotationsDecoupage() + { + Title = Vc.Title, + Author = SettingsProject.ActualUser.UserName + }; + decoupage.Elements.Add( + new LDTElement() + { + Id = An.Id, + Title = An.Title, + Abstract = An.Description, + Date = DateTime.Now, + Begin = An.TimerIn.TotalMilliseconds, + Dur = An.Duration.TotalMilliseconds, + Tags = An.Tags, + Author = SettingsProject.ActualUser.UserName, + } + ); + + + + ldt.Annotations[ldt.Annotations.Count - 1].Content.Add(decoupage); + } + foreach (PolemicLink Pl in BasicLinks) + { + ldt.BasicRelations.Add(new LDTRelation() + { + Type = Pl.Type.Title, + IdElementFrom = Pl.FromElement.Id, + IdElementTo = Pl.ToElement.Id, + Title = Pl.ToElement.Title + }); + } + foreach (PolemicLink Pl in PolemicLinks) + { + ldt.PolemicRelations.Add(new LDTRelation() + { + Type = Pl.Type.Title, + IdElementFrom = Pl.FromElement.Id, + IdElementTo = Pl.ToElement.Id, + Title = Pl.ToElement.Title + }); + + } + + } + return ldt; + } + /// @@ -128,36 +204,61 @@ { ldt = ((LoaderEventArgs)e).CreatedObject; ldt.Annotations.Clear(); + foreach (VideoChapter Vc in videoBookToUpdate.Chapters) { - LDTAnnotationsDecoupage decoupage = new LDTAnnotationsDecoupage() + ldt.Annotations.Add( + new LDTAnnotationsContent() + { + + }); + foreach(Annotation An in Vc.Annotations) + { + LDTAnnotationsDecoupage decoupage = new LDTAnnotationsDecoupage() { Title = Vc.Title, - Id = Vc.IdChap.ToString() + Author = SettingsProject.ActualUser.UserName }; - foreach(Annotation An in Vc.Annotations) - { decoupage.Elements.Add( new LDTElement() { + Id = An.Id, Title = An.Title, Abstract = An.Description, Date = DateTime.Now, Begin = An.TimerIn.TotalMilliseconds, Dur = An.Duration.TotalMilliseconds, Tags = An.Tags, - Type = An.Type.Id + Author = SettingsProject.ActualUser.UserName, } - ); - } + ); + + - ldt.Annotations.Add( - new LDTAnnotationsContent() + ldt.Annotations[ldt.Annotations.Count - 1].Content.Add(decoupage); + } + foreach (PolemicLink Pl in videoBookToUpdate.BasicLinks) + { + ldt.BasicRelations.Add(new LDTRelation() { - Content = new List() { decoupage}, + Type = Pl.Type.Title, + IdElementFrom = Pl.FromElement.Id, + IdElementTo = Pl.ToElement.Id, + Title = Pl.ToElement.Title }); + } + foreach (PolemicLink Pl in videoBookToUpdate.PolemicLinks) + { + ldt.PolemicRelations.Add(new LDTRelation() + { + Type = Pl.Type.Title, + IdElementFrom = Pl.FromElement.Id, + IdElementTo = Pl.ToElement.Id, + Title = Pl.ToElement.Title + }); + } } - + WebClient WebWriter = new WebClient(); @@ -190,13 +291,13 @@ fs.Close(); }*/ - - using (StreamWriter fs = Sw) - { + + StreamWriter fs = Sw; + fs.Write(ldt.ToString()); fs.Close(); - } + /*StreamWriter fs = new StreamWriter(e.Result); //MessageBox.Show(ldt.ToString()); diff -r bd33267300aa -r 0f2bde8fdfeb client/test/FranceCulture/FranceCulture/FranceCulture.Web/Content/AvailableVideoBooks.xml --- a/client/test/FranceCulture/FranceCulture/FranceCulture.Web/Content/AvailableVideoBooks.xml Thu Feb 04 16:38:04 2010 +0100 +++ b/client/test/FranceCulture/FranceCulture/FranceCulture.Web/Content/AvailableVideoBooks.xml Tue Feb 09 15:30:46 2010 +0100 @@ -8,7 +8,7 @@ --> - + diff -r bd33267300aa -r 0f2bde8fdfeb client/test/FranceCulture/FranceCulture/FranceCulture.Web/Content/FranceInterENMI29.ldt --- a/client/test/FranceCulture/FranceCulture/FranceCulture.Web/Content/FranceInterENMI29.ldt Thu Feb 04 16:38:04 2010 +0100 +++ b/client/test/FranceCulture/FranceCulture/FranceCulture.Web/Content/FranceInterENMI29.ldt Tue Feb 09 15:30:46 2010 +0100 @@ -1,39 +1,62 @@ - + - + - - - - - - - - - - - - - - - - - Bout à bout 1 - - - - - - - - - - - + + + Emission France Culture + + + + aze + ze + + + + aze + + + + + + Emission France Culture + + + + tt + tt + + + + tt + + + + + + Emission France Culture + + + + ar + arar + + + + arar + + + + + + + + + + + + + \ No newline at end of file diff -r bd33267300aa -r 0f2bde8fdfeb client/test/FranceCulture/FranceCulture/FranceCulture.Web/Content/iri_matinalefi28nov2009/iri_matinalefi28nov2009.iri --- a/client/test/FranceCulture/FranceCulture/FranceCulture.Web/Content/iri_matinalefi28nov2009/iri_matinalefi28nov2009.iri Thu Feb 04 16:38:04 2010 +0100 +++ b/client/test/FranceCulture/FranceCulture/FranceCulture.Web/Content/iri_matinalefi28nov2009/iri_matinalefi28nov2009.iri Tue Feb 09 15:30:46 2010 +0100 @@ -832,7 +832,7 @@ - diff -r bd33267300aa -r 0f2bde8fdfeb client/test/FranceCulture/FranceCulture/FranceCulture.Web/Content/iri_matinalefi29nov2009/iri_matinalefi29nov2009.iri --- a/client/test/FranceCulture/FranceCulture/FranceCulture.Web/Content/iri_matinalefi29nov2009/iri_matinalefi29nov2009.iri Thu Feb 04 16:38:04 2010 +0100 +++ b/client/test/FranceCulture/FranceCulture/FranceCulture.Web/Content/iri_matinalefi29nov2009/iri_matinalefi29nov2009.iri Tue Feb 09 15:30:46 2010 +0100 @@ -541,7 +541,7 @@ - diff -r bd33267300aa -r 0f2bde8fdfeb client/test/FranceCulture/FranceCulture/FranceCulture.Web/Content/test.ldt --- a/client/test/FranceCulture/FranceCulture/FranceCulture.Web/Content/test.ldt Thu Feb 04 16:38:04 2010 +0100 +++ b/client/test/FranceCulture/FranceCulture/FranceCulture.Web/Content/test.ldt Tue Feb 09 15:30:46 2010 +0100 @@ -1,90 +1,25 @@ - + - + - - + + Emission France Culture - - a - a - - - - a - - - - b - b - - - - b - - - - c - c + + r + r - c - - - - d - d - - - - d + r - - Oui mais ? - - - - Z05 - Peut on vraiment prétendre répondre à une telle question sans étudier au préalable le sens de chaque mot ? - - - - - - - Annot Julius - - - - Notre mémoire - Si les objets nous constituent et s'ils sont à ce point tracables, alors c'est nous-même qui seront tracables à travers nos faits et gestes. La notion de mémoire devrait considérablement changer. - - - - - - - - - Référence - Sur la tracabilité, voir http://www.tracenews.info/ - - - @@ -111,5 +46,8 @@ - + + + + \ No newline at end of file diff -r bd33267300aa -r 0f2bde8fdfeb client/test/FranceCulture/FranceCulture/FranceCulture.Web/FranceCulture.Web.csproj --- a/client/test/FranceCulture/FranceCulture/FranceCulture.Web/FranceCulture.Web.csproj Thu Feb 04 16:38:04 2010 +0100 +++ b/client/test/FranceCulture/FranceCulture/FranceCulture.Web/FranceCulture.Web.csproj Tue Feb 09 15:30:46 2010 +0100 @@ -33,6 +33,9 @@ 4 + + ..\..\..\..\src\Iri.Modernisation.Data\Bin\Debug\Iri.Modernisation.Data.dll + @@ -42,7 +45,6 @@ - @@ -50,12 +52,14 @@ + + Web.config @@ -66,6 +70,13 @@ + + UpdateBookService.aspx + ASPXCodeBehind + + + UpdateBookService.aspx + @@ -76,7 +87,7 @@ False True - 6048 + 6848 / diff -r bd33267300aa -r 0f2bde8fdfeb client/test/FranceCulture/FranceCulture/FranceCulture.Web/ProjectConfig.xml --- a/client/test/FranceCulture/FranceCulture/FranceCulture.Web/ProjectConfig.xml Thu Feb 04 16:38:04 2010 +0100 +++ b/client/test/FranceCulture/FranceCulture/FranceCulture.Web/ProjectConfig.xml Tue Feb 09 15:30:46 2010 +0100 @@ -1,6 +1,7 @@ diff -r bd33267300aa -r 0f2bde8fdfeb client/test/FranceCulture/FranceCulture/FranceCulture.Web/UpdateBookService.aspx --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/test/FranceCulture/FranceCulture/FranceCulture.Web/UpdateBookService.aspx Tue Feb 09 15:30:46 2010 +0100 @@ -0,0 +1,17 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpdateBookService.aspx.cs" Inherits="FranceCulture.Web.UpdateBookService" %> + + + + + + + + + +
+
+ +
+
+ + diff -r bd33267300aa -r 0f2bde8fdfeb client/test/FranceCulture/FranceCulture/FranceCulture.Web/UpdateBookService.aspx.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/test/FranceCulture/FranceCulture/FranceCulture.Web/UpdateBookService.aspx.cs Tue Feb 09 15:30:46 2010 +0100 @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.IO; +using System.Xml.Linq; +using Iri.Modernisation.Data.LDTClass; +namespace FranceCulture.Web +{ + public partial class UpdateBookService : System.Web.UI.Page + { + + protected void Page_Load(object sender, EventArgs e) + { + + + + // Recive Data + // ldtFileURI & newAnnotation + + String DecodeData = Server.HtmlDecode(Request.Form["newAnnotation"]); + + //String saveURI = Server.MapPath(".") + Request.Form["ldtFileURI"]; + String SaveURI = Server.MapPath("./") + Request.Form["ldtFileURI"].Replace("/", @"\\"); + StreamWriter monStreamWriter = new StreamWriter(SaveURI); + // monStreamWriter.Write(fileLdt.ToString()); + monStreamWriter.Write(DecodeData); + // Fermeture du StreamWriter ( + monStreamWriter.Close(); + + + + } + + } +} \ No newline at end of file diff -r bd33267300aa -r 0f2bde8fdfeb client/test/FranceCulture/FranceCulture/FranceCulture.Web/UpdateBookService.aspx.designer.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/test/FranceCulture/FranceCulture/FranceCulture.Web/UpdateBookService.aspx.designer.cs Tue Feb 09 15:30:46 2010 +0100 @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace FranceCulture.Web +{ + + + public partial class UpdateBookService + { + + /// + /// form1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + } +} diff -r bd33267300aa -r 0f2bde8fdfeb client/test/FranceCulture/FranceCulture/FranceCulture.Web/Web.Debug.config --- a/client/test/FranceCulture/FranceCulture/FranceCulture.Web/Web.Debug.config Thu Feb 04 16:38:04 2010 +0100 +++ b/client/test/FranceCulture/FranceCulture/FranceCulture.Web/Web.Debug.config Tue Feb 09 15:30:46 2010 +0100 @@ -15,6 +15,7 @@ --> +