將寫死改成活讀
This commit is contained in:
27
CMMModel/CMMModel.csproj
Normal file
27
CMMModel/CMMModel.csproj
Normal file
@@ -0,0 +1,27 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0-windows</TargetFramework>
|
||||
<AssemblyName>CMM.Model</AssemblyName>
|
||||
<RootNamespace>CMM.Model</RootNamespace>
|
||||
<Product>ControlMyMonitorManagement</Product>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<Company>Dang</Company>
|
||||
<Copyright>Copyright © DangWang $([System.DateTime]::Now.ToString(yyyy))</Copyright>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)'=='Release'">
|
||||
<Major>1</Major>
|
||||
<Minor>0</Minor>
|
||||
<ProjectStartedDate>$([System.DateTime]::op_Subtraction($([System.DateTime]::get_Now().get_Date()),$([System.DateTime]::new(2017,9,17))).get_TotalDays())</ProjectStartedDate>
|
||||
<DaysSinceProjectStarted>$([System.DateTime]::Now.ToString(Hmm))</DaysSinceProjectStarted>
|
||||
<DateTimeSuffix>$([System.DateTime]::Now.ToString(yyyyMMdd))</DateTimeSuffix>
|
||||
<VersionSuffix>$(Major).$(Minor).$(ProjectStartedDate).$(DaysSinceProjectStarted)</VersionSuffix>
|
||||
<AssemblyVersion Condition=" '$(DateTimeSuffix)' == '' ">0.0.0.1</AssemblyVersion>
|
||||
<AssemblyVersion Condition=" '$(DateTimeSuffix)' != '' ">$(VersionSuffix)</AssemblyVersion>
|
||||
<Version Condition=" '$(DateTimeSuffix)' == '' ">0.0.0.1</Version>
|
||||
<Version Condition=" '$(DateTimeSuffix)' != '' ">$(DateTimeSuffix)</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
17
CMMModel/Model/SMonitorModel.cs
Normal file
17
CMMModel/Model/SMonitorModel.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
public class SMonitorModel
|
||||
{
|
||||
[JsonPropertyName("VCP Code")]
|
||||
public string? VCPCode { get; set; }
|
||||
[JsonPropertyName("VCP Code Name")]
|
||||
public string? VCPCodeName { get; set; }
|
||||
[JsonPropertyName("Read-Write")]
|
||||
public string? ReadWrite { get; set; }
|
||||
[JsonPropertyName("Current Value")]
|
||||
public string? CurrentValue { get; set; }
|
||||
[JsonPropertyName("Maximum Value")]
|
||||
public string? MaximumValue { get; set; }
|
||||
[JsonPropertyName("Possible Values")]
|
||||
public string? PossibleValues { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user