Esempio n. 1
0
 public PlantillaEntity()
 {
     lstPlantillaDeta = new List <PlantillaDetaEntity>();
     objEmpleado      = new EmpleadoEntity();
     objArea          = new AreaEntity();
     objPresupuesto   = new PresupuestoEntity();
     objSolicitud     = new SolicitudEntity();
 }
Esempio n. 2
0
 public PlantillaEntity()
 {
     lstPlantillaDeta = new List<PlantillaDetaEntity>();
     objEmpleado = new EmpleadoEntity();
     objArea = new AreaEntity();
     objPresupuesto = new PresupuestoEntity();
     objSolicitud = new SolicitudEntity();
 }
Esempio n. 3
0
		/// <summary>
		/// Retorna un LISTA de registros de la Entidad Presupuesto.Presupuesto
		/// En la BASE de DATO la Tabla : [Presupuesto.Presupuesto]
		/// <summary>
		/// <returns>List</returns>
        public List<PresupuestoEntity> Listar(int? numAnio)
        {
            List<PresupuestoEntity> lstPresupuestoEntity = new List<PresupuestoEntity>();
            try
            {
                using (_DBMLPresupuestoDataContext SQLDC = new _DBMLPresupuestoDataContext(conexion))
                {
                    var resul = SQLDC.pa_S_Presupuesto(numAnio);
                    foreach (var item in resul)
                    {
                        PresupuestoEntity objPresupuestoEntity = new PresupuestoEntity();
                        objPresupuestoEntity.Codigo = item.codPresupuesto;
                        objPresupuestoEntity.desNombre = item.desNombre;
                        objPresupuestoEntity.numAnio = item.numAnio;
                        objPresupuestoEntity.fecInicio = item.fecInicio;
                        objPresupuestoEntity.fecCierre = item.fecCierre;
                        objPresupuestoEntity.codRegEstado = item.codRegEstado;
                        objPresupuestoEntity.segUsuarioCrea = item.segUsuarioCrea;
                        objPresupuestoEntity.segFechaCrea = item.segFechaCrea;
                        objPresupuestoEntity.segUsuarioEdita = item.segUsuarioEdita;
                        objPresupuestoEntity.segFechaEdita = item.segFechaEdita;
                        objPresupuestoEntity.segMaquinaOrigen = item.segMaquinaOrigen;
                        objPresupuestoEntity.monTotalGastado = item.monTotalGastado.HasValue ? item.monTotalGastado.Value : 0;
                        objPresupuestoEntity.monTotalPresupuesto = item.monTotalPresupuesto.HasValue ? item.monTotalPresupuesto.Value : 0;
                        objPresupuestoEntity.monTotalSolicitado = item.monTotalSolicitado.HasValue ? item.monTotalSolicitado.Value : 0;

                        lstPresupuestoEntity.Add(objPresupuestoEntity);
                    }
                }
            }
            catch (Exception ex)
            {
                log.Error(String.Concat("Listar", " | ", ex.Message.ToString()));
                throw ex;
            }
            return lstPresupuestoEntity;
        }
 public PresupuestoAreaEntity()
 {
     objArea = new AreaEntity();
     objPresupuesto = new PresupuestoEntity();
 }
Esempio n. 5
0
 public PresupuestoAreaEntity()
 {
     objArea        = new AreaEntity();
     objPresupuesto = new PresupuestoEntity();
 }