Пример #1
0
        public override void WriteConsole(ConsoleOutputStyle style)
        {
            ConsoleOutputStyle = style;

            WriteConsoleHeader(false);

            WriteConsoleEntry("Manufacturer ID", ManufacturerId.ToString());
            WriteConsoleEntry("Manufacturer Name", ManufacturerName);
            WriteConsoleEntry("Manufacturer Model", ManufacturerModel.ToString());

            WriteConsoleEntry("Specification version", SpecificationVersion);
            WriteConsoleEntry("Specification level", SpecificationLevel.ToString());
            WriteConsoleEntry("Specification revision", SpecificationRevision.ToString());
            WriteConsoleEntry("Specification date", SpecificationDate.ToString("d"));

            WriteConsoleEntry("Platform-specific family", PlatformSpecificFamily);
            WriteConsoleEntry("Platform specification level", PlatformSpecificationLevel.ToString());
            WriteConsoleEntry("Platform specification revision", PlatformSpecificationRevision.ToString());
            WriteConsoleEntry("Platform specification date", PlatformSpecificationDate.ToString("d"));

            WriteConsoleEntry("Firmware version", FirmwareVersion.ToString());
            WriteConsoleEntry("Physical presence version", PhysicalPresenceVersion);

            WriteConsoleEntry("Memory management", MemoryManagement);
            WriteConsoleEntry("Supported modes", SupportedModes);

            WriteConsoleEntry("Permanent attributes", PermanentAttributes);
            WriteConsoleEntry("Startup attributes", StartupAttributes);
        }
Пример #2
0
 public static SpecRevModel ToModel(this SpecificationRevision aSpecRev)
 {
     return(new SpecRevModel()
     {
         SpecId = aSpecRev.SpecId,
         InternalRev = aSpecRev.SpecRevId,
         Description = aSpecRev.Description,
         ExternalRev = aSpecRev.ExternalRev,
         SamplePlanId = aSpecRev.SamplePlan,
         EmployeeNumber = aSpecRev.CreatedByEmp,
         DateCreated = aSpecRev.DateCreated,
         TimeCreated = aSpecRev.TimeCreated
     });
 }
Пример #3
0
        public static SpecRevModel ToHydratedModel(this SpecificationRevision aSpecRevEntity)
        {
            var resultModel = new SpecRevModel()
            {
                SpecId         = aSpecRevEntity.SpecId,
                InternalRev    = aSpecRevEntity.SpecRevId,
                Description    = aSpecRevEntity.Description,
                ExternalRev    = aSpecRevEntity.ExternalRev,
                SamplePlanId   = aSpecRevEntity.SamplePlan,
                SamplePlan     = (aSpecRevEntity.SamplePlanNavigation != null) ? aSpecRevEntity.SamplePlanNavigation.ToHydratedModel() : null,
                EmployeeNumber = aSpecRevEntity.CreatedByEmp,
                DateCreated    = aSpecRevEntity.DateCreated,
                TimeCreated    = aSpecRevEntity.TimeCreated,

                SubLevels = aSpecRevEntity.SpecSubLevel.ToHydratedModels()
            };

            resultModel.SamplePlan = (aSpecRevEntity.SamplePlanNavigation != null)? aSpecRevEntity.SamplePlanNavigation.ToHydratedModel() : null;

            return(resultModel);
        }