コード例 #1
0
        public static List <Marchandise> getMarchandiseByIdDoss(string id)
        {
            List <Marchandise> lstMarch = new List <Marchandise>();
            List <Conteneur>   ctList   = new List <Conteneur>();

            ctList = ConteneurDAO.getAllTCByIdDoss(id);


            foreach (Marchandise m in ctList.Single().Marchandises)
            {
                lstMarch.Add(m);
            }

            return(lstMarch);
        }
コード例 #2
0
        /// <summary>
        /// methode permettant d'obtenir les marchandises en fonction de l'id dossier fcl
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public List <Marchandise> getMarchandiseByIdDoss(string id)
        {
            ConteneurDAO       leTC     = new ConteneurDAO();
            List <Marchandise> lstMarch = new List <Marchandise>();
            List <Conteneur>   ctList   = new List <Conteneur>();

            ctList = leTC.getAllTCByIdDoss(id);

            foreach (var mc in ctList)
            {
                foreach (Marchandise m in mc.Marchandises)
                {
                    lstMarch.Add(m);
                }
            }
            return(lstMarch);
        }