Example #1
0
 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;
 }
Example #2
0
        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;
        }