aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/TFS/SystemInformationTemplate.cshtml
blob: 54db28e3284052d3119955e558037ab2216c5bdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
@{
    Tango.MachineStudio.UI.TFS.SystemInformationModel vm = Model as Tango.MachineStudio.UI.TFS.SystemInformationModel;
}

<div>
    <div style="font-size:20pt;text-decoration:underline">System Information</div>
    <table style="margin-top:10px">
        <tbody>

            <tr>
                <td><b>Application Version:</b></td>
                <td>@vm.ApplicationVersion</td>
            </tr>

            <tr>
                <td><b>Embedded Version:</b></td>
                <td>@vm.EmbeddedVersion</td>
            </tr>

            <tr>
                <td><b>Host Name:</b></td>
                <td>@vm.HostName</td>
            </tr>

            <tr>
                <td><b>User:</b></td>
                <td>@vm.UserName</td>
            </tr>

        </tbody>
    </table>

    <div style="font-size:20pt;text-decoration:underline;margin-top:10px">Machine</div>

    @if (vm.Machine != null)
    {
        <table style="margin-top:10px">
            <tbody>

                <tr>
                    <td><b>Organization:</b></td>
                    <td>@vm.Machine.Organization.Name</td>
                </tr>

                <tr>
                    <td><b>Name:</b></td>
                    <td>@vm.Machine.Name</td>
                </tr>

                <tr>
                    <td><b>S/N:</b></td>
                    <td>@vm.Machine.SerialNumber</td>
                </tr>

                <tr>
                    <td><b>Version:</b></td>
                    <td>@vm.Machine.MachineVersion.Version</td>
                </tr>

            </tbody>
        </table>

        <div style="font-size:20pt;text-decoration:underline;margin-top:10px">Machine Configuration</div>
        <div style="white-space:pre;margin-top:10px;font-size:8pt">@vm.ConfigurationString</div>

        <div style="font-size:20pt;text-decoration:underline;margin-top:10px">Hardware Configuration</div>
        if (vm.LoadedHardwareConfigurationString != null)
        {
            <div style="white-space:pre;margin-top:10px;font-size:8pt">@vm.LoadedHardwareConfigurationString</div>
        }
        else
        {
            <div style="color:Red;margin-top:10px">NOT SET</div>
        }

        <div style="font-size:20pt;text-decoration:underline;margin-top:10px">Process Parameters</div>

        if (vm.LoadedProcessParametersString != null)
        {
            <div style="white-space:pre;margin-top:10px;font-size:8pt">@vm.LoadedProcessParametersString</div>
        }
        else
        {
            <div style="color:Red;margin-top:10px">NOT SET</div>
        }
    }
    else
    {
        <div style="color:Red;margin-top:10px">NOT CONNECTED</div>
    }
</div>