diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..a3ebdb2 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,336 @@ +# Remove the line below if you want to inherit .editorconfig settings from higher directories +root = true + +# C# files +[*.cs] + +#### Core EditorConfig Options #### + +# Indentation and spacing +indent_size = 4 +indent_style = space +tab_width = 4 + +# New line preferences +end_of_line = crlf +insert_final_newline = false + +#### .NET Coding Conventions #### + +# Organize usings +dotnet_separate_import_directive_groups = false +dotnet_sort_system_directives_first = false +file_header_template = unset + +# this. and Me. preferences +dotnet_style_qualification_for_event = false:error +dotnet_style_qualification_for_field = false +dotnet_style_qualification_for_method = false:error +dotnet_style_qualification_for_property = false:error + +# Language keywords vs BCL types preferences +dotnet_style_predefined_type_for_locals_parameters_members = true +dotnet_style_predefined_type_for_member_access = true + +# Parentheses preferences +dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity +dotnet_style_parentheses_in_other_binary_operators = always_for_clarity +dotnet_style_parentheses_in_other_operators = never_if_unnecessary +dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity + +# Modifier preferences +dotnet_style_require_accessibility_modifiers = for_non_interface_members + +# Expression-level preferences +dotnet_style_coalesce_expression = true +dotnet_style_collection_initializer = true:warning +dotnet_style_explicit_tuple_names = true:warning +dotnet_style_namespace_match_folder = true +dotnet_style_null_propagation = true:warning +dotnet_style_object_initializer = true:warning +dotnet_style_operator_placement_when_wrapping = beginning_of_line +dotnet_style_prefer_auto_properties = true:warning +dotnet_style_prefer_compound_assignment = true:warning +dotnet_style_prefer_conditional_expression_over_assignment = false +dotnet_style_prefer_conditional_expression_over_return = false +dotnet_style_prefer_inferred_anonymous_type_member_names = true:warning +dotnet_style_prefer_inferred_tuple_names = true:warning +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning +dotnet_style_prefer_simplified_boolean_expressions = true:warning +dotnet_style_prefer_simplified_interpolation = true + +# Field preferences +dotnet_style_readonly_field = true:warning + +# Parameter preferences +dotnet_code_quality_unused_parameters = all + +# Suppression preferences +dotnet_remove_unnecessary_suppression_exclusions = 0 + +# New line preferences +dotnet_style_allow_multiple_blank_lines_experimental = false:warning +dotnet_style_allow_statement_immediately_after_block_experimental = true + +#### C# Coding Conventions #### + +# var preferences +csharp_style_var_elsewhere = false:warning +csharp_style_var_for_built_in_types = false:warning +csharp_style_var_when_type_is_apparent = false:warning + +# Expression-bodied members +csharp_style_expression_bodied_accessors = when_on_single_line:warning +csharp_style_expression_bodied_constructors = when_on_single_line:warning +csharp_style_expression_bodied_indexers = when_on_single_line:warning +csharp_style_expression_bodied_lambdas = when_on_single_line:warning +csharp_style_expression_bodied_local_functions = when_on_single_line:warning +csharp_style_expression_bodied_methods = when_on_single_line:warning +csharp_style_expression_bodied_operators = when_on_single_line:warning +csharp_style_expression_bodied_properties = when_on_single_line:warning + +# Pattern matching preferences +csharp_style_pattern_matching_over_as_with_null_check = true:warning +csharp_style_pattern_matching_over_is_with_cast_check = true:warning +csharp_style_prefer_not_pattern = true:warning +csharp_style_prefer_pattern_matching = true:warning +csharp_style_prefer_switch_expression = true:warning + +# Null-checking preferences +csharp_style_conditional_delegate_call = true + +# Modifier preferences +csharp_prefer_static_local_function = true:warning +csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async + +# Code-block preferences +csharp_prefer_braces = false +csharp_prefer_simple_using_statement = true:warning +csharp_style_namespace_declarations = file_scoped:warning + +# Expression-level preferences +csharp_prefer_simple_default_expression = true:warning +csharp_style_deconstructed_variable_declaration = false +csharp_style_implicit_object_creation_when_type_is_apparent = true:warning +csharp_style_inlined_variable_declaration = false +csharp_style_pattern_local_over_anonymous_function = true:warning +csharp_style_prefer_index_operator = false:warning +csharp_style_prefer_null_check_over_type_check = true +csharp_style_prefer_range_operator = false:warning +csharp_style_throw_expression = true +csharp_style_unused_value_assignment_preference = discard_variable:warning +csharp_style_unused_value_expression_statement_preference = discard_variable:warning + +# 'using' directive preferences +csharp_using_directive_placement = outside_namespace + +# New line preferences +csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true +csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true +csharp_style_allow_embedded_statements_on_same_line_experimental = true + +#### C# Formatting Rules #### + +# New line preferences +csharp_new_line_before_catch = true +csharp_new_line_before_else = true +csharp_new_line_before_finally = true +csharp_new_line_before_members_in_anonymous_types = true +csharp_new_line_before_members_in_object_initializers = true +csharp_new_line_before_open_brace = all +csharp_new_line_between_query_expression_clauses = true + +# Indentation preferences +csharp_indent_block_contents = true +csharp_indent_braces = false +csharp_indent_case_contents = true +csharp_indent_case_contents_when_block = true +csharp_indent_labels = one_less_than_current +csharp_indent_switch_labels = true + +# Space preferences +csharp_space_after_cast = false +csharp_space_after_colon_in_inheritance_clause = true +csharp_space_after_comma = true +csharp_space_after_dot = false +csharp_space_after_keywords_in_control_flow_statements = true +csharp_space_after_semicolon_in_for_statement = true +csharp_space_around_binary_operators = before_and_after +csharp_space_around_declaration_statements = false +csharp_space_before_colon_in_inheritance_clause = true +csharp_space_before_comma = false +csharp_space_before_dot = false +csharp_space_before_open_square_brackets = false +csharp_space_before_semicolon_in_for_statement = false +csharp_space_between_empty_square_brackets = false +csharp_space_between_method_call_empty_parameter_list_parentheses = false +csharp_space_between_method_call_name_and_opening_parenthesis = false +csharp_space_between_method_call_parameter_list_parentheses = false +csharp_space_between_method_declaration_empty_parameter_list_parentheses = false +csharp_space_between_method_declaration_name_and_open_parenthesis = false +csharp_space_between_method_declaration_parameter_list_parentheses = false +csharp_space_between_parentheses = false +csharp_space_between_square_brackets = false + +# Wrapping preferences +csharp_preserve_single_line_blocks = true +csharp_preserve_single_line_statements = false + +#### Naming styles #### + +# Naming rules + +dotnet_naming_rule.interface_should_be_begins_with_i.severity = warning +dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface +dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i + +dotnet_naming_rule.types_should_be_pascal_case.severity = warning +dotnet_naming_rule.types_should_be_pascal_case.symbols = types +dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case + +dotnet_naming_rule.private_or_internal_field_should_be_private_of_internal_field.severity = warning +dotnet_naming_rule.private_or_internal_field_should_be_private_of_internal_field.symbols = private_or_internal_field +dotnet_naming_rule.private_or_internal_field_should_be_private_of_internal_field.style = private_of_internal_field + +dotnet_naming_rule.enum_should_be_pascal_case.severity = warning +dotnet_naming_rule.enum_should_be_pascal_case.symbols = enum +dotnet_naming_rule.enum_should_be_pascal_case.style = pascal_case + +dotnet_naming_rule.public_or_protected_field_should_be_private_of_internal_field.severity = warning +dotnet_naming_rule.public_or_protected_field_should_be_private_of_internal_field.symbols = public_or_protected_field +dotnet_naming_rule.public_or_protected_field_should_be_private_of_internal_field.style = private_of_internal_field + +dotnet_naming_rule.class_should_be_pascal_case.severity = warning +dotnet_naming_rule.class_should_be_pascal_case.symbols = class +dotnet_naming_rule.class_should_be_pascal_case.style = pascal_case + +dotnet_naming_rule.method_should_be_pascal_case.severity = warning +dotnet_naming_rule.method_should_be_pascal_case.symbols = method +dotnet_naming_rule.method_should_be_pascal_case.style = pascal_case + +dotnet_naming_rule.private_or_internal_static_field_should_be_private_of_internal_field.severity = warning +dotnet_naming_rule.private_or_internal_static_field_should_be_private_of_internal_field.symbols = private_or_internal_static_field +dotnet_naming_rule.private_or_internal_static_field_should_be_private_of_internal_field.style = private_of_internal_field + +dotnet_naming_rule.static_field_should_be_pascal_case.severity = warning +dotnet_naming_rule.static_field_should_be_pascal_case.symbols = static_field +dotnet_naming_rule.static_field_should_be_pascal_case.style = pascal_case + +dotnet_naming_rule.property_should_be_pascal_case.severity = warning +dotnet_naming_rule.property_should_be_pascal_case.symbols = property +dotnet_naming_rule.property_should_be_pascal_case.style = pascal_case + +dotnet_naming_rule.static_method_should_be_pascal_case.severity = warning +dotnet_naming_rule.static_method_should_be_pascal_case.symbols = static_method +dotnet_naming_rule.static_method_should_be_pascal_case.style = pascal_case + +dotnet_naming_rule.abstract_method_should_be_pascal_case.severity = warning +dotnet_naming_rule.abstract_method_should_be_pascal_case.symbols = abstract_method +dotnet_naming_rule.abstract_method_should_be_pascal_case.style = pascal_case + +dotnet_naming_rule.private_method_should_be_pascal_case.severity = warning +dotnet_naming_rule.private_method_should_be_pascal_case.symbols = private_method +dotnet_naming_rule.private_method_should_be_pascal_case.style = pascal_case + +dotnet_naming_rule.event_should_be_pascal_case.severity = warning +dotnet_naming_rule.event_should_be_pascal_case.symbols = event +dotnet_naming_rule.event_should_be_pascal_case.style = pascal_case + +dotnet_naming_rule.delegate_should_be_pascal_case.severity = warning +dotnet_naming_rule.delegate_should_be_pascal_case.symbols = delegate +dotnet_naming_rule.delegate_should_be_pascal_case.style = pascal_case + +dotnet_naming_rule.struct_should_be_pascal_case.severity = warning +dotnet_naming_rule.struct_should_be_pascal_case.symbols = struct +dotnet_naming_rule.struct_should_be_pascal_case.style = pascal_case + +dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = warning +dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members +dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case + +# Symbol specifications + +dotnet_naming_symbols.class.applicable_kinds = class +dotnet_naming_symbols.class.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.class.required_modifiers = + +dotnet_naming_symbols.interface.applicable_kinds = interface +dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.interface.required_modifiers = + +dotnet_naming_symbols.struct.applicable_kinds = struct +dotnet_naming_symbols.struct.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.struct.required_modifiers = + +dotnet_naming_symbols.enum.applicable_kinds = enum +dotnet_naming_symbols.enum.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.enum.required_modifiers = + +dotnet_naming_symbols.delegate.applicable_kinds = delegate +dotnet_naming_symbols.delegate.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.delegate.required_modifiers = + +dotnet_naming_symbols.event.applicable_kinds = event +dotnet_naming_symbols.event.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.event.required_modifiers = + +dotnet_naming_symbols.method.applicable_kinds = method +dotnet_naming_symbols.method.applicable_accessibilities = public +dotnet_naming_symbols.method.required_modifiers = + +dotnet_naming_symbols.private_method.applicable_kinds = method +dotnet_naming_symbols.private_method.applicable_accessibilities = private +dotnet_naming_symbols.private_method.required_modifiers = + +dotnet_naming_symbols.abstract_method.applicable_kinds = method +dotnet_naming_symbols.abstract_method.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.abstract_method.required_modifiers = abstract + +dotnet_naming_symbols.static_method.applicable_kinds = method +dotnet_naming_symbols.static_method.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.static_method.required_modifiers = static + +dotnet_naming_symbols.property.applicable_kinds = property +dotnet_naming_symbols.property.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.property.required_modifiers = + +dotnet_naming_symbols.public_or_protected_field.applicable_kinds = field +dotnet_naming_symbols.public_or_protected_field.applicable_accessibilities = public, protected +dotnet_naming_symbols.public_or_protected_field.required_modifiers = + +dotnet_naming_symbols.static_field.applicable_kinds = field +dotnet_naming_symbols.static_field.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.static_field.required_modifiers = static + +dotnet_naming_symbols.private_or_internal_field.applicable_kinds = field +dotnet_naming_symbols.private_or_internal_field.applicable_accessibilities = internal, private, private_protected +dotnet_naming_symbols.private_or_internal_field.required_modifiers = + +dotnet_naming_symbols.private_or_internal_static_field.applicable_kinds = field +dotnet_naming_symbols.private_or_internal_static_field.applicable_accessibilities = internal, private, private_protected +dotnet_naming_symbols.private_or_internal_static_field.required_modifiers = static + +dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum +dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.types.required_modifiers = + +dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method +dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected +dotnet_naming_symbols.non_field_members.required_modifiers = + +# Naming styles + +dotnet_naming_style.pascal_case.required_prefix = +dotnet_naming_style.pascal_case.required_suffix = +dotnet_naming_style.pascal_case.word_separator = +dotnet_naming_style.pascal_case.capitalization = pascal_case + +dotnet_naming_style.begins_with_i.required_prefix = I +dotnet_naming_style.begins_with_i.required_suffix = +dotnet_naming_style.begins_with_i.word_separator = +dotnet_naming_style.begins_with_i.capitalization = pascal_case + +dotnet_naming_style.private_of_internal_field.required_prefix = _ +dotnet_naming_style.private_of_internal_field.required_suffix = +dotnet_naming_style.private_of_internal_field.word_separator = +dotnet_naming_style.private_of_internal_field.capitalization = pascal_case diff --git a/.gitignore b/.gitignore index 3e759b7..7c7ee90 100644 --- a/.gitignore +++ b/.gitignore @@ -328,3 +328,12 @@ ASALocalRun/ # MFractors (Xamarin productivity tool) working folder .mfractor/ + +## +## Visual Studio Code +## +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json diff --git a/EDA Viewer.Tests/.vscode/launch.json b/EDA Viewer.Tests/.vscode/launch.json new file mode 100644 index 0000000..0cbba8d --- /dev/null +++ b/EDA Viewer.Tests/.vscode/launch.json @@ -0,0 +1,10 @@ +{ + "configurations": [ + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach", + "processId": 84612 + } + ] +} diff --git a/EDA Viewer.Tests/BackgroundTests.cs b/EDA Viewer.Tests/BackgroundTests.cs new file mode 100644 index 0000000..e301e83 --- /dev/null +++ b/EDA Viewer.Tests/BackgroundTests.cs @@ -0,0 +1,166 @@ +using EDAViewer.Models; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Logging; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Shared; +using System; +using System.Diagnostics; +using System.Net; +using System.Reflection; + +namespace EDAViewer.Tests +{ + + [TestClass] + public class BackgroundTests : LoggingUnitTesting, IBackground + { + + private static AppSettings _AppSettings; + private static string _WorkingDirectory; + private static Singleton.IBackground _Background; + private static BackgroundTests _LoggingUnitTesting; + internal static BackgroundTests LoggingUnitTesting => _LoggingUnitTesting; + + public BackgroundTests() : base(testContext: null, declaringType: null) + { + if (_LoggingUnitTesting is null) + throw new Exception(); + } + + public BackgroundTests(TestContext testContext) : base(testContext, new StackFrame().GetMethod().DeclaringType) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + if (_LoggingUnitTesting is null) + _LoggingUnitTesting = new BackgroundTests(testContext); + _LoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize")); + Assembly assembly = Assembly.GetExecutingAssembly(); + _AppSettings = _LoggingUnitTesting.ConfigurationRoot.Get(); + Assert.IsFalse(string.IsNullOrEmpty(_AppSettings.WorkingDirectoryName)); + _WorkingDirectory = Log.GetWorkingDirectory(assembly.GetName().Name, _AppSettings.WorkingDirectoryName); + _Background = new Singleton.Background(_LoggingUnitTesting.IsEnvironment, _AppSettings, _WorkingDirectory); + _Background.Update(_LoggingUnitTesting.Logger); + Assert.IsFalse(string.IsNullOrEmpty(_AppSettings.URLs)); + Assert.IsFalse(string.IsNullOrEmpty(_AppSettings.Server)); + Assert.IsFalse(string.IsNullOrEmpty(_AppSettings.MonARessource)); + Assert.IsNotNull(_Background); + } + + [ClassCleanup()] + public static void ClassCleanup() + { + if (!(_LoggingUnitTesting.Logger is null)) + _LoggingUnitTesting.Logger.LogInformation("Cleanup"); + if (!(_LoggingUnitTesting is null)) + _LoggingUnitTesting.Dispose(); + } + + [TestMethod] + [TestCategory(nameof(IsEnvironment.Name.WindowsDevelopment))] + public void EdaDataCollectionPlansCallback_WindowsDevelopment() + { + MethodBase methodBase = new StackFrame().GetMethod(); + _Logger.LogInformation($"Skipped - {methodBase.Name}"); + Assert.IsTrue(true); + } + + [TestMethod] + [TestCategory(nameof(IsEnvironment.Name.WindowsStaging))] + public void EdaDataCollectionPlansCallback_WindowsStaging() + { + _Background.EdaDataCollectionPlansCallback(); + Assert.IsTrue(true); + } + + [TestMethod] + [TestCategory(nameof(IsEnvironment.Name.WindowsProduction))] + public void EdaDataCollectionPlansCallback_WindowsProduction() + { + _Background.EdaDataCollectionPlansCallback(); + Assert.IsTrue(true); + } + + public void EdaDataCollectionPlansCallback() + { + EdaDataCollectionPlansCallback_WindowsDevelopment(); + EdaDataCollectionPlansCallback_WindowsStaging(); + EdaDataCollectionPlansCallback_WindowsProduction(); + } + + [TestMethod] + [TestCategory(nameof(IsEnvironment.Name.WindowsDevelopment))] + public void EDAOutputArchiveCallback_WindowsDevelopment() + { + MethodBase methodBase = new StackFrame().GetMethod(); + _Logger.LogInformation($"Skipped - {methodBase.Name}"); + Assert.IsTrue(true); + } + + [TestMethod] + [TestCategory(nameof(IsEnvironment.Name.WindowsStaging))] + public void EDAOutputArchiveCallback_WindowsStaging() + { + MethodBase methodBase = new StackFrame().GetMethod(); + _Logger.LogInformation($"Skipped - {methodBase.Name}"); + Assert.IsTrue(true); + } + + [TestMethod] + [TestCategory(nameof(IsEnvironment.Name.WindowsProduction))] + public void EDAOutputArchiveCallback_WindowsProduction() + { + _Background.EDAOutputArchiveCallback(); + Assert.IsTrue(true); + } + + public void EDAOutputArchiveCallback() + { + EDAOutputArchiveCallback_WindowsDevelopment(); + EDAOutputArchiveCallback_WindowsStaging(); + EDAOutputArchiveCallback_WindowsProduction(); + } + + [TestMethod] + [TestCategory(nameof(IsEnvironment.Name.WindowsDevelopment))] + public void LogPathCleanUpByWeekCallback_WindowsDevelopment() + { + MethodBase methodBase = new StackFrame().GetMethod(); + _Logger.LogInformation($"Skipped - {methodBase.Name}"); + Assert.IsTrue(true); + } + + [TestMethod] + [TestCategory(nameof(IsEnvironment.Name.WindowsStaging))] + public void LogPathCleanUpByWeekCallback_WindowsStaging() + { + MethodBase methodBase = new StackFrame().GetMethod(); + _Logger.LogInformation($"Skipped - {methodBase.Name}"); + Assert.IsTrue(true); + } + + [TestMethod] + [TestCategory(nameof(IsEnvironment.Name.WindowsProduction))] + public void LogPathCleanUpByWeekCallback_WindowsProduction() + { + _Background.LogPathCleanUpByWeekCallback(); + Assert.IsTrue(true); + } + + void IBackground.LogPathCleanUpByWeekCallback() + { + LogPathCleanUpByWeekCallback_WindowsDevelopment(); + LogPathCleanUpByWeekCallback_WindowsStaging(); + LogPathCleanUpByWeekCallback_WindowsProduction(); + } + } + +} + +// dotnet build --runtime win-x64 +// dotnet test --runtime win-x64 --no-build --filter LogPathCleanUpByWeekCallback_WindowsProduction --% -- TestRunParameters.Parameter(name=\"Debug\", value=\"Debugger.IsAttached\") +// dotnet test --runtime win-x64 --no-build --filter "ClassName=EDAViewer.Tests.BackgroundTests & TestCategory=WindowsDevelopment" --% -- TestRunParameters.Parameter(name=\"Debug\", value=\"Debugger.IsAttached\") +// dotnet test --runtime win-x64 --no-build --filter "ClassName=EDAViewer.Tests.BackgroundTests & TestCategory=WindowsStaging" --% -- TestRunParameters.Parameter(name=\"Debug\", value=\"Debugger.IsAttached\") +// dotnet test --runtime win-x64 --no-build --filter "ClassName=EDAViewer.Tests.BackgroundTests & TestCategory=WindowsProduction" --% -- TestRunParameters.Parameter(name=\"Debug\", value=\"Debugger.IsAttached\") \ No newline at end of file diff --git a/EDA Viewer.Tests/EDA Viewer.Tests.csproj b/EDA Viewer.Tests/EDA Viewer.Tests.csproj new file mode 100644 index 0000000..c5301cd --- /dev/null +++ b/EDA Viewer.Tests/EDA Viewer.Tests.csproj @@ -0,0 +1,51 @@ + + + SAK + SAK + SAK + SAK + + + net6.0 + EDAViewer.Tests + false + + + trx + ../../../Trunk/EDA Viewer/05_TestResults/TestResults + + + true + true + true + + + Windows + + + OSX + + + Linux + + + + + + + + + + Always + + + Always + + + Always + + + + + + \ No newline at end of file diff --git a/EDA Viewer.Tests/HomeControllerTests.cs b/EDA Viewer.Tests/HomeControllerTests.cs new file mode 100644 index 0000000..3e6b671 --- /dev/null +++ b/EDA Viewer.Tests/HomeControllerTests.cs @@ -0,0 +1,165 @@ +using EDAViewer.Models; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging.Abstractions; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using Shared; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Net; +using System.Reflection; + +namespace EDAViewer.Tests +{ + + [TestClass] + public class HomeControllerTests : LoggingUnitTesting, IHomeController + { + + private static string _WorkingDirectory; + private static AppSettings _AppSettings; + private static Singleton.IBackground _Background; + private static Controllers.HomeController _HomeController; + private static HomeControllerTests _LoggingUnitTesting; + internal static HomeControllerTests LoggingUnitTesting => _LoggingUnitTesting; + + public HomeControllerTests() : base(testContext: null, declaringType: null) + { + if (_LoggingUnitTesting is null) + throw new Exception(); + } + + public HomeControllerTests(TestContext testContext) : base(testContext, new StackFrame().GetMethod().DeclaringType) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + if (_LoggingUnitTesting is null) + _LoggingUnitTesting = new HomeControllerTests(testContext); + _LoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize")); + Assembly assembly = Assembly.GetExecutingAssembly(); + _AppSettings = _LoggingUnitTesting.ConfigurationRoot.Get(); + Assert.IsFalse(string.IsNullOrEmpty(_AppSettings.WorkingDirectoryName)); + _WorkingDirectory = Log.GetWorkingDirectory(assembly.GetName().Name, _AppSettings.WorkingDirectoryName); + _Background = new Singleton.Background(_LoggingUnitTesting.IsEnvironment, _AppSettings, _WorkingDirectory); + _HomeController = new Controllers.HomeController(new NullLogger(), _LoggingUnitTesting.IsEnvironment, _Background, _AppSettings); + _Background.Update(_LoggingUnitTesting.Logger); + Assert.IsNotNull(_Background); + Assert.IsFalse(string.IsNullOrEmpty(_AppSettings.URLs)); + Assert.IsFalse(string.IsNullOrEmpty(_AppSettings.Server)); + Assert.IsFalse(string.IsNullOrEmpty(_AppSettings.MonARessource)); + } + + [ClassCleanup()] + public static void ClassCleanup() + { + if (!(_LoggingUnitTesting.Logger is null)) + _LoggingUnitTesting.Logger.LogInformation("Cleanup"); + if (!(_LoggingUnitTesting is null)) + _LoggingUnitTesting.Dispose(); + } + + [TestMethod] + [TestCategory(nameof(ActionResult))] + public void Background() + { + IActionResult IActionResult = _HomeController.Background(); + Assert.IsTrue(true); + } + + public IActionResult Background(bool? message_clear, bool? exceptions_clear, bool? set_is_primary_instance, int? invoke_eda_dcp) + { + Background(); + return null; + } + + [TestMethod] + [TestCategory(nameof(ActionResult))] + public void Encode() + { + IActionResult IActionResult = _HomeController.Encode(); + Assert.IsTrue(true); + } + + public IActionResult Encode(string value) + { + Encode(); + return null; + } + + public IActionResult Error() + { + throw new NotImplementedException(); + } + + [TestMethod] + [TestCategory(nameof(ActionResult))] + public void Index() + { + IActionResult IActionResult = _HomeController.Index(); + Assert.IsTrue(true); + } + + IActionResult IHomeController.Index() + { + Index(); + return null; + } + + [TestMethod] + [TestCategory(nameof(ActionResult))] + public void Privacy() + { + IActionResult IActionResult = _HomeController.Privacy(); + Assert.IsTrue(true); + } + + IActionResult IHomeController.Privacy() + { + Privacy(); + return null; + } + + [TestMethod] + [TestCategory(nameof(ActionResult))] + public void ViewEdaHtmlDiff() + { + IActionResult IActionResult = _HomeController.ViewEdaHtmlDiff(); + Assert.IsTrue(true); + } + + public IActionResult ViewEdaHtmlDiff(WithEnvironment withEnvironment) + { + ViewEdaHtmlDiff(); + return null; + } + + [TestMethod] + [TestCategory(nameof(ActionResult))] + public void GetDirectoriesOrFiles() + { + //ActionResult> GetDirectoriesOrFiles(string path = null, bool? upDirectory = null, string filter = null) + ActionResult> actionResults = _HomeController.GetDirectoriesOrFiles(); + Assert.IsTrue(true); + } + + public ActionResult> GetDirectoriesOrFiles(string path, bool? upDirectory, string filter) + { + GetDirectoriesOrFiles(); + return null; + } + + } + +} + +// dotnet build --runtime win-x64 +// dotnet test --runtime win-x64 --no-build --filter GetDirectoriesOrFiles --% -- TestRunParameters.Parameter(name=\"Debug\", value=\"Debugger.IsAttached\") +// dotnet test --runtime win-x64 --no-build --filter "ClassName=EDAViewer.Tests.BackgroundTests & TestCategory=WindowsDevelopment" --% -- TestRunParameters.Parameter(name=\"Debug\", value=\"Debugger.IsAttached\") +// dotnet test --runtime win-x64 --no-build --filter "ClassName=EDAViewer.Tests.BackgroundTests & TestCategory=WindowsStaging" --% -- TestRunParameters.Parameter(name=\"Debug\", value=\"Debugger.IsAttached\") +// dotnet test --runtime win-x64 --no-build --filter "ClassName=EDAViewer.Tests.BackgroundTests & TestCategory=WindowsProduction" --% -- TestRunParameters.Parameter(name=\"Debug\", value=\"Debugger.IsAttached\") \ No newline at end of file diff --git a/EDA Viewer.Tests/ReadMe.md b/EDA Viewer.Tests/ReadMe.md new file mode 100644 index 0000000..c1917d0 --- /dev/null +++ b/EDA Viewer.Tests/ReadMe.md @@ -0,0 +1 @@ +dotnet test --runtime win-x64 --no-build --filter "FullyQualifiedName~EDAViewer.Tests & TestCategory=WindowsDevelopment" --% -- TestRunParameters.Parameter(name=\"Debug\", value=\"Debugger.IsAttached\") \ No newline at end of file diff --git a/EDA Viewer.Tests/Shared/LoggingUnitTesting.cs b/EDA Viewer.Tests/Shared/LoggingUnitTesting.cs new file mode 100644 index 0000000..add9d6c --- /dev/null +++ b/EDA Viewer.Tests/Shared/LoggingUnitTesting.cs @@ -0,0 +1,71 @@ +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Logging; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; + +namespace Shared +{ + + public class LoggingUnitTesting : UnitTesting, IDisposable + { + + protected ILogger _Logger; + protected ILoggerFactory _LoggerFactory; + protected readonly LogLevel? _DefaultLogLevel; + protected readonly LogLevel? _Log4netProviderLogLevel; + protected readonly IConfigurationRoot _ConfigurationRoot; + public ILogger Logger => _Logger; + public LogLevel? DefaultLogLevel => _DefaultLogLevel; + public ILoggerFactory LoggerFactory => _LoggerFactory; + public IConfigurationRoot ConfigurationRoot => _ConfigurationRoot; + public LogLevel? Log4netProviderLogLevel => _Log4netProviderLogLevel; + + public LoggingUnitTesting(TestContext testContext, Type declaringType) : base(testContext, declaringType) + { + _LoggerFactory = new LoggerFactory(); + if (testContext is null || declaringType is null) + { + _ConfigurationRoot = null; + _DefaultLogLevel = null; + _Log4netProviderLogLevel = null; + } + else + { + LogLevel logLevel; + IConfigurationSection configurationSection; + List logLevels = new List(); + string defaultLogLevelSection = "Logging:LogLevel:Default"; + string log4netProviderLogLevelSection = "Logging:LogLevel:Log4netProvider"; + string[] sections = new string[] { defaultLogLevelSection, log4netProviderLogLevelSection }; + IConfigurationBuilder configurationBuilder = new ConfigurationBuilder() + .AddEnvironmentVariables() + .AddJsonFile(_IsEnvironment.AppSettingsFileName, optional: false, reloadOnChange: true); + _ConfigurationRoot = configurationBuilder.Build(); + foreach (string section in sections) + { + configurationSection = _ConfigurationRoot.GetSection(section); + if (configurationSection is null) + logLevel = LogLevel.Debug; + else if (!Enum.TryParse(configurationSection.Value, out logLevel)) + logLevel = LogLevel.Debug; + logLevels.Add(logLevel); + } + _DefaultLogLevel = logLevels[0]; + _Log4netProviderLogLevel = logLevels[1]; + } + if (DefaultLogLevel.HasValue) + _LoggerFactory.AddProvider(new DebugProvider(DefaultLogLevel.Value)); + if (DefaultLogLevel.HasValue) + _LoggerFactory.AddProvider(new ConsoleProvider(DefaultLogLevel.Value)); + _Logger = _LoggerFactory.CreateLogger(); + } + + public void Dispose() + { + _LoggerFactory.Dispose(); + } + + } + +} \ No newline at end of file diff --git a/EDA Viewer.Tests/Shared/UnitTesting.cs b/EDA Viewer.Tests/Shared/UnitTesting.cs new file mode 100644 index 0000000..b2dacf8 --- /dev/null +++ b/EDA Viewer.Tests/Shared/UnitTesting.cs @@ -0,0 +1,93 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Text.Json; +using System.Threading; + +namespace Shared +{ + + public class UnitTesting + { + + protected readonly IsEnvironment _IsEnvironment; + + public IsEnvironment IsEnvironment => _IsEnvironment; + + public UnitTesting(TestContext testContext, Type declaringType) + { + if (testContext is null || declaringType is null) + _IsEnvironment = null; + else + { + string projectDirectory = GetProjectDirectory(testContext); + string json = JsonSerializer.Serialize(testContext.Properties); + string vsCodeDirectory = Path.Combine(projectDirectory, ".vscode"); + if (!Directory.Exists(vsCodeDirectory)) + Directory.CreateDirectory(vsCodeDirectory); + string launchText = GetLaunchText(); + File.WriteAllText(Path.Combine(vsCodeDirectory, "launch.json"), launchText); + for (int i = 0; i < int.MaxValue; i++) + { + if (!json.Contains("Debugger.IsAttached") || Debugger.IsAttached) + break; + Thread.Sleep(500); + } + MethodBase methodBase = declaringType.GetMethod(testContext.TestName); + if (!(methodBase is null)) + { + TestCategoryAttribute testCategoryAttribute = methodBase.GetCustomAttribute(); + if (!(testCategoryAttribute is null)) + { + foreach (string testCategory in testCategoryAttribute.TestCategories) + _IsEnvironment = new IsEnvironment(testCategory); + } + } + if (_IsEnvironment is null) + _IsEnvironment = new IsEnvironment(processesCount: null, nullASPNetCoreEnvironmentIsDevelopment: Debugger.IsAttached, nullASPNetCoreEnvironmentIsProduction: !Debugger.IsAttached); + } + } + + internal static string GetProjectDirectory(TestContext testContext) + { + string result; + string[] checkFiles = null; + result = Path.GetDirectoryName(testContext.DeploymentDirectory); + for (int i = 0; i < int.MaxValue; i++) + { + if (string.IsNullOrEmpty(result)) + break; + checkFiles = Directory.GetFiles(result, "*.Tests.*proj", SearchOption.TopDirectoryOnly); + if (checkFiles.Any()) + break; + result = Path.GetDirectoryName(result); + } + if (string.IsNullOrEmpty(result) || checkFiles is null || !checkFiles.Any()) + throw new Exception(result); + return result; + } + + internal static string GetLaunchText() + { + StringBuilder result = new StringBuilder(); + result. + AppendLine("{"). + AppendLine(" \"configurations\": ["). + AppendLine(" {"). + AppendLine(" \"name\": \".NET Core Attach\","). + AppendLine(" \"type\": \"coreclr\","). + AppendLine(" \"request\": \"attach\","). + AppendLine($" \"processId\": {System.Diagnostics.Process.GetCurrentProcess().Id}"). + AppendLine(" }"). + AppendLine(" ]"). + AppendLine("}"); + return result.ToString(); + } + + } + +} \ No newline at end of file diff --git a/EDA Viewer/Blazor/Counter.razor b/EDA Viewer/Blazor/Counter.razor new file mode 100644 index 0000000..ee23e7a --- /dev/null +++ b/EDA Viewer/Blazor/Counter.razor @@ -0,0 +1,16 @@ +

Counter

+ +

+ Current Count: @i +

+ + + +@code { + int i = 0; + + private void IncrementCounter() + { + i += 1; + } +} diff --git a/EDA Viewer/Controllers/HomeController.cs b/EDA Viewer/Controllers/HomeController.cs new file mode 100644 index 0000000..cdd721b --- /dev/null +++ b/EDA Viewer/Controllers/HomeController.cs @@ -0,0 +1,167 @@ +using EDAViewer.Models; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.Extensions.Logging; +using Shared; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Linq; +using System.Web; + +namespace EDAViewer.Controllers +{ + + public class HomeController : Controller, IHomeController + { + + private readonly Log _Log; + private readonly AppSettings _AppSettings; + private readonly IsEnvironment _IsEnvironment; + private readonly Singleton.IBackground _Background; + + public HomeController(ILogger logger, IsEnvironment isEnvironment, Singleton.IBackground background, AppSettings appSettings) + { + _Log = new Log(logger); + _Background = background; + _AppSettings = appSettings; + _IsEnvironment = isEnvironment; + } + + public IActionResult Index() + { + return View(); + } + + public IActionResult Privacy() + { + return View(); + } + + [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] + public IActionResult Error() + { + return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier }); + } + + public IActionResult Encode(string value = null) + { + string result = string.Empty; + if (!string.IsNullOrEmpty(value)) + result = HttpUtility.UrlEncode(value); + return Content(result, "text/plain"); + } + + public IActionResult Background(bool? message_clear = null, bool? exceptions_clear = null, bool? set_is_primary_instance = null, int? invoke_eda_dcp = null) + { + _Background.SendStatusOk(); + if (message_clear.HasValue && message_clear.Value) + _Background.ClearMessage(); + if (exceptions_clear.HasValue && exceptions_clear.Value) + _Background.Exceptions.Clear(); + if (set_is_primary_instance.HasValue) + { + if (set_is_primary_instance.Value) + _Background.SetIsPrimaryInstance(); + else + _Background.ClearIsPrimaryInstance(); + } + string message; + if (string.IsNullOrWhiteSpace(_Background.Message)) + message = "N/A"; + else + message = _Background.Message; + //Response.AppendToLog(_Background.Message); + List exceptions = new(); + foreach (Exception exception in _Background.Exceptions) + exceptions.Add(exception); + ViewBag.Message = message; + ViewBag.Exceptions = exceptions; + ViewBag.URLs = _AppSettings.URLs; + ViewBag.Profile = _IsEnvironment.Profile; + ViewBag.WorkingDirectory = _Background.WorkingDirectory; + ViewBag.IsPrimaryInstance = _Background.IsPrimaryInstance(); + ViewBag.ExceptionsCount = string.Concat("Exception(s) - ", exceptions.Count); + return View(); + } + + public ActionResult> GetDirectoriesOrFiles(string path = null, bool? upDirectory = null, string filter = null) + { + List results = new(); + //System.Threading.Thread.Sleep(1500); + //path = @"D:\Tmp"; + if (string.IsNullOrEmpty(path)) + path = string.Concat(@"\\", _AppSettings.Server, @"\EC_EDA"); + if (string.IsNullOrEmpty(filter)) + filter = "*"; + if (upDirectory.HasValue && upDirectory.Value && path.Contains('|')) + { + string[] segments = path.Split('|'); + path = segments[^1]; + } + //System.IO.File.AppendAllText(string.Concat(@"\\", _AppSettings.Server, @"\EC_EDA\a.txt"), path); + string gold = "Gold"; + if (System.IO.File.Exists(path)) + { + string[] files = Directory.GetFiles(Path.GetDirectoryName(path), filter, SearchOption.TopDirectoryOnly); + foreach (string item in files) + results.Add(new SelectListItem() { Value = item, Text = Path.GetFileName(item), Group = new SelectListGroup() { Name = "File(s)" } }); + if (results.Count > 1) + results.Insert(0, new SelectListItem() { Value = string.Empty, Text = string.Concat("Select - ", 0, " - ", files.Length) }); + } + else if (Directory.Exists(path)) + { + string[] files = Directory.GetFiles(path, filter, SearchOption.TopDirectoryOnly); + string[] directories = Directory.GetDirectories(path, filter, SearchOption.TopDirectoryOnly).Where(l => Path.GetFileName(l) != gold).ToArray(); + for (short i = 0; i < short.MaxValue; i++) + { + if (directories.Length != 1 || files.Length != 0) + break; + else + { + path = directories[0]; + files = Directory.GetFiles(path, filter, SearchOption.TopDirectoryOnly); + directories = Directory.GetDirectories(path, filter, SearchOption.TopDirectoryOnly).Where(l => Path.GetFileName(l) != gold).ToArray(); + if (directories.Length == 0 && files.Length == 0) + { + directories = new string[] { path }; + break; + } + } + } + foreach (string item in directories) + results.Add(new SelectListItem() { Value = item, Text = Path.GetFileName(item), Group = new SelectListGroup() { Name = "Directorie(s)" } }); + foreach (string item in files) + results.Add(new SelectListItem() { Value = item, Text = Path.GetFileName(item), Group = new SelectListGroup() { Name = "File(s)" } }); + if (results.Count > 1) + results.Insert(0, new SelectListItem() { Value = string.Empty, Text = string.Concat("Select - ", directories.Length, " - ", files.Length) }); + } + //System.IO.File.AppendAllText(string.Concat(@"\\", _AppSettings.Server, @"\EC_EDA\b.txt"), results.Count.ToString()); + if (!results.Any()) + results.Add(new SelectListItem() { Value = path, Text = string.Concat("Nothing Found *{", path, "}") }); + return results; + } + + public IActionResult ViewEdaHtmlDiff(WithEnvironment withEnvironment = null) + { + if (withEnvironment is null) + withEnvironment = new WithEnvironment(); + string path = string.Concat(@"\\", _AppSettings.Server, @"\EC_EDA"); + if (!Directory.Exists(path)) + path = @"C:\"; + EdaHtmlDiff model = new(withEnvironment, path); + ViewBag.message = model.message; + return View(model); + } + + } + +} +// dotnet publish --configuration Release --runtime win-x64 --verbosity normal --self-contained true -o "L:\net5.0\EDAViewer" +// dotnet publish --configuration Release --runtime win-x64 --verbosity normal --self-contained true -o "D:\net5.0\EDAViewer" +// dotnet publish --configuration Release --runtime win-x64 --verbosity normal --self-contained true -o "D:\.jenkins\publish\manual-Mesa-0\EDAViewer" +//http://eaf-dev.mes.infineon.com:8080/job/Mesa/buildWithParameters?token=DotnetRules&projectName=EDA%20Viewer +//http://eaf-prod.mes.infineon.com:8080/job/Mesa/buildWithParameters?token=DotnetRules&projectName=EDA%20Viewer +//sc create EDAViewer_5003 binPath="D:\.jenkins\publish\manual-Mesa-0\EDAViewer\EDA Viewer.exe" \ No newline at end of file diff --git a/EDA Viewer/EDA Viewer.csproj b/EDA Viewer/EDA Viewer.csproj new file mode 100644 index 0000000..3678b76 --- /dev/null +++ b/EDA Viewer/EDA Viewer.csproj @@ -0,0 +1,59 @@ + + + SAK + SAK + SAK + SAK + + + 9.0 + net6.0 + EDAViewer + OutOfProcess + d71a673c-be39-45b5-ae5f-4c22639be045 + true + true + true + + + Windows + + + OSX + + + Linux + + + + + + + + + + + + + + + + + + + + + + + + + Always + + + Always + + + Always + + + \ No newline at end of file diff --git a/EDA Viewer/GlobalSuppressions.cs b/EDA Viewer/GlobalSuppressions.cs new file mode 100644 index 0000000..40157e5 --- /dev/null +++ b/EDA Viewer/GlobalSuppressions.cs @@ -0,0 +1,10 @@ +// This file is used by Code Analysis to maintain SuppressMessage +// attributes that are applied to this project. +// Project-level suppressions either have no target or are given +// a specific target and scoped to a namespace, type, member, etc. + +using System.Diagnostics.CodeAnalysis; +[assembly: SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "", Scope = "member", Target = "~P:EDAViewer.Models.WithEnvironment.message")] +[assembly: SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "", Scope = "member", Target = "~P:EDAViewer.Models.WithEnvironment.now_ticks")] +[assembly: SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "", Scope = "member", Target = "~P:EDAViewer.Models.WithEnvironment.user_name")] +[assembly: SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "", Scope = "member", Target = "~P:EDAViewer.Models.WithEnvironment.machine_name")] \ No newline at end of file diff --git a/EDA Viewer/HostedService/TimedHostedService.cs b/EDA Viewer/HostedService/TimedHostedService.cs new file mode 100644 index 0000000..85aa0a1 --- /dev/null +++ b/EDA Viewer/HostedService/TimedHostedService.cs @@ -0,0 +1,174 @@ +using EDAViewer.Singleton; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; +using Shared; +using System; +using System.IO; +using System.Threading; +using System.Threading.Tasks; + +namespace EDAViewer.HostedService +{ + + public class TimedHostedService : IHostedService, IDisposable + { + + private readonly int _ExecutionCount; + private readonly Background _Background; + private readonly IsEnvironment _IsEnvironment; + private readonly ILogger _Log; + + private Timer _EDAOutputArchiveTimer; + private Timer _LogPathCleanUpByWeekTimer; + private Timer _EdaDataCollectionPlansTimer; + + public TimedHostedService(IsEnvironment isEnvironment, Background background, IServiceProvider serviceProvider) + { + _ExecutionCount = 0; + _Background = background; + _IsEnvironment = isEnvironment; + _Log = serviceProvider.GetRequiredService>(); + _EDAOutputArchiveTimer = new Timer(EDAOutputArchiveCallback, null, Timeout.Infinite, Timeout.Infinite); + _LogPathCleanUpByWeekTimer = new Timer(LogPathCleanUpByWeekCallback, null, Timeout.Infinite, Timeout.Infinite); + _EdaDataCollectionPlansTimer = new Timer(EdaDataCollectionPlansCallback, null, Timeout.Infinite, Timeout.Infinite); + } + + public Task StartAsync(CancellationToken stoppingToken) + { + _Log.LogInformation(string.Concat("Timed Hosted Service: ", nameof(Background), ":", _IsEnvironment.Profile, ":", Environment.ProcessId, " running.")); + _Background.Update(_Log); + if (_IsEnvironment.Development) + { + int milliSeconds = 3000; + _EdaDataCollectionPlansTimer.Change(milliSeconds, Timeout.Infinite); + ; + _Background.Timers.Add(_EdaDataCollectionPlansTimer); + milliSeconds += 2000; + } + else if (_IsEnvironment.Staging) + { + int milliSeconds = 3000; + _LogPathCleanUpByWeekTimer.Change(milliSeconds, Timeout.Infinite); + ; + _Background.Timers.Add(_LogPathCleanUpByWeekTimer); + milliSeconds += 2000; + _EdaDataCollectionPlansTimer.Change(milliSeconds, Timeout.Infinite); + ; + _Background.Timers.Add(_EdaDataCollectionPlansTimer); + milliSeconds += 2000; + _EDAOutputArchiveTimer.Change(milliSeconds, Timeout.Infinite); + ; + _Background.Timers.Add(_EDAOutputArchiveTimer); + milliSeconds += 2000; + } + else if (_IsEnvironment.Production) + { + int milliSeconds = 3000; + _LogPathCleanUpByWeekTimer.Change(milliSeconds, Timeout.Infinite); + ; + _Background.Timers.Add(_LogPathCleanUpByWeekTimer); + milliSeconds += 2000; + _EdaDataCollectionPlansTimer.Change(milliSeconds, Timeout.Infinite); + ; + _Background.Timers.Add(_EdaDataCollectionPlansTimer); + milliSeconds += 2000; + _EDAOutputArchiveTimer.Change(milliSeconds, Timeout.Infinite); + ; + _Background.Timers.Add(_EDAOutputArchiveTimer); + milliSeconds += 2000; + } + else + throw new Exception(); + if (_IsEnvironment.Staging || _IsEnvironment.Production) + { + string countDirectory = _Background.GetCountDirectory("Start"); + string checkDirectory = Path.GetPathRoot(countDirectory); + if (Directory.Exists(checkDirectory)) + Directory.CreateDirectory(countDirectory); + } + return Task.CompletedTask; + } + + public Task StopAsync(CancellationToken stoppingToken) + { + _Log.LogInformation(string.Concat("Timed Hosted Service: ", nameof(Background), ":", _IsEnvironment.Profile, ":", Environment.ProcessId, " is stopping.")); + _Background.Stop(immediate: true); + for (short i = 0; i < short.MaxValue; i++) + { + Thread.Sleep(500); + if (_ExecutionCount == 0) + break; + } + return Task.CompletedTask; + } + + public void Dispose() + { + _Background.Dispose(); + } + + private void LogPathCleanUpByWeekCallback(object state) + { + try + { + if (_Background.IsPrimaryInstance()) + _Background.LogPathCleanUpByWeekCallback(); + } + catch (Exception e) { _Background.Catch(e); } + try + { + TimeSpan timeSpan; + if (!_Background.IsPrimaryInstance()) + timeSpan = new TimeSpan(DateTime.Now.AddSeconds(15).Ticks - DateTime.Now.Ticks); + else + timeSpan = new TimeSpan(DateTime.Now.AddHours(6).Ticks - DateTime.Now.Ticks); + _LogPathCleanUpByWeekTimer.Change((int)timeSpan.TotalMilliseconds, Timeout.Infinite); + } + catch (Exception e) { _Background.Catch(e); } + } + + private void EDAOutputArchiveCallback(object state) + { + try + { + if (_Background.IsPrimaryInstance()) + _Background.EDAOutputArchiveCallback(); + } + catch (Exception e) { _Background.Catch(e); } + try + { + TimeSpan timeSpan; + if (!_Background.IsPrimaryInstance()) + timeSpan = new TimeSpan(DateTime.Now.AddSeconds(15).Ticks - DateTime.Now.Ticks); + else + timeSpan = new TimeSpan(DateTime.Now.AddHours(6).Ticks - DateTime.Now.Ticks); + _EDAOutputArchiveTimer.Change((int)timeSpan.TotalMilliseconds, Timeout.Infinite); + } + catch (Exception e) { _Background.Catch(e); } + } + + private void EdaDataCollectionPlansCallback(object state) + { + try + { + if (_Background.IsPrimaryInstance()) + _Background.EdaDataCollectionPlansCallback(); + } + catch (Exception e) { _Background.Catch(e); } + try + { + TimeSpan timeSpan; + if (!_Background.IsPrimaryInstance()) + timeSpan = new TimeSpan(DateTime.Now.AddSeconds(15).Ticks - DateTime.Now.Ticks); + else + timeSpan = new TimeSpan(DateTime.Now.AddHours(2).Ticks - DateTime.Now.Ticks); + _EdaDataCollectionPlansTimer.Change((int)timeSpan.TotalMilliseconds, Timeout.Infinite); + } + catch (Exception e) { _Background.Catch(e); } + } + + + } + +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/Core/AutoGenerated/BackboneComponent.cs b/EDA Viewer/Library/Eaf/Core/AutoGenerated/BackboneComponent.cs new file mode 100644 index 0000000..02f026c --- /dev/null +++ b/EDA Viewer/Library/Eaf/Core/AutoGenerated/BackboneComponent.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.Core +{ + public class BackboneComponent + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/Core/AutoGenerated/BackboneStatusCache.cs b/EDA Viewer/Library/Eaf/Core/AutoGenerated/BackboneStatusCache.cs new file mode 100644 index 0000000..3f03747 --- /dev/null +++ b/EDA Viewer/Library/Eaf/Core/AutoGenerated/BackboneStatusCache.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.Core +{ + public class BackboneStatusCache + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/Core/AutoGenerated/ILoggingSetupManager.cs b/EDA Viewer/Library/Eaf/Core/AutoGenerated/ILoggingSetupManager.cs new file mode 100644 index 0000000..d8de627 --- /dev/null +++ b/EDA Viewer/Library/Eaf/Core/AutoGenerated/ILoggingSetupManager.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.Core +{ + public interface ILoggingSetupManager + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/Core/AutoGenerated/StatusItem.cs b/EDA Viewer/Library/Eaf/Core/AutoGenerated/StatusItem.cs new file mode 100644 index 0000000..c895fc2 --- /dev/null +++ b/EDA Viewer/Library/Eaf/Core/AutoGenerated/StatusItem.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.Core +{ + public class StatusItem + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/Core/Backbone.cs b/EDA Viewer/Library/Eaf/Core/Backbone.cs new file mode 100644 index 0000000..845b46b --- /dev/null +++ b/EDA Viewer/Library/Eaf/Core/Backbone.cs @@ -0,0 +1,48 @@ +using Library.PeerGroup.GCL.Annotations; +using System; +using System.Collections.Generic; + +namespace Library.Eaf.Core +{ + public class Backbone + { + public const string STATE_ERROR = "Error"; + public const string STATE_OFFLINE = "Offline"; + public const string STATE_RUNNING = "Running"; + public const string STATE_SHUTDOWN = "Shutting Down"; + public const string STATE_STARTING = "Starting"; + + protected Backbone() { } + + [NotNull] + public static Backbone Instance { get; } + [NotNull] + public ILoggingSetupManager LoggingConfigurationManager { get; set; } + public BackboneStatusCache Status { get; } + public bool IsAutomatedRestartActive { get; } + public bool IsReadyForRestart { get; } + public string StartTime { get; } + public string State { get; } + public string Name { get; } + public string ConfigurationServiceAddress { get; } + public string CellName { get; } + protected bool IsInitialized { get; set; } + protected Dictionary BackboneComponents { get; } + + public void AddBackboneComponent(BackboneComponent backboneComponent) { } + public bool ContainsBackboneComponent(string id) { throw new NotImplementedException(); } + [Obsolete("Use the capabilities exposed via the Status property -> GetAll. Will be removed with next major release.")] + public List GetAllStatuses() { throw new NotImplementedException(); } + public BackboneComponent GetBackboneComponentById(string id) { throw new NotImplementedException(); } + public List GetBackboneComponentsOfType() { throw new NotImplementedException(); } + public List GetBackboneComponentsOfType(Type type) { throw new NotImplementedException(); } + public void RegisterSubprocess(int pid) { } + [Obsolete("Use the capabilities exposed via the Status property -> SetValue. Will be removed with next major release.")] + public void SetStatus(string statusName, string statusValue) { } + [Obsolete("Use the capabilities exposed via the Status property -> SetValue. Will be removed with next major release.")] + public void SetStatus(BackboneComponent source, string statusName, string statusValue) { } + protected void CloseConnectionOfComponents(List components) { } + protected virtual void StopAllComponents() { } + protected void StopComponents(List components) { } + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/Core/Smtp/EmailMessage.cs b/EDA Viewer/Library/Eaf/Core/Smtp/EmailMessage.cs new file mode 100644 index 0000000..c727cd5 --- /dev/null +++ b/EDA Viewer/Library/Eaf/Core/Smtp/EmailMessage.cs @@ -0,0 +1,24 @@ +using System; + +namespace Library.Eaf.Core.Smtp +{ + + public class EmailMessage + { + public EmailMessage() { } + public EmailMessage(string subject, string body, MailPriority priority = MailPriority.Normal) { } + + public string Body { get; } + public MailPriority Priority { get; } + public string Subject { get; } + + public EmailMessage PriorityHigh() { throw new NotImplementedException(); } + public EmailMessage PriorityLow() { throw new NotImplementedException(); } + public EmailMessage PriorityNormal() { throw new NotImplementedException(); } + public EmailMessage SetBody(string body) { throw new NotImplementedException(); } + public EmailMessage SetPriority(MailPriority priority) { throw new NotImplementedException(); } + public EmailMessage SetSubject(string subject) { throw new NotImplementedException(); } + + } + +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/Core/Smtp/ISmtp.cs b/EDA Viewer/Library/Eaf/Core/Smtp/ISmtp.cs new file mode 100644 index 0000000..d7604c3 --- /dev/null +++ b/EDA Viewer/Library/Eaf/Core/Smtp/ISmtp.cs @@ -0,0 +1,9 @@ +namespace Library.Eaf.Core.Smtp +{ + + public interface ISmtp + { + void Send(EmailMessage message); + } + +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/Core/Smtp/MailPriority.cs b/EDA Viewer/Library/Eaf/Core/Smtp/MailPriority.cs new file mode 100644 index 0000000..e6d37a0 --- /dev/null +++ b/EDA Viewer/Library/Eaf/Core/Smtp/MailPriority.cs @@ -0,0 +1,11 @@ +namespace Library.Eaf.Core.Smtp +{ + + public enum MailPriority + { + Low = 0, + Normal = 1, + High = 2 + } + +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/ChangeDataCollectionHandler.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/ChangeDataCollectionHandler.cs new file mode 100644 index 0000000..869066d --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/ChangeDataCollectionHandler.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.EquipmentCore.Control +{ + public class ChangeDataCollectionHandler + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/DataCollectionRequest.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/DataCollectionRequest.cs new file mode 100644 index 0000000..e901799 --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/DataCollectionRequest.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.EquipmentCore.Control +{ + public class DataCollectionRequest + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentEvent.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentEvent.cs new file mode 100644 index 0000000..9a2dea9 --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentEvent.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.EquipmentCore.Control +{ + public class EquipmentEvent + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentException.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentException.cs new file mode 100644 index 0000000..6542474 --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentException.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.EquipmentCore.Control +{ + public class EquipmentException + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentSelfDescription.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentSelfDescription.cs new file mode 100644 index 0000000..c325af1 --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentSelfDescription.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.EquipmentCore.Control +{ + public class EquipmentSelfDescription + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/GetParameterValuesHandler.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/GetParameterValuesHandler.cs new file mode 100644 index 0000000..385ef82 --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/GetParameterValuesHandler.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.EquipmentCore.Control +{ + public class GetParameterValuesHandler + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IConnectionControl.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IConnectionControl.cs new file mode 100644 index 0000000..b346524 --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IConnectionControl.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.EquipmentCore.Control +{ + public interface IConnectionControl + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IDataTracingHandler.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IDataTracingHandler.cs new file mode 100644 index 0000000..3e73a9d --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IDataTracingHandler.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.EquipmentCore.Control +{ + public interface IDataTracingHandler + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentCommandService.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentCommandService.cs new file mode 100644 index 0000000..d00a9ce --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentCommandService.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.EquipmentCore.Control +{ + public interface IEquipmentCommandService + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentControl.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentControl.cs new file mode 100644 index 0000000..647d1ec --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentControl.cs @@ -0,0 +1,16 @@ +using Library.PeerGroup.GCL.Annotations; + +namespace Library.Eaf.EquipmentCore.Control +{ + public interface IEquipmentControl : IPackageSource + { + [NotNull] + IEquipmentSelfDescriptionBuilder SelfDescriptionBuilder { get; } + [NotNull] + IEquipmentDataCollection DataCollection { get; } + [NotNull] + IEquipmentCommandService Commands { get; } + [NotNull] + IConnectionControl Connection { get; } + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentSelfDescriptionBuilder.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentSelfDescriptionBuilder.cs new file mode 100644 index 0000000..15ca25f --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentSelfDescriptionBuilder.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.EquipmentCore.Control +{ + public interface IEquipmentSelfDescriptionBuilder + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IPackage.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IPackage.cs new file mode 100644 index 0000000..0df5871 --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IPackage.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.EquipmentCore.Control +{ + public interface IPackage + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/ISelfDescriptionLookup.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/ISelfDescriptionLookup.cs new file mode 100644 index 0000000..6c04747 --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/ISelfDescriptionLookup.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.EquipmentCore.Control +{ + public interface ISelfDescriptionLookup + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IVirtualParameterValuesHandler.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IVirtualParameterValuesHandler.cs new file mode 100644 index 0000000..7d8b40e --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/IVirtualParameterValuesHandler.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.EquipmentCore.Control +{ + public interface IVirtualParameterValuesHandler + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/SetParameterValuesHandler.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/SetParameterValuesHandler.cs new file mode 100644 index 0000000..6371ae8 --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/SetParameterValuesHandler.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.EquipmentCore.Control +{ + public class SetParameterValuesHandler + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/TraceRequest.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/TraceRequest.cs new file mode 100644 index 0000000..cee5da9 --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/AutoGenerated/TraceRequest.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.EquipmentCore.Control +{ + public class TraceRequest + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/IEquipmentDataCollection.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/IEquipmentDataCollection.cs new file mode 100644 index 0000000..e0f09e8 --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/IEquipmentDataCollection.cs @@ -0,0 +1,39 @@ +using Library.Eaf.EquipmentCore.DataCollection.Reporting; +using Library.Eaf.EquipmentCore.SelfDescription.ElementDescription; +using System; +using System.Collections.Generic; + +namespace Library.Eaf.EquipmentCore.Control +{ + public interface IEquipmentDataCollection + { + IVirtualParameterValuesHandler VirtualParameterValuesHandler { get; } + ISelfDescriptionLookup SelfDescriptionLookup { get; } + EquipmentSelfDescription SelfDescription { get; } + IEnumerable ActiveRequests { get; } + IDataTracingHandler DataTracingHandler { get; } + + ParameterValue CreateParameterValue(EquipmentParameter parameter, object value); + void NotifyDataTracingAvailable(bool isAvailable); + void RegisterChangeDataCollectionHandler(ChangeDataCollectionHandler handler); + void RegisterDataTracingHandler(IDataTracingHandler handler); + void RegisterGetParameterValuesHandler(GetParameterValuesHandler handler); + void RegisterSetParameterValuesHandler(SetParameterValuesHandler handler); + void TriggerDeactivate(DataCollectionRequest deactivateRequest); + void TriggerEvent(EquipmentEvent equipmentEvent, IEnumerable parameters); + void TriggerEvent(EquipmentEvent equipmentEvent, IEnumerable parameters, IPackage sourcePackage); + void TriggerExceptionClear(EquipmentException equipmentException, IEnumerable parameters); + void TriggerExceptionClear(EquipmentException equipmentException, IEnumerable parameters, IPackage sourcePackage); + void TriggerExceptionClear(EquipmentException equipmentException, IEnumerable parameters, string severityOverride, string descriptionOverride); + void TriggerExceptionClear(EquipmentException equipmentException, IEnumerable parameters, string severityOverride, string descriptionOverride, IPackage sourcePackage); + void TriggerExceptionSet(EquipmentException equipmentException, IEnumerable parameters, string severityOverride, string descriptionOverride, IPackage sourcePackage); + void TriggerExceptionSet(EquipmentException equipmentException, IEnumerable parameters, string severityOverride, string descriptionOverride); + void TriggerExceptionSet(EquipmentException equipmentException, IEnumerable parameters, IPackage sourcePackage); + void TriggerExceptionSet(EquipmentException equipmentException, IEnumerable parameters); + void TriggerPerformanceRestored(); + void TriggerPerformanceWarning(); + void TriggerTraceSample(TraceRequest traceRequest, long sampleId, IEnumerable parameters); + void TriggerTraceSample(TraceRequest traceRequest, long sampleId, IEnumerable parameters, IPackage sourcePackage); + void TriggerTraceSample(TraceRequest traceRequest, long sampleId, IEnumerable parameters, DateTime equipmentTimeStamp); + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/Control/IPackageSource.cs b/EDA Viewer/Library/Eaf/EquipmentCore/Control/IPackageSource.cs new file mode 100644 index 0000000..4771a37 --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/Control/IPackageSource.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.EquipmentCore.Control +{ + public interface IPackageSource + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/DataCollection/Reporting/ParameterValue.cs b/EDA Viewer/Library/Eaf/EquipmentCore/DataCollection/Reporting/ParameterValue.cs new file mode 100644 index 0000000..ae30878 --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/DataCollection/Reporting/ParameterValue.cs @@ -0,0 +1,20 @@ +using Library.Eaf.EquipmentCore.SelfDescription.ElementDescription; +using Library.PeerGroup.GCL.Annotations; +using System; + +namespace Library.Eaf.EquipmentCore.DataCollection.Reporting +{ + public class ParameterValue + { + public ParameterValue(EquipmentParameter definition, object value) { } + public ParameterValue(EquipmentParameter definition, object value, DateTime timestamp) { } + + public virtual object Value { get; protected internal set; } + [NotNull] + public EquipmentParameter Definition { get; } + public DateTime Timestamp { get; protected set; } + + public virtual ParameterValue Clone(EquipmentParameter newDefinition) { throw new NotImplementedException(); } + public override string ToString() { return base.ToString(); } + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/SelfDescription/ElementDescription/EquipmentParameter.cs b/EDA Viewer/Library/Eaf/EquipmentCore/SelfDescription/ElementDescription/EquipmentParameter.cs new file mode 100644 index 0000000..bcd9b96 --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/SelfDescription/ElementDescription/EquipmentParameter.cs @@ -0,0 +1,24 @@ +using Library.Eaf.EquipmentCore.SelfDescription.ParameterTypes; + +namespace Library.Eaf.EquipmentCore.SelfDescription.ElementDescription +{ + public class EquipmentParameter + { + public EquipmentParameter(EquipmentParameter source, ParameterTypeDefinition typeDefinition) { } + public EquipmentParameter(string name, ParameterTypeDefinition typeDefinition, string description, bool isTransient = false, bool isReadOnly = true) { } + public EquipmentParameter(string id, string name, ParameterTypeDefinition typeDefinition, string description, bool isTransient = false, bool isReadOnly = true) { } + + public string Name { get; } + public string Id { get; } + public string Description { get; } + public string SourcePath { get; } + public string SourceEquipment { get; } + public ParameterTypeDefinition TypeDefinition { get; } + public bool IsTransient { get; } + public bool IsReadOnly { get; } + + public override string ToString() { return base.ToString(); } + public string ToStringWithDetails() { return base.ToString(); } + } + +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/SelfDescription/ParameterTypes/Field.cs b/EDA Viewer/Library/Eaf/EquipmentCore/SelfDescription/ParameterTypes/Field.cs new file mode 100644 index 0000000..a31b67a --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/SelfDescription/ParameterTypes/Field.cs @@ -0,0 +1,12 @@ +namespace Library.Eaf.EquipmentCore.SelfDescription.ParameterTypes +{ + public class Field + { + public Field(string name, string description, bool canBeNull, ParameterTypeDefinition typeDefinition) { } + + public string Name { get; } + public string Description { get; } + public ParameterTypeDefinition TypeDefinition { get; } + public bool CanBeNull { get; } + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/SelfDescription/ParameterTypes/ParameterTypeDefinition.cs b/EDA Viewer/Library/Eaf/EquipmentCore/SelfDescription/ParameterTypes/ParameterTypeDefinition.cs new file mode 100644 index 0000000..4d32eae --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/SelfDescription/ParameterTypes/ParameterTypeDefinition.cs @@ -0,0 +1,12 @@ +namespace Library.Eaf.EquipmentCore.SelfDescription.ParameterTypes +{ + public abstract class ParameterTypeDefinition + { + public ParameterTypeDefinition(string name, string description) { } + + public string Name { get; } + public string Description { get; } + + public override string ToString() { return base.ToString(); } + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/EquipmentCore/SelfDescription/ParameterTypes/StructuredType.cs b/EDA Viewer/Library/Eaf/EquipmentCore/SelfDescription/ParameterTypes/StructuredType.cs new file mode 100644 index 0000000..5913805 --- /dev/null +++ b/EDA Viewer/Library/Eaf/EquipmentCore/SelfDescription/ParameterTypes/StructuredType.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; + +namespace Library.Eaf.EquipmentCore.SelfDescription.ParameterTypes +{ + public class StructuredType : ParameterTypeDefinition + { + + public StructuredType(string name, string description, IList fields) : base(name, description) { } + + public IList Fields { get; } + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/Management/ConfigurationData/CellAutomation/IConfigurationObject.cs b/EDA Viewer/Library/Eaf/Management/ConfigurationData/CellAutomation/IConfigurationObject.cs new file mode 100644 index 0000000..e7dc564 --- /dev/null +++ b/EDA Viewer/Library/Eaf/Management/ConfigurationData/CellAutomation/IConfigurationObject.cs @@ -0,0 +1,6 @@ +namespace Library.Eaf.Management.ConfigurationData.CellAutomation +{ + public interface IConfigurationObject + { + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/Management/ConfigurationData/CellAutomation/ModelObjectParameterDefinition.cs b/EDA Viewer/Library/Eaf/Management/ConfigurationData/CellAutomation/ModelObjectParameterDefinition.cs new file mode 100644 index 0000000..537bbcf --- /dev/null +++ b/EDA Viewer/Library/Eaf/Management/ConfigurationData/CellAutomation/ModelObjectParameterDefinition.cs @@ -0,0 +1,26 @@ +using System; + +namespace Library.Eaf.Management.ConfigurationData.CellAutomation +{ + [System.Runtime.Serialization.DataContractAttribute(IsReference = true)] + public class ModelObjectParameterDefinition : IConfigurationObject + { + public ModelObjectParameterDefinition() { } + public ModelObjectParameterDefinition(string name, ModelObjectParameterType valueType, object defaultValue) { } + public ModelObjectParameterDefinition(string name, Type enumType, object defaultValue) { } + + [System.Runtime.Serialization.DataMemberAttribute] + public virtual long Id { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual string Name { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual string Value { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual ModelObjectParameterType ValueType { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual string EnumType { get; set; } + + public virtual ModelObjectParameterDefinition Clone() { return null; } + public virtual bool IsValidValue(string value) { return false; } + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/Management/ConfigurationData/CellAutomation/ModelObjectParameterType.cs b/EDA Viewer/Library/Eaf/Management/ConfigurationData/CellAutomation/ModelObjectParameterType.cs new file mode 100644 index 0000000..9d25435 --- /dev/null +++ b/EDA Viewer/Library/Eaf/Management/ConfigurationData/CellAutomation/ModelObjectParameterType.cs @@ -0,0 +1,17 @@ +namespace Library.Eaf.Management.ConfigurationData.CellAutomation +{ + public enum ModelObjectParameterType + { + String = 0, + Bool = 1, + Byte = 2, + SignedByte = 3, + Integer = 4, + UnsignedInteger = 5, + LongInteger = 6, + UnsignedLongInteger = 7, + Double = 8, + Float = 9, + Enum = 10 + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Eaf/Management/ConfigurationData/Semiconductor/CellInstances/SecsConnectionConfiguration.cs b/EDA Viewer/Library/Eaf/Management/ConfigurationData/Semiconductor/CellInstances/SecsConnectionConfiguration.cs new file mode 100644 index 0000000..91ef359 --- /dev/null +++ b/EDA Viewer/Library/Eaf/Management/ConfigurationData/Semiconductor/CellInstances/SecsConnectionConfiguration.cs @@ -0,0 +1,44 @@ +using Library.PeerGroup.GCL.SecsDriver; +using System; + +namespace Library.Eaf.Management.ConfigurationData.Semiconductor.CellInstances +{ + [System.Runtime.Serialization.DataContractAttribute] + public class SecsConnectionConfiguration + { + public SecsConnectionConfiguration() { } + + [System.Runtime.Serialization.DataMemberAttribute] + public virtual TimeSpan T6HsmsControlMessage { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual TimeSpan T5ConnectionSeperation { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual TimeSpan T4InterBlock { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual TimeSpan T3MessageReply { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual TimeSpan T2Protocol { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual TimeSpan T1InterCharacter { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual SerialBaudRate? BaudRate { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual SecsTransportType? PortType { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual long? Port { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual TimeSpan LinkTestTimer { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual string Host { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual long? DeviceId { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual HsmsSessionMode? SessionMode { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual HsmsConnectionMode? ConnectionMode { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual TimeSpan T7ConnectionIdle { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual TimeSpan T8NetworkIntercharacter { get; set; } + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Ifx/Eaf/Common/Configuration/ConnectionSetting.cs b/EDA Viewer/Library/Ifx/Eaf/Common/Configuration/ConnectionSetting.cs new file mode 100644 index 0000000..eaea75b --- /dev/null +++ b/EDA Viewer/Library/Ifx/Eaf/Common/Configuration/ConnectionSetting.cs @@ -0,0 +1,13 @@ +namespace Library.Ifx.Eaf.Common.Configuration +{ + [System.Runtime.Serialization.DataContractAttribute] + public class ConnectionSetting + { + public ConnectionSetting(string name, string value) { } + + [System.Runtime.Serialization.DataMemberAttribute] + public string Name { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public string Value { get; set; } + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Ifx/Eaf/EquipmentConnector/File/Component/File.cs b/EDA Viewer/Library/Ifx/Eaf/EquipmentConnector/File/Component/File.cs new file mode 100644 index 0000000..79f855c --- /dev/null +++ b/EDA Viewer/Library/Ifx/Eaf/EquipmentConnector/File/Component/File.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +namespace Library.Ifx.Eaf.EquipmentConnector.File.Component +{ + public class File + { + public File(string filePath) { throw new NotImplementedException(); } + public File(string filePath, DateTime timeFileFound) { throw new NotImplementedException(); } + + public string Path { get; } + public DateTime TimeFound { get; } + public bool IsErrorFile { get; } + public Dictionary ContentParameters { get; } + + public File UpdateContentParameters(Dictionary contentParameters) { throw new NotImplementedException(); } + public File UpdateParsingStatus(bool isErrorFile) { throw new NotImplementedException(); } + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Ifx/Eaf/EquipmentConnector/File/Component/FilePathGenerator.cs b/EDA Viewer/Library/Ifx/Eaf/EquipmentConnector/File/Component/FilePathGenerator.cs new file mode 100644 index 0000000..8dafbc1 --- /dev/null +++ b/EDA Viewer/Library/Ifx/Eaf/EquipmentConnector/File/Component/FilePathGenerator.cs @@ -0,0 +1,35 @@ +using Library.Ifx.Eaf.EquipmentConnector.File.Configuration; +using System; +using System.Collections.Generic; + +namespace Library.Ifx.Eaf.EquipmentConnector.File.Component +{ + public class FilePathGenerator + { + public const char PLACEHOLDER_IDENTIFIER = '%'; + public const char PLACEHOLDER_SEPARATOR = ':'; + public const string PLACEHOLDER_NOT_AVAILABLE = "NA"; + public const string PLACEHOLDER_ORIGINAL_FILE_NAME = "OriginalFileName"; + public const string PLACEHOLDER_ORIGINAL_FILE_EXTENSION = "OriginalFileExtension"; + public const string PLACEHOLDER_DATE_TIME = "DateTime"; + public const string PLACEHOLDER_SUB_FOLDER = "SubFolder"; + public const string PLACEHOLDER_CELL_NAME = "CellName"; + + public FilePathGenerator(FileConnectorConfiguration config, Dictionary customPattern = null) { throw new NotImplementedException(); } + public FilePathGenerator(FileConnectorConfiguration config, File file, bool isErrorFile = false, Dictionary customPattern = null) { throw new NotImplementedException(); } + public FilePathGenerator(FileConnectorConfiguration config, string sourceFilePath, bool isErrorFile = false, Dictionary customPattern = null) { throw new NotImplementedException(); } + + protected string SubFolderPath { get; } + protected FileConnectorConfiguration Configuration { get; } + protected File File { get; } + protected bool IsErrorFile { get; } + protected string DefaultPlaceHolderValue { get; } + + public string GetFullTargetPath() { throw new NotImplementedException(); } + public virtual string GetTargetFileName() { throw new NotImplementedException(); } + public string GetTargetFolder(bool throwExceptionIfNotExist = true) { throw new NotImplementedException(); } + protected virtual string GetSubFolder(string folderPattern, string subFolderPath) { throw new NotImplementedException(); } + protected virtual string PrepareFolderPath(string targetFolderPath, string subFolderPath) { throw new NotImplementedException(); } + protected string ReplacePlaceholder(string inputPath) { throw new NotImplementedException(); } + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Ifx/Eaf/EquipmentConnector/File/Configuration/FileConnectorConfiguration.cs b/EDA Viewer/Library/Ifx/Eaf/EquipmentConnector/File/Configuration/FileConnectorConfiguration.cs new file mode 100644 index 0000000..5dc949d --- /dev/null +++ b/EDA Viewer/Library/Ifx/Eaf/EquipmentConnector/File/Configuration/FileConnectorConfiguration.cs @@ -0,0 +1,135 @@ +using Library.Ifx.Eaf.Common.Configuration; +using System; +using System.Collections.Generic; + +namespace Library.Ifx.Eaf.EquipmentConnector.File.Configuration +{ + [System.Runtime.Serialization.DataContractAttribute] + public class FileConnectorConfiguration + { + public const ulong IDLE_EVENT_WAIT_TIME_DEFAULT = 360; + public const ulong FILE_HANDLE_TIMEOUT_DEFAULT = 15; + + [System.Runtime.Serialization.DataMemberAttribute] + public virtual bool? TriggerOnChanged { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual long? PostProcessingRetries { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual bool? CopySourceFolderStructure { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public IfPostProcessingFailsEnum? IfPostProcessingFailsAction { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public string AlternateTargetFolder { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public long? FileHandleTimeout { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public bool? DeleteEmptySourceSubFolders { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public long? IdleEventWaitTimeInSeconds { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public string FileAgeThreshold { get; set; } + public bool? FolderAgeCheckIndividualSubFolders { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual ZipModeEnum? ZipMode { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public FileAgeFilterEnum? FileAgeFilterMode { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public string ZipTargetFileName { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public string ZipErrorTargetFileName { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public long? ZipFileSubFolderLevel { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public string DefaultPlaceHolderValue { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public bool? UseZip64Mode { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public List ConnectionSettings { get; set; } + public string SourceDirectoryCloaking { get; set; } + public string FolderAgeThreshold { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual long? FileScanningIntervalInSeconds { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual bool? TriggerOnCreated { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual long? ZipFileTime { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public string SourceFileLocation { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public string SourceFileFilter { get; set; } + public List SourceFileFilters { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual bool? IncludeSubDirectories { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual FileScanningOptionEnum? FileScanningOption { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public string TargetFileLocation { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public string ErrorTargetFileLocation { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public string TargetFileName { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual long? FileHandleWaitTime { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public IfFileExistEnum? IfFileExistAction { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public long? ConnectionRetryInterval { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public PreProcessingModeEnum? PreProcessingMode { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public PostProcessingModeEnum? PostProcessingMode { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public PostProcessingModeEnum? ErrorPostProcessingMode { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public virtual long? ZipFileAmount { get; set; } + [System.Runtime.Serialization.DataMemberAttribute] + public string ErrorTargetFileName { get; set; } + + public void Initialize() { throw new NotImplementedException(); } + + public enum PostProcessingModeEnum + { + None = 0, + Move = 1, + Copy = 2, + Rename = 3, + Zip = 4, + Delete = 5, + MoveFolder = 6, + CopyFolder = 7, + DeleteFolder = 8 + } + public enum PreProcessingModeEnum + { + None = 0, + Process = 1 + } + public enum IfFileExistEnum + { + Overwrite = 0, + LeaveFiles = 1, + Delete = 2 + } + public enum IfPostProcessingFailsEnum + { + LeaveFiles = 0, + Delete = 1 + } + public enum FileScanningOptionEnum + { + FileWatcher = 0, + TimeBased = 1 + } + public enum ZipModeEnum + { + ZipByAmountOrTime = 0, + ZipByFileName = 1, + ZipBySubFolderName = 2 + } + public enum FileAgeFilterEnum + { + IgnoreNewer = 0, + IgnoreOlder = 1 + } + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/Ifx/Eaf/EquipmentConnector/File/SelfDescription/FileConnectorParameterTypeDefinitionProvider.cs b/EDA Viewer/Library/Ifx/Eaf/EquipmentConnector/File/SelfDescription/FileConnectorParameterTypeDefinitionProvider.cs new file mode 100644 index 0000000..23353cb --- /dev/null +++ b/EDA Viewer/Library/Ifx/Eaf/EquipmentConnector/File/SelfDescription/FileConnectorParameterTypeDefinitionProvider.cs @@ -0,0 +1,14 @@ +using Library.Eaf.EquipmentCore.SelfDescription.ParameterTypes; +using System; +using System.Collections.Generic; + +namespace Library.Ifx.Eaf.EquipmentConnector.File.SelfDescription +{ + public class FileConnectorParameterTypeDefinitionProvider + { + public FileConnectorParameterTypeDefinitionProvider() { } + + public IEnumerable GetAllParameterTypeDefinition() { return null; } + public ParameterTypeDefinition GetParameterTypeDefinition(string name) { return null; } + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/PeerGroup/GCL/Annotations/NotNullAttribute.cs b/EDA Viewer/Library/PeerGroup/GCL/Annotations/NotNullAttribute.cs new file mode 100644 index 0000000..fa311f4 --- /dev/null +++ b/EDA Viewer/Library/PeerGroup/GCL/Annotations/NotNullAttribute.cs @@ -0,0 +1,10 @@ +using System; + +namespace Library.PeerGroup.GCL.Annotations +{ + [AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.Delegate, AllowMultiple = false, Inherited = true)] + public sealed class NotNullAttribute : Attribute + { + public NotNullAttribute() { } + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/PeerGroup/GCL/SecsDriver/HsmsConnectionMode.cs b/EDA Viewer/Library/PeerGroup/GCL/SecsDriver/HsmsConnectionMode.cs new file mode 100644 index 0000000..21ecf38 --- /dev/null +++ b/EDA Viewer/Library/PeerGroup/GCL/SecsDriver/HsmsConnectionMode.cs @@ -0,0 +1,8 @@ +namespace Library.PeerGroup.GCL.SecsDriver +{ + public enum HsmsConnectionMode + { + Active = 0, + Passive = 1 + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/PeerGroup/GCL/SecsDriver/HsmsSessionMode.cs b/EDA Viewer/Library/PeerGroup/GCL/SecsDriver/HsmsSessionMode.cs new file mode 100644 index 0000000..6ea9d07 --- /dev/null +++ b/EDA Viewer/Library/PeerGroup/GCL/SecsDriver/HsmsSessionMode.cs @@ -0,0 +1,8 @@ +namespace Library.PeerGroup.GCL.SecsDriver +{ + public enum HsmsSessionMode + { + MultiSession = 0, + SingleSession = 1 + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/PeerGroup/GCL/SecsDriver/SecsTransportType.cs b/EDA Viewer/Library/PeerGroup/GCL/SecsDriver/SecsTransportType.cs new file mode 100644 index 0000000..f5afda3 --- /dev/null +++ b/EDA Viewer/Library/PeerGroup/GCL/SecsDriver/SecsTransportType.cs @@ -0,0 +1,8 @@ +namespace Library.PeerGroup.GCL.SecsDriver +{ + public enum SecsTransportType + { + HSMS = 0, + Serial = 1 + } +} \ No newline at end of file diff --git a/EDA Viewer/Library/PeerGroup/GCL/SecsDriver/SerialBaudRate.cs b/EDA Viewer/Library/PeerGroup/GCL/SecsDriver/SerialBaudRate.cs new file mode 100644 index 0000000..c3ffd63 --- /dev/null +++ b/EDA Viewer/Library/PeerGroup/GCL/SecsDriver/SerialBaudRate.cs @@ -0,0 +1,16 @@ +namespace Library.PeerGroup.GCL.SecsDriver +{ + public enum SerialBaudRate + { + Baud9600 = 0, + Baud19200 = 1, + Baud4800 = 2, + Baud2400 = 3, + Baud1200 = 4, + Baud300 = 5, + Baud150 = 6, + Baud38400 = 7, + Baud57600 = 8, + Baud115200 = 9 + } +} \ No newline at end of file diff --git a/EDA Viewer/Models/AppSettings.cs b/EDA Viewer/Models/AppSettings.cs new file mode 100644 index 0000000..2fe1229 --- /dev/null +++ b/EDA Viewer/Models/AppSettings.cs @@ -0,0 +1,15 @@ +namespace EDAViewer.Models +{ + public class AppSettings + { + public string Company { get; set; } + public string ECEDADatabasePassword { get; set; } + public string EncryptedPassword { get; set; } + public string IFXEDADatabasePassword { get; set; } + public string MonARessource { get; set; } + public string Server { get; set; } + public string ServiceUser { get; set; } + public string URLs { get; set; } + public string WorkingDirectoryName { get; set; } + } +} \ No newline at end of file diff --git a/EDA Viewer/Models/EdaHtmlDiff.cs b/EDA Viewer/Models/EdaHtmlDiff.cs new file mode 100644 index 0000000..ef0a35d --- /dev/null +++ b/EDA Viewer/Models/EdaHtmlDiff.cs @@ -0,0 +1,52 @@ +using EDAViewer.Models; +using System; +using System.ComponentModel.DataAnnotations; + +namespace EDAViewer.Models +{ + + public class EdaHtmlDiff : WithEnvironment + { + + public string Paths { get; set; } + public string CurrentPath { get; set; } + public string PathAndFileName { get; set; } + + [Display(Name = "FileName")] + [DisplayFormat(ConvertEmptyStringToNull = false)] + [Required(ErrorMessage = "Please select an file name", AllowEmptyStrings = false)] + public string FileName { get; set; } + + public EdaHtmlDiff() + { + Common(path: string.Empty); + } + + public EdaHtmlDiff(WithEnvironment withEnvironment, string path) + { + Common(path); + if (string.IsNullOrEmpty(withEnvironment.user_name)) + user_name = "AUTO"; + else + user_name = withEnvironment.user_name; + if (string.IsNullOrEmpty(withEnvironment.machine_name)) + machine_name = "IFX"; + else + machine_name = withEnvironment.machine_name; + if (withEnvironment.now_ticks == 0) + now_ticks = DateTime.Now.Ticks; + else + now_ticks = withEnvironment.now_ticks; + message = withEnvironment.message; + } + + private void Common(string path) + { + Paths = string.Empty; + CurrentPath = path; + FileName = string.Empty; + } + + } + +} \ No newline at end of file diff --git a/EDA Viewer/Models/ErrorViewModel.cs b/EDA Viewer/Models/ErrorViewModel.cs new file mode 100644 index 0000000..ac6c445 --- /dev/null +++ b/EDA Viewer/Models/ErrorViewModel.cs @@ -0,0 +1,9 @@ +namespace EDAViewer.Models +{ + public class ErrorViewModel + { + public string RequestId { get; set; } + + public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + } +} \ No newline at end of file diff --git a/EDA Viewer/Models/IBackground.cs b/EDA Viewer/Models/IBackground.cs new file mode 100644 index 0000000..1fbb28f --- /dev/null +++ b/EDA Viewer/Models/IBackground.cs @@ -0,0 +1,46 @@ +namespace EDAViewer.Models +{ + + public interface IBackground + { + void EdaDataCollectionPlansCallback(); + // public void EdaDataCollectionPlans() + // { + // long ticks = DateTime.Now.Ticks; + // Logic2021Q1 logic2021Q1 = new Logic2021Q1(_Log); + // string server = GetServer(debugIsNotEC: false); + // string cSharpFormat = "yyyy-MM-dd_hh:mm:ss tt"; + // string oracleFormat = "yyyy-MM-dd_hh:mi:ss AM"; + // string edaDataCollectionPlansLastRun = "2020-07-02_10:45:01 AM"; + // logic2021Q1.EdaDataCollectionPlans(server, server.Contains("_ec_"), edaDataCollectionPlansLastRun, cSharpFormat, oracleFormat); + // _Log.Debug(string.Concat("Took ", new TimeSpan(DateTime.Now.Ticks - ticks).TotalSeconds, " second(s)")); + // } + void EDAOutputArchiveCallback(); + // public void EDAOutputArchive() + // { + // long ticks = DateTime.Now.Ticks; + // string server = GetServer(debugIsNotEC: true); + // string sourceDirectory = string.Concat(@"\\", server, @"\ec_eda\Staging\Traces"); + // if (!Directory.Exists(sourceDirectory)) + // _Log.Debug(string.Concat("// Source directory <", sourceDirectory, "> doesn't exist.")); + // else + // { + // Logic2019Q4 logic2019Q4 = new Logic2019Q4(_Log); + // logic2019Q4.EDAOutputArchive(sourceDirectory); + // } + // _Log.Debug(string.Concat("Took ", new TimeSpan(DateTime.Now.Ticks - ticks).TotalSeconds, " second(s)")); + // } + void LogPathCleanUpByWeekCallback(); + // public void LogPathCleanUpByWeek() + // { + // long ticks = DateTime.Now.Ticks; + // string server = GetServer(debugIsNotEC: true); + // Logic2019Q3 logic2019Q3 = new Logic2019Q3(_Log); + // logic2019Q3.LogPathCleanUpByWeek(server, isEDA: true); + // logic2019Q3.LogPathCleanUpByWeek(server, isEAFLog: true); + // _Log.Debug(string.Concat("Took ", new TimeSpan(DateTime.Now.Ticks - ticks).TotalSeconds, " second(s)")); + // } + + } + +} \ No newline at end of file diff --git a/EDA Viewer/Models/IHomeController.cs b/EDA Viewer/Models/IHomeController.cs new file mode 100644 index 0000000..3030d14 --- /dev/null +++ b/EDA Viewer/Models/IHomeController.cs @@ -0,0 +1,17 @@ +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using System.Collections.Generic; + +namespace EDAViewer.Models +{ + public interface IHomeController + { + IActionResult Background(bool? message_clear = null, bool? exceptions_clear = null, bool? set_is_primary_instance = null, int? invoke_eda_dcp = null); + IActionResult Encode(string value = null); + IActionResult Error(); + IActionResult Index(); + IActionResult Privacy(); + IActionResult ViewEdaHtmlDiff(WithEnvironment withEnvironment = null); + ActionResult> GetDirectoriesOrFiles(string path = null, bool? upDirectory = null, string filter = null); + } +} \ No newline at end of file diff --git a/EDA Viewer/Models/WithEnvironment.cs b/EDA Viewer/Models/WithEnvironment.cs new file mode 100644 index 0000000..81980fb --- /dev/null +++ b/EDA Viewer/Models/WithEnvironment.cs @@ -0,0 +1,14 @@ +namespace EDAViewer.Models +{ + + public class WithEnvironment + { + + public string message { get; set; } + public string user_name { get; set; } + public string machine_name { get; set; } + public long now_ticks { get; set; } + + } + +} \ No newline at end of file diff --git a/EDA Viewer/Program.cs b/EDA Viewer/Program.cs new file mode 100644 index 0000000..35a1000 --- /dev/null +++ b/EDA Viewer/Program.cs @@ -0,0 +1,33 @@ +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Hosting; +using Shared; +using System.Diagnostics; + +namespace EDAViewer +{ + + public class Program + { + + public static void Main(string[] args) + { + CreateHostBuilder(args).Build().Run(); + } + + public static IHostBuilder CreateHostBuilder(string[] args) + { + IHostBuilder result; + IsEnvironment isEnvironment = new IsEnvironment(processesCount: null, nullASPNetCoreEnvironmentIsDevelopment: Debugger.IsAttached, nullASPNetCoreEnvironmentIsProduction: !Debugger.IsAttached); + result = Host.CreateDefaultBuilder(args) + .UseWindowsService() + .ConfigureWebHostDefaults(webBuilder => + { + webBuilder.UseStartup(); + }); + return result; + } + + } + +} \ No newline at end of file diff --git a/EDA Viewer/Properties/AssemblyInfo.cs b/EDA Viewer/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..49c75d0 --- /dev/null +++ b/EDA Viewer/Properties/AssemblyInfo.cs @@ -0,0 +1,3 @@ +using System.Runtime.CompilerServices; + +[assembly: InternalsVisibleTo("EDA Viewer.Tests")] \ No newline at end of file diff --git a/EDA Viewer/Shared/EquipmentType.cs b/EDA Viewer/Shared/EquipmentType.cs new file mode 100644 index 0000000..dd1413a --- /dev/null +++ b/EDA Viewer/Shared/EquipmentType.cs @@ -0,0 +1,53 @@ +namespace Shared +{ + + public enum EquipmentType + { + FileEquipment, + SemiEquipment, + // + DEP08EGANAIXG5, + // + MET08ANLYSDIFAAST230_Semi, + MET08DDUPSFS6420, + MET08DDUPSP1TBI, + MET08RESIHGCV, + MET08RESIMAPCDE, + MET08THFTIRQS408M, + MET08THFTIRSTRATUS, + // + MET08AFMD3100, + MET08BVHGPROBE, + MET08CVHGPROBE802B150, + MET08CVHGPROBE802B150_Monthly, + MET08CVHGPROBE802B150_Weekly, + MET08DDINCAN8620, + MET08DDINCAN8620_Daily, + MET08EBEAMINTEGRITY26, + MET08HALLHL5580, + MET08HALLHL5580_Monthly, + MET08HALLHL5580_Weekly, + MET08MESMICROSCOPE, + MET08NDFRESIMAP151C, + MET08NDFRESIMAP151C_Verification, + MET08PLMAPRPM, + MET08PLMAPRPM_Daily, + MET08PLMAPRPM_Verification, + MET08PLMPPLATO, + MET08PRFUSB4000, + MET08PRFUSB4000_Daily, + MET08PRFUSB4000_Monthly, + MET08PRFUSB4000_Weekly, + MET08PRFUSB4000_Verification, + MET08PRFUSB4000_Villach, + MET08UVH44GS100M, + MET08VPDSUBCON, + MET08WGEOMX203641Q, + MET08WGEOMX203641Q_Verification, + MET08XRDXPERTPROMRDXL, + MET08XRDXPERTPROMRDXL_Monthly, + MET08XRDXPERTPROMRDXL_Weekly, + METBRXRAYJV7300L + } + +} \ No newline at end of file diff --git a/EDA Viewer/Shared/IsEnvironment.cs b/EDA Viewer/Shared/IsEnvironment.cs new file mode 100644 index 0000000..c24b236 --- /dev/null +++ b/EDA Viewer/Shared/IsEnvironment.cs @@ -0,0 +1,171 @@ +using System; +using System.Diagnostics; +using System.Runtime.InteropServices; + +namespace Shared +{ + + public class IsEnvironment + { + + public enum Name + { + LinuxDevelopment, + LinuxProduction, + LinuxStaging, + OSXDevelopment, + OSXProduction, + OSXStaging, + WindowsDevelopment, + WindowsProduction, + WindowsStaging + } + + public bool DebuggerWasAttachedDuringConstructor { get; private set; } + public bool Development { get; private set; } + public bool Linux { get; private set; } + public bool OSX { get; private set; } + public bool Production { get; private set; } + public bool Staging { get; private set; } + public bool Windows { get; private set; } + public string Profile { get; private set; } + public string AppSettingsFileName { get; private set; } + public string ASPNetCoreEnvironment { get; private set; } + + public IsEnvironment(string testCategory) + { + if (testCategory.EndsWith(".json")) + { + Production = testCategory == "appsettings.json"; + Staging = testCategory.EndsWith(nameof(Staging)); + OSX = RuntimeInformation.IsOSPlatform(OSPlatform.OSX); + Development = testCategory.EndsWith(nameof(Development)); + Linux = RuntimeInformation.IsOSPlatform(OSPlatform.Linux); + DebuggerWasAttachedDuringConstructor = Debugger.IsAttached; + Windows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows); + ASPNetCoreEnvironment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"); + } + else + { + DebuggerWasAttachedDuringConstructor = Debugger.IsAttached; + OSX = !string.IsNullOrEmpty(testCategory) && testCategory.StartsWith(nameof(OSX)); + ASPNetCoreEnvironment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"); + Linux = !string.IsNullOrEmpty(testCategory) && testCategory.StartsWith(nameof(Linux)); + Staging = !string.IsNullOrEmpty(testCategory) && testCategory.EndsWith(nameof(Staging)); + Windows = !string.IsNullOrEmpty(testCategory) && testCategory.StartsWith(nameof(Windows)); + Production = !string.IsNullOrEmpty(testCategory) && testCategory.EndsWith(nameof(Production)); + Development = !string.IsNullOrEmpty(testCategory) && testCategory.EndsWith(nameof(Development)); + } + Profile = GetProfile(); + AppSettingsFileName = GetAppSettingsFileName(processesCount: null); + } + + public IsEnvironment(bool isDevelopment, bool isStaging, bool isProduction) + { + Staging = isStaging; + Production = isProduction; + Development = isDevelopment; + OSX = RuntimeInformation.IsOSPlatform(OSPlatform.OSX); + Linux = RuntimeInformation.IsOSPlatform(OSPlatform.Linux); + DebuggerWasAttachedDuringConstructor = Debugger.IsAttached; + Windows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows); + ASPNetCoreEnvironment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"); + Profile = GetProfile(); + AppSettingsFileName = GetAppSettingsFileName(processesCount: null); + } + + public IsEnvironment(int? processesCount, bool nullASPNetCoreEnvironmentIsDevelopment, bool nullASPNetCoreEnvironmentIsProduction) + { + OSX = RuntimeInformation.IsOSPlatform(OSPlatform.OSX); + Linux = RuntimeInformation.IsOSPlatform(OSPlatform.Linux); + DebuggerWasAttachedDuringConstructor = Debugger.IsAttached; + Windows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows); + ASPNetCoreEnvironment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"); + if (nullASPNetCoreEnvironmentIsDevelopment && nullASPNetCoreEnvironmentIsProduction) + throw new Exception(); + else if (string.IsNullOrEmpty(ASPNetCoreEnvironment) && nullASPNetCoreEnvironmentIsProduction) + Production = true; + else if (string.IsNullOrEmpty(ASPNetCoreEnvironment) && nullASPNetCoreEnvironmentIsDevelopment) + Development = true; + else if (string.IsNullOrEmpty(ASPNetCoreEnvironment) && !nullASPNetCoreEnvironmentIsDevelopment && !nullASPNetCoreEnvironmentIsProduction) + throw new Exception(); + else + { + Staging = ASPNetCoreEnvironment is not null && ASPNetCoreEnvironment.EndsWith(nameof(Staging)); + Production = ASPNetCoreEnvironment is not null && ASPNetCoreEnvironment.EndsWith(nameof(Production)); + Development = ASPNetCoreEnvironment is not null && ASPNetCoreEnvironment.EndsWith(nameof(Development)); + } + Profile = GetProfile(); + AppSettingsFileName = GetAppSettingsFileName(processesCount); + } + + private string GetProfile() + { + string result; + if (Windows && Production) + result = nameof(Production); + else if (Windows && Staging) + result = nameof(Staging); + else if (Windows && Development) + result = nameof(Development); + else if (Linux && Production) + result = nameof(Name.LinuxProduction); + else if (Linux && Staging) + result = nameof(Name.LinuxStaging); + else if (Linux && Development) + result = nameof(Name.LinuxDevelopment); + else if (OSX && Production) + result = nameof(Name.OSXProduction); + else if (OSX && Staging) + result = nameof(Name.OSXStaging); + else if (OSX && Development) + result = nameof(Name.OSXDevelopment); + else + throw new Exception(); + return result; + } + + private string GetAppSettingsFileName(int? processesCount) + { + string result; + if (Production) + { + if (processesCount is null) + result = "appsettings.json"; + else + result = $"appsettings.{processesCount}.json"; + } + else + { + string environment; + if (Staging) + environment = nameof(Staging); + else if (Development) + environment = nameof(Development); + else + throw new Exception(); + if (processesCount is null) + result = $"appsettings.{environment}.json"; + else + result = $"appsettings.{environment}.{processesCount}.json"; + } + return result; + } + + public static string GetEnvironmentName(IsEnvironment isEnvironment) + { + string result; + if (isEnvironment.Windows) + result = nameof(IsEnvironment.Windows); + else if (isEnvironment.Linux) + result = nameof(IsEnvironment.Linux); + else if (isEnvironment.OSX) + result = nameof(IsEnvironment.OSX); + else + throw new Exception(); + return result; + } + + } + +} \ No newline at end of file diff --git a/EDA Viewer/Shared/RijndaelEncryption.cs b/EDA Viewer/Shared/RijndaelEncryption.cs new file mode 100644 index 0000000..a1e1c6c --- /dev/null +++ b/EDA Viewer/Shared/RijndaelEncryption.cs @@ -0,0 +1,96 @@ +using System; +using System.IO; +using System.Security.Cryptography; +using System.Text; +using System.Text.RegularExpressions; + +namespace Shared +{ + + public static class RijndaelEncryption + { + /// + /// Change the Inputkey GUID when you use this code in your own program. + /// Keep this inputkey very safe and prevent someone from decoding it some way!! + /// Generated 2021-08-10 + /// + internal const string Inputkey = "970CCEF6-4307-4F6A-9AC8-377DADB889BD"; + + /// + /// Encrypt the given text and give the byte array back as a BASE64 string + /// + /// The text to encrypt + /// The pasword salt + /// The encrypted text + public static string Encrypt(string text, string salt) + { + string result; + if (string.IsNullOrEmpty(text)) + throw new ArgumentNullException("text"); + RijndaelManaged aesAlg = NewRijndaelManaged(salt); + ICryptoTransform encryptor = aesAlg.CreateEncryptor(aesAlg.Key, aesAlg.IV); + MemoryStream msEncrypt = new MemoryStream(); + using (CryptoStream csEncrypt = new CryptoStream(msEncrypt, encryptor, CryptoStreamMode.Write)) + using (StreamWriter swEncrypt = new StreamWriter(csEncrypt)) + swEncrypt.Write(text); + result = Convert.ToBase64String(msEncrypt.ToArray()); + return result; + } + + /// + /// Checks if a string is base64 encoded + /// + /// The base64 encoded string + /// + public static bool IsBase64String(string base64String) + { + bool result; + base64String = base64String.Trim(); + result = (base64String.Length % 4 == 0) && Regex.IsMatch(base64String, @"^[a-zA-Z0-9\+/]*={0,3}$", RegexOptions.None); + return result; + } + + /// + /// Decrypts the given text + /// + /// The encrypted BASE64 text + /// The pasword salt + /// De gedecrypte text + public static string Decrypt(string cipherText, string salt) + { + if (string.IsNullOrEmpty(cipherText)) + throw new ArgumentNullException("cipherText"); + if (!IsBase64String(cipherText)) + throw new Exception("The cipherText input parameter is not base64 encoded"); + string text; + RijndaelManaged aesAlg = NewRijndaelManaged(salt); + ICryptoTransform decryptor = aesAlg.CreateDecryptor(aesAlg.Key, aesAlg.IV); + byte[] cipher = Convert.FromBase64String(cipherText); + using (MemoryStream msDecrypt = new MemoryStream(cipher)) + { + using CryptoStream csDecrypt = new CryptoStream(msDecrypt, decryptor, CryptoStreamMode.Read); + using StreamReader srDecrypt = new StreamReader(csDecrypt); + text = srDecrypt.ReadToEnd(); + } + return text; + } + + /// + /// Create a new RijndaelManaged class and initialize it + /// + /// The pasword salt + /// + private static RijndaelManaged NewRijndaelManaged(string salt) + { + if (salt == null) + throw new ArgumentNullException("salt"); + byte[] saltBytes = Encoding.ASCII.GetBytes(salt); + Rfc2898DeriveBytes key = new Rfc2898DeriveBytes(Inputkey, saltBytes); + RijndaelManaged aesAlg = new RijndaelManaged(); + aesAlg.Key = key.GetBytes(aesAlg.KeySize / 8); + aesAlg.IV = key.GetBytes(aesAlg.BlockSize / 8); + return aesAlg; + } + } + +} \ No newline at end of file diff --git a/EDA Viewer/Singleton/Background.cs b/EDA Viewer/Singleton/Background.cs new file mode 100644 index 0000000..74a428a --- /dev/null +++ b/EDA Viewer/Singleton/Background.cs @@ -0,0 +1,912 @@ +using EDAViewer.Models; +using EDAViewer.Singleton.Helper; +using Infineon.Monitoring.MonA; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Logging; +using Shared; +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.IO.Compression; +using System.Linq; +using System.Runtime.InteropServices; +using System.Text; +using System.Text.Json; +using System.Text.RegularExpressions; +using System.Threading; +using System.Xml; +using System.Xml.Serialization; + +namespace EDAViewer.Singleton +{ + + public partial class Background : IBackground + { + + public List Timers => _Timers; + public string Message { get; private set; } + public string WorkingDirectory { get; private set; } + public List Exceptions { get; private set; } + + private bool _ShuttingDown; + private readonly object _Lock; + private readonly Calendar _Calendar; + private readonly List _Timers; + private readonly AppSettings _AppSettings; + private readonly string[] _SiEquipmentTypes; + private readonly string[] _GaNEquipmentTypes; + private readonly IsEnvironment _IsEnvironment; + + private const string _Site = "sjc"; + + private Log _Log; + private DateTime _PrimaryInstanceSetAt; + private string _EdaDataCollectionPlansLastRun; + + public Background(IsEnvironment isEnvironment, AppSettings appSettings, string workingDirectory) + { + _Log = null; + Exceptions = new(); + _IsEnvironment = isEnvironment; + _Lock = new object(); + _ShuttingDown = false; + if (_Lock is null) + { } + Message = string.Empty; + _AppSettings = appSettings; + _Timers = new List(); + _IsEnvironment = isEnvironment; + WorkingDirectory = workingDirectory; + _PrimaryInstanceSetAt = DateTime.MinValue; + _EdaDataCollectionPlansLastRun = string.Empty; + _SiEquipmentTypes = GetEquipmentTypes(isGaN: false, isSi: true); + _GaNEquipmentTypes = GetEquipmentTypes(isGaN: true, isSi: false); + CultureInfo cultureInfo = new CultureInfo("en-US"); + _Calendar = cultureInfo.Calendar; + } + + public void Dispose() + { + foreach (Timer timer in _Timers) + timer.Dispose(); + } + + void IBackground.Update(ILogger logger) + { + Update(logger); + } + + internal void Update(ILogger logger) + { + _Log = new Log(logger); + //https://blog.magnusmontin.net/2018/11/05/platform-conditional-compilation-in-net-core/ + if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) + _Log.Debug("Running on Linux!"); + else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) + _Log.Debug("Running on macOS!"); + else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + _Log.Debug("Running on Windows!"); +#if Linux + _Log.Debug("Built on Linux!"); +#elif OSX + _Log.Debug("Built on macOS!"); +#elif Windows + _Log.Debug("Built in Windows!"); +#else + ()("Built in unkown!"); +#endif + if (string.IsNullOrEmpty(_AppSettings.URLs) && !_IsEnvironment.Development) + throw new Exception("Invalid Application Settings URLs!"); + } + + internal void Catch(Exception exception) + { + Exceptions.Add(exception); + _Log.Error(exception); + if (!string.IsNullOrEmpty(_AppSettings.MonARessource)) + { + MonIn monIn = MonIn.GetInstance(); + monIn.SendStatus(_Site, _AppSettings.MonARessource, "Heartbeat", State.Warning); + } + } + + public void SendStatusOk() + { + if (!string.IsNullOrEmpty(_AppSettings.MonARessource)) + { + MonIn monIn = MonIn.GetInstance(); + monIn.SendStatus(_Site, _AppSettings.MonARessource, "Heartbeat", State.Ok); + } + } + + public string GetCountDirectory(string verb) + { + DateTime dateTime = DateTime.Now; + CultureInfo cultureInfo = new("en-US"); + Calendar calendar = cultureInfo.Calendar; + string weekOfYear = calendar.GetWeekOfYear(dateTime, CalendarWeekRule.FirstDay, DayOfWeek.Sunday).ToString("00"); + //string nameSpace = System.Reflection.Assembly.GetExecutingAssembly().EntryPoint.DeclaringType.Namespace; + string nameSpace = GetType().Namespace.Split('.')[0]; + if (!string.IsNullOrEmpty(_AppSettings.MonARessource)) + { + MonIn monIn = MonIn.GetInstance(); + monIn.SendStatus(_Site, _AppSettings.MonARessource, "Heartbeat", State.Up); + } + return string.Concat(@"\\", _AppSettings.Server, @"\EC_EDA\Counts\", dateTime.ToString("yyyy"), @"\", "Week_", weekOfYear, @"\", dateTime.ToString("yyyy - MM - dd"), @"\", "Application", @"\", nameSpace, @"\", verb, @"\", dateTime.Ticks); + } + + public void Stop(bool immediate) + { + _ShuttingDown = true; + foreach (Timer timer in _Timers) + timer.Change(Timeout.Infinite, 0); + if (!_IsEnvironment.Development) + { + if (!string.IsNullOrEmpty(_AppSettings.MonARessource)) + { + MonIn monIn = MonIn.GetInstance(); + monIn.SendStatus(_Site, _AppSettings.MonARessource, "Heartbeat", State.Down); + } + string countDirectory = GetCountDirectory("Stop"); + Directory.CreateDirectory(countDirectory); + } + } + + public void ClearMessage() + { + Message = string.Empty; + } + + public void SetIsPrimaryInstance() + { + _PrimaryInstanceSetAt = DateTime.Now; + } + + public void ClearIsPrimaryInstance() + { + _PrimaryInstanceSetAt = DateTime.MinValue; + } + + public bool IsPrimaryInstance() + { + bool result; + DateTime dateTime = DateTime.Now.AddDays(-1); + result = _PrimaryInstanceSetAt > dateTime; + return result; + } + + public void EdaDataCollectionPlansCallback() + { + string cSharpFormat = "yyyy-MM-dd_hh:mm:ss tt"; + string oracleFormat = "yyyy-MM-dd_hh:mi:ss AM"; + _Log.Debug(string.Concat("A) _EdaDataCollectionPlansLastRun = ", _EdaDataCollectionPlansLastRun)); + DataCollectionPlans(_AppSettings, _EdaDataCollectionPlansLastRun, cSharpFormat, oracleFormat); + _EdaDataCollectionPlansLastRun = DateTime.Now.ToString(cSharpFormat); + _Log.Debug(string.Concat("B) _EdaDataCollectionPlansLastRun = ", _EdaDataCollectionPlansLastRun)); + } + private void DeleteEmptyDirectories(string directory) + { + string[] files = Directory.GetFiles(directory, "*", SearchOption.AllDirectories); + string[] directories = Directory.GetDirectories(directory, "*", SearchOption.AllDirectories); + if (files.Length == 0 && directories.Length == 0) + Directory.Delete(directory); + else + { + foreach (string subDirectory in Directory.GetDirectories(directory, "*", SearchOption.TopDirectoryOnly)) + { + if (_ShuttingDown) + break; + DeleteEmptyDirectories(subDirectory); + } + } + } + + private void ZipFilesByDate(string sourceDirectory, SearchOption searchOption = SearchOption.TopDirectoryOnly, string dayFormat = null) + { + string key; + bool addFile; + string fileName; + string[] segments; + string[] subFiles; + string weekOfYear; + FileInfo fileInfo; + DateTime creationTime; + DateTime lastWriteTime; + Regex regex = new Regex("[a-zA-Z0-9]{1,}"); + DateTime dateTime = DateTime.Now.AddDays(-6); + DateTime firstEmail = new DateTime(2019, 3, 8); + CultureInfo cultureInfo = new CultureInfo("en-US"); + Calendar calendar = cultureInfo.Calendar; + int ticksLength = dateTime.Ticks.ToString().Length; + Dictionary weeks = new Dictionary(); + for (int i = 0; i < 1000; i++) + { + if (_ShuttingDown) + break; + dateTime = firstEmail.AddDays(i); + weekOfYear = calendar.GetWeekOfYear(dateTime, CalendarWeekRule.FirstDay, DayOfWeek.Sunday).ToString("00"); + key = string.Concat(dateTime.ToString("yyyy"), "_Week_", weekOfYear); + if (!weeks.ContainsKey(key)) + weeks.Add(key, dateTime); + } + weekOfYear = calendar.GetWeekOfYear(DateTime.Now, CalendarWeekRule.FirstDay, DayOfWeek.Sunday).ToString("00"); + string skipKey = string.Concat(DateTime.Now.ToString("yyyy"), "_Week_", weekOfYear); + Dictionary> keyValuePairs = new Dictionary>(); + string[] topDirectories = Directory.GetDirectories(sourceDirectory, "*", SearchOption.TopDirectoryOnly); + if (topDirectories.Length == 0) + topDirectories = new string[] { sourceDirectory }; + foreach (string topDirectory in topDirectories) + { + if (_ShuttingDown) + break; + keyValuePairs.Clear(); + subFiles = Directory.GetFiles(topDirectory, "*", searchOption); + foreach (string subFile in subFiles) + { + if (_ShuttingDown) + break; + addFile = false; + if (subFile.EndsWith(".zip")) + continue; + fileName = Path.GetFileName(subFile); + fileInfo = new FileInfo(subFile); + creationTime = fileInfo.CreationTime; + if (creationTime > dateTime) + continue; + lastWriteTime = fileInfo.LastWriteTime; + if (fileName.Contains(lastWriteTime.ToString("yyyyMMdd")) || fileName.Contains(lastWriteTime.ToString("yyyy-MM-dd")) || + fileName.Contains(creationTime.ToString("yyyyMMdd")) || fileName.Contains(creationTime.ToString("yyyy-MM-dd")) || + fileName.Contains(lastWriteTime.ToString("yyMMdd")) || fileName.Contains(lastWriteTime.ToString("yy-MM-dd")) || + fileName.Contains(creationTime.ToString("yyMMdd")) || fileName.Contains(creationTime.ToString("yy-MM-dd")) || + fileName.Contains(lastWriteTime.AddDays(-1).ToString("yyyyMMdd")) || fileName.Contains(lastWriteTime.AddDays(-1).ToString("yyyy-MM-dd")) || + fileName.Contains(creationTime.AddDays(-1).ToString("yyyyMMdd")) || fileName.Contains(creationTime.AddDays(-1).ToString("yyyy-MM-dd")) || + fileName.Contains(lastWriteTime.AddDays(-1).ToString("yyMMdd")) || fileName.Contains(lastWriteTime.AddDays(-1).ToString("yy-MM-dd")) || + fileName.Contains(creationTime.AddDays(-1).ToString("yyMMdd")) || fileName.Contains(creationTime.AddDays(-1).ToString("yy-MM-dd"))) + addFile = true; + if (!addFile && fileName.Length > ticksLength) + { + MatchCollection matches = regex.Matches(fileName); + foreach (Match match in matches) + { + if (_ShuttingDown) + break; + if (match.Value.Length != ticksLength) + continue; + if (!long.TryParse(match.Value, out long ticks)) + continue; + addFile = true; + break; + } + if (addFile) + break; + } + if (addFile) + { + weekOfYear = calendar.GetWeekOfYear(lastWriteTime, CalendarWeekRule.FirstDay, DayOfWeek.Sunday).ToString("00"); + if (string.IsNullOrEmpty(dayFormat)) + key = string.Concat(lastWriteTime.ToString("yyyy"), "_Week_", weekOfYear); + else + key = string.Concat(lastWriteTime.ToString("yyyy"), "_Week_", weekOfYear, "_", lastWriteTime.ToString(dayFormat)); + if (key == skipKey) + continue; + if (!keyValuePairs.ContainsKey(key)) + keyValuePairs.Add(key, new List()); + keyValuePairs[key].Add(subFile); + } + } + foreach (KeyValuePair> element in keyValuePairs) + { + if (_ShuttingDown) + break; + key = string.Concat(topDirectory, @"\", element.Key, ".zip"); + if (File.Exists(key)) + { + for (short i = 101; i < short.MaxValue; i++) + { + if (_ShuttingDown) + break; + key = string.Concat(topDirectory, @"\", element.Key, "_", i, ".zip"); + if (!File.Exists(key)) + break; + } + } + if (_ShuttingDown) + break; + lock (_Lock) + { + using (ZipArchive zip = ZipFile.Open(key, ZipArchiveMode.Create)) + { + foreach (string file in element.Value) + { + zip.CreateEntryFromFile(file, Path.GetFileName(file)); + File.Delete(file); + } + } + } + } + subFiles = Directory.GetFiles(topDirectory, "*.zip", SearchOption.TopDirectoryOnly); + foreach (string subFile in subFiles) + { + if (_ShuttingDown) + break; + fileName = Path.GetFileNameWithoutExtension(subFile); + segments = fileName.Split('_'); + if (segments.Length > 2) + fileName = string.Concat(segments[0], '_', segments[1], '_', segments[2]); + if (weeks.ContainsKey(fileName)) + { + try + { File.SetLastWriteTime(subFile, weeks[fileName]); } + catch (Exception) { } + } + } + if (topDirectory != sourceDirectory) + try + { DeleteEmptyDirectories(topDirectory); } + catch (Exception) { } + //Print(topDirectory); + } + } + + public void LogPathCleanUpByWeek(string server, bool isEDA = false, bool isNA = false) + { + if (isEDA && isNA) + throw new Exception(); + else if (!isEDA && !isNA) + throw new Exception(); + string share; + Tuple[] tuples; + if (isEDA) + { + share = string.Concat(@"\\", server, @"\ec_eda"); + tuples = new Tuple[] + { + new Tuple(@"\Staging\Traces\MET08ANLYSDIFAAST230\LogFile", string.Empty), + //new Tuple(@"\Staging\Traces\DEP08EGANAIXG5HT\R69-HSMS\LogFile", "yyyy_MM_dd"), + //new Tuple(@"\Staging\Traces\DEP08EGANAIXG5\LogFile\R69-HSMS", "yyyy_MM_dd"), + //new Tuple(@"\Staging\Traces\DEP08EGANAIXG5HT\R71-HSMS\LogFile", "yyyy_MM_dd"), + //new Tuple(@"\Staging\Traces\DEP08EGANAIXG5\LogFile\R71-HSMS", "yyyy_MM_dd"), + new Tuple(@"\Staging\Traces\MET08XRDXPERTPROMRDXL_Monthly\LogFile", string.Empty), + new Tuple(@"\Staging\Traces\MET08XRDXPERTPROMRDXL_Weekly\LogFile", string.Empty), + new Tuple(@"\Staging\Traces\MET08DDINCAN8620_Daily\LogFile", string.Empty), + new Tuple(@"\Staging\Traces\MET08PRFUSB4000\LogFile", string.Empty), + }; + } + else if (isNA) + throw new Exception(); + else + throw new Exception(); + string[] files; + string weekOfYear; + FileInfo fileInfo; + string newDirectroy; + string sourceDirectory; + DateTime lastWriteTime; + string[] topDirectories; + long twoDays = DateTime.Now.AddDays(-2).Ticks; + foreach (Tuple tuple in tuples) + { + if (_ShuttingDown) + break; + sourceDirectory = string.Concat(share, tuple.Item1); + if (!Directory.Exists(sourceDirectory)) + continue; + if (isEDA) + topDirectories = new string[] { sourceDirectory }; + else if (isNA) + throw new Exception(); + else + throw new Exception(); + if (topDirectories.Length == 0) + topDirectories = new string[] { sourceDirectory }; + foreach (string topDirectory in topDirectories) + { + if (_ShuttingDown) + break; + files = Directory.GetFiles(topDirectory, "*", SearchOption.TopDirectoryOnly); + foreach (string file in files) + { + if (_ShuttingDown) + break; + if (file.EndsWith(".zip")) + continue; + fileInfo = new FileInfo(file); + lastWriteTime = fileInfo.LastAccessTime; + if (lastWriteTime.Ticks > twoDays) + continue; + weekOfYear = _Calendar.GetWeekOfYear(lastWriteTime, CalendarWeekRule.FirstDay, DayOfWeek.Sunday).ToString("00"); + newDirectroy = string.Concat(topDirectory, @"\", lastWriteTime.ToString("yyyy"), "___Week_", weekOfYear, @"\", lastWriteTime.ToString("yyyy_MM_dd")); + if (!Directory.Exists(newDirectroy)) + Directory.CreateDirectory(newDirectroy); + if (!fileInfo.Exists) + continue; + if (!_ShuttingDown) + { + lock (_Lock) + File.Move(file, string.Concat(newDirectroy, @"\", Path.GetFileName(file))); + } + } + } + } + foreach (Tuple tuple in tuples) + { + if (_ShuttingDown) + break; + sourceDirectory = string.Concat(share, tuple.Item1); + if (!Directory.Exists(sourceDirectory)) + continue; + ZipFilesByDate(sourceDirectory, SearchOption.AllDirectories, tuple.Item2); + } + } + + public void LogPathCleanUpByWeekCallback() + { + DateTime dateTime = DateTime.Now; + if (dateTime.Hour > 8 && dateTime.Hour < 17) + { + _Log.Debug(string.Concat("A) ", nameof(LogPathCleanUpByWeek))); + LogPathCleanUpByWeek(_AppSettings.Server, isEDA: true); + _Log.Debug(string.Concat("B) ", nameof(LogPathCleanUpByWeek))); + } + } + + public void EDAOutputArchive(string sourceDirectory) + { + string key; + string[] files; + string[] cellIntaces; + string fileWeekOfYear; + DateTime fileDateTime; + string checkDirectory; + string cellInstancesName; + string emptyFilesDirectory; + int today = DateTime.Now.Day; + string recipeArchiveDirectory; + Dictionary> keyValuePairs = new Dictionary>(); + string[] equipmentTypes = Directory.GetDirectories(sourceDirectory, "*", SearchOption.TopDirectoryOnly); + foreach (string equipmentType in equipmentTypes) + { + if (_ShuttingDown) + break; + if (equipmentType.EndsWith(@"\_ Copy") || equipmentType.EndsWith(@"\_ Empty") || equipmentType.EndsWith(@"\CellInstance") || equipmentType.EndsWith(@"\IQS") || equipmentType.EndsWith(@"\Villach")) + continue; + checkDirectory = string.Concat(equipmentType, @"\Ignore\Recipe"); + if (!Directory.Exists(checkDirectory)) + Directory.CreateDirectory(checkDirectory); + cellIntaces = Directory.GetDirectories(checkDirectory, "*", SearchOption.TopDirectoryOnly); + foreach (string cellIntace in cellIntaces) + { + if (_ShuttingDown) + break; + keyValuePairs.Clear(); + cellInstancesName = Path.GetFileName(cellIntace); + recipeArchiveDirectory = string.Concat(equipmentType, @"\Ignore\!Archive\Recipe\", cellInstancesName); + if (!Directory.Exists(recipeArchiveDirectory)) + Directory.CreateDirectory(recipeArchiveDirectory); + emptyFilesDirectory = string.Concat(equipmentType, @"\Ignore\!Archive\EmptyFiles\", cellInstancesName); + if (!Directory.Exists(emptyFilesDirectory)) + Directory.CreateDirectory(emptyFilesDirectory); + files = Directory.GetFiles(cellIntace, "*", SearchOption.TopDirectoryOnly); + foreach (string file in files) + { + if (_ShuttingDown) + break; + fileDateTime = new FileInfo(file).LastWriteTime; + if (fileDateTime.Day != today) + { + fileWeekOfYear = _Calendar.GetWeekOfYear(fileDateTime, CalendarWeekRule.FirstDay, DayOfWeek.Sunday).ToString("00"); + key = string.Concat(fileDateTime.ToString("yyyy-MM-dd"), "_Week_", fileWeekOfYear); + if (!keyValuePairs.ContainsKey(key)) + keyValuePairs.Add(key, new List()); + keyValuePairs[key].Add(file); + } + } + foreach (KeyValuePair> element in keyValuePairs) + { + if (_ShuttingDown) + break; + lock (_Lock) + { + key = string.Concat(recipeArchiveDirectory, @"\", element.Key.Split('-')[0]); + if (!Directory.Exists(key)) + Directory.CreateDirectory(key); + key = string.Concat(recipeArchiveDirectory, @"\", element.Key.Split('-')[0], @"\", element.Key, ".zip"); + if (File.Exists(key)) + { + for (short i = 101; i < short.MaxValue; i++) + { + key = string.Concat(recipeArchiveDirectory, @"\", element.Key.Split('-')[0], @"\", element.Key, "_", i, ".zip"); + if (!File.Exists(key)) + break; + } + } + } + if (!string.IsNullOrEmpty(key)) + { + if (_ShuttingDown) + break; + lock (_Lock) + { + using ZipArchive zip = ZipFile.Open(key, ZipArchiveMode.Create); + foreach (string file in element.Value) + { + zip.CreateEntryFromFile(file, Path.GetFileName(file)); + File.Delete(file); + } + } + } + } + } + } + } + + public void EDAOutputArchiveCallback() + { + DateTime dateTime = DateTime.Now; + if (dateTime.Hour > 8 && dateTime.Hour < 17) + { + string sourceDirectory = string.Concat(@"\\", _AppSettings.Server, @"\ec_eda\Staging\Traces"); + if (!Directory.Exists(sourceDirectory)) + _Log.Debug(string.Concat("// Source directory <", sourceDirectory, "> doesn't exist.")); + else + EDAOutputArchive(sourceDirectory); + } + } + + public static string[] GetEquipmentTypes(bool isGaN = false, bool isSi = false) + { + string[] results; + if (isGaN && isSi) + throw new Exception(); + else if (!isGaN && !isSi) + isGaN = true; + if (isSi) + { + results = new string[] + { + Shared.EquipmentType.MET08ANLYSDIFAAST230_Semi.ToString(), + Shared.EquipmentType.MET08DDUPSFS6420.ToString(), + Shared.EquipmentType.MET08DDUPSP1TBI.ToString(), + Shared.EquipmentType.MET08RESIHGCV.ToString(), + Shared.EquipmentType.MET08RESIMAPCDE.ToString(), + Shared.EquipmentType.MET08THFTIRQS408M.ToString(), + Shared.EquipmentType.MET08THFTIRSTRATUS.ToString() + }; + } + else if (isGaN) + { + results = new string[] + { + Shared.EquipmentType.DEP08EGANAIXG5.ToString(), + Shared.EquipmentType.MET08AFMD3100.ToString(), + Shared.EquipmentType.MET08BVHGPROBE.ToString(), + Shared.EquipmentType.MET08CVHGPROBE802B150.ToString(), + Shared.EquipmentType.MET08CVHGPROBE802B150_Monthly.ToString(), + Shared.EquipmentType.MET08CVHGPROBE802B150_Weekly.ToString(), + Shared.EquipmentType.MET08DDINCAN8620.ToString(), + Shared.EquipmentType.MET08DDINCAN8620_Daily.ToString(), + Shared.EquipmentType.MET08EBEAMINTEGRITY26.ToString(), + Shared.EquipmentType.MET08HALLHL5580.ToString(), + Shared.EquipmentType.MET08HALLHL5580_Monthly.ToString(), + Shared.EquipmentType.MET08HALLHL5580_Weekly.ToString(), + Shared.EquipmentType.MET08MESMICROSCOPE.ToString(), + Shared.EquipmentType.MET08NDFRESIMAP151C.ToString(), + Shared.EquipmentType.MET08NDFRESIMAP151C_Verification.ToString(), + Shared.EquipmentType.MET08PLMAPRPM.ToString(), + Shared.EquipmentType.MET08PLMAPRPM_Daily.ToString(), + Shared.EquipmentType.MET08PLMAPRPM_Verification.ToString(), + Shared.EquipmentType.MET08PLMPPLATO.ToString(), + Shared.EquipmentType.MET08PRFUSB4000.ToString(), + Shared.EquipmentType.MET08UVH44GS100M.ToString(), + Shared.EquipmentType.MET08VPDSUBCON.ToString(), + Shared.EquipmentType.MET08WGEOMX203641Q.ToString(), + Shared.EquipmentType.MET08WGEOMX203641Q_Verification.ToString(), + Shared.EquipmentType.METBRXRAYJV7300L.ToString(), + Shared.EquipmentType.MET08XRDXPERTPROMRDXL.ToString(), + Shared.EquipmentType.MET08XRDXPERTPROMRDXL_Monthly.ToString(), + Shared.EquipmentType.MET08XRDXPERTPROMRDXL_Weekly.ToString() + }; + } + else + throw new Exception(); + return results; + } + + private Stream ToStream(string @this) + { + var stream = new MemoryStream(); + var writer = new StreamWriter(stream); + writer.Write(@this); + writer.Flush(); + stream.Position = 0; + return stream; + } + + private T ParseXML(string @this, bool throwExceptions) where T : class + { + object result = null; + try + { + Stream stream = ToStream(@this.Trim()); + var reader = XmlReader.Create(stream, new XmlReaderSettings() { ConformanceLevel = ConformanceLevel.Document }); + //XmlSerializer xmlSerializer = new XmlSerializer(typeof(T)); + XmlSerializer xmlSerializer = new XmlSerializer(typeof(T), typeof(T).GetNestedTypes()); + result = xmlSerializer.Deserialize(reader); + stream.Dispose(); + } + catch (Exception) + { + if (throwExceptions) + throw; + } + return result as T; + } + + public void DataCollectionPlans(AppSettings appSettings, string edaDataCollectionPlansLastRun, string cSharpFormat, string oracleFormat) + { + bool _ShuttingDown = false; + object _Lock = new object(); + bool dev = appSettings.Server.Contains("_ec_"); + Dictionary>>> rows = new Dictionary>>>(); + // + //int moduleinstancetypename = 0; + int unitname = 1; + //int modulename = 2; + int containername = 3; + int configurationstate = 4; + int configurationproductivestate = 5; + //int containermodifiername = 6; + int containermodifieddate = 7; + int containerconfiguration = 8; + int configurationmodifieddate = 9; + string objectTypeDirectory; + string workingDirectory = string.Concat(@"\\", appSettings.Server, @"\EC_EDA"); + // () + { + object @object; + string @string; + int fieldCount; + List row; + string decrypted; + string connectionName; + string connectionString; + StringBuilder sql = new StringBuilder(); + Array objectTypes = Enum.GetValues(typeof(ModuleInstanceTypeName)); + List> connections = new List>(); + if (dev) + { + connectionName = @"DEV"; + connectionString = EDAViewer.Singleton.Helper.Background.EDADatabase.GetEdaDevelopment(); + decrypted = RijndaelEncryption.Decrypt(appSettings.IFXEDADatabasePassword, appSettings.Company); + connectionString = string.Concat(connectionString, decrypted, ";"); + connections.Add(new Tuple(connectionName, connectionString)); + } + else + { + connectionName = "Staging"; + connectionString = EDAViewer.Singleton.Helper.Background.EDADatabase.GetEdaStaging(); + decrypted = RijndaelEncryption.Decrypt(appSettings.ECEDADatabasePassword, appSettings.Company); + connectionString = string.Concat(connectionString, decrypted, ";"); + connections.Add(new Tuple(connectionName, connectionString)); + connectionName = "Production"; + connectionString = EDAViewer.Singleton.Helper.Background.EDADatabase.GetEdaProduction(); + connectionString = string.Concat(connectionString, decrypted, ";"); + connections.Add(new Tuple(connectionName, connectionString)); + } + foreach (Tuple connection in connections) + { + if (_ShuttingDown) + break; + rows.Add(connection.Item1, new Dictionary>>()); + foreach (ModuleInstanceTypeName objectType in objectTypes) + { + if (_ShuttingDown) + break; + if (string.IsNullOrEmpty(edaDataCollectionPlansLastRun)) + { + objectTypeDirectory = string.Concat(workingDirectory, @"\", connection.Item1, @"\", objectType); + if (!Directory.Exists(objectTypeDirectory)) + Directory.CreateDirectory(objectTypeDirectory); + else + edaDataCollectionPlansLastRun = new DirectoryInfo(objectTypeDirectory).LastWriteTime.ToString(cSharpFormat); + } + if (!rows[connection.Item1].ContainsKey(objectType)) + rows[connection.Item1].Add(objectType, new List>()); + using (Oracle.ManagedDataAccess.Client.OracleConnection oracleConnection = new Oracle.ManagedDataAccess.Client.OracleConnection(connection.Item2)) + { + sql.Clear(); + oracleConnection.Open(); + sql.Append(" select v.moduleinstancetypename, v.unitname, "). + Append(" v.modulename, v.containername, v.configurationstate, "). + Append(" v.configurationproductivestate, v.containermodifiername, "). + Append(" v.containermodifieddate, v.containerconfiguration, v.configurationmodifieddate "). + Append(" from veditconfiguration v "). + Append(" where v.moduleinstancetypename = '").Append(objectType.ToString()).Append("' "); + //Append(" and v.containerversion in ('4.80', '4.111') "); + if (!string.IsNullOrEmpty(edaDataCollectionPlansLastRun)) + sql.Append(" and greatest(v.containermodifieddate, v.configurationmodifieddate) >= to_date('").Append(edaDataCollectionPlansLastRun).Append("', '").Append(oracleFormat).Append("') "); + //Print(sql.ToString()); + using (Oracle.ManagedDataAccess.Client.OracleCommand oracleCommand = new Oracle.ManagedDataAccess.Client.OracleCommand(sql.ToString(), oracleConnection)) + { + using (Oracle.ManagedDataAccess.Client.OracleDataReader oracleDataReader = oracleCommand.ExecuteReader()) + { + fieldCount = oracleDataReader.FieldCount; + while (oracleDataReader.Read()) + { + if (_ShuttingDown) + break; + row = new List(); + for (int c = 0; c < fieldCount; c++) + { + @object = oracleDataReader.GetValue(c); + row.Add(@object); + @string = @object.ToString(); + //if (@string.Length < 128) + // _Log.Debug(@string); + } + rows[connection.Item1][objectType].Add(row); + } + } + } + }; + } + } + } + if (rows.Any()) + { + string csv; + string xml; + string json; + string text; + string html; + Common common; + string emptyAPC; + string fileName; + string edaObjectFile; + string goldDirectory; + string unitDirectory; + string replace = "$$$"; + string edaObjectDirectory; + DateTime lastModifiedDate; + DateTime containerModifiedDate; + PDSFConfiguration configuration; + DateTime configurationModifiedDate; + JsonSerializerOptions jsonSerializerOptions = new JsonSerializerOptions { WriteIndented = true }; + foreach (KeyValuePair>>> databaseElement in rows) + { + if (_ShuttingDown) + break; + emptyAPC = string.Concat(workingDirectory, @"\", databaseElement.Key, @"\EmptyAPC.xlsx"); + foreach (KeyValuePair>> tableNameElement in databaseElement.Value) + { + if (_ShuttingDown) + break; + objectTypeDirectory = string.Concat(workingDirectory, @"\", databaseElement.Key, @"\", tableNameElement.Key); + foreach (List rowItem in tableNameElement.Value) + { + if (_ShuttingDown) + break; + //foreach (var item in rowItem) + // Print(item.ToString()); + //if (!rowItem[containername].ToString().Contains("Plan_Pdsf_Health_Cp2Mg")) + //if (!rowItem[unitname].ToString().Contains("XRD04") || !rowItem[containername].ToString().Contains("Plan_Pdsf")) + // continue; + containerModifiedDate = DateTime.Parse(rowItem[containermodifieddate].ToString()); + configurationModifiedDate = DateTime.Parse(rowItem[configurationmodifieddate].ToString()); + if (containerModifiedDate < configurationModifiedDate) + lastModifiedDate = configurationModifiedDate; + else + lastModifiedDate = containerModifiedDate; + goldDirectory = string.Concat(objectTypeDirectory, @"\", rowItem[unitname], @"\", rowItem[containername], @"\Gold"); + if (!Directory.Exists(goldDirectory)) + Directory.CreateDirectory(goldDirectory); + edaObjectDirectory = string.Concat(objectTypeDirectory, @"\", rowItem[unitname], @"\", rowItem[containername], @"\", rowItem[configurationstate], @"\", rowItem[configurationproductivestate], @"\", lastModifiedDate.ToString("yyyy-MM-dd_"), new TimeSpan(lastModifiedDate.Ticks - new DateTime(lastModifiedDate.Year, lastModifiedDate.Month, lastModifiedDate.Day).Ticks).TotalSeconds); + if (!Directory.Exists(edaObjectDirectory)) + Directory.CreateDirectory(edaObjectDirectory); + edaObjectFile = string.Concat(edaObjectDirectory, @"\", rowItem[unitname], " ", rowItem[containername], " - ", replace, " - ", rowItem[configurationstate].ToString(), " ", rowItem[configurationproductivestate].ToString()); + xml = rowItem[containerconfiguration].ToString(); + //continue; + lock (_Lock) + { + fileName = string.Concat(edaObjectFile.Replace(replace, "Raw"), ".xml"); + File.WriteAllText(fileName, xml); + try + { File.SetCreationTime(fileName, lastModifiedDate); File.SetLastWriteTime(fileName, lastModifiedDate); } + catch (Exception) { } + common = new Common(ModuleInstanceTypeName.Pdsf, rowItem[unitname], rowItem[containername], rowItem[configurationstate], rowItem[configurationproductivestate]); + configuration = ParseXML(xml, throwExceptions: true); + if (!Directory.Exists(Path.GetPathRoot(configuration.Settings.StoragePath))) + continue; + if (configuration is null) + continue; + else + { + common.Update(configuration); + json = JsonSerializer.Serialize(configuration, configuration.GetType(), jsonSerializerOptions); + if (!Directory.Exists(common.StoragePath)) + Directory.CreateDirectory(common.StoragePath); + if (!common.StoragePath.Contains(common.UnitName) && (common.StoragePath.Contains(@"01EquipmentIntegration") || common.StoragePath.Contains(@"02BusinessIntegration"))) + { + common.StoragePath = common.StoragePath.Replace("Traces", "Empty"); + if (!Directory.Exists(common.StoragePath)) + Directory.CreateDirectory(common.StoragePath); + if (common.UnitName != "PRF01") + { + unitDirectory = string.Concat(Path.GetDirectoryName(common.StoragePath), @"\", common.UnitName); + common.StoragePath = string.Concat(unitDirectory, @"\BadPath"); + if (!Directory.Exists(common.StoragePath)) + Directory.CreateDirectory(common.StoragePath); + common.StoragePath = string.Concat(unitDirectory, @"\LogFile"); + if (!Directory.Exists(common.StoragePath)) + Directory.CreateDirectory(common.StoragePath); + common.StoragePath = string.Concat(unitDirectory, @"\PollPath"); + if (!Directory.Exists(common.StoragePath)) + Directory.CreateDirectory(common.StoragePath); + } + } + fileName = string.Concat(edaObjectFile.Replace(replace, "Partial"), ".csv"); + File.WriteAllText(fileName, common.ParametersAsCsv); + try + { File.SetCreationTime(fileName, lastModifiedDate); File.SetLastWriteTime(fileName, lastModifiedDate); } + catch (Exception) { } + fileName = string.Concat(edaObjectFile.Replace(replace, "Partial"), ".json"); + File.WriteAllText(fileName, json); + text = EDAViewer.Singleton.Helper.Background.EdaDCP.GetText(edaObjectFile, common, json); + fileName = string.Concat(edaObjectFile.Replace(replace, "Partial"), ".txt"); + File.WriteAllText(fileName, text); + try + { File.SetCreationTime(fileName, lastModifiedDate); File.SetLastWriteTime(fileName, lastModifiedDate); } + catch (Exception) { } + html = EDAViewer.Singleton.Helper.Background.EdaDCP.GetEdaObjectToHtml(edaObjectFile, common); + fileName = string.Concat(edaObjectFile.Replace(replace, "Partial"), ".html"); + File.WriteAllText(fileName, html); + try + { File.SetCreationTime(fileName, lastModifiedDate); File.SetLastWriteTime(fileName, lastModifiedDate); } + catch (Exception) { } + xml = EDAViewer.Singleton.Helper.Background.EdaDCP.GetEdaObjectToDMSGridFormat(edaObjectFile, common, useAlias: false); + fileName = string.Concat(edaObjectFile.Replace(replace, "DMSGridFormat"), ".xml"); + File.WriteAllText(fileName, xml); + try + { File.SetCreationTime(fileName, lastModifiedDate); File.SetLastWriteTime(fileName, lastModifiedDate); } + catch (Exception) { } + xml = EDAViewer.Singleton.Helper.Background.EdaDCP.GetEdaObjectToDMSGridFormat(edaObjectFile, common, useAlias: true); + fileName = string.Concat(edaObjectFile.Replace(replace, "DMSGridFormat - Alias"), ".xml"); + File.WriteAllText(fileName, xml); + try + { File.SetCreationTime(fileName, lastModifiedDate); File.SetLastWriteTime(fileName, lastModifiedDate); } + catch (Exception) { } + csv = EDAViewer.Singleton.Helper.Background.EdaDCP.GetEdaObjectToAPCParameter(edaObjectFile, common); + fileName = string.Concat(edaObjectFile.Replace(replace, "APCParameter"), ".csv"); + File.WriteAllText(fileName, csv); + try + { File.SetCreationTime(fileName, lastModifiedDate); File.SetLastWriteTime(fileName, lastModifiedDate); } + catch (Exception) { } + csv = EDAViewer.Singleton.Helper.Background.EdaDCP.GetEdaObjectToAPCRunKeyNumber(edaObjectFile, common); + fileName = string.Concat(edaObjectFile.Replace(replace, "APCRunKeyNumber"), ".csv"); + File.WriteAllText(fileName, csv); + try + { File.SetCreationTime(fileName, lastModifiedDate); File.SetLastWriteTime(fileName, lastModifiedDate); } + catch (Exception) { } + fileName = string.Concat(edaObjectFile.Replace(replace, "APC"), ".xlsx"); + if (File.Exists(emptyAPC) && !File.Exists(fileName)) + { + File.Copy(emptyAPC, fileName); + try + { File.SetCreationTime(fileName, lastModifiedDate); File.SetLastWriteTime(fileName, lastModifiedDate); } + catch (Exception) { } + } + } + } + } + try + { Directory.SetLastWriteTime(objectTypeDirectory, DateTime.Now); } + catch (Exception) { } + } + } + } + } + + } + +} \ No newline at end of file diff --git a/EDA Viewer/Singleton/Helper/BackgroundEDA - A.cs b/EDA Viewer/Singleton/Helper/BackgroundEDA - A.cs new file mode 100644 index 0000000..17eefcc --- /dev/null +++ b/EDA Viewer/Singleton/Helper/BackgroundEDA - A.cs @@ -0,0 +1,3821 @@ +namespace EDAViewer.Singleton.Helper +{ + + // NOTE: Generated code may require at least .NET Framework 4.5 or .NET Core/Standard 2.0. + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + [System.Xml.Serialization.XmlRootAttribute(Namespace = "", IsNullable = false)] + public partial class PDSFConfiguration + { + + private PDSFConfigurationSettings settingsField; + + private PDSFConfigurationDataCollection dataCollectionField; + + /// + public PDSFConfigurationSettings Settings + { + get + { + return this.settingsField; + } + set + { + this.settingsField = value; + } + } + + /// + public PDSFConfigurationDataCollection DataCollection + { + get + { + return this.dataCollectionField; + } + set + { + this.dataCollectionField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationSettings + { + + private bool logisticsValueTrimField; + + private bool parameterValueTrimField; + + private PDSFConfigurationSettingsCeidSettings ceidSettingsField; + + private bool generateDummyIfMissingMIDField; + + private bool requestCSAforTrustedWaferField; + + private string dummyMIDTimeFormatField; + + private PDSFConfigurationSettingsTimePrevDiffSettings timePrevDiffSettingsField; + + private string storagePathField; + + private string filenameField; + + private bool isBackwardLogisticsEnabledField; + + private decimal timeColumnFormatField; + + private string writeEmptyLogisticsField; + + private bool resetLogisticsOnFileCutField; + + private string startTimeFormatField; + + private bool useRawDatabaseField; + + private bool usePdsfFileModeField; + + private bool yodaNotificationRequiredField; + + /// + public bool LogisticsValueTrim + { + get + { + return this.logisticsValueTrimField; + } + set + { + this.logisticsValueTrimField = value; + } + } + + /// + public bool ParameterValueTrim + { + get + { + return this.parameterValueTrimField; + } + set + { + this.parameterValueTrimField = value; + } + } + + /// + public PDSFConfigurationSettingsCeidSettings CeidSettings + { + get + { + return this.ceidSettingsField; + } + set + { + this.ceidSettingsField = value; + } + } + + /// + public bool GenerateDummyIfMissingMID + { + get + { + return this.generateDummyIfMissingMIDField; + } + set + { + this.generateDummyIfMissingMIDField = value; + } + } + + /// + public bool RequestCSAforTrustedWafer + { + get + { + return this.requestCSAforTrustedWaferField; + } + set + { + this.requestCSAforTrustedWaferField = value; + } + } + + /// + public string DummyMIDTimeFormat + { + get + { + return this.dummyMIDTimeFormatField; + } + set + { + this.dummyMIDTimeFormatField = value; + } + } + + /// + public PDSFConfigurationSettingsTimePrevDiffSettings TimePrevDiffSettings + { + get + { + return this.timePrevDiffSettingsField; + } + set + { + this.timePrevDiffSettingsField = value; + } + } + + /// + public string StoragePath + { + get + { + return this.storagePathField; + } + set + { + this.storagePathField = value; + } + } + + /// + public string Filename + { + get + { + return this.filenameField; + } + set + { + this.filenameField = value; + } + } + + /// + public bool IsBackwardLogisticsEnabled + { + get + { + return this.isBackwardLogisticsEnabledField; + } + set + { + this.isBackwardLogisticsEnabledField = value; + } + } + + /// + public decimal TimeColumnFormat + { + get + { + return this.timeColumnFormatField; + } + set + { + this.timeColumnFormatField = value; + } + } + + /// + public string WriteEmptyLogistics + { + get + { + return this.writeEmptyLogisticsField; + } + set + { + this.writeEmptyLogisticsField = value; + } + } + + /// + public bool ResetLogisticsOnFileCut + { + get + { + return this.resetLogisticsOnFileCutField; + } + set + { + this.resetLogisticsOnFileCutField = value; + } + } + + /// + public string StartTimeFormat + { + get + { + return this.startTimeFormatField; + } + set + { + this.startTimeFormatField = value; + } + } + + /// + public bool UseRawDatabase + { + get + { + return this.useRawDatabaseField; + } + set + { + this.useRawDatabaseField = value; + } + } + + /// + public bool UsePdsfFileMode + { + get + { + return this.usePdsfFileModeField; + } + set + { + this.usePdsfFileModeField = value; + } + } + + /// + public bool YodaNotificationRequired + { + get + { + return this.yodaNotificationRequiredField; + } + set + { + this.yodaNotificationRequiredField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationSettingsCeidSettings + { + + private bool isEnabledField; + + private object ceidField; + + /// + public bool IsEnabled + { + get + { + return this.isEnabledField; + } + set + { + this.isEnabledField = value; + } + } + + /// + public object Ceid + { + get + { + return this.ceidField; + } + set + { + this.ceidField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationSettingsTimePrevDiffSettings + { + + private bool isEnabledField; + + /// + public bool IsEnabled + { + get + { + return this.isEnabledField; + } + set + { + this.isEnabledField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollection + { + + private PDSFConfigurationDataCollectionStartTriggers startTriggersField; + + private PDSFConfigurationDataCollectionStopTriggers stopTriggersField; + + private PDSFConfigurationDataCollectionFileCutTriggers fileCutTriggersField; + + private PDSFConfigurationDataCollectionParameter[] parametersField; + + private PDSFConfigurationDataCollectionParameter1[] virtualParametersField; + + private PDSFConfigurationDataCollectionLogistics logisticsField; + + private PDSFConfigurationDataCollectionTrigger triggerField; + + private PDSFConfigurationDataCollectionFileWriterSettings fileWriterSettingsField; + + private PDSFConfigurationDataCollectionGeneralTriggers[] generalTriggersField; + + private string sourceField; + + /// + public PDSFConfigurationDataCollectionStartTriggers StartTriggers + { + get + { + return this.startTriggersField; + } + set + { + this.startTriggersField = value; + } + } + + /// + public PDSFConfigurationDataCollectionStopTriggers StopTriggers + { + get + { + return this.stopTriggersField; + } + set + { + this.stopTriggersField = value; + } + } + + /// + public PDSFConfigurationDataCollectionFileCutTriggers FileCutTriggers + { + get + { + return this.fileCutTriggersField; + } + set + { + this.fileCutTriggersField = value; + } + } + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("Parameter", IsNullable = false)] + public PDSFConfigurationDataCollectionParameter[] Parameters + { + get + { + return this.parametersField; + } + set + { + this.parametersField = value; + } + } + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("Parameter", IsNullable = false)] + public PDSFConfigurationDataCollectionParameter1[] VirtualParameters + { + get + { + return this.virtualParametersField; + } + set + { + this.virtualParametersField = value; + } + } + + /// + public PDSFConfigurationDataCollectionLogistics Logistics + { + get + { + return this.logisticsField; + } + set + { + this.logisticsField = value; + } + } + + /// + public PDSFConfigurationDataCollectionTrigger Trigger + { + get + { + return this.triggerField; + } + set + { + this.triggerField = value; + } + } + + /// + public PDSFConfigurationDataCollectionFileWriterSettings FileWriterSettings + { + get + { + return this.fileWriterSettingsField; + } + set + { + this.fileWriterSettingsField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("GeneralTriggers")] + public PDSFConfigurationDataCollectionGeneralTriggers[] GeneralTriggers + { + get + { + return this.generalTriggersField; + } + set + { + this.generalTriggersField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Source + { + get + { + return this.sourceField; + } + set + { + this.sourceField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionStartTriggers + { + + private PDSFConfigurationDataCollectionStartTriggersDCP dCPField; + + /// + public PDSFConfigurationDataCollectionStartTriggersDCP DCP + { + get + { + return this.dCPField; + } + set + { + this.dCPField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionStartTriggersDCP + { + + private PDSFConfigurationDataCollectionStartTriggersDCPDataPool dataPoolField; + + private string ruleField; + + private object descriptionField; + + private bool resetGlobalStopSettingsField; + + private string idField; + + private string nameField; + + private bool resolveGlobalVariableBeforeTriggerField; + + /// + public PDSFConfigurationDataCollectionStartTriggersDCPDataPool DataPool + { + get + { + return this.dataPoolField; + } + set + { + this.dataPoolField = value; + } + } + + /// + public string Rule + { + get + { + return this.ruleField; + } + set + { + this.ruleField = value; + } + } + + /// + public object Description + { + get + { + return this.descriptionField; + } + set + { + this.descriptionField = value; + } + } + + /// + public bool ResetGlobalStopSettings + { + get + { + return this.resetGlobalStopSettingsField; + } + set + { + this.resetGlobalStopSettingsField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Id + { + get + { + return this.idField; + } + set + { + this.idField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public bool ResolveGlobalVariableBeforeTrigger + { + get + { + return this.resolveGlobalVariableBeforeTriggerField; + } + set + { + this.resolveGlobalVariableBeforeTriggerField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionStartTriggersDCPDataPool + { + + private PDSFConfigurationDataCollectionStartTriggersDCPDataPoolScriptEditorDataPoolParameterModel[] parametersField; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("ScriptEditorDataPoolParameterModel", IsNullable = false)] + public PDSFConfigurationDataCollectionStartTriggersDCPDataPoolScriptEditorDataPoolParameterModel[] Parameters + { + get + { + return this.parametersField; + } + set + { + this.parametersField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionStartTriggersDCPDataPoolScriptEditorDataPoolParameterModel + { + + private string nameField; + + private string valueField; + + /// + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionStopTriggers + { + + private PDSFConfigurationDataCollectionStopTriggersDCP dCPField; + + private int durationField; + + private int receiveTimeoutField; + + private int rowCountField; + + /// + public PDSFConfigurationDataCollectionStopTriggersDCP DCP + { + get + { + return this.dCPField; + } + set + { + this.dCPField = value; + } + } + + /// + public int Duration + { + get + { + return this.durationField; + } + set + { + this.durationField = value; + } + } + + /// + public int ReceiveTimeout + { + get + { + return this.receiveTimeoutField; + } + set + { + this.receiveTimeoutField = value; + } + } + + /// + public int RowCount + { + get + { + return this.rowCountField; + } + set + { + this.rowCountField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionStopTriggersDCP + { + + private PDSFConfigurationDataCollectionStopTriggersDCPDataPool dataPoolField; + + private string ruleField; + + private object descriptionField; + + private PDSFConfigurationDataCollectionStopTriggersDCPPublishDocumentDataPool publishDocumentDataPoolField; + + private object publishDocumentRuleField; + + private string idField; + + private string nameField; + + private bool resolveGlobalVariableBeforeTriggerField; + + private bool resetGlobalVariablesAfterTriggerField; + + /// + public PDSFConfigurationDataCollectionStopTriggersDCPDataPool DataPool + { + get + { + return this.dataPoolField; + } + set + { + this.dataPoolField = value; + } + } + + /// + public string Rule + { + get + { + return this.ruleField; + } + set + { + this.ruleField = value; + } + } + + /// + public object Description + { + get + { + return this.descriptionField; + } + set + { + this.descriptionField = value; + } + } + + /// + public PDSFConfigurationDataCollectionStopTriggersDCPPublishDocumentDataPool PublishDocumentDataPool + { + get + { + return this.publishDocumentDataPoolField; + } + set + { + this.publishDocumentDataPoolField = value; + } + } + + /// + public object PublishDocumentRule + { + get + { + return this.publishDocumentRuleField; + } + set + { + this.publishDocumentRuleField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Id + { + get + { + return this.idField; + } + set + { + this.idField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public bool ResolveGlobalVariableBeforeTrigger + { + get + { + return this.resolveGlobalVariableBeforeTriggerField; + } + set + { + this.resolveGlobalVariableBeforeTriggerField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public bool ResetGlobalVariablesAfterTrigger + { + get + { + return this.resetGlobalVariablesAfterTriggerField; + } + set + { + this.resetGlobalVariablesAfterTriggerField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionStopTriggersDCPDataPool + { + + private PDSFConfigurationDataCollectionStopTriggersDCPDataPoolScriptEditorDataPoolParameterModel[] parametersField; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("ScriptEditorDataPoolParameterModel", IsNullable = false)] + public PDSFConfigurationDataCollectionStopTriggersDCPDataPoolScriptEditorDataPoolParameterModel[] Parameters + { + get + { + return this.parametersField; + } + set + { + this.parametersField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionStopTriggersDCPDataPoolScriptEditorDataPoolParameterModel + { + + private string nameField; + + private string valueField; + + /// + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionStopTriggersDCPPublishDocumentDataPool + { + + private object parametersField; + + /// + public object Parameters + { + get + { + return this.parametersField; + } + set + { + this.parametersField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionFileCutTriggers + { + + private int intervalField; + + private int rowCountField; + + /// + public int Interval + { + get + { + return this.intervalField; + } + set + { + this.intervalField = value; + } + } + + /// + public int RowCount + { + get + { + return this.rowCountField; + } + set + { + this.rowCountField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionParameter + { + + private string idField; + + private string nameField; + + private string descriptionField; + + private object childsField; + + private object dataTypeField; + + private string hardWareIdField; + + private bool isArrayField; + + private bool repeatsOnSameLevelField; + + private bool isCyclicalField; + + private string fullNameField; + + private object separatorField; + + private bool isAutoGeneratedField; + + private PDSFConfigurationDataCollectionParameterConditions conditionsField; + + private object localVariablesField; + + private object arithmeticsField; + + private string name1Field; + + private string aliasField; + + private string positionField; + + private int orderField; + + private bool useField; + + /// + public string Id + { + get + { + return this.idField; + } + set + { + this.idField = value; + } + } + + /// + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + public string Description + { + get + { + return this.descriptionField; + } + set + { + this.descriptionField = value; + } + } + + /// + public object Childs + { + get + { + return this.childsField; + } + set + { + this.childsField = value; + } + } + + /// + public object DataType + { + get + { + return this.dataTypeField; + } + set + { + this.dataTypeField = value; + } + } + + /// + public string HardWareId + { + get + { + return this.hardWareIdField; + } + set + { + this.hardWareIdField = value; + } + } + + /// + public bool IsArray + { + get + { + return this.isArrayField; + } + set + { + this.isArrayField = value; + } + } + + /// + public bool RepeatsOnSameLevel + { + get + { + return this.repeatsOnSameLevelField; + } + set + { + this.repeatsOnSameLevelField = value; + } + } + + /// + public bool IsCyclical + { + get + { + return this.isCyclicalField; + } + set + { + this.isCyclicalField = value; + } + } + + /// + public string FullName + { + get + { + return this.fullNameField; + } + set + { + this.fullNameField = value; + } + } + + /// + public object Separator + { + get + { + return this.separatorField; + } + set + { + this.separatorField = value; + } + } + + /// + public bool IsAutoGenerated + { + get + { + return this.isAutoGeneratedField; + } + set + { + this.isAutoGeneratedField = value; + } + } + + /// + public PDSFConfigurationDataCollectionParameterConditions Conditions + { + get + { + return this.conditionsField; + } + set + { + this.conditionsField = value; + } + } + + /// + public object LocalVariables + { + get + { + return this.localVariablesField; + } + set + { + this.localVariablesField = value; + } + } + + /// + public object Arithmetics + { + get + { + return this.arithmeticsField; + } + set + { + this.arithmeticsField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute("Name")] + public string Name1 + { + get + { + return this.name1Field; + } + set + { + this.name1Field = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Alias + { + get + { + return this.aliasField; + } + set + { + this.aliasField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Position + { + get + { + return this.positionField; + } + set + { + this.positionField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public int Order + { + get + { + return this.orderField; + } + set + { + this.orderField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public bool Use + { + get + { + return this.useField; + } + set + { + this.useField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionParameterConditions + { + + private PDSFConfigurationDataCollectionParameterConditionsConditionModel conditionModelField; + + /// + public PDSFConfigurationDataCollectionParameterConditionsConditionModel ConditionModel + { + get + { + return this.conditionModelField; + } + set + { + this.conditionModelField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionParameterConditionsConditionModel + { + + private string idField; + + private string nameField; + + private object descriptionField; + + private object conditionField; + + private PDSFConfigurationDataCollectionParameterConditionsConditionModelConditionDataPool conditionDataPoolField; + + private string formulaField; + + private PDSFConfigurationDataCollectionParameterConditionsConditionModelFormulaDataPool formulaDataPoolField; + + private PDSFConfigurationDataCollectionParameterConditionsConditionModelNameDataPool nameDataPoolField; + + /// + public string Id + { + get + { + return this.idField; + } + set + { + this.idField = value; + } + } + + /// + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + public object Description + { + get + { + return this.descriptionField; + } + set + { + this.descriptionField = value; + } + } + + /// + public object Condition + { + get + { + return this.conditionField; + } + set + { + this.conditionField = value; + } + } + + /// + public PDSFConfigurationDataCollectionParameterConditionsConditionModelConditionDataPool ConditionDataPool + { + get + { + return this.conditionDataPoolField; + } + set + { + this.conditionDataPoolField = value; + } + } + + /// + public string Formula + { + get + { + return this.formulaField; + } + set + { + this.formulaField = value; + } + } + + /// + public PDSFConfigurationDataCollectionParameterConditionsConditionModelFormulaDataPool FormulaDataPool + { + get + { + return this.formulaDataPoolField; + } + set + { + this.formulaDataPoolField = value; + } + } + + /// + public PDSFConfigurationDataCollectionParameterConditionsConditionModelNameDataPool NameDataPool + { + get + { + return this.nameDataPoolField; + } + set + { + this.nameDataPoolField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionParameterConditionsConditionModelConditionDataPool + { + + private object parametersField; + + /// + public object Parameters + { + get + { + return this.parametersField; + } + set + { + this.parametersField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionParameterConditionsConditionModelFormulaDataPool + { + + private object parametersField; + + /// + public object Parameters + { + get + { + return this.parametersField; + } + set + { + this.parametersField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionParameterConditionsConditionModelNameDataPool + { + + private object parametersField; + + /// + public object Parameters + { + get + { + return this.parametersField; + } + set + { + this.parametersField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionParameter1 + { + + private string idField; + + private string nameField; + + private string descriptionField; + + private object childsField; + + private object dataTypeField; + + private string hardWareIdField; + + private bool isArrayField; + + private bool repeatsOnSameLevelField; + + private bool isCyclicalField; + + private string fullNameField; + + private object separatorField; + + private bool isAutoGeneratedField; + + private PDSFConfigurationDataCollectionParameterConditions1 conditionsField; + + private object localVariablesField; + + private object arithmeticsField; + + private string name1Field; + + private string aliasField; + + private string positionField; + + private int orderField; + + private bool useField; + + /// + public string Id + { + get + { + return this.idField; + } + set + { + this.idField = value; + } + } + + /// + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + public string Description + { + get + { + return this.descriptionField; + } + set + { + this.descriptionField = value; + } + } + + /// + public object Childs + { + get + { + return this.childsField; + } + set + { + this.childsField = value; + } + } + + /// + public object DataType + { + get + { + return this.dataTypeField; + } + set + { + this.dataTypeField = value; + } + } + + /// + public string HardWareId + { + get + { + return this.hardWareIdField; + } + set + { + this.hardWareIdField = value; + } + } + + /// + public bool IsArray + { + get + { + return this.isArrayField; + } + set + { + this.isArrayField = value; + } + } + + /// + public bool RepeatsOnSameLevel + { + get + { + return this.repeatsOnSameLevelField; + } + set + { + this.repeatsOnSameLevelField = value; + } + } + + /// + public bool IsCyclical + { + get + { + return this.isCyclicalField; + } + set + { + this.isCyclicalField = value; + } + } + + /// + public string FullName + { + get + { + return this.fullNameField; + } + set + { + this.fullNameField = value; + } + } + + /// + public object Separator + { + get + { + return this.separatorField; + } + set + { + this.separatorField = value; + } + } + + /// + public bool IsAutoGenerated + { + get + { + return this.isAutoGeneratedField; + } + set + { + this.isAutoGeneratedField = value; + } + } + + /// + public PDSFConfigurationDataCollectionParameterConditions1 Conditions + { + get + { + return this.conditionsField; + } + set + { + this.conditionsField = value; + } + } + + /// + public object LocalVariables + { + get + { + return this.localVariablesField; + } + set + { + this.localVariablesField = value; + } + } + + /// + public object Arithmetics + { + get + { + return this.arithmeticsField; + } + set + { + this.arithmeticsField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute("Name")] + public string Name1 + { + get + { + return this.name1Field; + } + set + { + this.name1Field = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Alias + { + get + { + return this.aliasField; + } + set + { + this.aliasField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Position + { + get + { + return this.positionField; + } + set + { + this.positionField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public int Order + { + get + { + return this.orderField; + } + set + { + this.orderField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public bool Use + { + get + { + return this.useField; + } + set + { + this.useField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionParameterConditions1 + { + + private PDSFConfigurationDataCollectionParameterConditionsConditionModel1 conditionModelField; + + /// + public PDSFConfigurationDataCollectionParameterConditionsConditionModel1 ConditionModel + { + get + { + return this.conditionModelField; + } + set + { + this.conditionModelField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionParameterConditionsConditionModel1 + { + + private string idField; + + private string nameField; + + private string descriptionField; + + private object conditionField; + + private PDSFConfigurationDataCollectionParameterConditionsConditionModelConditionDataPool1 conditionDataPoolField; + + private string formulaField; + + private PDSFConfigurationDataCollectionParameterConditionsConditionModelFormulaDataPool1 formulaDataPoolField; + + private PDSFConfigurationDataCollectionParameterConditionsConditionModelNameDataPool1 nameDataPoolField; + + /// + public string Id + { + get + { + return this.idField; + } + set + { + this.idField = value; + } + } + + /// + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + public string Description + { + get + { + return this.descriptionField; + } + set + { + this.descriptionField = value; + } + } + + /// + public object Condition + { + get + { + return this.conditionField; + } + set + { + this.conditionField = value; + } + } + + /// + public PDSFConfigurationDataCollectionParameterConditionsConditionModelConditionDataPool1 ConditionDataPool + { + get + { + return this.conditionDataPoolField; + } + set + { + this.conditionDataPoolField = value; + } + } + + /// + public string Formula + { + get + { + return this.formulaField; + } + set + { + this.formulaField = value; + } + } + + /// + public PDSFConfigurationDataCollectionParameterConditionsConditionModelFormulaDataPool1 FormulaDataPool + { + get + { + return this.formulaDataPoolField; + } + set + { + this.formulaDataPoolField = value; + } + } + + /// + public PDSFConfigurationDataCollectionParameterConditionsConditionModelNameDataPool1 NameDataPool + { + get + { + return this.nameDataPoolField; + } + set + { + this.nameDataPoolField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionParameterConditionsConditionModelConditionDataPool1 + { + + private object parametersField; + + /// + public object Parameters + { + get + { + return this.parametersField; + } + set + { + this.parametersField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionParameterConditionsConditionModelFormulaDataPool1 + { + + private PDSFConfigurationDataCollectionParameterConditionsConditionModelFormulaDataPoolScriptEditorDataPoolParameterModel[] parametersField; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("ScriptEditorDataPoolParameterModel", IsNullable = false)] + public PDSFConfigurationDataCollectionParameterConditionsConditionModelFormulaDataPoolScriptEditorDataPoolParameterModel[] Parameters + { + get + { + return this.parametersField; + } + set + { + this.parametersField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionParameterConditionsConditionModelFormulaDataPoolScriptEditorDataPoolParameterModel + { + + private string nameField; + + private string valueField; + + /// + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionParameterConditionsConditionModelNameDataPool1 + { + + private object parametersField; + + /// + public object Parameters + { + get + { + return this.parametersField; + } + set + { + this.parametersField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogistics + { + + private PDSFConfigurationDataCollectionLogisticsAttribute[] attributesField; + + private PDSFConfigurationDataCollectionLogisticsColumn[] columnsField; + + private PDSFConfigurationDataCollectionLogisticsTriggers triggersField; + + private string equipmentAliasField; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("Attribute", IsNullable = false)] + public PDSFConfigurationDataCollectionLogisticsAttribute[] Attributes + { + get + { + return this.attributesField; + } + set + { + this.attributesField = value; + } + } + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("Column", IsNullable = false)] + public PDSFConfigurationDataCollectionLogisticsColumn[] Columns + { + get + { + return this.columnsField; + } + set + { + this.columnsField = value; + } + } + + /// + public PDSFConfigurationDataCollectionLogisticsTriggers Triggers + { + get + { + return this.triggersField; + } + set + { + this.triggersField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string EquipmentAlias + { + get + { + return this.equipmentAliasField; + } + set + { + this.equipmentAliasField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsAttribute + { + + private string keyField; + + private int orderField; + + private string placeholderField; + + private bool useField; + + private bool addAsDataColumnField; + + private string attributeTypeField; + + private string dataColumnAliasField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Key + { + get + { + return this.keyField; + } + set + { + this.keyField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public int Order + { + get + { + return this.orderField; + } + set + { + this.orderField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Placeholder + { + get + { + return this.placeholderField; + } + set + { + this.placeholderField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public bool Use + { + get + { + return this.useField; + } + set + { + this.useField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public bool AddAsDataColumn + { + get + { + return this.addAsDataColumnField; + } + set + { + this.addAsDataColumnField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string AttributeType + { + get + { + return this.attributeTypeField; + } + set + { + this.attributeTypeField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string DataColumnAlias + { + get + { + return this.dataColumnAliasField; + } + set + { + this.dataColumnAliasField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsColumn + { + + private int idField; + + private string prefixField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public int ID + { + get + { + return this.idField; + } + set + { + this.idField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Prefix + { + get + { + return this.prefixField; + } + set + { + this.prefixField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsTriggers + { + + private PDSFConfigurationDataCollectionLogisticsTriggersUpdateTrigger updateTriggerField; + + /// + public PDSFConfigurationDataCollectionLogisticsTriggersUpdateTrigger UpdateTrigger + { + get + { + return this.updateTriggerField; + } + set + { + this.updateTriggerField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsTriggersUpdateTrigger + { + + private PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequest[] logisticRequestField; + + private bool incrementRuleField; + + private bool resolveGlobalVariableBeforeTriggerField; + + private string dCPField; + + /// + [System.Xml.Serialization.XmlElementAttribute("LogisticRequest")] + public PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequest[] LogisticRequest + { + get + { + return this.logisticRequestField; + } + set + { + this.logisticRequestField = value; + } + } + + /// + public bool IncrementRule + { + get + { + return this.incrementRuleField; + } + set + { + this.incrementRuleField = value; + } + } + + /// + public bool ResolveGlobalVariableBeforeTrigger + { + get + { + return this.resolveGlobalVariableBeforeTriggerField; + } + set + { + this.resolveGlobalVariableBeforeTriggerField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string DCP + { + get + { + return this.dCPField; + } + set + { + this.dCPField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequest + { + + private int nameField; + + private PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestCallDefinition callDefinitionField; + + private PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestDataPool dataPoolField; + + private object incrementRuleField; + + private PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestKeys keysField; + + private string ruleField; + + private PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestLogisticIncrementCondition logisticIncrementConditionField; + + private PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestLogisticsColumn logisticsColumnField; + + /// + public int Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + public PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestCallDefinition CallDefinition + { + get + { + return this.callDefinitionField; + } + set + { + this.callDefinitionField = value; + } + } + + /// + public PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestDataPool DataPool + { + get + { + return this.dataPoolField; + } + set + { + this.dataPoolField = value; + } + } + + /// + public object IncrementRule + { + get + { + return this.incrementRuleField; + } + set + { + this.incrementRuleField = value; + } + } + + /// + public PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestKeys Keys + { + get + { + return this.keysField; + } + set + { + this.keysField = value; + } + } + + /// + public string Rule + { + get + { + return this.ruleField; + } + set + { + this.ruleField = value; + } + } + + /// + public PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestLogisticIncrementCondition LogisticIncrementCondition + { + get + { + return this.logisticIncrementConditionField; + } + set + { + this.logisticIncrementConditionField = value; + } + } + + /// + public PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestLogisticsColumn LogisticsColumn + { + get + { + return this.logisticsColumnField; + } + set + { + this.logisticsColumnField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestCallDefinition + { + + private PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestCallDefinitionLogisticCallDefinitionAttribute[] attributesField; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("LogisticCallDefinitionAttribute", IsNullable = false)] + public PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestCallDefinitionLogisticCallDefinitionAttribute[] Attributes + { + get + { + return this.attributesField; + } + set + { + this.attributesField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestCallDefinitionLogisticCallDefinitionAttribute + { + + private PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestCallDefinitionLogisticCallDefinitionAttributeDataPool dataPoolField; + + private string formulaField; + + private string logisticsKeyField; + + private string mappedParameterNameField; + + private string sourceField; + + /// + public PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestCallDefinitionLogisticCallDefinitionAttributeDataPool DataPool + { + get + { + return this.dataPoolField; + } + set + { + this.dataPoolField = value; + } + } + + /// + public string Formula + { + get + { + return this.formulaField; + } + set + { + this.formulaField = value; + } + } + + /// + public string LogisticsKey + { + get + { + return this.logisticsKeyField; + } + set + { + this.logisticsKeyField = value; + } + } + + /// + public string MappedParameterName + { + get + { + return this.mappedParameterNameField; + } + set + { + this.mappedParameterNameField = value; + } + } + + /// + public string Source + { + get + { + return this.sourceField; + } + set + { + this.sourceField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestCallDefinitionLogisticCallDefinitionAttributeDataPool + { + + private object parametersField; + + /// + public object Parameters + { + get + { + return this.parametersField; + } + set + { + this.parametersField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestDataPool + { + + private PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestDataPoolParameters parametersField; + + /// + public PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestDataPoolParameters Parameters + { + get + { + return this.parametersField; + } + set + { + this.parametersField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestDataPoolParameters + { + + private PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestDataPoolParametersScriptEditorDataPoolParameterModel scriptEditorDataPoolParameterModelField; + + /// + public PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestDataPoolParametersScriptEditorDataPoolParameterModel ScriptEditorDataPoolParameterModel + { + get + { + return this.scriptEditorDataPoolParameterModelField; + } + set + { + this.scriptEditorDataPoolParameterModelField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestDataPoolParametersScriptEditorDataPoolParameterModel + { + + private string nameField; + + private string valueField; + + /// + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestKeys + { + + private PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestKeysEquipmentName equipmentNameField; + + private PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestKeysKeyMapping keyMappingField; + + private int defaultCarrierIndexField; + + private string defaultJobIndexField; + + private int defaultSlotIndexField; + + private string scenarioField; + + private bool useAllRequestedDataField; + + /// + public PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestKeysEquipmentName EquipmentName + { + get + { + return this.equipmentNameField; + } + set + { + this.equipmentNameField = value; + } + } + + /// + public PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestKeysKeyMapping KeyMapping + { + get + { + return this.keyMappingField; + } + set + { + this.keyMappingField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public int DefaultCarrierIndex + { + get + { + return this.defaultCarrierIndexField; + } + set + { + this.defaultCarrierIndexField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string DefaultJobIndex + { + get + { + return this.defaultJobIndexField; + } + set + { + this.defaultJobIndexField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public int DefaultSlotIndex + { + get + { + return this.defaultSlotIndexField; + } + set + { + this.defaultSlotIndexField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Scenario + { + get + { + return this.scenarioField; + } + set + { + this.scenarioField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public bool UseAllRequestedData + { + get + { + return this.useAllRequestedDataField; + } + set + { + this.useAllRequestedDataField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestKeysEquipmentName + { + + private string fixedNameField; + + private string parameterNameField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string FixedName + { + get + { + return this.fixedNameField; + } + set + { + this.fixedNameField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string ParameterName + { + get + { + return this.parameterNameField; + } + set + { + this.parameterNameField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestKeysKeyMapping + { + + private PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestKeysKeyMappingDataPool dataPoolField; + + private string formulaField; + + private string keyNameField; + + private string parameterNameField; + + /// + public PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestKeysKeyMappingDataPool DataPool + { + get + { + return this.dataPoolField; + } + set + { + this.dataPoolField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Formula + { + get + { + return this.formulaField; + } + set + { + this.formulaField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string KeyName + { + get + { + return this.keyNameField; + } + set + { + this.keyNameField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string ParameterName + { + get + { + return this.parameterNameField; + } + set + { + this.parameterNameField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestKeysKeyMappingDataPool + { + + private object parametersField; + + /// + public object Parameters + { + get + { + return this.parametersField; + } + set + { + this.parametersField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestLogisticIncrementCondition + { + + private object ruleField; + + private PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestLogisticIncrementConditionDataPool dataPoolField; + + /// + public object Rule + { + get + { + return this.ruleField; + } + set + { + this.ruleField = value; + } + } + + /// + public PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestLogisticIncrementConditionDataPool DataPool + { + get + { + return this.dataPoolField; + } + set + { + this.dataPoolField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestLogisticIncrementConditionDataPool + { + + private object parametersField; + + /// + public object Parameters + { + get + { + return this.parametersField; + } + set + { + this.parametersField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestLogisticsColumn + { + + private int fixedField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public int Fixed + { + get + { + return this.fixedField; + } + set + { + this.fixedField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionTrigger + { + + private PDSFConfigurationDataCollectionTriggerDataPool dataPoolField; + + private object ruleField; + + private object descriptionField; + + private string idField; + + private string nameField; + + private bool resolveGlobalVariableBeforeTriggerField; + + /// + public PDSFConfigurationDataCollectionTriggerDataPool DataPool + { + get + { + return this.dataPoolField; + } + set + { + this.dataPoolField = value; + } + } + + /// + public object Rule + { + get + { + return this.ruleField; + } + set + { + this.ruleField = value; + } + } + + /// + public object Description + { + get + { + return this.descriptionField; + } + set + { + this.descriptionField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Id + { + get + { + return this.idField; + } + set + { + this.idField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public bool ResolveGlobalVariableBeforeTrigger + { + get + { + return this.resolveGlobalVariableBeforeTriggerField; + } + set + { + this.resolveGlobalVariableBeforeTriggerField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionTriggerDataPool + { + + private object parametersField; + + /// + public object Parameters + { + get + { + return this.parametersField; + } + set + { + this.parametersField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionFileWriterSettings + { + + private string usedFileWriterField; + + private PDSFConfigurationDataCollectionFileWriterSettingsArrayInRowsSettings arrayInRowsSettingsField; + + private PDSFConfigurationDataCollectionFileWriterSettingsParameterInRowsSettings parameterInRowsSettingsField; + + /// + public string UsedFileWriter + { + get + { + return this.usedFileWriterField; + } + set + { + this.usedFileWriterField = value; + } + } + + /// + public PDSFConfigurationDataCollectionFileWriterSettingsArrayInRowsSettings ArrayInRowsSettings + { + get + { + return this.arrayInRowsSettingsField; + } + set + { + this.arrayInRowsSettingsField = value; + } + } + + /// + public PDSFConfigurationDataCollectionFileWriterSettingsParameterInRowsSettings ParameterInRowsSettings + { + get + { + return this.parameterInRowsSettingsField; + } + set + { + this.parameterInRowsSettingsField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionFileWriterSettingsArrayInRowsSettings + { + + private int logisticChangeExtendTimeField; + + private int extendTimeField; + + private int defaultValueForArrayInLinesField; + + private bool isEnabledField; + + /// + public int LogisticChangeExtendTime + { + get + { + return this.logisticChangeExtendTimeField; + } + set + { + this.logisticChangeExtendTimeField = value; + } + } + + /// + public int ExtendTime + { + get + { + return this.extendTimeField; + } + set + { + this.extendTimeField = value; + } + } + + /// + public int DefaultValueForArrayInLines + { + get + { + return this.defaultValueForArrayInLinesField; + } + set + { + this.defaultValueForArrayInLinesField = value; + } + } + + /// + public bool IsEnabled + { + get + { + return this.isEnabledField; + } + set + { + this.isEnabledField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionFileWriterSettingsParameterInRowsSettings + { + + private bool isEnabledField; + + private string dataColumnNameField; + + private string logisticColumnNameField; + + private bool isGenerateHashCodeEnabledField; + + private string hashCodeColumnNameField; + + /// + public bool IsEnabled + { + get + { + return this.isEnabledField; + } + set + { + this.isEnabledField = value; + } + } + + /// + public string DataColumnName + { + get + { + return this.dataColumnNameField; + } + set + { + this.dataColumnNameField = value; + } + } + + /// + public string LogisticColumnName + { + get + { + return this.logisticColumnNameField; + } + set + { + this.logisticColumnNameField = value; + } + } + + /// + public bool IsGenerateHashCodeEnabled + { + get + { + return this.isGenerateHashCodeEnabledField; + } + set + { + this.isGenerateHashCodeEnabledField = value; + } + } + + /// + public string HashCodeColumnName + { + get + { + return this.hashCodeColumnNameField; + } + set + { + this.hashCodeColumnNameField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionGeneralTriggers + { + + private PDSFConfigurationDataCollectionGeneralTriggersDataPool dataPoolField; + + private object ruleField; + + private object descriptionField; + + private PDSFConfigurationDataCollectionGeneralTriggersVariableModel[] globalVariablesField; + + private string idField; + + private string nameField; + + private bool resolveGlobalVariableBeforeTriggerField; + + /// + public PDSFConfigurationDataCollectionGeneralTriggersDataPool DataPool + { + get + { + return this.dataPoolField; + } + set + { + this.dataPoolField = value; + } + } + + /// + public object Rule + { + get + { + return this.ruleField; + } + set + { + this.ruleField = value; + } + } + + /// + public object Description + { + get + { + return this.descriptionField; + } + set + { + this.descriptionField = value; + } + } + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("VariableModel", IsNullable = false)] + public PDSFConfigurationDataCollectionGeneralTriggersVariableModel[] GlobalVariables + { + get + { + return this.globalVariablesField; + } + set + { + this.globalVariablesField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Id + { + get + { + return this.idField; + } + set + { + this.idField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public bool ResolveGlobalVariableBeforeTrigger + { + get + { + return this.resolveGlobalVariableBeforeTriggerField; + } + set + { + this.resolveGlobalVariableBeforeTriggerField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionGeneralTriggersDataPool + { + + private object parametersField; + + /// + public object Parameters + { + get + { + return this.parametersField; + } + set + { + this.parametersField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionGeneralTriggersVariableModel + { + + private string idField; + + private string nameField; + + private object descriptionField; + + private PDSFConfigurationDataCollectionGeneralTriggersVariableModelDataPool dataPoolField; + + private string formulaField; + + private string parameterNameField; + + private string[] resolveBeforeTriggersField; + + /// + public string Id + { + get + { + return this.idField; + } + set + { + this.idField = value; + } + } + + /// + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + public object Description + { + get + { + return this.descriptionField; + } + set + { + this.descriptionField = value; + } + } + + /// + public PDSFConfigurationDataCollectionGeneralTriggersVariableModelDataPool DataPool + { + get + { + return this.dataPoolField; + } + set + { + this.dataPoolField = value; + } + } + + /// + public string Formula + { + get + { + return this.formulaField; + } + set + { + this.formulaField = value; + } + } + + /// + public string ParameterName + { + get + { + return this.parameterNameField; + } + set + { + this.parameterNameField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("ResolveBeforeTriggers")] + public string[] ResolveBeforeTriggers + { + get + { + return this.resolveBeforeTriggersField; + } + set + { + this.resolveBeforeTriggersField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionGeneralTriggersVariableModelDataPool + { + + private PDSFConfigurationDataCollectionGeneralTriggersVariableModelDataPoolScriptEditorDataPoolParameterModel[] parametersField; + + /// + [System.Xml.Serialization.XmlArrayItemAttribute("ScriptEditorDataPoolParameterModel", IsNullable = false)] + public PDSFConfigurationDataCollectionGeneralTriggersVariableModelDataPoolScriptEditorDataPoolParameterModel[] Parameters + { + get + { + return this.parametersField; + } + set + { + this.parametersField = value; + } + } + } + + /// + [System.SerializableAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PDSFConfigurationDataCollectionGeneralTriggersVariableModelDataPoolScriptEditorDataPoolParameterModel + { + + private string nameField; + + private string valueField; + + /// + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + +} \ No newline at end of file diff --git a/EDA Viewer/Singleton/Helper/BackgroundEDADatabase.cs b/EDA Viewer/Singleton/Helper/BackgroundEDADatabase.cs new file mode 100644 index 0000000..df7f127 --- /dev/null +++ b/EDA Viewer/Singleton/Helper/BackgroundEDADatabase.cs @@ -0,0 +1,29 @@ +namespace EDAViewer.Singleton.Helper +{ + + public partial class Background + { + + public partial class EDADatabase + { + + public static string GetEdaDevelopment() + { + return "Data Source=(description=(address_list=(address=(protocol=tcp)(host=fimest-db.mes.infineon.com)(port=7001)))(connect_data=(sid=fimest))); User Id=edatest; Password="; + } + + public static string GetEdaStaging() + { + return "Data Source=(description=(address_list=(address=(protocol=tcp)(host=fimess-db.ec.local)(port=7001)))(connect_data=(sid=fimess))); User Id=edastag; Password="; + } + + public static string GetEdaProduction() + { + return "Data Source=(description=(address_list=(address=(protocol=tcp)(host=fimesp-db.ec.local)(port=7002)))(connect_data=(sid=fimesp))); User Id=edaprod; Password="; + } + + } + + } + +} \ No newline at end of file diff --git a/EDA Viewer/Singleton/Helper/BackgroundEdaDCP.cs b/EDA Viewer/Singleton/Helper/BackgroundEdaDCP.cs new file mode 100644 index 0000000..0715d1c --- /dev/null +++ b/EDA Viewer/Singleton/Helper/BackgroundEdaDCP.cs @@ -0,0 +1,429 @@ +using System.Collections.Generic; +using System.Dynamic; +using System.IO; +using System.Text; +using System.Text.Json; + +namespace EDAViewer.Singleton.Helper +{ + + public partial class Background + { + + public class EdaDCP + { + + internal static string GetEdaObjectToHtml(string edaObjectFile, Common common) + { + StringBuilder result = new StringBuilder(); + string title = string.Concat(Path.GetFileName(edaObjectFile), " - ", common.Source); + result.AppendLine(""); + result.AppendLine(""); + result.AppendLine(""); + result.AppendLine(""); + result.Append("").Append(title).AppendLine(""); + result.AppendLine(""); + result.AppendLine(""); + result.AppendLine(""); + result.AppendLine(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.AppendLine(""); + result.AppendLine(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.AppendLine(""); + result.AppendLine("
").Append("Unit Name").AppendLine("").Append("Container Name").AppendLine("").Append("Configuration State").AppendLine("").Append("Configuration Productive State").AppendLine("").Append("LogisticsEquipmentAlias").AppendLine("").Append("Source").AppendLine("").Append("StoragePath").AppendLine("").Append("StartTimeFormat").AppendLine("").Append("Filename").AppendLine("
").Append(common.UnitName).AppendLine("").Append(common.ContainerName).AppendLine("").Append(common.ConfigurationState).AppendLine("").Append(common.ConfigurationProductiveState).AppendLine("").Append(common.LogisticsEquipmentAlias).AppendLine("").Append(common.Source).AppendLine("").Append(common.StoragePath).AppendLine("").Append(common.StartTimeFormat).AppendLine("").Append(common.Filename).AppendLine("
"); + result.AppendLine("
"); + result.AppendLine(""); + result.AppendLine(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.AppendLine(""); + foreach (string[] item in common.LogisticsAttributes) + { + if (item.Length > 2 && !item[2].StartsWith("Z_")) + { + result.AppendLine(""); + foreach (string value in item) + result.Append(""); + result.AppendLine(""); + } + } + result.AppendLine("
").Append("Use").AppendLine("").Append("Order").AppendLine("").Append("Key").AppendLine("").Append("Placeholder").AppendLine("
").Append(value).AppendLine("
"); + result.AppendLine("
"); + result.AppendLine(""); + result.AppendLine(""); + result.Append(""); + result.Append(""); + result.AppendLine(""); + foreach (string[] item in common.LogisticsColumns) + { + result.AppendLine(""); + foreach (string value in item) + result.Append(""); + result.AppendLine(""); + } + result.AppendLine("
").Append("ID").AppendLine("").Append("Prefix").AppendLine("
").Append(value).AppendLine("
"); + result.AppendLine("
"); + result.AppendLine(""); + result.AppendLine(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.AppendLine(""); + foreach (string[] item in common.Parameters) + { + result.AppendLine(""); + foreach (string value in item) + result.Append(""); + result.AppendLine(""); + } + result.AppendLine("
").Append("Use").AppendLine("").Append("Order").AppendLine("").Append("FullName").AppendLine("").Append("Alias").AppendLine("").Append("HardWareId").AppendLine("").Append("Description").AppendLine("").Append("Formula").AppendLine("").Append("Virtual").AppendLine("").Append("Column#").AppendLine("
").Append(value).AppendLine("
"); + result.AppendLine("
"); + result.AppendLine(""); + result.AppendLine(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.AppendLine(""); + foreach (string[] item in common.GeneralTriggers) + { + result.AppendLine(""); + foreach (string value in item) + result.Append(""); + result.AppendLine(""); + } + result.AppendLine("
").Append("Parent Name").AppendLine("").Append("Name").AppendLine("").Append("ParameterName").AppendLine("").Append("Formula").AppendLine("
").Append(value).AppendLine("
"); + result.AppendLine("
"); + result.AppendLine(""); + result.AppendLine(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.AppendLine(""); + foreach (string[] item in common.StartTriggersDCP) + { + result.AppendLine(""); + foreach (string value in item) + result.Append(""); + result.AppendLine(""); + } + result.AppendLine("
").Append("Name").AppendLine("").Append("Rule").AppendLine("").Append("ResolveGlobalVariableBeforeTrigger").AppendLine("
").Append(value).AppendLine("
"); + result.AppendLine("
"); + result.AppendLine(""); + result.AppendLine(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.AppendLine(""); + foreach (string[] item in common.LogisticsTriggers) + { + result.AppendLine(""); + foreach (string value in item) + result.Append(""); + result.AppendLine(""); + result.AppendLine(""); + result.AppendLine(""); + } + result.AppendLine("
").Append("Name").AppendLine("").Append("Fixed").AppendLine("").Append("Rule").AppendLine("").Append("Scenario").AppendLine("").Append("DefaultJobIndex").AppendLine("").Append("DefaultCarrierIndex").AppendLine("").Append("DefaultSlotIndex").AppendLine("").Append("DataPool").AppendLine("
").Append(value).AppendLine(""); + result.AppendLine(""); + result.AppendLine(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.AppendLine(""); + foreach (KeyValuePair keyValuePair in common.LogisticsTriggersKeysKeyMapping) + { + result.AppendLine(""); + foreach (string value in keyValuePair.Value) + result.Append(""); + result.AppendLine(""); + } + result.AppendLine("
").Append("KeyName").AppendLine("").Append("ParameterName").AppendLine("").Append("Formula").AppendLine("
").Append(value).AppendLine("
"); + result.AppendLine("
"); + result.AppendLine(""); + result.AppendLine(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.AppendLine(""); + foreach (KeyValuePair> keyValuePair in common.LogisticsTriggersCallDefinitionAttributes) + { + foreach (string[] values in keyValuePair.Value) + { + if (values.Length > 0 && !values[0].StartsWith("Z_")) + { + result.AppendLine(""); + foreach (string value in values) + result.Append(""); + result.AppendLine(""); + } + } + } + result.AppendLine("
").Append("LogisticsKey").AppendLine("").Append("Source").AppendLine("").Append("MappedParameterName").AppendLine("").Append("Formula").AppendLine("
").Append(value).AppendLine("
"); + result.AppendLine("
"); + result.AppendLine("
"); + result.AppendLine(""); + result.AppendLine(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.Append(""); + result.AppendLine(""); + foreach (string[] item in common.StopTriggersDCP) + { + result.AppendLine(""); + foreach (string value in item) + result.Append(""); + result.AppendLine(""); + } + result.AppendLine("
").Append("Name").AppendLine("").Append("Rule").AppendLine("").Append("ResolveGlobalVariableBeforeTrigger").AppendLine("").Append("ResetGlobalVariablesAfterTrigger").AppendLine("
").Append(value).AppendLine("
"); + result.AppendLine("
"); + result.AppendLine(""); + result.AppendLine(""); + return result.ToString(); + } + + private static string ReplaceNull(object @object) + { + if (@object is null) + return string.Empty; + else + return @object.ToString(); + } + + private static void TextResolveEntry(StringBuilder result, dynamic expandoObject, int level, string super, int? i, bool group) + { + level += 1; + foreach (dynamic entry in expandoObject) + { + if (entry.Value is ExpandoObject) + TextResolveEntry(result, entry.Value, level, string.Concat(super, " : ", entry.Key), i, group); + else + { + if (!(entry.Value is ICollection)) + { + if (i is null) + result.Append(level).Append(") ").Append(super).Append(" : ").Append(entry.Key).Append("--->").AppendLine(ReplaceNull(entry.Value)); + else + result.Append(level).Append(") ").Append(super).Append(" : ").Append(entry.Key).Append("[").Append(i.Value).Append("]--->").AppendLine(ReplaceNull(entry.Value)); + } + else + { + if (!group) + { + for (i = 0; i.Value < entry.Value.Count; i++) + { + if (entry.Value[i.Value] is ExpandoObject) + TextResolveEntry(result, entry.Value[i.Value], level, string.Concat(super, " : ", entry.Key), i.Value, group); + else + result.Append(level).Append(") ").Append(super).Append(" : ").Append(entry.Key).Append("[").Append(i.Value).Append("]--->").AppendLine(ReplaceNull(entry.Value[i.Value])); + } + } + else + { + for (i = 0; i.Value < entry.Value.Count; i++) + { + if (!(entry.Value[i.Value] is ExpandoObject)) + result.Append(level).Append(") ").Append(super).Append(" : ").Append(entry.Key).Append("[").Append(i.Value).Append("]--->").AppendLine(ReplaceNull(entry.Value[i.Value])); + } + for (i = 0; i.Value < entry.Value.Count; i++) + { + if (entry.Value[i.Value] is ExpandoObject) + TextResolveEntry(result, entry.Value[i.Value], level, string.Concat(super, " : ", entry.Key), i.Value, group); + } + } + i = null; + } + } + } + level -= 1; + } + + internal static string GetText(string edaObjectFile, Common common, string json) + { + StringBuilder result = new StringBuilder(); + if (result.Length > 0) //Skipping because System.Text.Json changed the way Expando works + { + string title = string.Concat(Path.GetFileName(edaObjectFile), " - ", common.Source); + dynamic expandoObject = JsonSerializer.Deserialize(json); + result.AppendLine(title); + result.AppendLine("Loop -> \"Normal\""); + result.AppendLine(edaObjectFile); + result.AppendLine(); + TextResolveEntry(result, expandoObject, 0, string.Empty, null, group: false); + result.AppendLine(); + result.AppendLine(); + result.AppendLine(); + result.AppendLine(title); + result.AppendLine("Loop -> \"Grouped\""); + result.AppendLine(edaObjectFile); + result.AppendLine(); + TextResolveEntry(result, expandoObject, 0, string.Empty, null, group: true); + } + return result.ToString(); + } + + internal static string GetEdaObjectToDMSGridFormat(string edaObjectFile, Common common, bool useAlias) + { + StringBuilder result = new StringBuilder(); + string[] segments; + int? recordStart = null; + string name = string.Concat(common.LogisticsEquipmentAlias, "_", common.ContainerName); + result.AppendLine(""); + result.Append("").AppendLine(); + result.AppendLine(" "); + result.AppendLine(" <13><10>"); + result.AppendLine(" <9>"); + result.AppendLine(" "); + result.AppendLine(" "); + for (int i = 0; i < common.Parameters.Count; i++) + { + if (recordStart is null && common.Parameters[i][3] == "RECORD_START") + recordStart = i; + if (recordStart.HasValue && common.Parameters[i][0] == "True") + { + if (useAlias && !string.IsNullOrEmpty(common.Parameters[i][3])) + name = common.Parameters[i][3].Replace("'", string.Empty); + else + { + segments = common.Parameters[i][2].Split('/'); + name = segments[segments.Length - 1]; + } + result.Append(" ").AppendLine(); + } + } + result.AppendLine(" "); + result.AppendLine(" "); + result.AppendLine(" "); + result.AppendLine(" "); + result.AppendLine(" "); + result.AppendLine(" 7"); + result.AppendLine(" 0"); + result.AppendLine(" "); + result.AppendLine(" "); + result.AppendLine(" "); + result.AppendLine(" "); + result.AppendLine(" "); + result.AppendLine(""); + return result.ToString(); + } + + internal static string GetEdaObjectToAPCParameter(string edaObjectFile, Common common) + { + StringBuilder result = new StringBuilder(); + string parameter; + string[] segments; + string parameterSub35; + string name = string.Concat(common.LogisticsEquipmentAlias, "_", common.ContainerName); + result.AppendLine("ExportFileVersion=1.0.6"); + result.AppendLine("ExportFromTabsheet=Para"); + result.AppendLine("FieldName\tLongName\tMatchMode\tEquipment\tName\tPdsfNameConvCol\tPdsfNameDataType\tType\tChamberInfo\tUnifiedPara\tDateFormat\tUsername\tId\tWorkcenterId\tSite\tArea\tWorkcenter\tValidFrom\tValidTo"); + result.AppendLine("TIME_PREV_DIFF\tTIME_PREV_DIFF\tEXACT\t*\tTIME_PREV_DIFF\t\tNUMERIC\tRUN\t\tTIME_PREV_DIFF\t\tPHARES\t95069\t4571\tMesa\t\t\t4/15/2020 6:10 PM"); + result.AppendLine("TIME\tTIME\tEXACT\t*\tTIME\t\tNUMERIC\tRUN\t\tTIME\t\tPHARES\t95070\t4571\tMesa\t\t\t4/15/2020 6:10 PM"); + for (int i = 0; i < common.Parameters.Count; i++) + { + if (common.Parameters[i][0] == "True") + { + segments = common.Parameters[i][2].Split('/'); + parameter = segments[segments.Length - 1]; + if (parameter.Length < 35) + parameterSub35 = parameter; + else + parameterSub35 = parameter.Substring(0, 35); + result.Append(parameterSub35).Append("\tDIVERSE\tEXACT\t*\t").Append(parameterSub35).AppendLine("\t\tNUMERIC\tRUN\t\t\t\tPHARES\t9000000012\t4571\tMesa\t\t\t4/15/2020 6:10 PM"); + } + } + result.AppendLine(); + result.AppendLine(); + result.AppendLine(); + for (int i = 0; i < common.Parameters.Count; i++) + { + if (common.Parameters[i][0] == "True") + { + segments = common.Parameters[i][2].Split('/'); + parameter = segments[segments.Length - 1]; + result.Append(parameter).Append("\tDIVERSE\tEXACT\t*\t").Append(parameter).AppendLine("\t\tNUMERIC\tRUN\t\t\t\tPHARES\t9000000012\t4571\tMesa\t\t\t4/15/2020 6:10 PM"); + } + } + return result.ToString(); + } + + internal static string GetEdaObjectToAPCRunKeyNumber(string edaObjectFile, Common common) + { + StringBuilder result = new StringBuilder(); + string parameter; + string[] segments; + string parameterSub21; + string parameterSub35; + string name = string.Concat(common.LogisticsEquipmentAlias, "_", common.ContainerName); + result.AppendLine("ExportFileVersion=1.0.6"); + result.AppendLine("ExportFromTabsheet=Run-Keynumbers"); + result.AppendLine("FeatureName\tShortName\tChamber\tComments\tVarMode\tPara\tExclude0\tTrigOn1\tTrigOn2\tTrigOn3\tTrigOff1\tTrigOff2\tTrigOff3\tTrigDelay\tTrigNorm\tTrigNvl\tTrigTrg\tAddCondOn\tActive\tFilter1\tFilter2\tFilter3\tFilter4\tUnit\tId\tWorkcenterId\tSite\tArea\tWorkcenter\tUsername\tValidFrom\tValidTo"); + for (int i = 0; i < common.Parameters.Count; i++) + { + if (common.Parameters[i][0] == "True") + { + segments = common.Parameters[i][2].Split('/'); + parameter = segments[segments.Length - 1]; + if (parameter.Length < 35) + parameterSub35 = parameter; + else + parameterSub35 = parameter.Substring(0, 35); + if (parameter.Length < 21) + parameterSub21 = parameter; + else + parameterSub21 = parameter.Substring(0, 21); + result.Append(parameterSub21).Append("_MIN\t").Append(parameterSub21).Append("_MIN\t\t\tMIN\t").Append(parameterSub35).AppendLine("\t0\tTIME\t=\tRUNSTART\tTIME\t=\tRUNEND\t\t\t\t\t\t1\t\t\t\t\t\t-1\t-1\t\t\t\tECPHARES\t5/2/2017 2:44 PM"); + } + } + result.AppendLine(); + result.AppendLine(); + result.AppendLine(); + for (int i = 0; i < common.Parameters.Count; i++) + { + if (common.Parameters[i][0] == "True") + { + segments = common.Parameters[i][2].Split('/'); + parameter = segments[segments.Length - 1]; + result.Append(parameter).Append("_MIN\t").Append(parameter).Append("_MIN\t\t\tMIN\t").Append(parameter).AppendLine("\t0\tTIME\t=\tRUNSTART\tTIME\t=\tRUNEND\t\t\t\t\t\t1\t\t\t\t\t\t-1\t-1\t\t\t\tECPHARES\t5/2/2017 2:44 PM"); + } + } + return result.ToString(); + } + + } + + } + +} \ No newline at end of file diff --git a/EDA Viewer/Singleton/Helper/Common.cs b/EDA Viewer/Singleton/Helper/Common.cs new file mode 100644 index 0000000..1a264ba --- /dev/null +++ b/EDA Viewer/Singleton/Helper/Common.cs @@ -0,0 +1,164 @@ +using EDAViewer.Singleton.Helper; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace EDAViewer.Singleton.Helper +{ + + [Serializable] + public class Common + { + + public ModuleInstanceTypeName? ObjectType { get; set; } + public string ConfigurationState { get; set; } + public string ConfigurationProductiveState { get; set; } + public string UnitName { get; set; } + public string ContainerName { get; set; } + // + public string StoragePath { get; set; } + public string StartTimeFormat { get; set; } + public string Filename { get; set; } + // + public string Source { get; set; } + public string LogisticsEquipmentAlias { get; set; } + public List LogisticsAttributes { get; set; } + public List LogisticsColumns { get; set; } + public List Parameters { get; set; } + public string ParametersAsCsv { get; set; } + public List GeneralTriggers { get; set; } + public List StartTriggersDCP { get; set; } + public List LogisticsTriggers { get; set; } + public Dictionary LogisticsTriggersKeysKeyMapping { get; set; } + public Dictionary> LogisticsTriggersCallDefinitionAttributes { get; set; } + public List StopTriggersDCP { get; set; } + + [Obsolete("Only for DeserializeObject")] + public Common() + { + ObjectType = null; + ConfigurationState = string.Empty; + ConfigurationProductiveState = string.Empty; + UnitName = string.Empty; + ContainerName = string.Empty; + CommonLogic(); + } + + public Common(ModuleInstanceTypeName objectType, object unitName, object containerName, object configurationState, object configurationProductiveState) + { + ObjectType = objectType; + ConfigurationState = configurationState.ToString(); + ConfigurationProductiveState = configurationProductiveState.ToString(); + UnitName = unitName.ToString(); + ContainerName = containerName.ToString(); + CommonLogic(configurationState.ToString(), configurationProductiveState.ToString(), unitName.ToString(), containerName.ToString()); + } + + private void CommonLogic(string configurationState = "", string configurationProductiveState = "", string unitName = "", string containerame = "") + { + LogisticsAttributes = new List(); + LogisticsColumns = new List(); + Parameters = new List(); + ParametersAsCsv = string.Empty; + GeneralTriggers = new List(); + StartTriggersDCP = new List(); + LogisticsTriggers = new List(); + LogisticsTriggersKeysKeyMapping = new Dictionary(); + LogisticsTriggersCallDefinitionAttributes = new Dictionary>(); + StopTriggersDCP = new List(); + } + + public void Update(PDSFConfiguration configuration) + { + StoragePath = configuration.Settings.StoragePath; + StartTimeFormat = configuration.Settings.StartTimeFormat; + Filename = configuration.Settings.Filename; + // + Source = configuration.DataCollection.Source; + LogisticsEquipmentAlias = configuration.DataCollection.Logistics.EquipmentAlias; + //if (LogisticsEquipmentAlias == "R47-PLC") + //{ } + foreach (PDSFConfigurationDataCollectionLogisticsAttribute item in (from l in configuration.DataCollection.Logistics.Attributes orderby l.Use descending, l.Order select l)) + LogisticsAttributes.Add(new string[] { item.Use.ToString(), item.Order.ToString("000"), item.Key, item.Placeholder }); + foreach (PDSFConfigurationDataCollectionLogisticsColumn item in configuration.DataCollection.Logistics.Columns) + LogisticsColumns.Add(new string[] { item.ID.ToString(), item.Prefix }); + foreach (PDSFConfigurationDataCollectionParameter1 item in (from l in configuration.DataCollection.VirtualParameters orderby l.Use descending, l.Order select l)) + { + if (string.IsNullOrEmpty(item.Alias) && !string.IsNullOrEmpty(item.Conditions.ConditionModel.Name)) + { + if (item.Use) + Parameters.Add(new string[] { item.Use.ToString(), item.Order.ToString("000"), item.FullName, item.Conditions.ConditionModel.Name, item.HardWareId, item.Description, item.Conditions.ConditionModel.Formula, true.ToString(), (configuration.DataCollection.Logistics.Columns.Length + 1 + item.Order).ToString("000") }); + else + Parameters.Add(new string[] { item.Use.ToString(), item.Order.ToString("000"), item.FullName, item.Conditions.ConditionModel.Name, item.HardWareId, item.Description, string.Empty, true.ToString(), (configuration.DataCollection.Logistics.Columns.Length + 1 + item.Order).ToString("000") }); + } + else + { + if (item.Use) + Parameters.Add(new string[] { item.Use.ToString(), item.Order.ToString("000"), item.FullName, item.Alias, item.HardWareId, item.Description, item.Conditions.ConditionModel.Formula, true.ToString(), (configuration.DataCollection.Logistics.Columns.Length + 1 + item.Order).ToString("000") }); + else + Parameters.Add(new string[] { item.Use.ToString(), item.Order.ToString("000"), item.FullName, item.Alias, item.HardWareId, item.Description, string.Empty, true.ToString(), (configuration.DataCollection.Logistics.Columns.Length + 1 + item.Order).ToString("000") }); + } + } + foreach (PDSFConfigurationDataCollectionParameter item in (from l in configuration.DataCollection.Parameters orderby l.Use descending, l.Order select l)) + { + if (string.IsNullOrEmpty(item?.Alias) && !string.IsNullOrEmpty(item?.Conditions?.ConditionModel?.Name)) + { + if (item.Use) + Parameters.Add(new string[] { item.Use.ToString(), item.Order.ToString("000"), item.FullName, item.Conditions.ConditionModel.Name, item.HardWareId, item.Description, item.Conditions.ConditionModel.Formula, false.ToString(), (configuration.DataCollection.Logistics.Columns.Length + 1 + item.Order).ToString("000") }); + else + Parameters.Add(new string[] { item.Use.ToString(), item.Order.ToString("000"), item.FullName, item.Conditions.ConditionModel.Name, item.HardWareId, item.Description, string.Empty, false.ToString(), (configuration.DataCollection.Logistics.Columns.Length + 1 + item.Order).ToString("000") }); + } + else + { + if (item.Use) + Parameters.Add(new string[] { item.Use.ToString(), item.Order.ToString("000"), item.FullName, item.Alias, item.HardWareId, item.Description, item.Conditions.ConditionModel.Formula, false.ToString(), (configuration.DataCollection.Logistics.Columns.Length + 1 + item.Order).ToString("000") }); + else + Parameters.Add(new string[] { item.Use.ToString(), item.Order.ToString("000"), item.FullName, item.Alias, item.HardWareId, item.Description, string.Empty, false.ToString(), (configuration.DataCollection.Logistics.Columns.Length + 1 + item.Order).ToString("000") }); + } + } + Parameters = (from l in Parameters orderby l[0] descending, l[1] select l).ToList(); + StringBuilder text = new StringBuilder(); + //text.AppendLine("\"AliasName\";\"Condition\";\"EventId\";\"ExceptionId\";\"Formula\";\"HardwareId\";\"OrderId\";\"ParameterName\";\"Remark\";\"ReportName\";\"SourceId\";\"Use\""); + //"Test";"";"";"";"";"";"1";"MICROSCOPE01/MET08MESMICROSCOPE/Test";"";"MICROSCOPE01/MET08MESMICROSCOPE/FileRead";"";"True"" + text.AppendLine("\"Use\";\"OrderId\";\"ReportName\";\"ParameterName\";\"AliasName\";\"HardwareId\";\"Remark\";\"Formula\""); + foreach (string[] item in Parameters) + { + for (int i = 0; i < 7; i++) + text.Append("\"").Append(item[i]).Append("\";"); + text.Remove(text.Length - 1, 1); + text.AppendLine(); + } + ParametersAsCsv = text.ToString(); + foreach (PDSFConfigurationDataCollectionGeneralTriggers item in configuration.DataCollection.GeneralTriggers) + { + foreach (PDSFConfigurationDataCollectionGeneralTriggersVariableModel gv in item.GlobalVariables) + GeneralTriggers.Add(new string[] { item.Name, gv.Name, gv.ParameterName, gv.Formula }); + } + { + PDSFConfigurationDataCollectionStartTriggersDCP item = configuration.DataCollection.StartTriggers.DCP; + if (!(item is null)) + StartTriggersDCP.Add(new string[] { item.Name, item.Rule, item.ResolveGlobalVariableBeforeTrigger.ToString() }); + } + if (!(configuration.DataCollection.Logistics.Triggers.UpdateTrigger is null)) + { + foreach (PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequest item in configuration.DataCollection.Logistics.Triggers.UpdateTrigger.LogisticRequest) + { + LogisticsTriggers.Add(new string[] { item.Name.ToString(), item.LogisticsColumn.Fixed.ToString(), item.Rule, item.Keys.Scenario, item.Keys.DefaultJobIndex.ToString(), item.Keys.DefaultCarrierIndex.ToString(), item.Keys.DefaultSlotIndex.ToString(), item.DataPool.ToString() }); + if (!(item.Keys.KeyMapping is null)) + LogisticsTriggersKeysKeyMapping.Add(item.Name, new string[] { item.Keys.KeyMapping.KeyName, item.Keys.KeyMapping.ParameterName, item.Keys.KeyMapping.Formula }); + LogisticsTriggersCallDefinitionAttributes.Add(item.Name, new List()); + foreach (PDSFConfigurationDataCollectionLogisticsTriggersUpdateTriggerLogisticRequestCallDefinitionLogisticCallDefinitionAttribute att in item.CallDefinition.Attributes) + LogisticsTriggersCallDefinitionAttributes[item.Name].Add(new string[] { att.LogisticsKey, att.Source, att.MappedParameterName, att.Formula }); + } + } + { + PDSFConfigurationDataCollectionStopTriggersDCP item = configuration.DataCollection.StopTriggers.DCP; + if (!(item is null)) + StopTriggersDCP.Add(new string[] { item.Name, item.Rule, item.ResolveGlobalVariableBeforeTrigger.ToString(), item.ResetGlobalVariablesAfterTrigger.ToString() }); + } + } + + } + +} \ No newline at end of file diff --git a/EDA Viewer/Singleton/Helper/ModuleInstanceTypeName.cs b/EDA Viewer/Singleton/Helper/ModuleInstanceTypeName.cs new file mode 100644 index 0000000..4294df8 --- /dev/null +++ b/EDA Viewer/Singleton/Helper/ModuleInstanceTypeName.cs @@ -0,0 +1,8 @@ +namespace EDAViewer.Singleton.Helper +{ + public enum ModuleInstanceTypeName + { + Pdsf + } + +} \ No newline at end of file diff --git a/EDA Viewer/Singleton/IBackground.cs b/EDA Viewer/Singleton/IBackground.cs new file mode 100644 index 0000000..b9bcaac --- /dev/null +++ b/EDA Viewer/Singleton/IBackground.cs @@ -0,0 +1,28 @@ +using EDAViewer.Models; +using Microsoft.Extensions.Logging; +using Shared; +using System; +using System.Collections.Generic; +using System.Net; + +namespace EDAViewer.Singleton +{ + + public interface IBackground : Models.IBackground, IDisposable + { + + void ClearMessage(); + void SendStatusOk(); + string Message { get; } + bool IsPrimaryInstance(); + void SetIsPrimaryInstance(); + void ClearIsPrimaryInstance(); + string WorkingDirectory { get; } + List Exceptions { get; } + void Update(ILogger logger); + string GetCountDirectory(string verb); + void LogPathCleanUpByWeek(string server, bool isEDA = false, bool isNA = false); + + } + +} \ No newline at end of file diff --git a/EDA Viewer/Startup.cs b/EDA Viewer/Startup.cs new file mode 100644 index 0000000..17685d5 --- /dev/null +++ b/EDA Viewer/Startup.cs @@ -0,0 +1,156 @@ +using EDAViewer.HostedService; +using EDAViewer.Models; +using EDAViewer.Singleton; +using Helper.Log; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Http; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Configuration.Json; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.FileProviders; +using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; +using Microsoft.OpenApi.Models; +using Shared; +using System; +using System.IO; +using System.Net; +using System.Reflection; + +namespace EDAViewer +{ + + public class Startup + { + + private Background _Background; + private AppSettings _AppSettings; + private readonly IsEnvironment _IsEnvironment; + private readonly IConfiguration _Configuration; + private readonly IWebHostEnvironment _WebHostEnvironment; + + public Startup(IConfiguration configuration, IWebHostEnvironment webHostEnvironment) + { + _Configuration = configuration; + _WebHostEnvironment = webHostEnvironment; + _IsEnvironment = new IsEnvironment(webHostEnvironment.IsDevelopment(), webHostEnvironment.IsStaging(), webHostEnvironment.IsProduction()); + } + + // This method gets called by the runtime. Use this method to add services to the container. + public void ConfigureServices(IServiceCollection services) + { + LogLevel defaultLogLevel; + LogLevel log4netLogLevel; + IConfigurationSection configurationSection; + configurationSection = _Configuration.GetSection("Logging:LogLevel:Default"); + if (configurationSection is null || configurationSection.Value is null) + defaultLogLevel = LogLevel.Debug; + else if (!Enum.TryParse(configurationSection.Value, out defaultLogLevel)) + defaultLogLevel = LogLevel.Debug; + configurationSection = _Configuration.GetSection("Logging:LogLevel:Log4netProvider"); + if (configurationSection is null || configurationSection.Value is null) + log4netLogLevel = defaultLogLevel; + else if (!Enum.TryParse(configurationSection.Value, out log4netLogLevel)) + log4netLogLevel = defaultLogLevel; + _AppSettings = _Configuration.Get(); + if (!_IsEnvironment.Production) + _AppSettings.Server = _AppSettings.Server.Replace('.', '_'); + if (string.IsNullOrEmpty(_AppSettings.WorkingDirectoryName)) + throw new Exception("Working directory name must have a value!"); + Assembly assembly = Assembly.GetExecutingAssembly(); + string workingDirectory = Log.GetWorkingDirectory(assembly.GetName().Name, _AppSettings.WorkingDirectoryName); + services.AddLogging(logging => + { + logging.AddProvider(new DebugProvider(defaultLogLevel)); + logging.AddProvider(new ConsoleProvider(defaultLogLevel)); + logging.AddProvider(new Log4netProvider(typeof(Startup), log4netLogLevel, workingDirectory)); + }); + + services.AddDirectoryBrowser(); + services.AddControllersWithViews().AddRazorRuntimeCompilation(); + services.AddServerSideBlazor(); + + // services.AddSingleton(); + // services.AddSingleton(); + + _Background = new Background(_IsEnvironment, _AppSettings, workingDirectory); + services.AddSingleton(b => _Background); + services.AddSingleton(appSettings => _AppSettings); + services.AddSingleton(isEnvironment => _IsEnvironment); + services.AddHostedService(t => new TimedHostedService(_IsEnvironment, _Background, t.GetRequiredService())); + + services.AddSwaggerGen(c => + { + c.SwaggerDoc("v1", new OpenApiInfo { Title = "EDAViewer", Version = "v1" }); + }); + } + + // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. + public void Configure(IApplicationBuilder app, IWebHostEnvironment env, IHostApplicationLifetime lifetime) + { + if (env.IsDevelopment()) + { + if (string.IsNullOrEmpty(_AppSettings.URLs)) + { + Environment.ExitCode = -1; + lifetime.StopApplication(); + } + + app.UseDeveloperExceptionPage(); + + app.UseSwagger(c => + { + c.SerializeAsV2 = true; + }); + + app.UseSwaggerUI(c => + { + c.SwaggerEndpoint("/swagger/v1/swagger.json", "EDA Viewer API V1"); + c.RoutePrefix = string.Empty; + }); + } + else + { + app.UseExceptionHandler("/Home/Error"); + // The default HSTS value is 30 days. + // You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts. + app.UseHsts(); + + app.UseSwagger(c => + { + c.SerializeAsV2 = true; + }); + + app.UseSwaggerUI(c => + { + c.SwaggerEndpoint("/EDAViewer/swagger/v1/swagger.json", "EDA Viewer API V1"); + c.RoutePrefix = string.Empty; + }); + } + + app.UseDirectoryBrowser(new DirectoryBrowserOptions + { + FileProvider = new PhysicalFileProvider(Path.Combine(env.WebRootPath, "images")), + RequestPath = "/MyImages" + }); + + app.UseHttpsRedirection(); + app.UseStaticFiles(); + + app.UseRouting(); + + app.UseAuthorization(); + + app.UseEndpoints(endpoints => + { + //endpoints.MapBlazorHub(); + endpoints.MapControllerRoute( + name: "default", + pattern: "{controller=Home}/{action=Index}/{id?}"); + }); + } + + } + +} \ No newline at end of file diff --git a/EDA Viewer/Views/Home/Background.cshtml b/EDA Viewer/Views/Home/Background.cshtml new file mode 100644 index 0000000..37cea16 --- /dev/null +++ b/EDA Viewer/Views/Home/Background.cshtml @@ -0,0 +1,47 @@ +@using EDAViewer.Controllers +@{ + ViewBag.Title = "Background"; + int i = 0; + string homeController = nameof(HomeController).Replace("Controller", string.Empty); +} + +
+

EDA - @(ViewBag.IsPrimaryInstance) - @(ViewBag.Profile) - @(ViewBag.URLs) - 013

+

@(ViewBag.WorkingDirectory)

+

@(ViewBag.Message)

+

@(ViewBag.ExceptionsCount)

+
+ +

 

+
+
+
+ @foreach (Exception exception in ViewBag.Exceptions) + { +

+ @Html.Raw(string.Concat("")); +

+

+ @Html.Raw(string.Concat("")); +

+
+ @(i += 1); + } +
+
+@section scripts { + +} diff --git a/EDA Viewer/Views/Home/Index.cshtml b/EDA Viewer/Views/Home/Index.cshtml new file mode 100644 index 0000000..8b82f86 --- /dev/null +++ b/EDA Viewer/Views/Home/Index.cshtml @@ -0,0 +1,12 @@ +@{ + ViewData["Title"] = "Home Page"; +} + +
+

Welcome

+

Learn about building Web apps with ASP.NET Core.

+
+ +
+ +
diff --git a/EDA Viewer/Views/Home/Privacy.cshtml b/EDA Viewer/Views/Home/Privacy.cshtml new file mode 100644 index 0000000..d01477f --- /dev/null +++ b/EDA Viewer/Views/Home/Privacy.cshtml @@ -0,0 +1,6 @@ +@{ + ViewData["Title"] = "Privacy Policy"; +} +

@ViewData["Title"]

+ +

Use this page to detail your site's privacy policy.

diff --git a/EDA Viewer/Views/Home/ViewEdaHtmlDiff.cshtml b/EDA Viewer/Views/Home/ViewEdaHtmlDiff.cshtml new file mode 100644 index 0000000..ae8e4fc --- /dev/null +++ b/EDA Viewer/Views/Home/ViewEdaHtmlDiff.cshtml @@ -0,0 +1,182 @@ +@model EDAViewer.Models.EdaHtmlDiff +@{ + ViewBag.Title = "EDA HTML Diff"; + string idForm = "Form"; + string idSubmit = "Submit"; + string idUp = "Up"; + string idRoot = "Root"; + string idRefresh = "Refresh"; + string background = "Background"; //Background + string viewEdaHtmlDiff = "ViewEdaHtmlDiff"; //ViewEdaHtmlDiff + string actionNameForForm = nameof(EDAViewer.Controllers.HomeController.ViewEdaHtmlDiff); + string actionNameForList = nameof(EDAViewer.Controllers.HomeController.GetDirectoriesOrFiles); + string homeController = nameof(EDAViewer.Controllers.HomeController).Replace("Controller", string.Empty); +} + +
+

@(ViewBag.Message)

+
+
+ @Html.Raw(ViewBag.Diff) +
+ @Html.Raw(ViewBag.OldText) +
+ @Html.Raw(ViewBag.NewText) +
+
+ + + +
+ @using (Html.BeginForm(actionNameForForm, homeController, FormMethod.Post, new { id = idForm })) + { + @Html.AntiForgeryToken(); + @Html.ValidationSummary(true); + @Html.HiddenFor(m => m.user_name) + @Html.HiddenFor(m => m.machine_name) + @Html.HiddenFor(m => m.now_ticks) + @Html.HiddenFor(m => m.PathAndFileName) + @Html.HiddenFor(m => m.Paths) +

+ @Html.LabelFor(m => m.CurrentPath) + @Html.DropDownListFor(m => m.CurrentPath, new SelectList(Enumerable.Empty()), htmlAttributes: new { style = "min-width:600px" }) + @Html.ValidationMessageFor(m => m.CurrentPath) +

+

+ @Html.LabelFor(m => m.FileName) + @Html.TextBoxFor(m => m.FileName, htmlAttributes: new { style = "min-width:600px" }) + @Html.ValidationMessageFor(m => m.FileName) +

+
+ + } +
+ +@section scripts { + +} diff --git a/EDA Viewer/Views/Shared/Error.cshtml b/EDA Viewer/Views/Shared/Error.cshtml new file mode 100644 index 0000000..0c47bb0 --- /dev/null +++ b/EDA Viewer/Views/Shared/Error.cshtml @@ -0,0 +1,25 @@ +@model ErrorViewModel +@{ + ViewData["Title"] = "Error"; +} + +

Error.

+

An error occurred while processing your request.

+ +@if (Model.ShowRequestId) +{ +

+ Request ID: @Model.RequestId +

+} + +

Development Mode

+

+ Swapping to Development environment will display more detailed information about the error that occurred. +

+

+ The Development environment shouldn't be enabled for deployed applications. + It can result in displaying sensitive information from exceptions to end users. + For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development + and restarting the app. +

diff --git a/EDA Viewer/Views/Shared/_Layout.cshtml b/EDA Viewer/Views/Shared/_Layout.cshtml new file mode 100644 index 0000000..cde019d --- /dev/null +++ b/EDA Viewer/Views/Shared/_Layout.cshtml @@ -0,0 +1,71 @@ +@using EDAViewer.Controllers +@{ + string index = nameof(HomeController.Index); + string privacy = nameof(HomeController.Privacy); + string background = nameof(HomeController.Background); + string homeController = nameof(HomeController).Replace("Controller", string.Empty); + string schemeHostURL = string.Concat(Context.Request.Scheme, "://", Context.Request.Host); +} + + + + + + + + @await RenderSectionAsync("Meta", required: false) + @ViewData["Title"] - EDAViewer + + + + + + + + + + + @await RenderSectionAsync("Style", required: false) + + + + +
+ +
+
+ @RenderBody() +
+
+
+ © 2021 - EDAViewer - Privacy +
+
+ + + + + @await RenderSectionAsync("Scripts", required: false) + + diff --git a/EDA Viewer/Views/Shared/_ValidationScriptsPartial.cshtml b/EDA Viewer/Views/Shared/_ValidationScriptsPartial.cshtml new file mode 100644 index 0000000..7d8dd3e --- /dev/null +++ b/EDA Viewer/Views/Shared/_ValidationScriptsPartial.cshtml @@ -0,0 +1,2 @@ + + diff --git a/EDA Viewer/Views/_ViewImports.cshtml b/EDA Viewer/Views/_ViewImports.cshtml new file mode 100644 index 0000000..58d7504 --- /dev/null +++ b/EDA Viewer/Views/_ViewImports.cshtml @@ -0,0 +1,3 @@ +@using EDAViewer +@using EDAViewer.Models +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers diff --git a/EDA Viewer/Views/_ViewStart.cshtml b/EDA Viewer/Views/_ViewStart.cshtml new file mode 100644 index 0000000..820a2f6 --- /dev/null +++ b/EDA Viewer/Views/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "_Layout"; +} diff --git a/EDA Viewer/appsettings.Development.json b/EDA Viewer/appsettings.Development.json new file mode 100644 index 0000000..3db82c4 --- /dev/null +++ b/EDA Viewer/appsettings.Development.json @@ -0,0 +1,19 @@ +{ + "Company": "Infineon Technologies Americas Corp.", + "ECEDADatabasePassword": "8vIs2nEZPkcdBUfXX0hHlA==", + "EncryptedPassword": "K1RyLhaIRyJTDbWutsuWWEiO2hTD3h7fW0BV/Cp+Ftw=", + "Logging": { + "LogLevel": { + "Default": "Debug", + "Microsoft": "Warning", + "Log4netProvider": "Debug", + "Microsoft.Hosting.Lifetime": "Information" + } + }, + "IFXEDADatabasePassword": "8vIs2nEZPkcdBUfXX0hHlA==", + "MonARessource": "EDA_Viewer_IFX", + "Server": "messv02ecc1_ec_local", + "ServiceUser": "mesedasvc", + "URLs": "http://localhost:5000;", + "WorkingDirectoryName": "IFXApps" +} diff --git a/EDA Viewer/appsettings.Staging.json b/EDA Viewer/appsettings.Staging.json new file mode 100644 index 0000000..ded3e66 --- /dev/null +++ b/EDA Viewer/appsettings.Staging.json @@ -0,0 +1,19 @@ +{ + "Company": "Infineon Technologies Americas Corp.", + "ECEDADatabasePassword": "8vIs2nEZPkcdBUfXX0hHlA==", + "EncryptedPassword": "CUGygiPwahy4U3j+6KqqoMZ08STyVDR1rKm6MwPpt00=", + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "Log4netProvider": "Information", + "Microsoft.Hosting.Lifetime": "Information" + } + }, + "IFXEDADatabasePassword": "8vIs2nEZPkcdBUfXX0hHlA==", + "MonARessource": "EDA_Viewer_EC", + "Server": "messv02ecc1.ec.local", + "ServiceUser": "ECMESEAF", + "URLs": "http://localhost:5002;", + "WorkingDirectoryName": "IFXApps" +} \ No newline at end of file diff --git a/EDA Viewer/appsettings.json b/EDA Viewer/appsettings.json new file mode 100644 index 0000000..ded3e66 --- /dev/null +++ b/EDA Viewer/appsettings.json @@ -0,0 +1,19 @@ +{ + "Company": "Infineon Technologies Americas Corp.", + "ECEDADatabasePassword": "8vIs2nEZPkcdBUfXX0hHlA==", + "EncryptedPassword": "CUGygiPwahy4U3j+6KqqoMZ08STyVDR1rKm6MwPpt00=", + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "Log4netProvider": "Information", + "Microsoft.Hosting.Lifetime": "Information" + } + }, + "IFXEDADatabasePassword": "8vIs2nEZPkcdBUfXX0hHlA==", + "MonARessource": "EDA_Viewer_EC", + "Server": "messv02ecc1.ec.local", + "ServiceUser": "ECMESEAF", + "URLs": "http://localhost:5002;", + "WorkingDirectoryName": "IFXApps" +} \ No newline at end of file diff --git a/EDA Viewer/wwwroot/css/bundles/css.css b/EDA Viewer/wwwroot/css/bundles/css.css new file mode 100644 index 0000000..2fd73fd --- /dev/null +++ b/EDA Viewer/wwwroot/css/bundles/css.css @@ -0,0 +1 @@ +html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"*"}.glyphicon-plus:before{content:"+"}.glyphicon-eur:before,.glyphicon-euro:before{content:"€"}.glyphicon-minus:before{content:"−"}.glyphicon-cloud:before{content:"☁"}.glyphicon-envelope:before{content:"✉"}.glyphicon-pencil:before{content:"✏"}.glyphicon-glass:before{content:""}.glyphicon-music:before{content:""}.glyphicon-search:before{content:""}.glyphicon-heart:before{content:""}.glyphicon-star:before{content:""}.glyphicon-star-empty:before{content:""}.glyphicon-user:before{content:""}.glyphicon-film:before{content:""}.glyphicon-th-large:before{content:""}.glyphicon-th:before{content:""}.glyphicon-th-list:before{content:""}.glyphicon-ok:before{content:""}.glyphicon-remove:before{content:""}.glyphicon-zoom-in:before{content:""}.glyphicon-zoom-out:before{content:""}.glyphicon-off:before{content:""}.glyphicon-signal:before{content:""}.glyphicon-cog:before{content:""}.glyphicon-trash:before{content:""}.glyphicon-home:before{content:""}.glyphicon-file:before{content:""}.glyphicon-time:before{content:""}.glyphicon-road:before{content:""}.glyphicon-download-alt:before{content:""}.glyphicon-download:before{content:""}.glyphicon-upload:before{content:""}.glyphicon-inbox:before{content:""}.glyphicon-play-circle:before{content:""}.glyphicon-repeat:before{content:""}.glyphicon-refresh:before{content:""}.glyphicon-list-alt:before{content:""}.glyphicon-lock:before{content:""}.glyphicon-flag:before{content:""}.glyphicon-headphones:before{content:""}.glyphicon-volume-off:before{content:""}.glyphicon-volume-down:before{content:""}.glyphicon-volume-up:before{content:""}.glyphicon-qrcode:before{content:""}.glyphicon-barcode:before{content:""}.glyphicon-tag:before{content:""}.glyphicon-tags:before{content:""}.glyphicon-book:before{content:""}.glyphicon-bookmark:before{content:""}.glyphicon-print:before{content:""}.glyphicon-camera:before{content:""}.glyphicon-font:before{content:""}.glyphicon-bold:before{content:""}.glyphicon-italic:before{content:""}.glyphicon-text-height:before{content:""}.glyphicon-text-width:before{content:""}.glyphicon-align-left:before{content:""}.glyphicon-align-center:before{content:""}.glyphicon-align-right:before{content:""}.glyphicon-align-justify:before{content:""}.glyphicon-list:before{content:""}.glyphicon-indent-left:before{content:""}.glyphicon-indent-right:before{content:""}.glyphicon-facetime-video:before{content:""}.glyphicon-picture:before{content:""}.glyphicon-map-marker:before{content:""}.glyphicon-adjust:before{content:""}.glyphicon-tint:before{content:""}.glyphicon-edit:before{content:""}.glyphicon-share:before{content:""}.glyphicon-check:before{content:""}.glyphicon-move:before{content:""}.glyphicon-step-backward:before{content:""}.glyphicon-fast-backward:before{content:""}.glyphicon-backward:before{content:""}.glyphicon-play:before{content:""}.glyphicon-pause:before{content:""}.glyphicon-stop:before{content:""}.glyphicon-forward:before{content:""}.glyphicon-fast-forward:before{content:""}.glyphicon-step-forward:before{content:""}.glyphicon-eject:before{content:""}.glyphicon-chevron-left:before{content:""}.glyphicon-chevron-right:before{content:""}.glyphicon-plus-sign:before{content:""}.glyphicon-minus-sign:before{content:""}.glyphicon-remove-sign:before{content:""}.glyphicon-ok-sign:before{content:""}.glyphicon-question-sign:before{content:""}.glyphicon-info-sign:before{content:""}.glyphicon-screenshot:before{content:""}.glyphicon-remove-circle:before{content:""}.glyphicon-ok-circle:before{content:""}.glyphicon-ban-circle:before{content:""}.glyphicon-arrow-left:before{content:""}.glyphicon-arrow-right:before{content:""}.glyphicon-arrow-up:before{content:""}.glyphicon-arrow-down:before{content:""}.glyphicon-share-alt:before{content:""}.glyphicon-resize-full:before{content:""}.glyphicon-resize-small:before{content:""}.glyphicon-exclamation-sign:before{content:""}.glyphicon-gift:before{content:""}.glyphicon-leaf:before{content:""}.glyphicon-fire:before{content:""}.glyphicon-eye-open:before{content:""}.glyphicon-eye-close:before{content:""}.glyphicon-warning-sign:before{content:""}.glyphicon-plane:before{content:""}.glyphicon-calendar:before{content:""}.glyphicon-random:before{content:""}.glyphicon-comment:before{content:""}.glyphicon-magnet:before{content:""}.glyphicon-chevron-up:before{content:""}.glyphicon-chevron-down:before{content:""}.glyphicon-retweet:before{content:""}.glyphicon-shopping-cart:before{content:""}.glyphicon-folder-close:before{content:""}.glyphicon-folder-open:before{content:""}.glyphicon-resize-vertical:before{content:""}.glyphicon-resize-horizontal:before{content:""}.glyphicon-hdd:before{content:""}.glyphicon-bullhorn:before{content:""}.glyphicon-bell:before{content:""}.glyphicon-certificate:before{content:""}.glyphicon-thumbs-up:before{content:""}.glyphicon-thumbs-down:before{content:""}.glyphicon-hand-right:before{content:""}.glyphicon-hand-left:before{content:""}.glyphicon-hand-up:before{content:""}.glyphicon-hand-down:before{content:""}.glyphicon-circle-arrow-right:before{content:""}.glyphicon-circle-arrow-left:before{content:""}.glyphicon-circle-arrow-up:before{content:""}.glyphicon-circle-arrow-down:before{content:""}.glyphicon-globe:before{content:""}.glyphicon-wrench:before{content:""}.glyphicon-tasks:before{content:""}.glyphicon-filter:before{content:""}.glyphicon-briefcase:before{content:""}.glyphicon-fullscreen:before{content:""}.glyphicon-dashboard:before{content:""}.glyphicon-paperclip:before{content:""}.glyphicon-heart-empty:before{content:""}.glyphicon-link:before{content:""}.glyphicon-phone:before{content:""}.glyphicon-pushpin:before{content:""}.glyphicon-usd:before{content:""}.glyphicon-gbp:before{content:""}.glyphicon-sort:before{content:""}.glyphicon-sort-by-alphabet:before{content:""}.glyphicon-sort-by-alphabet-alt:before{content:""}.glyphicon-sort-by-order:before{content:""}.glyphicon-sort-by-order-alt:before{content:""}.glyphicon-sort-by-attributes:before{content:""}.glyphicon-sort-by-attributes-alt:before{content:""}.glyphicon-unchecked:before{content:""}.glyphicon-expand:before{content:""}.glyphicon-collapse-down:before{content:""}.glyphicon-collapse-up:before{content:""}.glyphicon-log-in:before{content:""}.glyphicon-flash:before{content:""}.glyphicon-log-out:before{content:""}.glyphicon-new-window:before{content:""}.glyphicon-record:before{content:""}.glyphicon-save:before{content:""}.glyphicon-open:before{content:""}.glyphicon-saved:before{content:""}.glyphicon-import:before{content:""}.glyphicon-export:before{content:""}.glyphicon-send:before{content:""}.glyphicon-floppy-disk:before{content:""}.glyphicon-floppy-saved:before{content:""}.glyphicon-floppy-remove:before{content:""}.glyphicon-floppy-save:before{content:""}.glyphicon-floppy-open:before{content:""}.glyphicon-credit-card:before{content:""}.glyphicon-transfer:before{content:""}.glyphicon-cutlery:before{content:""}.glyphicon-header:before{content:""}.glyphicon-compressed:before{content:""}.glyphicon-earphone:before{content:""}.glyphicon-phone-alt:before{content:""}.glyphicon-tower:before{content:""}.glyphicon-stats:before{content:""}.glyphicon-sd-video:before{content:""}.glyphicon-hd-video:before{content:""}.glyphicon-subtitles:before{content:""}.glyphicon-sound-stereo:before{content:""}.glyphicon-sound-dolby:before{content:""}.glyphicon-sound-5-1:before{content:""}.glyphicon-sound-6-1:before{content:""}.glyphicon-sound-7-1:before{content:""}.glyphicon-copyright-mark:before{content:""}.glyphicon-registration-mark:before{content:""}.glyphicon-cloud-download:before{content:""}.glyphicon-cloud-upload:before{content:""}.glyphicon-tree-conifer:before{content:""}.glyphicon-tree-deciduous:before{content:""}.glyphicon-cd:before{content:""}.glyphicon-save-file:before{content:""}.glyphicon-open-file:before{content:""}.glyphicon-level-up:before{content:""}.glyphicon-copy:before{content:""}.glyphicon-paste:before{content:""}.glyphicon-alert:before{content:""}.glyphicon-equalizer:before{content:""}.glyphicon-king:before{content:""}.glyphicon-queen:before{content:""}.glyphicon-pawn:before{content:""}.glyphicon-bishop:before{content:""}.glyphicon-knight:before{content:""}.glyphicon-baby-formula:before{content:""}.glyphicon-tent:before{content:"⛺"}.glyphicon-blackboard:before{content:""}.glyphicon-bed:before{content:""}.glyphicon-apple:before{content:""}.glyphicon-erase:before{content:""}.glyphicon-hourglass:before{content:"⌛"}.glyphicon-lamp:before{content:""}.glyphicon-duplicate:before{content:""}.glyphicon-piggy-bank:before{content:""}.glyphicon-scissors:before{content:""}.glyphicon-bitcoin:before{content:""}.glyphicon-btc:before{content:""}.glyphicon-xbt:before{content:""}.glyphicon-yen:before{content:"¥"}.glyphicon-jpy:before{content:"¥"}.glyphicon-ruble:before{content:"₽"}.glyphicon-rub:before{content:"₽"}.glyphicon-scale:before{content:""}.glyphicon-ice-lolly:before{content:""}.glyphicon-ice-lolly-tasted:before{content:""}.glyphicon-education:before{content:""}.glyphicon-option-horizontal:before{content:""}.glyphicon-option-vertical:before{content:""}.glyphicon-menu-hamburger:before{content:""}.glyphicon-modal-window:before{content:""}.glyphicon-oil:before{content:""}.glyphicon-grain:before{content:""}.glyphicon-sunglasses:before{content:""}.glyphicon-text-size:before{content:""}.glyphicon-text-color:before{content:""}.glyphicon-text-background:before{content:""}.glyphicon-object-align-top:before{content:""}.glyphicon-object-align-bottom:before{content:""}.glyphicon-object-align-horizontal:before{content:""}.glyphicon-object-align-left:before{content:""}.glyphicon-object-align-vertical:before{content:""}.glyphicon-object-align-right:before{content:""}.glyphicon-triangle-right:before{content:""}.glyphicon-triangle-left:before{content:""}.glyphicon-triangle-bottom:before{content:""}.glyphicon-triangle-top:before{content:""}.glyphicon-console:before{content:""}.glyphicon-superscript:before{content:""}.glyphicon-subscript:before{content:""}.glyphicon-menu-left:before{content:""}.glyphicon-menu-right:before{content:""}.glyphicon-menu-down:before{content:""}.glyphicon-menu-up:before{content:""}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media(min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media(min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'— '}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:' —'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media(min-width:768px){.container{width:750px}}@media(min-width:992px){.container{width:970px}}@media(min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media(min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media(min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media(min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px\9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=time].form-control,input[type=datetime-local].form-control,input[type=month].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:4px\9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media(min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media(min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media(min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}}@media(min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid\9;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px dashed;border-bottom:4px solid\9}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media(min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media(min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media(min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media(min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media(min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media(min-width:768px){.navbar{border-radius:4px}}@media(min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media(min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media(max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media(min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media(min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media(min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media(min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media(min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media(max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media(min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media(min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media(max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media(min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media(min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media(min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media(max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media(max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/ "}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{padding-right:15px;padding-left:15px;border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media(min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media(min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;filter:alpha(opacity=0);opacity:0;line-break:auto}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);background-color:rgba(0,0,0,0);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000',endColorstr='#00000000',GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000',endColorstr='#80000000',GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'‹'}.carousel-control .icon-next:before{content:'›'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000\9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-10px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-10px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media(max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media(max-width:767px){.visible-xs-block{display:block!important}}@media(max-width:767px){.visible-xs-inline{display:inline!important}}@media(max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media(min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media(min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media(min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media(min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media(min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media(min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media(min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media(min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media(min-width:1200px){.visible-lg-block{display:block!important}}@media(min-width:1200px){.visible-lg-inline{display:inline!important}}@media(min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media(max-width:767px){.hidden-xs{display:none!important}}@media(min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media(min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media(min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}.dl-horizontal dt{white-space:normal}input,select,textarea{max-width:280px}th,td{padding:10px}ins{background-color:#cfc;text-decoration:inherit}del{color:#999;background-color:#fec8c8}.mod{background-color:#ffe1ac}tr.mod{background-color:#faf3e6}tr.head{background-color:#b8b6b4} \ No newline at end of file diff --git a/EDA Viewer/wwwroot/css/site.css b/EDA Viewer/wwwroot/css/site.css new file mode 100644 index 0000000..e679a8e --- /dev/null +++ b/EDA Viewer/wwwroot/css/site.css @@ -0,0 +1,71 @@ +/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification +for details on configuring this project to bundle and minify static web assets. */ + +a.navbar-brand { + white-space: normal; + text-align: center; + word-break: break-all; +} + +/* Provide sufficient contrast against white background */ +a { + color: #0366d6; +} + +.btn-primary { + color: #fff; + background-color: #1b6ec2; + border-color: #1861ac; +} + +.nav-pills .nav-link.active, .nav-pills .show > .nav-link { + color: #fff; + background-color: #1b6ec2; + border-color: #1861ac; +} + +/* Sticky footer styles +-------------------------------------------------- */ +html { + font-size: 14px; +} +@media (min-width: 768px) { + html { + font-size: 16px; + } +} + +.border-top { + border-top: 1px solid #e5e5e5; +} +.border-bottom { + border-bottom: 1px solid #e5e5e5; +} + +.box-shadow { + box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05); +} + +button.accept-policy { + font-size: 1rem; + line-height: inherit; +} + +/* Sticky footer styles +-------------------------------------------------- */ +html { + position: relative; + min-height: 100%; +} + +body { + /* Margin bottom by footer height */ + margin-bottom: 60px; +} +.footer { + position: absolute; + bottom: 0; + width: 100%; + white-space: nowrap; + line-height: 60px; /* Vertically center the text there */ +} diff --git a/EDA Viewer/wwwroot/favicon.ico b/EDA Viewer/wwwroot/favicon.ico new file mode 100644 index 0000000..63e859b Binary files /dev/null and b/EDA Viewer/wwwroot/favicon.ico differ diff --git a/EDA Viewer/wwwroot/images/OnePixel.gif b/EDA Viewer/wwwroot/images/OnePixel.gif new file mode 100644 index 0000000..90fc402 Binary files /dev/null and b/EDA Viewer/wwwroot/images/OnePixel.gif differ diff --git a/EDA Viewer/wwwroot/js/bundles/bootstrap.js b/EDA Viewer/wwwroot/js/bundles/bootstrap.js new file mode 100644 index 0000000..7133442 --- /dev/null +++ b/EDA Viewer/wwwroot/js/bundles/bootstrap.js @@ -0,0 +1 @@ +if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4");}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(void 0!==i.style[t])return{end:n[t]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t();n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));"string"==typeof i&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.7";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,""));r=n("#"===u?[]:u);i&&i.preventDefault();r.length||(r=f.closest(".alert"));r.trigger(i=n.Event("close.bs.alert"));i.isDefaultPrevented()||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f));"toggle"==i?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.7";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var i="disabled",r=this.$element,f=r.is("input")?"val":"html",u=r.data();t+="Text";null==u.resetText&&r.data("resetText",r[f]());setTimeout(n.proxy(function(){r[f](null==u[t]?this.options[t]:u[t]);"loadingText"==t?(this.isLoading=!0,r.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(i).removeAttr(i).prop(i,!1))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target).closest(".btn");i.call(r,"toggle");n(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.7";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f="prev"==n&&0===i||"next"==n&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r="prev"==n?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1||n<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f="next"==i?"left":"right",a=this,o,s,h,c;return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),(this.$element.trigger(s),!s.isDefaultPrevented())?((this.sliding=!0,l&&this.pause(),this.$indicators.length)&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this):void 0)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i);!r&&f.toggle&&/show|hide/.test(i)&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.7";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!(r&&r.length&&(f=r.data("bs.collapse"),f&&f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented()))){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented()))return i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},n.support.transition?void this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION):u.call(this)};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":u.data();i.call(f,o)})}(jQuery);+function(n){"use strict";function r(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function u(t){t&&3===t.which||(n(o).remove(),n(i).each(function(){var u=n(this),i=r(u),f={relatedTarget:this};i.hasClass("open")&&(t&&"click"==t.type&&/input|textarea/i.test(t.target.tagName)&&n.contains(i[0],t.target)||(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented()||(u.attr("aria-expanded","false"),i.removeClass("open").trigger(n.Event("hidden.bs.dropdown",f)))))}))}function e(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));"string"==typeof i&&u[i].call(r)})}var o=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.7";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=r(f),o=i.hasClass("open"),u(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",u),e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger(n.Event("shown.bs.dropdown",e))}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,u;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=r(e),s=o.hasClass("open"),!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(i).trigger("focus"),e.trigger("click");h=" li:not(.disabled):visible a";f=o.find(".dropdown-menu"+h);f.length&&(u=f.index(t.target),38==t.which&&u>0&&u--,40==t.which&&udocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){var n=window.innerWidth,t;n||(t=document.documentElement.getBoundingClientRect(),n=t.right-Math.abs(t.left));this.bodyIsOverflowing=document.body.clientWidth
<\/div>
<\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;if(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(n.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focusin",s="hover"==u?"mouseleave":"focusout",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState["focusin"==t.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())};t.prototype.isInStateTrue=function(){for(var n in this.inState)if(this.inState[n])return!0;return!1};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState["focusout"==t.type?"focus":"hover"]=!1),!i.isInStateTrue())return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,e,w,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;y&&(p=i,e=this.getPosition(this.$viewport),i="bottom"==i&&f.bottom+s>e.bottom?"top":"top"==i&&f.top-se.width?"left":"left"==i&&f.left-ou.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,hu.right&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n};t.prototype.tip=function(){if(!this.$tip&&(this.$tip=n(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type);n.$tip&&n.$tip.detach();n.$tip=null;n.$arrow=null;n.$viewport=null;n.$element=null})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f="object"==typeof i&&i;!r&&/destroy|hide/.test(i)||(r||u.data("bs.popover",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.7";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'