public List <ETerceros> getTipo(string tipo) { if (string.IsNullOrEmpty(tipo)) { return(null); } TerceroDAO tDao = new TerceroDAO(); return(tDao.getPorTipo(tipo)); }
public ETerceros buscarTercero(string codigo) { if (string.IsNullOrWhiteSpace(codigo)) { return(null); } TerceroDAO tdao = new TerceroDAO(); return(tdao.buscarTercero(codigo)); }
public List <ETerceros> buscar(string campo, string dato) { if (campo == "Nombre") { campo = "nombre"; } else { campo = "nit"; } TerceroDAO tDao = new TerceroDAO(); return(tDao.getPorFiltro(campo, dato)); }
public string insert(ETerceros obj) { TerceroDAO tDao = new TerceroDAO(); if (string.IsNullOrWhiteSpace(obj.nit)) { return("Nit o Cedula Esta Vacia"); } if (string.IsNullOrWhiteSpace(obj.nit)) { return("Falta el Nombre "); } if (tDao.insertar(obj) > 0) { return("Exito"); // Datos Guardados } else { return("Error al Guardar los Datos"); } }
public DataTable getTodos() { TerceroDAO tDao = new TerceroDAO(); return(tDao.getTodos()); }
public List <ETerceros> getAll() { TerceroDAO tdao = new TerceroDAO(); return(tdao.getAll()); }