public Plan(conPlanes conPlanes) { this.Id = conPlanes.ID; this.AbreviaturaId = conPlanes.AbreviaturaId; this.Descripcion = conPlanes.Descripcion; //this.RegFechaHora = conPlanes.regFechaHora; //this.RegTerminalId = conPlanes.regTerminalId; //this.RegUsuarioId = conPlanes.regUsuarioId; }
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; }