private Trummafunktion CreateTrummaFunktion(BIS_Trumma p, string suffix) { Trummafunktion o = new Trummafunktion { name = "Trummafunktion", versionId = _VersionId, stringSet = new TrummafunktionStringSet { faunatrumma = new Trummafunktion_faunatrumma { generalProperty = new faunatrumma { instanceRef = "faunatrumma", softType = _SoftTypeProperty }, Array = true, JSonMapToPropertyName = _JsonMapToValue, value = p.FaunaTrumma } }, företeelsetyp = new ClassificationReference_FunktionellAnläggning_företeelsetyp { @class = new FTFunktionellAnläggningReference { softType = "FTFunktionellAnläggning", instanceRef = "Trummafunktion" }, startSpecified = false, endSpecified = false } }; o.id = o.name + suffix; return(o); }
private Trummaindivid CreateTrummaIndivid(BIS_Trumma p, string suffix) { Trummaindivid o = new Trummaindivid { name = "Trummaindivid", versionId = _VersionId, företeelsetyp = new ClassificationReference_Styckevara_företeelsetyp { @class = new FTStyckevaraReference { softType = "FTStyckevara", instanceRef = "Trummaindivid" }, startSpecified = false, endSpecified = false } }; o.id = o.name + suffix; return(o); }
private Trummaprodukt CreateTrummaProdukt(BIS_Trumma p, string suffix) { Trummaprodukt o = new Trummaprodukt { name = "Trummaprodukt", versionId = _VersionId, numericSet = new TrummaproduktNumericSet { antalvattengångar = new Trummaprodukt_antalvattengångar { JSonMapToPropertyName = _JsonMapToValue, value = p.Antalvattengångar, generalProperty = new antalvattengångar { instanceRef = "antalvattengångar", softType = _SoftTypeProperty } }, bredd = new Trummaprodukt_bredd { Unit = new m { softType = _SoftTypeUnit, instanceRef = "m" }, generalProperty = new bredd { instanceRef = "bredd", softType = _SoftTypeProperty }, value = DecimalConverter(p.Bredd), JSonMapToPropertyName = _JsonMapToValue }, diamRörinfodring = new Trummaprodukt_diamRörinfodring { Unit = new m { softType = _SoftTypeUnit, instanceRef = "m" }, generalProperty = new diamRörinfodring { instanceRef = "diamRörinfodring", softType = _SoftTypeProperty }, value = p.DiamRörinfodring, JSonMapToPropertyName = _JsonMapToValue }, diameter = new Trummaprodukt_diameter { Unit = new m { softType = _SoftTypeUnit, instanceRef = "m" }, generalProperty = new diameter { instanceRef = "diameter", softType = _SoftTypeProperty }, value = DecimalConverter(p.Diameter), JSonMapToPropertyName = _JsonMapToValue }, diameterFörlängningHögerSida = new Trummaprodukt_diameterFörlängningHögerSida { Unit = new m { softType = _SoftTypeUnit, instanceRef = "m" }, generalProperty = new diameterFörlängningHögerSida { instanceRef = "diameterFörlängningHögerSida", softType = _SoftTypeProperty }, value = DecimalConverter(p.DiameterFörlängningHögerSida), JSonMapToPropertyName = _JsonMapToValue }, diameterFörlängningVänsterSida = new Trummaprodukt_diameterFörlängningVänsterSida { Unit = new m { softType = _SoftTypeUnit, instanceRef = "m" }, generalProperty = new diameterFörlängningVänsterSida { instanceRef = "diameterFörlängningVänsterSida", softType = _SoftTypeProperty }, value = DecimalConverter(p.DiameterFörlängningVänsterSida), JSonMapToPropertyName = _JsonMapToValue }, fyllnadshöjdURUK = new Trummaprodukt_fyllnadshöjdURUK { Unit = new m { softType = _SoftTypeUnit, instanceRef = "m" }, generalProperty = new fyllnadshöjdURUK { instanceRef = "fyllnadshöjdURUK", softType = _SoftTypeProperty }, value = DecimalConverter(p.FyllnadsHöjdDuruk), JSonMapToPropertyName = _JsonMapToValue }, höjd = new Trummaprodukt_höjd { Unit = new m { softType = _SoftTypeUnit, instanceRef = "m" }, generalProperty = new höjd { instanceRef = "höjd", softType = _SoftTypeProperty }, value = DecimalConverter(p.Höjd), JSonMapToPropertyName = _JsonMapToValue }, längd = new Trummaprodukt_längd { Unit = new m { softType = _SoftTypeUnit, instanceRef = "m" }, generalProperty = new längd { instanceRef = "längd", softType = _SoftTypeProperty }, value = DecimalConverter(p.Längd), JSonMapToPropertyName = _JsonMapToValue }, längdFörlängningHögerSida = new Trummaprodukt_längdFörlängningHögerSida { Unit = new m { softType = _SoftTypeUnit, instanceRef = "m" }, generalProperty = new längdFörlängningHögerSida { instanceRef = "längdFörlängningHögerSida", softType = _SoftTypeProperty }, value = DecimalConverter(p.LängdFörlängningHögerSida), JSonMapToPropertyName = _JsonMapToValue }, längdFörlängningVänsterSida = new Trummaprodukt_längdFörlängningVänsterSida { Unit = new m { softType = _SoftTypeUnit, instanceRef = "m" }, generalProperty = new längdFörlängningVänsterSida { instanceRef = "längdFörlängningVänsterSida", softType = _SoftTypeProperty }, value = DecimalConverter(p.LängdFörlängningVänsterSida), JSonMapToPropertyName = _JsonMapToValue } }, notering = p.Notering, företeelsetyp = new ClassificationReference_Anläggningsprodukt_företeelsetyp { @class = new FTAnläggningsproduktReference { softType = "FTAnläggningsprodukt", instanceRef = "Trummaprodukt" }, endSpecified = false, startSpecified = false }, stringSet = new TrummaproduktStringSet { infodring = new Trummaprodukt_infodring { value = p.Infodring, generalProperty = new infodring { instanceRef = "infodring", softType = _SoftTypeProperty }, JSonMapToPropertyName = _JsonMapToValue }, materialFörlängningHögerrSida = new Trummaprodukt_materialFörlängningHögerrSida { generalProperty = new materialFörlängningHögerrSida { softType = _SoftTypeProperty, instanceRef = "materialFörlängningHögerrSida" }, JSonMapToPropertyName = _JsonMapToValue, value = p.MaterialFörlängningHögerSida }, materialFörlängningVänsterSida = new Trummaprodukt_materialFörlängningVänsterSida { generalProperty = new materialFörlängningVänsterSida { instanceRef = "materialFörlängningVänsterSida", softType = _SoftTypeProperty }, JSonMapToPropertyName = _JsonMapToValue, value = p.MaterialFörlängningVänsterSida }, släntlutningÖverstigande1_1_5 = new Trummaprodukt_släntlutningÖverstigande1_1_5 { JSonMapToPropertyName = _JsonMapToValue, value = p.SläntlutningÖverstigande1_1_5, generalProperty = new släntlutningÖverstigande1_1_5 { softType = _SoftTypeProperty, instanceRef = "släntlutningÖverstigande1_1_5" } }, typFörlängningHögerSida = new Trummaprodukt_typFörlängningHögerSida { value = p.TypFörlängningHögerSida, generalProperty = new typFörlängningHögerSida { instanceRef = "typFörlängningHögerSida", softType = _SoftTypeProperty }, JSonMapToPropertyName = _JsonMapToValue }, typFörlängningVänsterSida = new Trummaprodukt_typFörlängningVänsterSida { generalProperty = new typFörlängningVänsterSida { softType = _SoftTypeProperty, instanceRef = "typFörlängningVänsterSida" }, JSonMapToPropertyName = _JsonMapToValue, value = p.TypFörlängningVänsterSida }, ursprungligTyp = new Trummaprodukt_ursprungligTyp { JSonMapToPropertyName = _JsonMapToValue, value = p.Ursprungligtyp, generalProperty = new ursprungligTyp { instanceRef = "ursprungligTyp", softType = _SoftTypeProperty } }, ursprungligtMaterial = new Trummaprodukt_ursprungligtMaterial { value = p.UrsprungligtMaterial, generalProperty = new ursprungligtMaterial { softType = _SoftTypeProperty, instanceRef = "ursprungligtMaterial" }, JSonMapToPropertyName = _JsonMapToValue } } }; o.id = o.name + suffix; return(o); }