Пример #1
0
        private void CreateLines()
        {
            Object[,] capaFacilityInput = configDico[Legende.CAPAPROD];

            for (int i = 1; i < capaFacilityInput.GetLength(0); i++)
            {
                string axeName       = (string)capaFacilityInput[i, 0];
                string facilityName  = (string)capaFacilityInput[i, 1];
                string treatmentName = (string)capaFacilityInput[i, 3];

                foreach (CapexObjectManager objManager in objectManagerDico.Values)
                {
                    Axe variableAxe = objManager.GetOrCreateAxe(axeName);
                    variableAxe.AddFacility(facilityName);
                    Entity variableFacility = variableAxe.GetEntity(facilityName);
                    variableFacility.AddTreatment(treatmentName, TreatmentType.FACILITY_LINE);
                }
            }
        }