public void AddPackage(LignesCommande item)
        {
            var package = new Emballage()
            {
                Commande  = item,
                Reference = item.IdReferencesNavigation,
                Quantite  = item.Quantite,
            };

            package.Compteur = package.Quantite * 3600 / Cadence;
            Packages.Add(package);
            InProduction = true;
        }
Exemple #2
0
        internal void AddBonbons(LignesCommande item)
        {
            var bonbon = new Bonbon()
            {
                Commande  = item,
                Reference = item.IdReferencesNavigation,
                Quantite  = item.Quantite * item.IdReferencesNavigation.IdConditionnementsNavigation.Quantite,
            };

            bonbon.Compteur = bonbon.Quantite * 3600 / Cadence;
            Bonbons.Add(bonbon);
            InProduction = true;
        }
Exemple #3
0
        private ICollection <LignesCommande> GetLignesCommandes()
        {
            var list   = new List <LignesCommande>();
            var random = new Random();

            int max = random.Next(1, 6);

            for (int i = 0; i < max; i++)
            {
                var ligne = new LignesCommande()
                {
                    Etat = 1,
                    IdReferencesNavigation = getReference(list),
                    Quantite = random.Next(5, 21)
                };
                list.Add(ligne);
            }

            return(list);
        }