Ejemplo n.º 1
0
        private Tågvärmepostspecifikation CreateTågVärmePostSpecifikation(BIS_TågOchLokvärmeanläggning p, string suffix)
        {
            Tågvärmepostspecifikation o = new Tågvärmepostspecifikation
            {
                name      = "Tågvärmepostspecifikation",
                versionId = _VersionId,
                notering  = p.Notering,
                stringSet = new TågvärmepostspecifikationStringSet
                {
                    transformatorEffekt = new Tågvärmepostspecifikation_transformatorEffekt
                    {
                        JSonMapToPropertyName = _JsonMapToValue,
                        value           = CreateTransformatorEffekt(p.TransformatorEffekt),
                        generalProperty = new transformatorEffekt
                        {
                            softType    = _SoftTypeProperty,
                            instanceRef = "transformatorEffekt"
                        }
                    },
                    typ = new Tågvärmepostspecifikation_typ
                    {
                        value           = p.Typ,
                        generalProperty = new typ
                        {
                            instanceRef = "typ",
                            softType    = _SoftTypeProperty
                        },
                        JSonMapToPropertyName = _JsonMapToValue
                    }
                },
                företeelsetyp = new ClassificationReference_Anläggningsspecifikation_företeelsetyp
                {
                    @class = new FTAnläggningsspecifikationReference
                    {
                        softType    = "FTAnläggningsspecifikation",
                        instanceRef = "Tågvärmepostspecifikation"
                    },
                    endSpecified   = false,
                    startSpecified = false
                },
            };

            o.id = o.name + suffix;
            return(o);
        }
Ejemplo n.º 2
0
        private Transformatorbrytareprodukt CreateTransformatorbrytareprodukt(BIS_TågOchLokvärmeanläggning p, string suffix)
        {
            Transformatorbrytareprodukt o = new Transformatorbrytareprodukt
            {
                name          = "Transformatorbrytareprodukt",
                versionId     = _VersionId,
                notering      = p.Notering,
                företeelsetyp = new ClassificationReference_Anläggningsprodukt_företeelsetyp
                {
                    @class = new FTAnläggningsproduktReference
                    {
                        instanceRef = "Transformatorbrytareprodukt",
                        softType    = "FTAnläggningsprodukt"
                    },
                    endSpecified   = false,
                    startSpecified = false
                }
            };

            o.id = o.name + suffix;
            return(o);
        }
Ejemplo n.º 3
0
        private Tågvärmepostindivid CreateTågvärmepostindivid(BIS_TågOchLokvärmeanläggning p, string suffix)
        {
            Tågvärmepostindivid o = new Tågvärmepostindivid
            {
                name          = "Tågvärmepostindivid",
                versionId     = _VersionId,
                notering      = p.Notering,
                företeelsetyp = new ClassificationReference_Styckevara_företeelsetyp
                {
                    @class = new FTStyckevaraReference
                    {
                        softType    = "FTStyckevara",
                        instanceRef = "Tågvärmepostindivid"
                    },
                    endSpecified   = false,
                    startSpecified = false
                }
            };

            o.id = o.name + suffix;
            return(o);
        }