public static ReportDocument GetReportComprobantesCompras(ComprobantesComprasBL comprobantesComprasBL, DateTime fechaDesde, DateTime fechaHasta) { ComprobantesComprasRpt result = new ComprobantesComprasRpt(); result.SetDataSource(comprobantesComprasBL.GetDTODataSource(fechaDesde, fechaHasta)); result.SetParameterValue(result.Parameter_FechaDesde.ParameterFieldName, fechaDesde.ToString("dd/MM/yyyy")); result.SetParameterValue(result.Parameter_FechaHasta.ParameterFieldName, fechaHasta.ToString("dd/MM/yyyy")); result.SetParameterValue(result.Parameter_Empresa.ParameterFieldName, ""); return(result); }
private void mnuCompras_NotasDebito_Click(object sender, EventArgs e) { ComprobantesComprasBL notasDebitoBL = BusinessLogicFactory.GetBusinessLogicInstance(db, typeof(ComprobantesComprasBL)) as ComprobantesComprasBL; notasDebitoBL.SetTipoFilter(TiposComprobantesList.NotaDebito); CRUDComprobantesComprasController result = new CRUDComprobantesComprasController(notasDebitoBL, "Notas de Débito de Proveedores", "Notas de Débito de Proveedores", typeof(ComprobantesComprasCRUD)); CRUDControllerManager.Instance.GetCRUDChildControllerManager().SetChildControllers(result); result.ShowGrid(); }
public LibroComprasAFIPController(ComprobantesComprasBL comprobantesComprasBL, EmpresasBL empresasBL) { libroIVAComprasBL = new LibroIVAComprasBL(comprobantesComprasBL); this.empresasBL = empresasBL; }