public BusquedaProveedor(String DocumentoTipo) { InitializeComponent(); objProveedorDAO = new ProveedorDAO(); TipoDocumento = DocumentoTipo; formRetencion = Retencion.retencionForm; formCajaLetra = CanjeLetraNuevo.canjeletranuevo; formReporte = ReporteFacturaProveeodr.formReporteProveedor; formCheques = ReporteVoucher.formReporteCheques; objListProveedor = objProveedorDAO.listarProveedor(); objListBusquedaTotal = objListProveedor; gridParams(); listProveedor(objListProveedor); txt_BuscarCliente.TextChanged += Txt_BuscarCliente_TextChanged; }
public BuscarCliente(String DocumentoTipo) { InitializeComponent(); TipoDocumento = DocumentoTipo; if (DocumentoTipo == "F") { formFac = Factura.formFactura; } else if (DocumentoTipo == "B") { formBole = Boleta.boletaForm; } else if (DocumentoTipo == "R") { formReport = ReporteDocumentosPorCliente.formReporteClientes; } else if (DocumentoTipo == "RT") { formReport = ReporteDocumentosPorCliente.formReporteClientes; } else if (DocumentoTipo == "T" || DocumentoTipo == "A") { formLetraCambio = LetraCambio.letraCambioForm; } else if (DocumentoTipo == "RT") { formRetencion = Retencion.retencionForm; } else if (DocumentoTipo == "AB") { formAbono = AbonoBanco.AbonoForm; } else if (DocumentoTipo == "VC") { formVoucher = ReporteVoucher.formReporteCheques; } else if (DocumentoTipo == "BAN") { formVoucher = ReporteVoucher.formReporteCheques; } objClienteDao = new ClienteDAO(); objListCliente = objClienteDao.listarCliente(Ventas.UNIDADNEGOCIO); objListBusquedaTotal = objListCliente; gridParams(); listCliente(objListCliente); txt_BuscarCliente.TextChanged += Txt_BuscarCliente_TextChanged; }