* Refactored NC_ERRORS

+ Added client configuration api
* Refactored serverconfig
This commit is contained in:
Lucio Maranta
2018-01-11 15:56:33 +01:00
parent 904db3d09c
commit fec3d00ff9
13 changed files with 70 additions and 51 deletions
+6 -5
View File
@@ -6,10 +6,11 @@ using System.Threading.Tasks;
namespace Step.Model.ConfigModels
{
public class ServerConfigModel
public class NcConfigModel
{
public string Language { get; set; }
public int ServerPort { get; set; }
public bool EnableDirectoryBrowsing { get; set; }
public string NcVendor { get; set; }
public bool showNcHMI { get; set; }
public string NcIpAddress { get; set; }
public ushort NcPort { get; set; }
}
}
}
+5 -5
View File
@@ -6,10 +6,10 @@ using System.Threading.Tasks;
namespace Step.Model.ConfigModels
{
public class NcConfigModel
public class ServerConfigModel
{
public ushort NcVendor { get; set; }
public string NcIpAddress { get; set; }
public ushort NcPort { get; set; }
public string Language { get; set; }
public int ServerPort { get; set; }
public bool EnableDirectoryBrowsing { get; set; }
}
}
}
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Step.Model.DTOModels
{
public class DTOClientConfigurationModel
{
public string NcVendor;
public bool showHMI;
}
}
+3 -2
View File
@@ -57,9 +57,9 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="ConfigModels\NcConfigModel.cs" />
<Compile Include="ConfigModels\AreasConfigModel.cs" />
<Compile Include="ConfigModels\ServerConfigModel.cs" />
<Compile Include="ConfigModels\AreasConfigModel.cs" />
<Compile Include="ConfigModels\NcConfigModel.cs" />
<Compile Include="DatabaseModels\FunctionAccessModel.cs" />
<Compile Include="ConfigModels\MessageModel.cs" />
<Compile Include="DatabaseModels\RoleModel.cs">
@@ -68,6 +68,7 @@
</Compile>
<Compile Include="DTOModels\DTOAlarmsModel.cs" />
<Compile Include="DTOModels\DTOAxesModel.cs" />
<Compile Include="DTOModels\DTOClientConfigurationModel.cs" />
<Compile Include="DTOModels\DTOLanguageModel.cs">
<Generator>DtsGenerator</Generator>
<LastGenOutput>DTOLanguageModel.cs.d.ts</LastGenOutput>