Ejemplo n.º 1
0
        public InstallationEquipmentModule InstallationModule(Installation installation, InstallationEquipmentModule parentModule)
        {
            InstallationEquipmentModule m = new InstallationEquipmentModule()
            {
                Installation    = installation,
                ParentModule    = parentModule,
                EquipmentModule = this
            };

            foreach (var module in this.SubordonateModules)
            {
                m.SubordonateModules.Add(module.InstallationModule(installation, m));
            }

            foreach (var part in this.CurrentParts)
            {
                m.InstallationEquipmentParts.Add(part.InstallationPart(m));
            }

            foreach (var labour in this.EquipmentLabours)
            {
                m.InstallationEquipmentLabours.Add(labour.InstallationLabour(m));
            }

            return(m);
        }
Ejemplo n.º 2
0
        public InstallationEquipmentLabour InstallationLabour(InstallationEquipmentModule parentModule)
        {
            InstallationEquipmentLabour l = new InstallationEquipmentLabour()
            {
                EquipmentLabour             = this,
                InstallationEquipmentModule = parentModule
            };

            return(l);
        }
Ejemplo n.º 3
0
        public InstallationEquipmentPart InstallationPart(InstallationEquipmentModule parentModule)
        {
            InstallationEquipmentPart p = new InstallationEquipmentPart()
            {
                InstallationEquipmentModule = parentModule,
                EquipmentPart = this
            };

            return(p);
        }