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();
        }
示例#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();
        }