Merge branch 'release/AddAgbImport01'
This commit is contained in:
+330
@@ -0,0 +1,330 @@
|
||||
# ---> VisualStudio
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
|
||||
# User-specific files
|
||||
*.suo
|
||||
*.user
|
||||
*.userosscache
|
||||
*.sln.docstates
|
||||
|
||||
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||
*.userprefs
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Dd]ebugPublic/
|
||||
[Rr]elease/
|
||||
[Rr]eleases/
|
||||
x64/
|
||||
x86/
|
||||
build/
|
||||
bld/
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
|
||||
# Visual Studio 2015 cache/options directory
|
||||
.vs/
|
||||
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||
#wwwroot/
|
||||
|
||||
# MSTest test Results
|
||||
[Tt]est[Rr]esult*/
|
||||
[Bb]uild[Ll]og.*
|
||||
|
||||
# NUNIT
|
||||
*.VisualState.xml
|
||||
TestResult.xml
|
||||
|
||||
# Build Results of an ATL Project
|
||||
[Dd]ebugPS/
|
||||
[Rr]eleasePS/
|
||||
dlldata.c
|
||||
|
||||
# DNX
|
||||
project.lock.json
|
||||
artifacts/
|
||||
|
||||
*_i.c
|
||||
*_p.c
|
||||
*_i.h
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.tmp_proj
|
||||
*.log
|
||||
*.vspscc
|
||||
*.vssscc
|
||||
.builds
|
||||
*.pidb
|
||||
*.svclog
|
||||
*.scc
|
||||
|
||||
# Chutzpah Test files
|
||||
_Chutzpah*
|
||||
|
||||
# Visual C++ cache files
|
||||
ipch/
|
||||
*.aps
|
||||
*.ncb
|
||||
*.opensdf
|
||||
*.sdf
|
||||
*.cachefile
|
||||
|
||||
# Visual Studio profiler
|
||||
*.psess
|
||||
*.vsp
|
||||
*.vspx
|
||||
*.sap
|
||||
|
||||
# TFS 2012 Local Workspace
|
||||
$tf/
|
||||
|
||||
# Guidance Automation Toolkit
|
||||
*.gpState
|
||||
|
||||
# ReSharper is a .NET coding add-in
|
||||
_ReSharper*/
|
||||
*.[Rr]e[Ss]harper
|
||||
*.DotSettings.user
|
||||
|
||||
# JustCode is a .NET coding add-in
|
||||
.JustCode
|
||||
|
||||
# TeamCity is a build add-in
|
||||
_TeamCity*
|
||||
|
||||
# DotCover is a Code Coverage Tool
|
||||
*.dotCover
|
||||
|
||||
# NCrunch
|
||||
_NCrunch_*
|
||||
.*crunch*.local.xml
|
||||
nCrunchTemp_*
|
||||
|
||||
# MightyMoose
|
||||
*.mm.*
|
||||
AutoTest.Net/
|
||||
|
||||
# Web workbench (sass)
|
||||
.sass-cache/
|
||||
|
||||
# Installshield output folder
|
||||
[Ee]xpress/
|
||||
|
||||
# DocProject is a documentation generator add-in
|
||||
DocProject/buildhelp/
|
||||
DocProject/Help/*.HxT
|
||||
DocProject/Help/*.HxC
|
||||
DocProject/Help/*.hhc
|
||||
DocProject/Help/*.hhk
|
||||
DocProject/Help/*.hhp
|
||||
DocProject/Help/Html2
|
||||
DocProject/Help/html
|
||||
|
||||
# Click-Once directory
|
||||
publish/
|
||||
|
||||
# Publish Web Output
|
||||
*.[Pp]ublish.xml
|
||||
*.azurePubxml
|
||||
# TODO: Comment the next line if you want to checkin your web deploy settings
|
||||
# but database connection strings (with potential passwords) will be unencrypted
|
||||
*.pubxml
|
||||
*.publishproj
|
||||
|
||||
# NuGet Packages
|
||||
*.nupkg
|
||||
# The packages folder can be ignored because of Package Restore
|
||||
**/packages/*
|
||||
# except build/, which is used as an MSBuild target.
|
||||
!**/packages/build/
|
||||
# Uncomment if necessary however generally it will be regenerated when needed
|
||||
#!**/packages/repositories.config
|
||||
|
||||
# Windows Azure Build Output
|
||||
csx/
|
||||
*.build.csdef
|
||||
|
||||
# Windows Store app package directory
|
||||
AppPackages/
|
||||
|
||||
# Visual Studio cache files
|
||||
# files ending in .cache can be ignored
|
||||
*.[Cc]ache
|
||||
# but keep track of directories ending in .cache
|
||||
!*.[Cc]ache/
|
||||
|
||||
# Others
|
||||
ClientBin/
|
||||
[Ss]tyle[Cc]op.*
|
||||
~$*
|
||||
*~
|
||||
*.dbmdl
|
||||
*.dbproj.schemaview
|
||||
*.pfx
|
||||
*.publishsettings
|
||||
node_modules/
|
||||
orleans.codegen.cs
|
||||
|
||||
# RIA/Silverlight projects
|
||||
Generated_Code/
|
||||
|
||||
# Backup & report files from converting an old project file
|
||||
# to a newer Visual Studio version. Backup files are not needed,
|
||||
# because we have git ;-)
|
||||
_UpgradeReport_Files/
|
||||
Backup*/
|
||||
UpgradeLog*.XML
|
||||
UpgradeLog*.htm
|
||||
|
||||
# SQL Server files
|
||||
*.mdf
|
||||
*.ldf
|
||||
|
||||
# Business Intelligence projects
|
||||
*.rdl.data
|
||||
*.bim.layout
|
||||
*.bim_*.settings
|
||||
|
||||
# Microsoft Fakes
|
||||
FakesAssemblies/
|
||||
|
||||
# Node.js Tools for Visual Studio
|
||||
.ntvs_analysis.dat
|
||||
|
||||
# Visual Studio 6 build log
|
||||
*.plg
|
||||
|
||||
# Visual Studio 6 workspace options file
|
||||
*.opt
|
||||
|
||||
# Visual Studio LightSwitch build output
|
||||
**/*.HTMLClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/GeneratedArtifacts
|
||||
**/*.DesktopClient/ModelManifest.xml
|
||||
**/*.Server/GeneratedArtifacts
|
||||
**/*.Server/ModelManifest.xml
|
||||
_Pvt_Extensions
|
||||
|
||||
# ---> C Sharp
|
||||
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
|
||||
# mstest test results
|
||||
TestResults
|
||||
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
|
||||
# User-specific files
|
||||
*.suo
|
||||
*.user
|
||||
*.sln.docstates
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Rr]elease/
|
||||
x64/
|
||||
*_i.c
|
||||
*_p.c
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.log
|
||||
*.vspscc
|
||||
*.vssscc
|
||||
.builds
|
||||
|
||||
# Visual C++ cache files
|
||||
ipch/
|
||||
*.aps
|
||||
*.ncb
|
||||
*.opensdf
|
||||
*.sdf
|
||||
|
||||
# Visual Studio profiler
|
||||
*.psess
|
||||
*.vsp
|
||||
*.vspx
|
||||
|
||||
# Guidance Automation Toolkit
|
||||
*.gpState
|
||||
|
||||
# ReSharper is a .NET coding add-in
|
||||
_ReSharper*
|
||||
|
||||
# NCrunch
|
||||
*.ncrunch*
|
||||
.*crunch*.local.xml
|
||||
|
||||
# Installshield output folder
|
||||
[Ee]xpress
|
||||
|
||||
# DocProject is a documentation generator add-in
|
||||
DocProject/buildhelp/
|
||||
DocProject/Help/*.HxT
|
||||
DocProject/Help/*.HxC
|
||||
DocProject/Help/*.hhc
|
||||
DocProject/Help/*.hhk
|
||||
DocProject/Help/*.hhp
|
||||
DocProject/Help/Html2
|
||||
DocProject/Help/html
|
||||
|
||||
# Click-Once directory
|
||||
publish
|
||||
|
||||
# Publish Web Output
|
||||
*.Publish.xml
|
||||
|
||||
# NuGet Packages Directory
|
||||
packages
|
||||
|
||||
# Windows Azure Build Output
|
||||
csx
|
||||
*.build.csdef
|
||||
|
||||
# Windows Store app package directory
|
||||
AppPackages/
|
||||
|
||||
# Others
|
||||
[Bb]in
|
||||
[Oo]bj
|
||||
sql
|
||||
TestResults
|
||||
[Tt]est[Rr]esult*
|
||||
*.Cache
|
||||
ClientBin
|
||||
[Ss]tyle[Cc]op.*
|
||||
~$*
|
||||
*.dbmdl
|
||||
Generated_Code #added for RIA/Silverlight projects
|
||||
|
||||
# Backup & report files from converting an old project file to a newer
|
||||
# Visual Studio version. Backup files are not needed, because we have git ;-)
|
||||
_UpgradeReport_Files/
|
||||
Backup*/
|
||||
UpgradeLog*.XML
|
||||
|
||||
.ionide/symbolCache.db
|
||||
@@ -0,0 +1 @@
|
||||
OK
|
||||
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{FFFAD4CF-0DEC-4E9B-B7FD-7316AC12A809}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>FraMan.Core</RootNamespace>
|
||||
<AssemblyName>FraMan.Core</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="HwInOut\AGB\DataManager.cs" />
|
||||
<Compile Include="HwInOut\AGB\Opzioni.cs" />
|
||||
<Compile Include="HwInOut\AGB\Parametri.cs" />
|
||||
<Compile Include="HwInOut\AGB\ParametriOpzioni.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="DTO\" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace FraMan.Core.HwInOut.AGB
|
||||
{
|
||||
public class DataManager
|
||||
{
|
||||
|
||||
public static bool ReadParamOpt(string filePath, ref ParametriOpzioni decoded)
|
||||
{
|
||||
bool done = false;
|
||||
if (File.Exists(filePath))
|
||||
{
|
||||
string rawXml = File.ReadAllText(filePath);
|
||||
// se ho dati procedo
|
||||
if (!string.IsNullOrEmpty(rawXml))
|
||||
{
|
||||
// deserializzo
|
||||
XmlSerializer serializer = new XmlSerializer(typeof(ParametriOpzioni));
|
||||
using (StringReader reader = new StringReader(rawXml))
|
||||
{
|
||||
decoded = (ParametriOpzioni)serializer.Deserialize(reader);
|
||||
done = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return done;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace FraMan.Core.HwInOut.AGB
|
||||
{
|
||||
|
||||
[XmlRoot(ElementName = "Opzioni")]
|
||||
public class Opzioni
|
||||
{
|
||||
|
||||
[XmlElement(ElementName = "NomeParametro")]
|
||||
public string NomeParametro { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "DescrizioneOpzione")]
|
||||
public string DescrizioneOpzione { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Valore")]
|
||||
public string Valore { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace FraMan.Core.HwInOut.AGB
|
||||
{
|
||||
|
||||
[XmlRoot(ElementName = "Parametri")]
|
||||
public class Parametri
|
||||
{
|
||||
|
||||
[XmlElement(ElementName = "NomeParametro")]
|
||||
public string NomeParametro { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "DescrizioneParametro")]
|
||||
public string DescrizioneParametro { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "ValoreCorrente")]
|
||||
public string ValoreCorrente { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Tipo")]
|
||||
public string Tipo { get; set; }
|
||||
|
||||
[XmlElement(ElementName = "Visible")]
|
||||
public bool Visible { get; set; }
|
||||
|
||||
//// Problemi di formattazione nel file con maiuscole/minuscole --> forzo decodifica sotto
|
||||
//[XmlElement(ElementName = "RicalcolaSeModificato")]
|
||||
//public bool RicalcolaSeModificato { get; set; }
|
||||
|
||||
|
||||
[XmlIgnore]
|
||||
public bool RicalcolaSeModificato { get; set; }
|
||||
|
||||
[XmlElement("RicalcolaSeModificato")]
|
||||
public string RicalcolaSeModificatoSerialize
|
||||
{
|
||||
get { return this.RicalcolaSeModificato ? "True" : "False"; }
|
||||
set
|
||||
{
|
||||
if (value.Equals("True", StringComparison.InvariantCultureIgnoreCase))
|
||||
this.RicalcolaSeModificato = true;
|
||||
else if (value.Equals("False", StringComparison.InvariantCultureIgnoreCase))
|
||||
this.RicalcolaSeModificato = false;
|
||||
else
|
||||
this.RicalcolaSeModificato = XmlConvert.ToBoolean(value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[XmlElement(ElementName = "Opzioni")]
|
||||
public List<Opzioni> Opzioni { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace FraMan.Core.HwInOut.AGB
|
||||
{
|
||||
|
||||
|
||||
[XmlRoot(ElementName = "ParametriOpzioni")]
|
||||
public class ParametriOpzioni
|
||||
{
|
||||
|
||||
[XmlElement(ElementName = "Parametri")]
|
||||
public List<Parametri> Parametri { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("FraMan.Core")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("FraMan.Core")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2024")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("fffad4cf-0dec-4e9b-b7fd-7316ac12a809")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FraMan.DataLayer
|
||||
{
|
||||
public class Class1
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{15CE1125-BACE-45D6-AEC5-CB65C2E5D1B6}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>FraMan.DataLayer</RootNamespace>
|
||||
<AssemblyName>FraMan.DataLayer</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Class1.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\FraMan.Core\FraMan.Core.csproj">
|
||||
<Project>{fffad4cf-0dec-4e9b-b7fd-7316ac12a809}</Project>
|
||||
<Name>FraMan.Core</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -0,0 +1,33 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("FraMan.DataLayer")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("FraMan.DataLayer")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2024")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("15ce1125-bace-45d6-aec5-cb65c2e5d1b6")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
@@ -0,0 +1,175 @@
|
||||
<?xml version="1.0" standalone="yes"?>
|
||||
<ParametriOpzioni>
|
||||
<Parametri>
|
||||
<NomeParametro>Entrata</NomeParametro>
|
||||
<DescrizioneParametro>Entrata cremonese</DescrizioneParametro>
|
||||
<ValoreCorrente>15</ValoreCorrente>
|
||||
<Tipo>List</Tipo>
|
||||
<Visible>true</Visible>
|
||||
<RicalcolaSeModificato>True</RicalcolaSeModificato>
|
||||
<Opzioni>
|
||||
<NomeParametro>Entrata</NomeParametro>
|
||||
<DescrizioneOpzione>7.5 mm</DescrizioneOpzione>
|
||||
<Valore>7.5</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>Entrata</NomeParametro>
|
||||
<DescrizioneOpzione>15 mm</DescrizioneOpzione>
|
||||
<Valore>15</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>Entrata</NomeParametro>
|
||||
<DescrizioneOpzione>25 mm</DescrizioneOpzione>
|
||||
<Valore>25</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>Entrata</NomeParametro>
|
||||
<DescrizioneOpzione>30 mm</DescrizioneOpzione>
|
||||
<Valore>30</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>Entrata</NomeParametro>
|
||||
<DescrizioneOpzione>35 mm</DescrizioneOpzione>
|
||||
<Valore>35</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>Entrata</NomeParametro>
|
||||
<DescrizioneOpzione>40 mm</DescrizioneOpzione>
|
||||
<Valore>40</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>Entrata</NomeParametro>
|
||||
<DescrizioneOpzione>45 mm</DescrizioneOpzione>
|
||||
<Valore>45</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>Entrata</NomeParametro>
|
||||
<DescrizioneOpzione>50 mm</DescrizioneOpzione>
|
||||
<Valore>50</Valore>
|
||||
</Opzioni>
|
||||
</Parametri>
|
||||
<Parametri>
|
||||
<NomeParametro>LavManigliaPassante</NomeParametro>
|
||||
<DescrizioneParametro>Lavorazione maniglia passante</DescrizioneParametro>
|
||||
<ValoreCorrente>false</ValoreCorrente>
|
||||
<Tipo>List</Tipo>
|
||||
<Visible>true</Visible>
|
||||
<RicalcolaSeModificato>False</RicalcolaSeModificato>
|
||||
<Opzioni>
|
||||
<NomeParametro>LavManigliaPassante</NomeParametro>
|
||||
<DescrizioneOpzione>No</DescrizioneOpzione>
|
||||
<Valore>false</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>LavManigliaPassante</NomeParametro>
|
||||
<DescrizioneOpzione>Si</DescrizioneOpzione>
|
||||
<Valore>true</Valore>
|
||||
</Opzioni>
|
||||
</Parametri>
|
||||
<Parametri>
|
||||
<NomeParametro>PosizioneForoCilindro</NomeParametro>
|
||||
<DescrizioneParametro>Posizione foro cilindro</DescrizioneParametro>
|
||||
<ValoreCorrente>sopra</ValoreCorrente>
|
||||
<Tipo>List</Tipo>
|
||||
<Visible>true</Visible>
|
||||
<RicalcolaSeModificato>False</RicalcolaSeModificato>
|
||||
<Opzioni>
|
||||
<NomeParametro>PosizioneForoCilindro</NomeParametro>
|
||||
<DescrizioneOpzione>Cilindro sopra la maniglia</DescrizioneOpzione>
|
||||
<Valore>sopra</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>PosizioneForoCilindro</NomeParametro>
|
||||
<DescrizioneOpzione>Cilindro sotto la maniglia</DescrizioneOpzione>
|
||||
<Valore>sotto</Valore>
|
||||
</Opzioni>
|
||||
</Parametri>
|
||||
<Parametri>
|
||||
<NomeParametro>ModelloCilindro</NomeParametro>
|
||||
<DescrizioneParametro>Modello cilindro</DescrizioneParametro>
|
||||
<ValoreCorrente>c999</ValoreCorrente>
|
||||
<Tipo>List</Tipo>
|
||||
<Visible>true</Visible>
|
||||
<RicalcolaSeModificato>True</RicalcolaSeModificato>
|
||||
<Opzioni>
|
||||
<NomeParametro>ModelloCilindro</NomeParametro>
|
||||
<DescrizioneOpzione>Nessun cilindro</DescrizioneOpzione>
|
||||
<Valore>c999</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>ModelloCilindro</NomeParametro>
|
||||
<DescrizioneOpzione>Mod. 600</DescrizioneOpzione>
|
||||
<Valore>c6</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>ModelloCilindro</NomeParametro>
|
||||
<DescrizioneOpzione>Mod. Scudo 9000</DescrizioneOpzione>
|
||||
<Valore>c9</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>ModelloCilindro</NomeParametro>
|
||||
<DescrizioneOpzione>Mod. Scudo DCK</DescrizioneOpzione>
|
||||
<Valore>c1</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>ModelloCilindro</NomeParametro>
|
||||
<DescrizioneOpzione>Mod. Scudo DCK Frizionato</DescrizioneOpzione>
|
||||
<Valore>c2</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>ModelloCilindro</NomeParametro>
|
||||
<DescrizioneOpzione>Mod. U-Tech PS</DescrizioneOpzione>
|
||||
<Valore>ce</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>ModelloCilindro</NomeParametro>
|
||||
<DescrizioneOpzione>Mod. 5000 PS</DescrizioneOpzione>
|
||||
<Valore>ca</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>ModelloCilindro</NomeParametro>
|
||||
<DescrizioneOpzione>Mod. 5000 PS - Doppia funzione</DescrizioneOpzione>
|
||||
<Valore>cc</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>ModelloCilindro</NomeParametro>
|
||||
<DescrizioneOpzione>Mod. Genio</DescrizioneOpzione>
|
||||
<Valore>cp</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>ModelloCilindro</NomeParametro>
|
||||
<DescrizioneOpzione>Mod. Genio - Doppia funzione</DescrizioneOpzione>
|
||||
<Valore>cr</Valore>
|
||||
</Opzioni>
|
||||
</Parametri>
|
||||
<Parametri>
|
||||
<NomeParametro>LavCilindroPassante</NomeParametro>
|
||||
<DescrizioneParametro>Lavorazione cilindro passante</DescrizioneParametro>
|
||||
<ValoreCorrente>false</ValoreCorrente>
|
||||
<Tipo>List</Tipo>
|
||||
<Visible>true</Visible>
|
||||
<RicalcolaSeModificato>False</RicalcolaSeModificato>
|
||||
<Opzioni>
|
||||
<NomeParametro>LavCilindroPassante</NomeParametro>
|
||||
<DescrizioneOpzione>No</DescrizioneOpzione>
|
||||
<Valore>false</Valore>
|
||||
</Opzioni>
|
||||
<Opzioni>
|
||||
<NomeParametro>LavCilindroPassante</NomeParametro>
|
||||
<DescrizioneOpzione>Si</DescrizioneOpzione>
|
||||
<Valore>true</Valore>
|
||||
</Opzioni>
|
||||
</Parametri>
|
||||
<Parametri>
|
||||
<NomeParametro>HMan</NomeParametro>
|
||||
<DescrizioneParametro>HMan (1050)</DescrizioneParametro>
|
||||
<ValoreCorrente>1050</ValoreCorrente>
|
||||
<Tipo>Text</Tipo>
|
||||
<Visible>false</Visible>
|
||||
<Opzioni>
|
||||
<NomeParametro>HMan</NomeParametro>
|
||||
<DescrizioneOpzione>1050</DescrizioneOpzione>
|
||||
<Valore>1050</Valore>
|
||||
</Opzioni>
|
||||
</Parametri>
|
||||
</ParametriOpzioni>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{A224B6C9-6385-404C-B60F-C97209B65816}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>FraMan.Test</RootNamespace>
|
||||
<AssemblyName>FraMan.Test</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="Data\TestParamOpt.opt">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\FraMan.Core\FraMan.Core.csproj">
|
||||
<Project>{fffad4cf-0dec-4e9b-b7fd-7316ac12a809}</Project>
|
||||
<Name>FraMan.Core</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\FraMan.DataLayer\FraMan.DataLayer.csproj">
|
||||
<Project>{15ce1125-bace-45d6-aec5-cb65c2e5d1b6}</Project>
|
||||
<Name>FraMan.DataLayer</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -0,0 +1,80 @@
|
||||
using FraMan.Core.HwInOut.AGB;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FraMan.Test
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
#region Private Methods
|
||||
|
||||
private static void Main(string[] args)
|
||||
{
|
||||
// effettua chaimata x test lettura parametri
|
||||
string separator = "---------------------------";
|
||||
string defFile = "./Data/TestParamOpt.opt";
|
||||
Console.WriteLine(separator);
|
||||
Console.WriteLine("- Test lettura Parametri opzionali");
|
||||
Console.WriteLine(separator);
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("Premere un tasto per proseguire");
|
||||
Console.ReadLine();
|
||||
Console.WriteLine($"Inserire percorso oppure enter per default ({defFile}):");
|
||||
var fPath = Console.ReadLine();
|
||||
if (string.IsNullOrEmpty(fPath))
|
||||
{
|
||||
fPath = defFile;
|
||||
}
|
||||
var fullPath = Path.GetFullPath(fPath);
|
||||
// preparo output
|
||||
var parOpt = new ParametriOpzioni();
|
||||
bool fatto = DataManager.ReadParamOpt(fullPath, ref parOpt);
|
||||
if (!fatto)
|
||||
{
|
||||
Console.WriteLine("Errore in lettura dati");
|
||||
}
|
||||
else
|
||||
{
|
||||
int numPar = parOpt.Parametri.Count;
|
||||
Console.WriteLine($"Effettuata lettura dati, trovati {numPar} parametri:");
|
||||
Console.WriteLine(separator);
|
||||
Console.WriteLine();
|
||||
int idx = 1;
|
||||
foreach (var item in parOpt.Parametri)
|
||||
{
|
||||
Console.WriteLine(separator);
|
||||
Console.WriteLine($"N. {idx++:000} / {numPar}");
|
||||
Console.WriteLine($"Nome: {item.NomeParametro}");
|
||||
Console.WriteLine($"Descr: {item.DescrizioneParametro}");
|
||||
Console.WriteLine($"Valore: {item.ValoreCorrente}");
|
||||
Console.WriteLine($"Visibile: {item.Visible}");
|
||||
Console.WriteLine($"Tipo: {item.Tipo}");
|
||||
|
||||
// se lista mostro opzioni:
|
||||
if (item.Tipo.ToLower() == "list")
|
||||
{
|
||||
int j = 0;
|
||||
Console.WriteLine($"# Opzioni ammesse: {item.Opzioni.Count}");
|
||||
foreach (var opz in item.Opzioni)
|
||||
{
|
||||
Console.WriteLine($"{j++:00}) {opz.DescrizioneOpzione} --> {opz.Valore}");
|
||||
}
|
||||
}
|
||||
// chiudo
|
||||
Console.WriteLine(separator);
|
||||
Console.WriteLine();
|
||||
}
|
||||
}
|
||||
|
||||
Console.WriteLine("Premere un tasto per chiudere");
|
||||
Console.ReadLine();
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("FraMan.Test")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("FraMan.Test")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2024")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("a224b6c9-6385-404c-b60f-c97209b65816")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.11.35219.272
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FraMan.Core", "FraMan.Core\FraMan.Core.csproj", "{FFFAD4CF-0DEC-4E9B-B7FD-7316AC12A809}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FraMan.DataLayer", "FraMan.DataLayer\FraMan.DataLayer.csproj", "{15CE1125-BACE-45D6-AEC5-CB65C2E5D1B6}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FraMan.Test", "FraMan.Test\FraMan.Test.csproj", "{A224B6C9-6385-404C-B60F-C97209B65816}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{FFFAD4CF-0DEC-4E9B-B7FD-7316AC12A809}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{FFFAD4CF-0DEC-4E9B-B7FD-7316AC12A809}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{FFFAD4CF-0DEC-4E9B-B7FD-7316AC12A809}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{FFFAD4CF-0DEC-4E9B-B7FD-7316AC12A809}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{15CE1125-BACE-45D6-AEC5-CB65C2E5D1B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{15CE1125-BACE-45D6-AEC5-CB65C2E5D1B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{15CE1125-BACE-45D6-AEC5-CB65C2E5D1B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{15CE1125-BACE-45D6-AEC5-CB65C2E5D1B6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{A224B6C9-6385-404C-B60F-C97209B65816}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{A224B6C9-6385-404C-B60F-C97209B65816}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{A224B6C9-6385-404C-B60F-C97209B65816}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{A224B6C9-6385-404C-B60F-C97209B65816}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {B729795A-1940-477F-86B3-B0C7BF008896}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Reference in New Issue
Block a user