public FormReportePlanilla()
        {
            InitializeComponent();

            var _planillaBL   = new PlanillaBL();
            var bindingSource = new BindingSource();

            bindingSource.DataSource = _planillaBL.ObtenerPlanillas();

            var reporte = new ReportePlanilla();

            reporte.SetDataSource(bindingSource);

            crystalReportViewer1.ReportSource = reporte;
            crystalReportViewer1.RefreshReport();
        }
Exemple #2
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 #3
0
 public bool Eliminar(int id)
 {
     return(PlanillaBL.Eliminar(id));
 }
Exemple #4
0
 public bool Actualizar(Planilla planilla)
 {
     return(PlanillaBL.Actualizar(planilla));
 }
Exemple #5
0
 public bool Insertar(Planilla planilla)
 {
     return(PlanillaBL.Insertar(planilla));
 }
Exemple #6
0
        public List <PlanillaDetalle> ObtenerDetalle(Planilla planilla)
        {
            List <PlanillaDetalle> detalle = PlanillaBL.ObtenerDetalle(planilla);

            return(detalle);
        }
Exemple #7
0
        public Planilla ObtenerPorId(int id)
        {
            Planilla planilla = PlanillaBL.ObtenerPorId(id);

            return(planilla);
        }
Exemple #8
0
        public List <Planilla> ObtenerTodo()
        {
            List <Planilla> planillas = PlanillaBL.ObtenerTodo();

            return(planillas);
        }