public ReportedeAnticipo()
        {
            InitializeComponent();

            var _anticipoBL   = new AnticiposBL();
            var _cargosBL     = new CargosBL();
            var _metodoPagoBL = new MetodoPagoBL();

            var bindingSource = new BindingSource();

            bindingSource.DataSource = _anticipoBL.ObtenerAnticipos();

            var bindingSource3 = new BindingSource();

            bindingSource3.DataSource = _cargosBL.ObtenerCargos();

            var bindingSource4 = new BindingSource();

            bindingSource4.DataSource = _metodoPagoBL.ObtenerMetodoPagos();

            var reporte = new ReporteAnticipo();

            reporte.Database.Tables["Anticipo"].SetDataSource(bindingSource);
            reporte.Database.Tables["Cargo"].SetDataSource(bindingSource3);
            reporte.Database.Tables["MetodoPago"].SetDataSource(bindingSource4);

            crystalReportViewer1.ReportSource = reporte;
            crystalReportViewer1.RefreshReport();
        }
Exemple #2
0
        public HorasExtras()
        {
            InitializeComponent();

            _sexoBL = new SexoBL();
            listaSexosBindingSource.DataSource = _sexoBL.ObtenerSexos();

            _trabajadores = new TrabajadoresBL();
            listaTrabajadoresBindingSource.DataSource = _trabajadores.ListaTrabajadores;

            _cargosBL = new CargosBL();
            listaCargosBindingSource.DataSource = _cargosBL.ObtenerCargos();

            _jornadaBL = new JornadaBL();
            listaJornadasBindingSource.DataSource = _jornadaBL.ObtenerJornadas();

            _estadocivilBL = new EstadoCivilBL();
            listaEstadoCivilesBindingSource.DataSource = _estadocivilBL.ObtenerEstadoCiviles();

            _metodopagoBL = new MetodoPagoBL();
            listaMetodoPagosBindingSource.DataSource = _metodopagoBL.ObtenerMetodoPagos();

            _horaextrasBL = new HorasExtrasBL();
            listaHoraExtrasBindingSource.DataSource = _horaextrasBL.ObtenerHoraExtras();
        }
        public ResultadoVacaciones()
        {
            InitializeComponent();
            _sexoBL = new SexoBL();
            listaSexosBindingSource.DataSource = _sexoBL.ObtenerSexos();

            _trabajadores = new TrabajadoresBL();
            listaTrabajadoresBindingSource.DataSource = _trabajadores.ObtenerTrabajador();

            _cargosBL = new CargosBL();
            listaCargosBindingSource.DataSource = _cargosBL.ObtenerCargos();

            _jornadaBL = new JornadaBL();
            listaJornadasBindingSource.DataSource = _jornadaBL.ObtenerJornadas();

            _estadocivilBL = new EstadoCivilBL();
            listaEstadoCivilesBindingSource.DataSource = _estadocivilBL.ObtenerEstadoCiviles();

            _metodopagoBL = new MetodoPagoBL();
            listaMetodoPagosBindingSource.DataSource = _metodopagoBL.ObtenerMetodoPagos();

            _extrabajadorBL = new ExTrabajadoresBL();
            listaExTrabajadoresBindingSource.DataSource = _extrabajadorBL.ObtenerExTrabajador();

            _VacacionBL = new VacacionesBL();
            listaVacacionesBindingSource.DataSource = _VacacionBL.ObtenerVacaciones();
        }
        public IEnumerable <ListDto> GetListCargos()
        {
            CargosBL   = new CargosBL();
            RequestDto = new RequestDto();
            RequestDto = CargosBL.GetListCargos();
            List <ListDto> infoEmpleadosDto = new List <ListDto>();

            infoEmpleadosDto = JsonConvert.DeserializeObject <List <ListDto> >(RequestDto.Result.ToString());
            return(infoEmpleadosDto);
        }
Exemple #5
0
        public Busquedas()
        {
            InitializeComponent();

            _cargosBL = new CargosBL();
            listaCargosBindingSource.DataSource = _cargosBL.ObtenerCargos();

            _trabajoresBL = new TrabajadoresBL();
            listaTrabajadoresBindingSource.DataSource = _trabajoresBL.ObtenerTrabajador();
        }
Exemple #6
0
        public Asistencia()
        {
            InitializeComponent();

            _trabajadores = new TrabajadoresBL();
            listaTrabajadoresBindingSource.DataSource = _trabajadores.ListaTrabajadores;  //ObtenerTrabajador();

            _cargosBL = new CargosBL();
            listaCargosBindingSource.DataSource = _cargosBL.ObtenerCargos();

            _jornadaBL = new JornadaBL();
            listaJornadasBindingSource.DataSource = _jornadaBL.ObtenerJornadas();
        }
Exemple #7
0
        public Planillas()
        {
            InitializeComponent();

            _cargosBL = new CargosBL();
            listaCargosBindingSource.DataSource = _cargosBL.ObtenerCargos();

            _trabajoresBL = new TrabajadoresBL();
            listaTrabajadoresBindingSource.DataSource = _trabajoresBL.ObtenerTrabajador();

            _jornadaBL = new JornadaBL();
            listaJornadasBindingSource.DataSource = _jornadaBL.ObtenerJornadas();

            _metodosdePagoBL = new MetodoPagoBL();
            listaMetodoPagosBindingSource.DataSource = _metodosdePagoBL.ObtenerMetodoPagos();

            _planillaBL = new PlanillaBL();
            listaPlanillasBindingSource.DataSource = _planillaBL.ObtenerPlanillas();
        }
Exemple #8
0
        public Empleados()
        {
            InitializeComponent();

            _trabajadores = new TrabajadoresBL();
            listaTrabajadoresBindingSource.DataSource = _trabajadores.ObtenerTrabajador();

            _cargosBL = new CargosBL();
            listaCargosBindingSource.DataSource = _cargosBL.ObtenerCargos();

            _jornadaBL = new JornadaBL();
            listaJornadasBindingSource.DataSource = _jornadaBL.ObtenerJornadas();

            _estadocivilBL = new EstadoCivilBL();
            listaEstadoCivilesBindingSource.DataSource = _estadocivilBL.ObtenerEstadoCiviles();

            _metodopagoBL = new MetodoPagoBL();
            listaMetodoPagosBindingSource.DataSource = _metodopagoBL.ObtenerMetodoPagos();
        }
Exemple #9
0
        public JsonResult GetListCargos()
        {
            CargosBL   = new CargosBL();
            RequestDto = new RequestDto();

            RequestDto = CargosBL.GetListCargos();

            if (RequestDto.RequestStatus == RequestDto.Status.Failure)
            {
                return(new JsonResult()
                {
                    Data = RequestDto, JsonRequestBehavior = JsonRequestBehavior.AllowGet
                });
            }

            return(new JsonResult()
            {
                Data = RequestDto, JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
        public ReporteHorasExtras()
        {
            InitializeComponent();

            var _horasExtrasBL  = new HorasExtrasBL();
            var _trabajadoresBL = new TrabajadoresBL();
            var _cargoBL        = new CargosBL();
            var _metododePagoBL = new MetodoPagoBL();
            var _jornadaBL      = new JornadaBL();

            var bindingSource = new BindingSource();

            bindingSource.DataSource = _horasExtrasBL.ObtenerHoraExtras();

            var bindingSource2 = new BindingSource();

            bindingSource2.DataSource = _trabajadoresBL.ObtenerTrabajador();

            var bindingSource3 = new BindingSource();

            bindingSource3.DataSource = _cargoBL.ObtenerCargos();

            var bindingSource4 = new BindingSource();

            bindingSource4.DataSource = _metododePagoBL.ObtenerMetodoPagos();

            var bindingSource5 = new BindingSource();

            bindingSource5.DataSource = _jornadaBL.ObtenerJornadas();

            var reporte = new ReporteHorasExtra();

            //reporte.SetDataSource(bindingSource);
            reporte.Database.Tables["HoraExtra"].SetDataSource(bindingSource);
            reporte.Database.Tables["Cargo"].SetDataSource(bindingSource3);
            reporte.Database.Tables["MetodoPago"].SetDataSource(bindingSource4);
            reporte.Database.Tables["Jornada"].SetDataSource(bindingSource5);

            crystalReportViewer1.ReportSource = reporte;
            crystalReportViewer1.RefreshReport();
        }
Exemple #11
0
        public ReportedeVacaciones()
        {
            InitializeComponent();

            var _vacacionesBL = new VacacionesBL();
            //var _trabajadoresBL = new TrabajadoresBL();
            var _cargosBL   = new CargosBL();
            var _jornadaBL  = new JornadaBL();
            var _metodoPago = new MetodoPagoBL();

            var bindingSource = new BindingSource();

            bindingSource.DataSource = _vacacionesBL.ObtenerVacaciones();

            //var bindingSource2 = new BindingSource();
            //bindingSource2.DataSource = _trabajadoresBL.ObtenerTrabajador();

            var bindingSource3 = new BindingSource();

            bindingSource3.DataSource = _cargosBL.ObtenerCargos();

            var bindingSource4 = new BindingSource();

            bindingSource4.DataSource = _jornadaBL.ObtenerJornadas();

            var bindingSource5 = new BindingSource();

            bindingSource5.DataSource = _metodoPago.ObtenerMetodoPagos();

            var reporte = new ReporteVacaciones();

            reporte.Database.Tables["Vacacion"].SetDataSource(bindingSource);
            //reporte.Database.Tables["Trabajador"].SetDataSource(bindingSource2);
            reporte.Database.Tables["Cargo"].SetDataSource(bindingSource3);
            reporte.Database.Tables["Jornada"].SetDataSource(bindingSource4);
            reporte.Database.Tables["MetodoPago"].SetDataSource(bindingSource5);

            crystalReportViewer1.ReportSource = reporte;
            crystalReportViewer1.RefreshReport();
        }
Exemple #12
0
        public ReportPrestaciones()
        {
            InitializeComponent();

            var _exTrabajadorBL = new ExTrabajadoresBL();
            var _cargoBL        = new CargosBL();
            var _metododePagoBL = new MetodoPagoBL();
            var _jornadaBL      = new JornadaBL();

            var bindingSource = new BindingSource();

            bindingSource.DataSource = _exTrabajadorBL.ObtenerExTrabajador();

            var bindingSource2 = new BindingSource();

            bindingSource2.DataSource = _cargoBL.ObtenerCargos();

            var bindingSource3 = new BindingSource();

            bindingSource3.DataSource = _metododePagoBL.ObtenerMetodoPagos();

            var bindingSource4 = new BindingSource();

            bindingSource4.DataSource = _jornadaBL.ObtenerJornadas();

            var reporte = new ReporteExEmpleado();

            //reporte.SetDataSource(bindingSource);
            reporte.Database.Tables["ExTrabajador"].SetDataSource(bindingSource);
            reporte.Database.Tables["Cargo"].SetDataSource(bindingSource2);
            reporte.Database.Tables["MetodoPago"].SetDataSource(bindingSource3);
            reporte.Database.Tables["Jornada"].SetDataSource(bindingSource4);


            crystalReportViewer1.ReportSource = reporte;
            crystalReportViewer1.RefreshReport();
        }