public void CopyValues(Curso_Instructor source) { if (source == null) { return; } _record.CopyValues(source.Base.Record); }
private void DataPortal_Fetch(CriteriaEx criteria) { try { SessionCode = criteria.SessionCode; Childs = criteria.Childs; if (nHMng.UseDirectSQL) { Curso.DoLOCK(Session()); IDataReader reader = nHMng.SQLNativeSelect(criteria.Query); if (reader.Read()) { _base.CopyValues(reader); } if (Childs) { string query = string.Empty; Curso_Instructor.DoLOCK(Session()); query = Curso_Instructors.SELECT_BY_CURSO(this.Oid); reader = nHManager.Instance.SQLNativeSelect(query, Session()); _c_profesores = Curso_Instructors.GetChildList(reader); Convocatoria_Curso.DoLOCK(Session()); query = Convocatoria_Cursos.SELECT_BY_CURSO(this.Oid); reader = nHManager.Instance.SQLNativeSelect(query, Session()); _convocatorias = Convocatoria_Cursos.GetChildList(criteria.SessionCode, reader); MaterialDocente.DoLOCK(Session()); query = MaterialDocentes.SELECT_BY_CURSO(this.Oid); reader = nHManager.Instance.SQLNativeSelect(query, Session()); _materiales = MaterialDocentes.GetChildList(criteria.SessionCode, reader); } } } catch (Exception exception) { if (Transaction() != null) { Transaction().Rollback(); } iQExceptionHandler.TreatException(exception); } }
// called to copy objects data from list private void Fetch(IDataReader reader) { this.RaiseListChangedEvents = false; IsReadOnly = false; while (reader.Read()) { this.AddItem(Curso_Instructor.GetChild(reader).GetInfo()); } IsReadOnly = true; this.RaiseListChangedEvents = true; }
public void CopyFrom(Curso_Instructor source) { _base.CopyValues(source); }