Correction de nommage de données de paramétrage + correction de la fonction d'import
This commit is contained in:
parent
f4aac126eb
commit
794ad8342d
@ -114,17 +114,9 @@
|
|||||||
<Compile Include="InputWindow.xaml.cs">
|
<Compile Include="InputWindow.xaml.cs">
|
||||||
<DependentUpon>InputWindow.xaml</DependentUpon>
|
<DependentUpon>InputWindow.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Migrations\202012051414539_V1.cs" />
|
<Compile Include="Migrations\202012281505590_V1.cs" />
|
||||||
<Compile Include="Migrations\202012051414539_V1.designer.cs">
|
<Compile Include="Migrations\202012281505590_V1.designer.cs">
|
||||||
<DependentUpon>202012051414539_V1.cs</DependentUpon>
|
<DependentUpon>202012281505590_V1.cs</DependentUpon>
|
||||||
</Compile>
|
|
||||||
<Compile Include="Migrations\202012271642572_V2.cs" />
|
|
||||||
<Compile Include="Migrations\202012271642572_V2.designer.cs">
|
|
||||||
<DependentUpon>202012271642572_V2.cs</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Migrations\202012272059415_V3.cs" />
|
|
||||||
<Compile Include="Migrations\202012272059415_V3.designer.cs">
|
|
||||||
<DependentUpon>202012272059415_V3.cs</DependentUpon>
|
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Migrations\Configuration.cs" />
|
<Compile Include="Migrations\Configuration.cs" />
|
||||||
<Compile Include="Model\Citoyen.cs" />
|
<Compile Include="Model\Citoyen.cs" />
|
||||||
@ -191,14 +183,8 @@
|
|||||||
<DependentUpon>Settings.settings</DependentUpon>
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
</Compile>
|
</Compile>
|
||||||
<EmbeddedResource Include="Migrations\202012051414539_V1.resx">
|
<EmbeddedResource Include="Migrations\202012281505590_V1.resx">
|
||||||
<DependentUpon>202012051414539_V1.cs</DependentUpon>
|
<DependentUpon>202012281505590_V1.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
|
||||||
<EmbeddedResource Include="Migrations\202012271642572_V2.resx">
|
|
||||||
<DependentUpon>202012271642572_V2.cs</DependentUpon>
|
|
||||||
</EmbeddedResource>
|
|
||||||
<EmbeddedResource Include="Migrations\202012272059415_V3.resx">
|
|
||||||
<DependentUpon>202012272059415_V3.cs</DependentUpon>
|
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Properties\Resources.resx">
|
<EmbeddedResource Include="Properties\Resources.resx">
|
||||||
<Generator>ResXFileCodeGenerator</Generator>
|
<Generator>ResXFileCodeGenerator</Generator>
|
||||||
|
@ -71,18 +71,12 @@ namespace Hermes {
|
|||||||
}
|
}
|
||||||
citoyen.Mail = prepareValue(sheet.Cells[i, "E"].Value);
|
citoyen.Mail = prepareValue(sheet.Cells[i, "E"].Value);
|
||||||
citoyen.Tel = prepareValue(sheet.Cells[i, "F"].Value);
|
citoyen.Tel = prepareValue(sheet.Cells[i, "F"].Value);
|
||||||
if(citoyen.Tel != null) {
|
|
||||||
citoyen.Tel = citoyen.Tel.Replace(".", " ");
|
|
||||||
}
|
|
||||||
citoyen.TelPort = prepareValue(sheet.Cells[i, "G"].Value);
|
citoyen.TelPort = prepareValue(sheet.Cells[i, "G"].Value);
|
||||||
if(citoyen.TelPort != null) {
|
|
||||||
citoyen.TelPort = citoyen.TelPort.Replace(".", " ");
|
|
||||||
}
|
|
||||||
string res = prepareValue(sheet.Cells[i, "H"].Value, true);
|
string res = prepareValue(sheet.Cells[i, "H"].Value, true);
|
||||||
if(res.ToLower().Equals("r.principale")) {
|
if(res.ToLower().Replace(" ", "").Equals("r.secondaire")) {
|
||||||
citoyen.TypeResidence = false;
|
|
||||||
} else {
|
|
||||||
citoyen.TypeResidence = true;
|
citoyen.TypeResidence = true;
|
||||||
|
} else {
|
||||||
|
citoyen.TypeResidence = false;
|
||||||
}
|
}
|
||||||
if(citoyen.TypeResidence == true) {
|
if(citoyen.TypeResidence == true) {
|
||||||
citoyen.AdresseExt = prepareValue(sheet.Cells[i, "I"].Value);
|
citoyen.AdresseExt = prepareValue(sheet.Cells[i, "I"].Value);
|
||||||
@ -102,18 +96,12 @@ namespace Hermes {
|
|||||||
}
|
}
|
||||||
citoyen.Mail = prepareValue(sheet.Cells[i, "D"].Value);
|
citoyen.Mail = prepareValue(sheet.Cells[i, "D"].Value);
|
||||||
citoyen.Tel = prepareValue(sheet.Cells[i, "E"].Value);
|
citoyen.Tel = prepareValue(sheet.Cells[i, "E"].Value);
|
||||||
if(citoyen.Tel != null) {
|
|
||||||
citoyen.Tel = citoyen.Tel.Replace(".", " ");
|
|
||||||
}
|
|
||||||
citoyen.TelPort = prepareValue(sheet.Cells[i, "F"].Value);
|
citoyen.TelPort = prepareValue(sheet.Cells[i, "F"].Value);
|
||||||
if(citoyen.TelPort != null) {
|
|
||||||
citoyen.TelPort = citoyen.TelPort.Replace(".", " ");
|
|
||||||
}
|
|
||||||
string res = prepareValue(sheet.Cells[i, "G"].Value, true);
|
string res = prepareValue(sheet.Cells[i, "G"].Value, true);
|
||||||
if(res.ToLower().Equals("r.principale")) {
|
if(res.ToLower().Replace(" ", "").Equals("r.secondaire")) {
|
||||||
citoyen.TypeResidence = false;
|
|
||||||
} else {
|
|
||||||
citoyen.TypeResidence = true;
|
citoyen.TypeResidence = true;
|
||||||
|
} else {
|
||||||
|
citoyen.TypeResidence = false;
|
||||||
}
|
}
|
||||||
if(citoyen.TypeResidence == true) {
|
if(citoyen.TypeResidence == true) {
|
||||||
citoyen.AdresseExt = prepareValue(sheet.Cells[i, "H"].Value);
|
citoyen.AdresseExt = prepareValue(sheet.Cells[i, "H"].Value);
|
||||||
|
@ -812,15 +812,15 @@
|
|||||||
{
|
{
|
||||||
"Name" = "8:Microsoft Visual Studio"
|
"Name" = "8:Microsoft Visual Studio"
|
||||||
"ProductName" = "8:Hermes"
|
"ProductName" = "8:Hermes"
|
||||||
"ProductCode" = "8:{47E0BBDE-B1C6-4BF8-8164-6E09BD69DBC8}"
|
"ProductCode" = "8:{6CB60F2B-B970-4C1C-AD58-E1F5C9A94227}"
|
||||||
"PackageCode" = "8:{AC7DFDAB-2DF2-41B7-9066-3253344EBC79}"
|
"PackageCode" = "8:{1AB73328-33FC-4865-86BB-F02BE13121C2}"
|
||||||
"UpgradeCode" = "8:{A8FB75F3-57A5-4B7D-A0AE-9E87F69529B0}"
|
"UpgradeCode" = "8:{A8FB75F3-57A5-4B7D-A0AE-9E87F69529B0}"
|
||||||
"AspNetVersion" = "8:2.0.50727.0"
|
"AspNetVersion" = "8:2.0.50727.0"
|
||||||
"RestartWWWService" = "11:FALSE"
|
"RestartWWWService" = "11:FALSE"
|
||||||
"RemovePreviousVersions" = "11:TRUE"
|
"RemovePreviousVersions" = "11:TRUE"
|
||||||
"DetectNewerInstalledVersion" = "11:TRUE"
|
"DetectNewerInstalledVersion" = "11:TRUE"
|
||||||
"InstallAllUsers" = "11:FALSE"
|
"InstallAllUsers" = "11:FALSE"
|
||||||
"ProductVersion" = "8:1.0.0"
|
"ProductVersion" = "8:1.0.1"
|
||||||
"Manufacturer" = "8:Aztrom"
|
"Manufacturer" = "8:Aztrom"
|
||||||
"ARPHELPTELEPHONE" = "8:"
|
"ARPHELPTELEPHONE" = "8:"
|
||||||
"ARPHELPLINK" = "8:"
|
"ARPHELPLINK" = "8:"
|
||||||
@ -1362,7 +1362,7 @@
|
|||||||
{
|
{
|
||||||
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_EDA497A114444E23814EEE023731C727"
|
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_EDA497A114444E23814EEE023731C727"
|
||||||
{
|
{
|
||||||
"SourcePath" = "8:..\\obj\\Release\\Hermes.exe"
|
"SourcePath" = "8:..\\obj\\Debug\\Hermes.exe"
|
||||||
"TargetName" = "8:"
|
"TargetName" = "8:"
|
||||||
"Tag" = "8:"
|
"Tag" = "8:"
|
||||||
"Folder" = "8:_358759A83B6F4CD5AEAA9CCDB02A52A0"
|
"Folder" = "8:_358759A83B6F4CD5AEAA9CCDB02A52A0"
|
||||||
|
@ -1,126 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<root>
|
|
||||||
<!--
|
|
||||||
Microsoft ResX Schema
|
|
||||||
|
|
||||||
Version 2.0
|
|
||||||
|
|
||||||
The primary goals of this format is to allow a simple XML format
|
|
||||||
that is mostly human readable. The generation and parsing of the
|
|
||||||
various data types are done through the TypeConverter classes
|
|
||||||
associated with the data types.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
... ado.net/XML headers & schema ...
|
|
||||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
|
||||||
<resheader name="version">2.0</resheader>
|
|
||||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
|
||||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
|
||||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
|
||||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
|
||||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
|
||||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
|
||||||
</data>
|
|
||||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
||||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
|
||||||
<comment>This is a comment</comment>
|
|
||||||
</data>
|
|
||||||
|
|
||||||
There are any number of "resheader" rows that contain simple
|
|
||||||
name/value pairs.
|
|
||||||
|
|
||||||
Each data row contains a name, and value. The row also contains a
|
|
||||||
type or mimetype. Type corresponds to a .NET class that support
|
|
||||||
text/value conversion through the TypeConverter architecture.
|
|
||||||
Classes that don't support this are serialized and stored with the
|
|
||||||
mimetype set.
|
|
||||||
|
|
||||||
The mimetype is used for serialized objects, and tells the
|
|
||||||
ResXResourceReader how to depersist the object. This is currently not
|
|
||||||
extensible. For a given mimetype the value must be set accordingly:
|
|
||||||
|
|
||||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
|
||||||
that the ResXResourceWriter will generate, however the reader can
|
|
||||||
read any of the formats listed below.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.binary.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.soap.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
|
||||||
value : The object must be serialized into a byte array
|
|
||||||
: using a System.ComponentModel.TypeConverter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
-->
|
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
|
||||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:choice maxOccurs="unbounded">
|
|
||||||
<xsd:element name="metadata">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
|
||||||
<xsd:attribute ref="xml:space" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="assembly">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:attribute name="alias" type="xsd:string" />
|
|
||||||
<xsd:attribute name="name" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="data">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
|
||||||
<xsd:attribute ref="xml:space" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="resheader">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:choice>
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:schema>
|
|
||||||
<resheader name="resmimetype">
|
|
||||||
<value>text/microsoft-resx</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="version">
|
|
||||||
<value>2.0</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="reader">
|
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="writer">
|
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
<data name="Target" xml:space="preserve">
|
|
||||||
<value>H4sIAAAAAAAEAO2a3VLrNhCA7zvTd/D4mhMHOBc9THLOQICW6eGnGLhX7E3QVJZdSWbIs/Wij9RX6Mr/lk2wg+PpdHqHV9K3q7/V7pK///xr9u01YNYLCElDPrcPJ1PbAu6FPuXruR2r1aef7G9ff/xhduEHr9ZT3u9Y98ORXM7tZ6WiE8eR3jMERE4C6olQhis18cLAIX7oHE2nX5zDQwcQYSPLsmb3MVc0gOQDPxch9yBSMWHXoQ9MZnJscROqdUMCkBHxYG7/AgL/niQdbeuUUYI2uMBWtkU4DxVRaOHJowRXiZCv3QgFhD1sIsB+K8IkZJaflN27TmJ6pCfhlANzlBdLFQY9gYfH2ao45vCd1tYuVg3X7QLXV230rJO1m9sLqsININnUdbJgQverr+wk639gpdKDYu+nky+T6WR6YC1ipmIBcw6xEoQdWHfxklHvV9g8hL8Dn/OYsapNaBW21QQouhNhBEJt7mGVWXrl25ZTH+eYA4thlTHpJK64Oj6yrRtUTpYMii2vTNhVoYCfgYMgCvw7ohQIrhmQLFpDu6FrQV8oowpyjXjO8LLY1jV5/Q58rZ7n9ufpFO/HJX0FPxdlZjxyipcLRykRw3uabsJgFCU3hEpJ8AruX9udAD7GrM5xaxvT0sIHdDvvGxmuQMrkIu7bUM2/B0nx8JWGnoUhA8JbjvF22DWhbASTYRwld6FQ+1f0W0yEoiD2r+nUF3iqRrhkmaIzot9YPsIaZgovXkfVtbgbU9sTZWyEvdM+aiEgCwNMv9XTH+iB+JzTFfV2Ac6cMozYGlygV1+B0B5Mdg4wKmP+DzIaupLTNsYBH+lYu4E8jSiu8NCqtp9RTCwUobgJ+QOpj54WgnZVjZOKWUN2WGWmqz6pFOqCqgfVKLCt0ow0HZkUEbezHVK7PA1KrbVt4sUUy6TJSbOmPLty3kivZtckinATKulWJrHcNNdafHL7pyJBynA82ZKRFNYWmvCekDUYragaLb2kQir0VWRJ9ClY+EGjW21D31jnXFVjz0w3US5+PkT/nQ5rS45MQLmAlzgn/fQm04PCkjINa4xMcl3CiGhxOouQxQF/y3FtG13mKlVGKe1OSnKRKiQR9BpficcNUKWlOzFPJaqsXNadYiQKVZjR1MeyMn+oW1fKu9OMDKEKNJq6M9NEoYpKJT2sAgOQCHqNT+N7g5EKu3PK8L0KKqXdSUV4XgUVwt6cMvpu4ZWNvblJkN2CTOS70HSU0c7TLbsQs5iiHZo19ruhZURsXtCypR+xHhab1HprkzxzDEdvPiVO4y0xgk3zder0dlWDgZ0fry2QDg/Y1tH7ecSKWLiKKIQ9OS2UPoxKHFvlVMQjH5ZGGGh2KbQX4aAR9s2yEOz90nsjJku72BYu0gs+QhiPuRupIJjoDhP3D+aCeAGxgMln/Q+DvNs14RQfQpWmcHbSVivk/3uK6o6UPutWWR89C6X6/Xg3z+xZMjCr2/yFCO+ZiJZMrST3LGYPyWwUeQeD10vVg2FbK9M+CpVRkOlmo1mpHszO1sL0kqoPFaWHsw72wqyWnAfjmhXmwcBGQXlorlk/HppfKRfvAV0Wz/YAr1XNBnUNZu23zTN8qPbbEbhT7fe/8QQatdfBtnc/h6ZRWd2R3K+Q2izPdaqUbiuTpsEkHtBliFNJzcwaZWMRPlBEbdMzRJW1GUbPnOrvXGbn+JquS4T+1QsHT9/NEpr3ueKrMN9onGXVoryL+cyCIni3ySm+NSviKWz2dGigi+xPhMXY5SJYgn/Fb2MVxeoUPVmwZLWMZeZs15+Ukus2z24j/SWHmAKaSbV7uuVnMWV+Yfdli3t6A6HPZeYK0CpXaZew3hSkm5B3BGXLdw4RcO1IHiCIGMLkLXfJC+xi26OE77Am3ibPg96GvL8R9WWfnVOyFiSQGaMcj594hv3g9es/4ocTwO4lAAA=</value>
|
|
||||||
</data>
|
|
||||||
<data name="DefaultSchema" xml:space="preserve">
|
|
||||||
<value>dbo</value>
|
|
||||||
</data>
|
|
||||||
</root>
|
|
29
Migrations/202012271642572_V2.Designer.cs
generated
29
Migrations/202012271642572_V2.Designer.cs
generated
@ -1,29 +0,0 @@
|
|||||||
// <auto-generated />
|
|
||||||
namespace Hermes.Migrations
|
|
||||||
{
|
|
||||||
using System.CodeDom.Compiler;
|
|
||||||
using System.Data.Entity.Migrations;
|
|
||||||
using System.Data.Entity.Migrations.Infrastructure;
|
|
||||||
using System.Resources;
|
|
||||||
|
|
||||||
[GeneratedCode("EntityFramework.Migrations", "6.4.4")]
|
|
||||||
public sealed partial class V2 : IMigrationMetadata
|
|
||||||
{
|
|
||||||
private readonly ResourceManager Resources = new ResourceManager(typeof(V2));
|
|
||||||
|
|
||||||
string IMigrationMetadata.Id
|
|
||||||
{
|
|
||||||
get { return "202012271642572_V2"; }
|
|
||||||
}
|
|
||||||
|
|
||||||
string IMigrationMetadata.Source
|
|
||||||
{
|
|
||||||
get { return null; }
|
|
||||||
}
|
|
||||||
|
|
||||||
string IMigrationMetadata.Target
|
|
||||||
{
|
|
||||||
get { return Resources.GetString("Target"); }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,18 +0,0 @@
|
|||||||
namespace Hermes.Migrations
|
|
||||||
{
|
|
||||||
using System;
|
|
||||||
using System.Data.Entity.Migrations;
|
|
||||||
|
|
||||||
public partial class V2 : DbMigration
|
|
||||||
{
|
|
||||||
public override void Up()
|
|
||||||
{
|
|
||||||
AddColumn("dbo.Citoyens", "AdresseNumeroBatiment", c => c.String(maxLength: 4000));
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Down()
|
|
||||||
{
|
|
||||||
DropColumn("dbo.Citoyens", "AdresseNumeroBatiment");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
29
Migrations/202012272059415_V3.Designer.cs
generated
29
Migrations/202012272059415_V3.Designer.cs
generated
@ -1,29 +0,0 @@
|
|||||||
// <auto-generated />
|
|
||||||
namespace Hermes.Migrations
|
|
||||||
{
|
|
||||||
using System.CodeDom.Compiler;
|
|
||||||
using System.Data.Entity.Migrations;
|
|
||||||
using System.Data.Entity.Migrations.Infrastructure;
|
|
||||||
using System.Resources;
|
|
||||||
|
|
||||||
[GeneratedCode("EntityFramework.Migrations", "6.4.4")]
|
|
||||||
public sealed partial class V3 : IMigrationMetadata
|
|
||||||
{
|
|
||||||
private readonly ResourceManager Resources = new ResourceManager(typeof(V3));
|
|
||||||
|
|
||||||
string IMigrationMetadata.Id
|
|
||||||
{
|
|
||||||
get { return "202012272059415_V3"; }
|
|
||||||
}
|
|
||||||
|
|
||||||
string IMigrationMetadata.Source
|
|
||||||
{
|
|
||||||
get { return null; }
|
|
||||||
}
|
|
||||||
|
|
||||||
string IMigrationMetadata.Target
|
|
||||||
{
|
|
||||||
get { return Resources.GetString("Target"); }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,26 +0,0 @@
|
|||||||
namespace Hermes.Migrations
|
|
||||||
{
|
|
||||||
using System;
|
|
||||||
using System.Data.Entity.Migrations;
|
|
||||||
|
|
||||||
public partial class V3 : DbMigration
|
|
||||||
{
|
|
||||||
public override void Up()
|
|
||||||
{
|
|
||||||
AddColumn("dbo.Preferences", "ovhSmsServiceName", c => c.String(maxLength: 4000));
|
|
||||||
AddColumn("dbo.Preferences", "ovhSmsApplicationName", c => c.String(maxLength: 4000));
|
|
||||||
AddColumn("dbo.Preferences", "ovhSmsApplicationKey", c => c.String(maxLength: 4000));
|
|
||||||
AddColumn("dbo.Preferences", "ovhSmsConsumerKey", c => c.String(maxLength: 4000));
|
|
||||||
DropColumn("dbo.Preferences", "SmsApiKey");
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Down()
|
|
||||||
{
|
|
||||||
AddColumn("dbo.Preferences", "SmsApiKey", c => c.String(maxLength: 4000));
|
|
||||||
DropColumn("dbo.Preferences", "ovhSmsConsumerKey");
|
|
||||||
DropColumn("dbo.Preferences", "ovhSmsApplicationKey");
|
|
||||||
DropColumn("dbo.Preferences", "ovhSmsApplicationName");
|
|
||||||
DropColumn("dbo.Preferences", "ovhSmsServiceName");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,126 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<root>
|
|
||||||
<!--
|
|
||||||
Microsoft ResX Schema
|
|
||||||
|
|
||||||
Version 2.0
|
|
||||||
|
|
||||||
The primary goals of this format is to allow a simple XML format
|
|
||||||
that is mostly human readable. The generation and parsing of the
|
|
||||||
various data types are done through the TypeConverter classes
|
|
||||||
associated with the data types.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
... ado.net/XML headers & schema ...
|
|
||||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
|
||||||
<resheader name="version">2.0</resheader>
|
|
||||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
|
||||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
|
||||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
|
||||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
|
||||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
|
||||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
|
||||||
</data>
|
|
||||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
||||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
|
||||||
<comment>This is a comment</comment>
|
|
||||||
</data>
|
|
||||||
|
|
||||||
There are any number of "resheader" rows that contain simple
|
|
||||||
name/value pairs.
|
|
||||||
|
|
||||||
Each data row contains a name, and value. The row also contains a
|
|
||||||
type or mimetype. Type corresponds to a .NET class that support
|
|
||||||
text/value conversion through the TypeConverter architecture.
|
|
||||||
Classes that don't support this are serialized and stored with the
|
|
||||||
mimetype set.
|
|
||||||
|
|
||||||
The mimetype is used for serialized objects, and tells the
|
|
||||||
ResXResourceReader how to depersist the object. This is currently not
|
|
||||||
extensible. For a given mimetype the value must be set accordingly:
|
|
||||||
|
|
||||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
|
||||||
that the ResXResourceWriter will generate, however the reader can
|
|
||||||
read any of the formats listed below.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.binary.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.soap.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
|
||||||
value : The object must be serialized into a byte array
|
|
||||||
: using a System.ComponentModel.TypeConverter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
-->
|
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
|
||||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:choice maxOccurs="unbounded">
|
|
||||||
<xsd:element name="metadata">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
|
||||||
<xsd:attribute ref="xml:space" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="assembly">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:attribute name="alias" type="xsd:string" />
|
|
||||||
<xsd:attribute name="name" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="data">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
|
||||||
<xsd:attribute ref="xml:space" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="resheader">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:choice>
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:schema>
|
|
||||||
<resheader name="resmimetype">
|
|
||||||
<value>text/microsoft-resx</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="version">
|
|
||||||
<value>2.0</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="reader">
|
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="writer">
|
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
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|
||||||
<value>dbo</value>
|
|
||||||
</data>
|
|
||||||
</root>
|
|
@ -13,7 +13,7 @@ namespace Hermes.Migrations
|
|||||||
|
|
||||||
string IMigrationMetadata.Id
|
string IMigrationMetadata.Id
|
||||||
{
|
{
|
||||||
get { return "202012051414539_V1"; }
|
get { return "202012281505590_V1"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
string IMigrationMetadata.Source
|
string IMigrationMetadata.Source
|
@ -25,6 +25,7 @@
|
|||||||
Quartier = c.String(maxLength: 4000),
|
Quartier = c.String(maxLength: 4000),
|
||||||
Adresse = c.String(maxLength: 4000),
|
Adresse = c.String(maxLength: 4000),
|
||||||
AdresseBatiment = c.String(maxLength: 4000),
|
AdresseBatiment = c.String(maxLength: 4000),
|
||||||
|
AdresseNumeroBatiment = c.String(maxLength: 4000),
|
||||||
AdresseExt = c.String(maxLength: 4000),
|
AdresseExt = c.String(maxLength: 4000),
|
||||||
AdresseExtCP = c.String(maxLength: 4000),
|
AdresseExtCP = c.String(maxLength: 4000),
|
||||||
AdresseExtVille = c.String(maxLength: 4000),
|
AdresseExtVille = c.String(maxLength: 4000),
|
||||||
@ -40,7 +41,10 @@
|
|||||||
Id = c.Int(nullable: false, identity: true),
|
Id = c.Int(nullable: false, identity: true),
|
||||||
VilleCP = c.String(maxLength: 4000),
|
VilleCP = c.String(maxLength: 4000),
|
||||||
Ville = c.String(maxLength: 4000),
|
Ville = c.String(maxLength: 4000),
|
||||||
SmsApiKey = c.String(maxLength: 4000),
|
ovhSmsServiceName = c.String(maxLength: 4000),
|
||||||
|
ovhSmsApplicationKey = c.String(maxLength: 4000),
|
||||||
|
ovhSmsApplicationSecret = c.String(maxLength: 4000),
|
||||||
|
ovhSmsConsumerKey = c.String(maxLength: 4000),
|
||||||
})
|
})
|
||||||
.PrimaryKey(t => t.Id);
|
.PrimaryKey(t => t.Id);
|
||||||
|
|
@ -118,7 +118,7 @@
|
|||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<data name="Target" xml:space="preserve">
|
<data name="Target" xml:space="preserve">
|
||||||
<value>H4sIAAAAAAAEAO1a3VLrNhC+70zfweNrThzgXPQwyTkDAVqmh59i4F6xN0FTWXYlmSHP1os+Ul+hK/9bNsEOjqfT6R1Zab9drVb7Z/7+86/Zt9eAWS8gJA353D6cTG0LuBf6lK/ndqxWn36yv3398YfZhR+8Wk/5vmO9Dzm5nNvPSkUnjiO9ZwiInATUE6EMV2rihYFD/NA5mk6/OIeHDiCEjViWNbuPuaIBJD/w5yLkHkQqJuw69IHJjI4rboJq3ZAAZEQ8mNu/gMC/J8lG2zpllKAOLrCVbRHOQ0UUanjyKMFVIuRrN0ICYQ+bCHDfijAJmeYn5fauh5ge6UM4JWMO5cVShUFPwMPjzCqOyb6Tbe3Cami3C7Sv2uhTJ7ab2wuqwg0gsinrZMGE3le37CTbf2Cl1IPi7qeTLxN0kwNrETMVC5hziJUg7MC6i5eMer/C5iH8Hficx4xVdUKtcK1GQNKdCCMQanMPq0zTK9+2nDqfYzIWbBWe9BBXXB0f2dYNCidLBsWVVw7sqlDAz8BBEAX+HVEKBNcYkBitId2QtaAvlFEFuUT0M3wstnVNXr8DX6vnuf15OsX3cUlfwc9JmRqPnOLjQi4lYnhP0k0YjCLkhlApCT7B/Uu7E8DHONU5Xm3jWJr4gGHnfSXDFUiZPMR9K6rx70FSdL5S0bMwZEB4ixtvB7smlI2gMowj5C4Uav+CfouJUBTE/iWd+gK9aoRHlgk6IzrH8hFsmAm8iQMQ4ehiL15HlbW4G1PaE2VsBJfRoXEhIKs+zHDZMwxpRqwi6Ip6uwDOnLJ62VrTYDJZgdCBU3auayo8/9c2DVmJt43h4CO5tRvI04iihYcWtd1HsZ9RhOIl5HlZu54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
||||||
<data name="DefaultSchema" xml:space="preserve">
|
<data name="DefaultSchema" xml:space="preserve">
|
||||||
<value>dbo</value>
|
<value>dbo</value>
|
@ -14,10 +14,10 @@ namespace Hermes.Model {
|
|||||||
public string ovhSmsServiceName {
|
public string ovhSmsServiceName {
|
||||||
get; set;
|
get; set;
|
||||||
}
|
}
|
||||||
public string ovhSmsApplicationName {
|
public string ovhSmsApplicationKey {
|
||||||
get; set;
|
get; set;
|
||||||
}
|
}
|
||||||
public string ovhSmsApplicationKey {
|
public string ovhSmsApplicationSecret {
|
||||||
get; set;
|
get; set;
|
||||||
}
|
}
|
||||||
public string ovhSmsConsumerKey {
|
public string ovhSmsConsumerKey {
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
using System;
|
namespace Hermes {
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Hermes {
|
|
||||||
class OVHQueryBody {
|
class OVHQueryBody {
|
||||||
public string charset {
|
public string charset {
|
||||||
get; set;
|
get; set;
|
||||||
@ -21,8 +15,5 @@ namespace Hermes {
|
|||||||
public bool senderForResponse {
|
public bool senderForResponse {
|
||||||
get; set;
|
get; set;
|
||||||
}
|
}
|
||||||
/*public bool noStopClause {
|
|
||||||
get; set;
|
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
using System;
|
namespace Hermes {
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Hermes {
|
|
||||||
class OVHResponseBody {
|
class OVHResponseBody {
|
||||||
public int totalCreditsRemoved {
|
public int totalCreditsRemoved {
|
||||||
get; set;
|
get; set;
|
||||||
|
@ -28,9 +28,9 @@
|
|||||||
<Label>OVH ServiceName :</Label>
|
<Label>OVH ServiceName :</Label>
|
||||||
<TextBox Name="ovhSmsServiceNameTextBox" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="250"/>
|
<TextBox Name="ovhSmsServiceNameTextBox" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="250"/>
|
||||||
<Label>OVH ApplicationKey :</Label>
|
<Label>OVH ApplicationKey :</Label>
|
||||||
<TextBox Name="ovhSmsApplicationNameTextBox" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="250"/>
|
|
||||||
<Label>OVH ApplicationSecret :</Label>
|
|
||||||
<TextBox Name="ovhSmsApplicationKeyTextBox" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="250"/>
|
<TextBox Name="ovhSmsApplicationKeyTextBox" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="250"/>
|
||||||
|
<Label>OVH ApplicationSecret :</Label>
|
||||||
|
<TextBox Name="ovhSmsApplicationSecretTextBox" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="250"/>
|
||||||
<Label>OVH ConsumerKey :</Label>
|
<Label>OVH ConsumerKey :</Label>
|
||||||
<TextBox Name="ovhSmsConsumerKeyTextBox" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="250"/>
|
<TextBox Name="ovhSmsConsumerKeyTextBox" HorizontalAlignment="Left" VerticalContentAlignment="Center" Height="23" Width="250"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
@ -18,8 +18,8 @@ namespace Hermes {
|
|||||||
villeCPTextBox.Text = pref.VilleCP;
|
villeCPTextBox.Text = pref.VilleCP;
|
||||||
|
|
||||||
ovhSmsServiceNameTextBox.Text = pref.ovhSmsServiceName;
|
ovhSmsServiceNameTextBox.Text = pref.ovhSmsServiceName;
|
||||||
ovhSmsApplicationNameTextBox.Text = pref.ovhSmsApplicationName;
|
|
||||||
ovhSmsApplicationKeyTextBox.Text = pref.ovhSmsApplicationKey;
|
ovhSmsApplicationKeyTextBox.Text = pref.ovhSmsApplicationKey;
|
||||||
|
ovhSmsApplicationSecretTextBox.Text = pref.ovhSmsApplicationSecret;
|
||||||
ovhSmsConsumerKeyTextBox.Text = pref.ovhSmsConsumerKey;
|
ovhSmsConsumerKeyTextBox.Text = pref.ovhSmsConsumerKey;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -42,8 +42,8 @@ namespace Hermes {
|
|||||||
pref.Ville = villeTextBox.Text;
|
pref.Ville = villeTextBox.Text;
|
||||||
pref.VilleCP = villeCPTextBox.Text;
|
pref.VilleCP = villeCPTextBox.Text;
|
||||||
pref.ovhSmsServiceName = ovhSmsServiceNameTextBox.Text;
|
pref.ovhSmsServiceName = ovhSmsServiceNameTextBox.Text;
|
||||||
pref.ovhSmsApplicationName = ovhSmsApplicationNameTextBox.Text;
|
|
||||||
pref.ovhSmsApplicationKey = ovhSmsApplicationKeyTextBox.Text;
|
pref.ovhSmsApplicationKey = ovhSmsApplicationKeyTextBox.Text;
|
||||||
|
pref.ovhSmsApplicationSecret = ovhSmsApplicationSecretTextBox.Text;
|
||||||
pref.ovhSmsConsumerKey = ovhSmsConsumerKeyTextBox.Text;
|
pref.ovhSmsConsumerKey = ovhSmsConsumerKeyTextBox.Text;
|
||||||
dbContext.Preferences.Add(pref);
|
dbContext.Preferences.Add(pref);
|
||||||
} else {
|
} else {
|
||||||
@ -51,8 +51,8 @@ namespace Hermes {
|
|||||||
pref.Ville = villeTextBox.Text;
|
pref.Ville = villeTextBox.Text;
|
||||||
pref.VilleCP = villeCPTextBox.Text;
|
pref.VilleCP = villeCPTextBox.Text;
|
||||||
pref.ovhSmsServiceName = ovhSmsServiceNameTextBox.Text;
|
pref.ovhSmsServiceName = ovhSmsServiceNameTextBox.Text;
|
||||||
pref.ovhSmsApplicationName = ovhSmsApplicationNameTextBox.Text;
|
|
||||||
pref.ovhSmsApplicationKey = ovhSmsApplicationKeyTextBox.Text;
|
pref.ovhSmsApplicationKey = ovhSmsApplicationKeyTextBox.Text;
|
||||||
|
pref.ovhSmsApplicationSecret = ovhSmsApplicationSecretTextBox.Text;
|
||||||
pref.ovhSmsConsumerKey = ovhSmsConsumerKeyTextBox.Text;
|
pref.ovhSmsConsumerKey = ovhSmsConsumerKeyTextBox.Text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,6 +51,6 @@ using System.Windows;
|
|||||||
// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut
|
// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut
|
||||||
// en utilisant '*', comme indiqué ci-dessous :
|
// en utilisant '*', comme indiqué ci-dessous :
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.1.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.1.0")]
|
||||||
[assembly: NeutralResourcesLanguage("fr-FR")]
|
[assembly: NeutralResourcesLanguage("fr-FR")]
|
||||||
|
@ -15,7 +15,8 @@ namespace Hermes {
|
|||||||
public partial class SmsWindow : Window {
|
public partial class SmsWindow : Window {
|
||||||
private ObservableCollection<SmsSendingStatus> status = new ObservableCollection<SmsSendingStatus>();
|
private ObservableCollection<SmsSendingStatus> status = new ObservableCollection<SmsSendingStatus>();
|
||||||
private bool sending = false;
|
private bool sending = false;
|
||||||
private Regex numPrefixRgx = new Regex(@"^0");
|
private static Regex telFrRgx = new Regex(@"^0\d{9}");
|
||||||
|
private static Regex telFrPrefixRgx = new Regex(@"^0");
|
||||||
|
|
||||||
|
|
||||||
public static string HashSHA1(string input) {
|
public static string HashSHA1(string input) {
|
||||||
@ -38,7 +39,12 @@ namespace Hermes {
|
|||||||
SmsSendingStatus s = new SmsSendingStatus();
|
SmsSendingStatus s = new SmsSendingStatus();
|
||||||
s.Nom = rcp.Nom;
|
s.Nom = rcp.Nom;
|
||||||
s.Prenom = rcp.Prenom;
|
s.Prenom = rcp.Prenom;
|
||||||
s.Mobile = numPrefixRgx.Replace(rcp.TelPort.Replace(" ", ""), "+33");
|
s.Mobile = rcp.TelPort.Replace(" ", "").Replace(".", "");
|
||||||
|
Match m = telFrRgx.Match(s.Mobile);
|
||||||
|
if(m.Success) {
|
||||||
|
// numéro FR (+33)
|
||||||
|
s.Mobile = telFrPrefixRgx.Replace(s.Mobile, "+33");
|
||||||
|
}
|
||||||
s.Status = "En attente";
|
s.Status = "En attente";
|
||||||
status.Add(s);
|
status.Add(s);
|
||||||
}
|
}
|
||||||
@ -60,8 +66,8 @@ namespace Hermes {
|
|||||||
Preferences pref = dbContext.Preferences.Local[0];
|
Preferences pref = dbContext.Preferences.Local[0];
|
||||||
|
|
||||||
|
|
||||||
if(String.IsNullOrWhiteSpace(pref.ovhSmsServiceName) || String.IsNullOrWhiteSpace(pref.ovhSmsApplicationName)
|
if(String.IsNullOrWhiteSpace(pref.ovhSmsServiceName) || String.IsNullOrWhiteSpace(pref.ovhSmsApplicationKey)
|
||||||
|| String.IsNullOrWhiteSpace(pref.ovhSmsApplicationKey) || String.IsNullOrWhiteSpace(pref.ovhSmsConsumerKey)) {
|
|| String.IsNullOrWhiteSpace(pref.ovhSmsApplicationSecret) || String.IsNullOrWhiteSpace(pref.ovhSmsConsumerKey)) {
|
||||||
MessageBox.Show("Erreur lors de la tentative d'envoi : Clés d'accès invalides.", "Envoi de SMS", MessageBoxButton.OK, MessageBoxImage.Error);
|
MessageBox.Show("Erreur lors de la tentative d'envoi : Clés d'accès invalides.", "Envoi de SMS", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -91,12 +97,12 @@ namespace Hermes {
|
|||||||
string bodyStr = JsonConvert.SerializeObject(body);
|
string bodyStr = JsonConvert.SerializeObject(body);
|
||||||
|
|
||||||
string ts = ((Int32) DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).TotalSeconds).ToString();
|
string ts = ((Int32) DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).TotalSeconds).ToString();
|
||||||
string signature = "$1$" + HashSHA1(pref.ovhSmsApplicationKey + "+" + pref.ovhSmsConsumerKey + "+" + "POST" + "+" + query + "+" + bodyStr + "+" + ts);
|
string signature = "$1$" + HashSHA1(pref.ovhSmsApplicationSecret + "+" + pref.ovhSmsConsumerKey + "+" + "POST" + "+" + query + "+" + bodyStr + "+" + ts);
|
||||||
|
|
||||||
HttpWebRequest req = (HttpWebRequest) HttpWebRequest.Create(query);
|
HttpWebRequest req = (HttpWebRequest) HttpWebRequest.Create(query);
|
||||||
req.Method = "POST";
|
req.Method = "POST";
|
||||||
req.ContentType = "application/json";
|
req.ContentType = "application/json";
|
||||||
req.Headers.Add("X-Ovh-Application:" + pref.ovhSmsApplicationName);
|
req.Headers.Add("X-Ovh-Application:" + pref.ovhSmsApplicationKey);
|
||||||
req.Headers.Add("X-Ovh-Consumer:" + pref.ovhSmsConsumerKey);
|
req.Headers.Add("X-Ovh-Consumer:" + pref.ovhSmsConsumerKey);
|
||||||
req.Headers.Add("X-Ovh-Signature:" + signature);
|
req.Headers.Add("X-Ovh-Signature:" + signature);
|
||||||
req.Headers.Add("X-Ovh-Timestamp:" + ts);
|
req.Headers.Add("X-Ovh-Timestamp:" + ts);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user