Example #1
0
 public static string SELECT_BY_FECHA(InstructorInfo item, DateTime inicio, DateTime fin)
 {
     return(Submodulo_Instructor.SELECT(new QueryConditions()
     {
         Instructor = item, FechaAuxIni = inicio, FechaAuxFin = fin
     }, false));
 }
Example #2
0
 public static string SELECT(InstructorInfo item)
 {
     return(Submodulo_Instructor.SELECT(new QueryConditions()
     {
         Instructor = item
     }, false));
 }
Example #3
0
        public void CopyValues(Submodulo_Instructor source)
        {
            if (source == null)
            {
                return;
            }

            _record.CopyValues(source.Base.Record);

            _oid_modulo = source.OidModulo;
        }
Example #4
0
        // called to copy objects data from list
        private void Fetch(IDataReader reader)
        {
            IsReadOnly = false;

            while (reader.Read())
            {
                this.AddItem(Submodulo_Instructor.GetChild(reader).GetInfo());
            }

            IsReadOnly = true;

            this.RaiseListChangedEvents = true;
        }
Example #5
0
        //  private Submodulo_InstructorList() { }

        /// <summary>
        /// Retrieve the complete list from db
        /// </summary>
        /// <returns>Submodulo_InstructorList</returns>
        public static Submodulo_InstructorList GetList()
        {
            CriteriaEx criteria = Submodulo_Instructor.GetCriteria(Submodulo_Instructor.OpenSession());

            //No criteria. Retrieve all de List
            if (nHManager.Instance.UseDirectSQL)
            {
                criteria.Query = Submodulos_Instructores.SELECT();
            }
            Submodulo_InstructorList list = DataPortal.Fetch <Submodulo_InstructorList>(criteria);

            CloseSession(criteria.SessionCode);

            return(list);
        }
 public void CopyFrom(Submodulo_Instructor source)
 {
     _base.CopyValues(source);
 }