/// <summary> /// Met à jour le flux XML du DocGenerator /// Génère une erreur si le flux est invalide /// </summary> /// <param name="docGenerator"></param> /// <param name="fluxxml"></param> public void UpdateFlux(DocGeneratorPO docGenerator, string fluxxml) { // si flux invalide générera une erreur new NGLib.DATA.DATAVALUES.DataValues().DatavalueManager().fromFluxXML(fluxxml); base.UpdateBubble(docGenerator, "Fluxxml", fluxxml); }
public void DeleteDocGenerator(int IDDocGenerator) { DocGeneratorPO docGenerator = (DocGeneratorPO)GetIDocGenerator(IDDocGenerator); if (docGenerator == null) { throw new Exception("DeleteDocGenerator: docgenerator non trouvé "); } this.DeleteBubble(docGenerator); }
public void InsertDocGenerator(DocGeneratorPO docGenerator) { docGenerator["IDDocGenerator"] = DBNull.Value; this.InsertBubble(docGenerator, false, false); }
//public DocGeneratorPO CreateDocGenerator(DocGeneratorPoco poco) //{ // try // { // DocGeneratorPO docGenerator = new DocGeneratorPO(); // docGenerator.FromObject(poco); // this.InsertDocGenerator(docGenerator); // if (poco.FluxXml != null) // this.UpdateFlux(docGenerator, poco.FluxXml); // return docGenerator; // } // catch (Exception ex) // { // throw new Exception("CreateDocgenerator: " + ex.Message + " ", ex); // } //} ///// <summary> ///// Récupère l'objet DocgeneratorPO de la base, et applique les modifications renseignées dans ///// le Poco passé en paramètre ///// </summary> ///// <param name="poco"></param> //public DocGeneratorPO UpdateDocGenerator(DocGeneratorPoco poco) //{ // DocGeneratorPO docGenerator = (DocGeneratorPO)GetIDocGenerator(poco.IDDocGenerator); // if (docGenerator == null) // throw new Exception("UpdateDocGenerator: docgenerator non trouvé "); // docGenerator.FromObject(poco); // this.SaveBubble(docGenerator); // return docGenerator; //} public void UpdateDocGenerator(DocGeneratorPO docGenerator) { this.SaveBubble(docGenerator); }