private List <MantenimientoAeronave> GenerarListado(List <DALC.MANTENIMIENTO_AERONAVE> DalcMantenciones)
 {
     try
     {
         List <MantenimientoAeronave> mantencionesAeronave = new List <MantenimientoAeronave>();
         foreach (Halcones.DALC.MANTENIMIENTO_AERONAVE mantAeronave in DalcMantenciones)
         {
             MantenimientoAeronave mantA = new MantenimientoAeronave();
             mantA._idMantenimientoAeronave = int.Parse(mantAeronave.ID_MANTENIMIENTO_AERONAVE.ToString());
             mantA._estado              = mantAeronave.ESTADO;
             mantA._tipoMantenimiento   = mantAeronave.TIPO_MANTENIMIENTO;
             mantA._fechaManteniminento = DateTime.Parse(mantAeronave.FECHA_MATENIMIENTO.ToString());
             CommonBC.ModeloEscuelaHalcones.Entry(mantAeronave).Reference(a => a.AERONAVE).Load();
             mantA._aeronave._idAeronave = int.Parse(mantAeronave.AERONAVE.ID_AERONAVE.ToString());
             mantA._aeronave._matricula  = mantAeronave.AERONAVE.MATRICULA;
             mantencionesAeronave.Add(mantA);
         }
         return(mantencionesAeronave);
     }
     catch (Exception ex)
     {
         ConfigHalcones.GenerarLog("ERROR", ex.ToString());
         return(null);
     }
 }
Пример #2
0
 /// <summary>
 /// Inicializador de las variables de la clase Mantenimiento Componente
 /// </summary>
 private void Init()
 {
     this._idMantenimientoComponente = 0;
     this._fechaMantenimiento        = new DateTime();
     this._estado                = string.Empty;
     this._componente            = new Componente();
     this._mantenimientoAeronave = new MantenimientoAeronave();
 }