public static string SELECT(PlantillaExamenInfo item)
 {
     return(Preguntas_Plantilla.SELECT(new QueryConditions()
     {
         PlantillaExamen = item
     }, false));
 }
        public void CopyValues(PlantillaExamenInfo source)
        {
            if (source == null)
            {
                return;
            }

            _record.CopyValues(source.Base.Record);

            _modulo = source.Modulo;
        }
        public static string SELECT_BY_PLANTILLA(long oid_plantilla, bool lockTable)
        {
            QueryConditions conditions = new QueryConditions()
            {
                PlantillaExamen = PlantillaExamenInfo.New()
            };

            conditions.PlantillaExamen.Oid = oid_plantilla;

            return(Preguntas_Plantilla.SELECT(conditions, lockTable));
        }
        public InformeDisponiblesPlantillaRpt GetInformeDisponiblesPlantillaReport(PlantillaExamenInfo item, InformePlantillaList lista)
        {
            if (lista == null)
            {
                return(null);
            }
            InformeDisponiblesPlantillaRpt doc = new InformeDisponiblesPlantillaRpt();


            //Si no existen conceptos, no tiene sentido un informe detallado. Además, falla en Crystal Reports
            if (lista.Count <= 0)
            {
                return(null);
            }

            List <PlantillaExamenInfo> pList = new List <PlantillaExamenInfo>();

            pList.Add(item);

            doc.SetDataSource(pList);
            doc.Subreports[0].SetDataSource(lista);

            return(doc);
        }