예제 #1
0
        public static PeriodoCollectionDC PeriodoCollectionBEConvertirPeriodoCollectionDC(List<PeriodoEntity> listPeriodoBE)
        {
            PeriodoCollectionDC oPeriodoCollectionDC = new PeriodoCollectionDC();
            PeriodoDC oPeriodoDC;
            for (int i = 0; i < listPeriodoBE.Count; i++)
            {
                oPeriodoDC = PeriodoBEConvertirPeriodoDC(listPeriodoBE[i]);
                oPeriodoCollectionDC.Add(oPeriodoDC);
            }

            return oPeriodoCollectionDC;
        }
예제 #2
0
        public static PeriodoCollectionDC TranslateListarPeriodosLRToPeriodoCollectionDC(List<up_Listar_PeriodosResult> lstLR)
        {
            PeriodoCollectionDC collection;

            try
            {
                collection = new PeriodoCollectionDC();

                for (int i = 0; i < lstLR.Count; i++)
                    collection.Add(TranslateListarPeriodosLRToPeriodoDC(lstLR[i]));

                return collection;
            }

            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #3
0
        public static PeriodoCollectionDC TranslatePeriodoLRToPeriodoCollection(List<uspPeriodo_ListarXEstadoXEsActualResult> lstLR)
        {
            PeriodoCollectionDC collection;

            try
            {
                collection = new PeriodoCollectionDC();
                //collection.lstPeriodo = new Collection<PeriodoDC>();

                for (int i = 0; i < lstLR.Count; i++)
                {
                    collection.Add(TranslatePeriodoLRToPeriodoDC(lstLR[i]));
                }

                return collection;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            { }
        }