public Client(conClientes conClientes) { this.RazonSocial = conClientes.RazonSocial; this.AbreviaturaId = conClientes.AbreviaturaId; this.Activo = Convert.ToBoolean(conClientes.Activo); this.Id = conClientes.ID; this.SituacionIvaId = new IvaSituation(conClientes.SituacionIvaId); }
public static string GetEstadoMorosidad(long clienteId) { conClientes conClientes = new conClientes(); Client client = null; //long id = conClientes.GetIDByAbreviaturaId(clienteId, true); if (clienteId != 0) { return conClientes.GetEstadoMorosidad(clienteId); } return String.Empty; }
public static List<Plan> GetAllPlansByClient(string client) { conClientes conClientes = new conClientes(); conPlanes conPlanes = new conPlanes(); conPlanes.CleanProperties(conPlanes); long id = conClientes.GetIDByAbreviaturaId(client); if (id != 0) { DataTable plans = conPlanes.GetAll(id); return plans.DataTableToList<Plan>(); } return null; }
public static Client GetIdByAbreviaturaId(string clientAbreviaturaId) { conClientes conClientes = new conClientes(); Client client = null; long id = conClientes.GetIDByAbreviaturaId(clientAbreviaturaId, true); if (id != 0) { client = GetById(id); client.EstadoMorosidad = conClientes.GetEstadoMorosidad(id); client.Id = id; } return client; }
public static Client GetById(long id) { conClientes conClientes = new conClientes(); conClientes.Abrir(id.ToString()); return new Client(conClientes); }
public static List<Client> GetAll() { conClientes conClientes = new conClientes(); DataTable dtClients = conClientes.GetAll(); return dtClients.DataTableToList<Client>(); }