// called to retrieve data from db //protected override void Fetch(CriteriaEx criteria) //{ // this.RaiseListChangedEvents = false; // SessionCode = criteria.SessionCode; // Childs = criteria.Childs; // try // { // if (nHMng.UseDirectSQL) // { // IDataReader reader = nHManager.Instance.SQLNativeSelect(criteria.Query, Session()); // IsReadOnly = false; // while (reader.Read()) // { // this.AddItem(Alumno_ParteInfo.Get(reader,Childs)); // } // IsReadOnly = true; // } // else // { // IList<Alumno_Parte> list = criteria.List<Alumno_Parte>(); // if (list.Count > 0) // { // IsReadOnly = false; // foreach (Alumno_Parte item in list) // this.AddItem(item.GetInfo()); // IsReadOnly = true; // } // } // } // catch (Exception ex) // { // iQExceptionHandler.TreatException(ex); // } // this.RaiseListChangedEvents = true; //} #endregion #region SQL public static string SELECT(AlumnoInfo item) { return(Alumno_Parte.SELECT(new QueryConditions() { Alumno = item }, false)); }
public void CopyValues(Alumno_Parte source) { if (source == null) { return; } _record.CopyValues(source.Base.Record); }
// called to copy objects data from list private void Fetch(IDataReader reader) { this.RaiseListChangedEvents = false; IsReadOnly = false; while (reader.Read()) { this.AddItem(Alumno_Parte.GetChild(reader).GetInfo()); } IsReadOnly = true; this.RaiseListChangedEvents = true; }
public static List <FaltaAlumnoInfo> GetFaltasAlumnos() { string query = SELECT_FALTAS_ALUMNOS(); int sesion = Alumno_Partes.OpenSession(); List <FaltaAlumnoInfo> lista = new List <FaltaAlumnoInfo>(); IDataReader reader = nHManager.Instance.SQLNativeSelect(query); while (reader.Read()) { lista.Add(new FaltaAlumnoInfo(reader)); } Alumno_Parte.CloseSession(sesion); return(lista); }
public void CopyFrom(Alumno_Parte source) { _base.CopyValues(source); }