//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
        private Partes CargarParte(DataRow dr)
		{
			try
			{
				Partes oObjeto = new Partes();
                ClientesImpl oClientesImpl = new ClientesImpl();
                AreasImpl oAreaImpl = new AreasImpl();
                YacimientosImpl oYacimientosImpl = new YacimientosImpl();
                TareasImpl oTareasImpl = new TareasImpl();
                EquiposImpl oEquiposImpl = new EquiposImpl();


				oObjeto.IdParte = Int32.Parse(dr["IdParte"].ToString());
				oObjeto.Fecha = DateTime.Parse(dr["Fecha"].ToString());
				oObjeto.Numero = Int32.Parse(dr["Numero"].ToString());
                oObjeto.IdEquipo = (Int32.Parse(dr["IdEquipo"].ToString()));
				oObjeto.IdPickUp = (Int32.Parse(dr["IdPickUp"].ToString()));
				oObjeto.IdVehiculoCL = (Int32.Parse(dr["IdVehiculoCL"].ToString()));
				oObjeto.oIdCliente = oClientesImpl.ClientesGetById(Int32.Parse(dr["IdCliente"].ToString()));
				oObjeto.oIdArea = oAreaImpl.AreasGetById(Int32.Parse(dr["IdArea"].ToString()));
				oObjeto.oIdYacimiento = oYacimientosImpl.YacimientosGetById(Int32.Parse(dr["IdYacimiento"].ToString()));
				oObjeto.Pozo = dr["Pozo"].ToString();
				oObjeto.Bateria = dr["Bateria"].ToString();
				oObjeto.IdOperador = (dr["IdOperador"].ToString());
				oObjeto.IdAyudante = (dr["IdAyudante"].ToString());
				oObjeto.IdChoferCL = (dr["IdChoferCL"].ToString());
				oObjeto.Baja = Boolean.Parse(dr["Baja"].ToString());
				oObjeto.HoraInicio = DateTime.Parse(dr["HoraInicio"].ToString());
				oObjeto.HoraFin = DateTime.Parse(dr["HoraFin"].ToString());
				oObjeto.IdTareas = (dr["IdTareas"].ToString());
				oObjeto.KmEquipoAdic = Int32.Parse(dr["KmEquipoAdic"].ToString());
				oObjeto.Automatico = Boolean.Parse(dr["Automatico"].ToString());
				oObjeto.Inspector = dr["Inspector"].ToString();
				oObjeto.Observaciones = dr["Observaciones"].ToString();
				oObjeto.Zona = dr["Zona"].ToString();
				
				return oObjeto;
			}
			catch(Exception ex)
			{
				throw ex;
			}
		}
Example #2
0
        public List <Areas> AreasGetAll()
        {
            AreasImpl oAreasImpl = new AreasImpl();

            return(oAreasImpl.AreasGetAll());
        }
Example #3
0
        public Areas AreasGetById(string Id)
        {
            AreasImpl oAreasImpl = new AreasImpl();

            return(oAreasImpl.AreasGetById(Id));
        }
Example #4
0
        public bool AreasDelete(String Id)
        {
            AreasImpl oAreasImpl = new AreasImpl();

            return(oAreasImpl.AreasDelete(Id));
        }
Example #5
0
        public bool AreasUpdate(Areas oAreas)
        {
            AreasImpl oAreasImpl = new AreasImpl();

            return(oAreasImpl.AreasUpdate(oAreas));
        }
Example #6
0
        public int AreasAdd(Areas oAreas)
        {
            AreasImpl oAreasImpl = new AreasImpl();

            return(oAreasImpl.AreasAdd(oAreas));
        }