La notification à la demande de devis,

côté sérveur.

* Makefile:
* Yavsc.sln:
* pkg.mdproj:
* Yavsc.csproj:
* Presta.csproj:
* TestAPI.csproj:
* YavscModel.csproj:
* fortune.csproj:
* WebControls.csproj:
* YavscClient.csproj:
* SalesCatalog.csproj:
* ITContentProvider.csproj:
* NpgsqlMRPProviders.csproj:
* NpgsqlBlogProvider.csproj:
* NpgsqlContentProvider.csproj: ajout d'une configuration de debuggage
  pour Lua

* App.master:
* LocalizedText.resx:
* LocalizedText.fr.resx:
* LocalizedText.Designer.cs:
* LocalizedText.fr.Designer.cs: traductions

* EventPub.aspx: debug sur page encore inutilisée

* NominativeEventPub.cs: implémentation du nom de préstataire dans la
  notification nominative

* Commande.cs: code plus simple

* GoogleHelpers.cs:
* MessageWithPayLoad.cs: fixe l'envoi de la notification GCM

* MessageWithPayloadResponse.cs: fixe la réception de la notification
  GCM

* WorkFlowManager.cs: envoyer un notification GCM + email à la demande
  de devis
vnext
Paul Schneider 9 years ago
parent d394c3842e
commit 5a4179d051
42 changed files with 644 additions and 334 deletions

@ -1,3 +1,8 @@
2015-12-24 Paul Schneider <paul@pschneider.fr>
* Makefile:
* Yavsc.sln: ajout d'une configuration de debuggage pour Lua
2015-12-23 Paul Schneider <paul@pschneider.fr>
* .gitignore: une typo

@ -1,3 +1,8 @@
2015-12-24 Paul Schneider <paul@pschneider.fr>
* ITContentProvider.csproj: ajout d'une configuration de
debuggage pour Lua
2015-12-23 Paul Schneider <paul@pschneider.fr>
* packages.config:

@ -55,6 +55,11 @@
<OutputPath>bin\Yavsc</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'LuaDebug|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />

@ -15,6 +15,9 @@ DESTDIR_rsync_Release=/srv/www/yavscpre
HOST_rsync_Lua=lua.pschneider.fr
DESTDIR_rsync_Lua=/srv/www/lua
HOST_rsync_LuaDebug=lua.pschneider.fr
DESTDIR_rsync_LuaDebug=/srv/www/lua
HOST_rsync_YavscPre=lua.pschneider.fr
DESTDIR_rsync_YavscPre=/srv/www/yavscpre
@ -95,6 +98,8 @@ docdeploy-prod: htmldoc
rsync_Lua:
rsync_LuaDebug:
rsync_Debug:
rsync_Release:
@ -103,7 +108,7 @@ rsync_YavscPre:
rsync_yavsc:
rsync_TotemProd:
rsync_Totemprod:
nuget_restore:
for prj in ITContentProvider NpgsqlBlogProvider NpgsqlContentProvider NpgsqlMRPProviders Presta SalesCatalog TestAPI web WebControls yavscclient yavscModel; do if [ -f "$${prj}/packages.config" ]; then nuget restore "$${prj}/packages.config" -SolutionDirectory . ; fi; done

@ -1,3 +1,8 @@
2015-12-24 Paul Schneider <paul@pschneider.fr>
* NpgsqlBlogProvider.csproj: ajout d'une configuration de
debuggage pour Lua
2015-12-23 Paul Schneider <paul@pschneider.fr>
* packages.config:

@ -55,6 +55,11 @@
<OutputPath>bin\Yavsc</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'LuaDebug|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="NpgsqlBlogProvider.cs" />

@ -1,3 +1,8 @@
2015-12-24 Paul Schneider <paul@pschneider.fr>
* NpgsqlContentProvider.csproj: ajout d'une configuration de
debuggage pour Lua
2015-12-23 Paul Schneider <paul@pschneider.fr>
* NpgsqlContentProvider.cs: stocke la classe de commande

@ -55,6 +55,11 @@
<OutputPath>bin\Yavsc</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'LuaDebug|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Configuration" />

@ -1,3 +1,8 @@
2015-12-24 Paul Schneider <paul@pschneider.fr>
* NpgsqlMRPProviders.csproj: ajout d'une configuration de
debuggage pour Lua
2015-11-30 Paul Schneider <paul@pschneider.fr>
* NpgsqlMRPProviders.csproj: ...

@ -55,6 +55,11 @@
<OutputPath>bin\Yavsc</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'LuaDebug|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Compile Include="NpgsqlMembershipProvider.cs" />

@ -1,3 +1,8 @@
2015-12-24 Paul Schneider <paul@pschneider.fr>
* Presta.csproj: ajout d'une configuration de debuggage pour
Lua
2015-11-30 Paul Schneider <paul@pschneider.fr>
* Presta.csproj: ...

@ -54,6 +54,11 @@
<OutputPath>bin\Yavsc</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'LuaDebug|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>

@ -1,3 +1,8 @@
2015-12-24 Paul Schneider <paul@pschneider.fr>
* SalesCatalog.csproj: ajout d'une configuration de debuggage
pour Lua
2015-11-30 Paul Schneider <paul@pschneider.fr>
* SalesCatalog.csproj: ...

@ -55,6 +55,11 @@
<OutputPath>bin\Yavsc</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'LuaDebug|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Xml" />

@ -1,3 +1,8 @@
2015-12-24 Paul Schneider <paul@pschneider.fr>
* TestAPI.csproj: ajout d'une configuration de debuggage pour
Lua
2015-11-30 Paul Schneider <paul@pschneider.fr>
* TestAPI.csproj: ...

@ -54,6 +54,11 @@
<OutputPath>bin\Yavsc</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'LuaDebug|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="Machine.Specifications">

@ -1,3 +1,8 @@
2015-12-24 Paul Schneider <paul@pschneider.fr>
* WebControls.csproj: ajout d'une configuration de debuggage
pour Lua
2015-11-30 Paul Schneider <paul@pschneider.fr>
* WebControls.csproj: ...

@ -55,6 +55,11 @@
<OutputPath>bin\Yavsc</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'LuaDebug|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Web.Extensions" />

@ -46,11 +46,13 @@ Global
TotemProd|Any CPU = TotemProd|Any CPU
YavscPre|Any CPU = YavscPre|Any CPU
Yavsc|Any CPU = Yavsc|Any CPU
LuaDebug|Any CPU = LuaDebug|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{42B77C89-BF6D-4DB1-8763-6197F4030A95}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{42B77C89-BF6D-4DB1-8763-6197F4030A95}.Debug|Any CPU.Build.0 = Debug|Any CPU
{42B77C89-BF6D-4DB1-8763-6197F4030A95}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{42B77C89-BF6D-4DB1-8763-6197F4030A95}.LuaDebug|Any CPU.ActiveCfg = Debug|Any CPU
{42B77C89-BF6D-4DB1-8763-6197F4030A95}.Release|Any CPU.ActiveCfg = Release|Any CPU
{42B77C89-BF6D-4DB1-8763-6197F4030A95}.Release|Any CPU.Build.0 = Release|Any CPU
{42B77C89-BF6D-4DB1-8763-6197F4030A95}.TotemPre|Any CPU.ActiveCfg = TotemPre|Any CPU
@ -62,6 +64,8 @@ Global
{59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.Debug|Any CPU.Build.0 = Debug|Any CPU
{59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.Lua|Any CPU.Build.0 = Lua|Any CPU
{59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.LuaDebug|Any CPU.ActiveCfg = Debug|Any CPU
{59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.LuaDebug|Any CPU.Build.0 = Debug|Any CPU
{59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.Release|Any CPU.ActiveCfg = Release|Any CPU
{59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.Release|Any CPU.Build.0 = Release|Any CPU
{59E1DF7B-FFA0-4DEB-B5F3-76EBD98D5356}.TotemPre|Any CPU.ActiveCfg = TotemPre|Any CPU
@ -76,6 +80,8 @@ Global
{68F5B80A-616E-4C3C-91A0-828AA40000BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{68F5B80A-616E-4C3C-91A0-828AA40000BD}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{68F5B80A-616E-4C3C-91A0-828AA40000BD}.Lua|Any CPU.Build.0 = Lua|Any CPU
{68F5B80A-616E-4C3C-91A0-828AA40000BD}.LuaDebug|Any CPU.ActiveCfg = Debug|Any CPU
{68F5B80A-616E-4C3C-91A0-828AA40000BD}.LuaDebug|Any CPU.Build.0 = Debug|Any CPU
{68F5B80A-616E-4C3C-91A0-828AA40000BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{68F5B80A-616E-4C3C-91A0-828AA40000BD}.Release|Any CPU.Build.0 = Release|Any CPU
{68F5B80A-616E-4C3C-91A0-828AA40000BD}.TotemPre|Any CPU.ActiveCfg = TotemPre|Any CPU
@ -90,6 +96,8 @@ Global
{6A312228-9641-478D-916F-4681CC65A35D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6A312228-9641-478D-916F-4681CC65A35D}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{6A312228-9641-478D-916F-4681CC65A35D}.Lua|Any CPU.Build.0 = Lua|Any CPU
{6A312228-9641-478D-916F-4681CC65A35D}.LuaDebug|Any CPU.ActiveCfg = Debug|Any CPU
{6A312228-9641-478D-916F-4681CC65A35D}.LuaDebug|Any CPU.Build.0 = Debug|Any CPU
{6A312228-9641-478D-916F-4681CC65A35D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6A312228-9641-478D-916F-4681CC65A35D}.Release|Any CPU.Build.0 = Release|Any CPU
{6A312228-9641-478D-916F-4681CC65A35D}.TotemPre|Any CPU.ActiveCfg = TotemPre|Any CPU
@ -102,6 +110,8 @@ Global
{77044C92-D2F1-45BD-80DD-AA25B311B027}.Debug|Any CPU.Build.0 = Debug|Any CPU
{77044C92-D2F1-45BD-80DD-AA25B311B027}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{77044C92-D2F1-45BD-80DD-AA25B311B027}.Lua|Any CPU.Build.0 = Lua|Any CPU
{77044C92-D2F1-45BD-80DD-AA25B311B027}.LuaDebug|Any CPU.ActiveCfg = LuaDebug|Any CPU
{77044C92-D2F1-45BD-80DD-AA25B311B027}.LuaDebug|Any CPU.Build.0 = LuaDebug|Any CPU
{77044C92-D2F1-45BD-80DD-AA25B311B027}.Release|Any CPU.ActiveCfg = Release|Any CPU
{77044C92-D2F1-45BD-80DD-AA25B311B027}.Release|Any CPU.Build.0 = Release|Any CPU
{77044C92-D2F1-45BD-80DD-AA25B311B027}.TotemPre|Any CPU.ActiveCfg = TotemPre|Any CPU
@ -116,6 +126,8 @@ Global
{821FF72D-9F4B-4A2C-B95C-7B965291F119}.Debug|Any CPU.Build.0 = Debug|Any CPU
{821FF72D-9F4B-4A2C-B95C-7B965291F119}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{821FF72D-9F4B-4A2C-B95C-7B965291F119}.Lua|Any CPU.Build.0 = Lua|Any CPU
{821FF72D-9F4B-4A2C-B95C-7B965291F119}.LuaDebug|Any CPU.ActiveCfg = Debug|Any CPU
{821FF72D-9F4B-4A2C-B95C-7B965291F119}.LuaDebug|Any CPU.Build.0 = Debug|Any CPU
{821FF72D-9F4B-4A2C-B95C-7B965291F119}.Release|Any CPU.ActiveCfg = Release|Any CPU
{821FF72D-9F4B-4A2C-B95C-7B965291F119}.Release|Any CPU.Build.0 = Release|Any CPU
{821FF72D-9F4B-4A2C-B95C-7B965291F119}.TotemPre|Any CPU.ActiveCfg = TotemPre|Any CPU
@ -130,6 +142,8 @@ Global
{90BF2234-7252-4CD5-B2A4-17501B19279B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{90BF2234-7252-4CD5-B2A4-17501B19279B}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{90BF2234-7252-4CD5-B2A4-17501B19279B}.Lua|Any CPU.Build.0 = Lua|Any CPU
{90BF2234-7252-4CD5-B2A4-17501B19279B}.LuaDebug|Any CPU.ActiveCfg = Debug|Any CPU
{90BF2234-7252-4CD5-B2A4-17501B19279B}.LuaDebug|Any CPU.Build.0 = Debug|Any CPU
{90BF2234-7252-4CD5-B2A4-17501B19279B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{90BF2234-7252-4CD5-B2A4-17501B19279B}.Release|Any CPU.Build.0 = Release|Any CPU
{90BF2234-7252-4CD5-B2A4-17501B19279B}.TotemPre|Any CPU.ActiveCfg = TotemPre|Any CPU
@ -143,6 +157,8 @@ Global
{9D7D892E-9B77-4713-892D-C26E1E944119}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9D7D892E-9B77-4713-892D-C26E1E944119}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{9D7D892E-9B77-4713-892D-C26E1E944119}.Lua|Any CPU.Build.0 = Lua|Any CPU
{9D7D892E-9B77-4713-892D-C26E1E944119}.LuaDebug|Any CPU.ActiveCfg = Debug|Any CPU
{9D7D892E-9B77-4713-892D-C26E1E944119}.LuaDebug|Any CPU.Build.0 = Debug|Any CPU
{9D7D892E-9B77-4713-892D-C26E1E944119}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9D7D892E-9B77-4713-892D-C26E1E944119}.Release|Any CPU.Build.0 = Release|Any CPU
{9D7D892E-9B77-4713-892D-C26E1E944119}.TotemPre|Any CPU.ActiveCfg = TotemPre|Any CPU
@ -156,6 +172,7 @@ Global
{B5F49C21-7BB3-4DC0-AE65-F4ED0F6D15BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B5F49C21-7BB3-4DC0-AE65-F4ED0F6D15BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B5F49C21-7BB3-4DC0-AE65-F4ED0F6D15BD}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{B5F49C21-7BB3-4DC0-AE65-F4ED0F6D15BD}.LuaDebug|Any CPU.ActiveCfg = Debug|Any CPU
{B5F49C21-7BB3-4DC0-AE65-F4ED0F6D15BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B5F49C21-7BB3-4DC0-AE65-F4ED0F6D15BD}.Release|Any CPU.Build.0 = Release|Any CPU
{B5F49C21-7BB3-4DC0-AE65-F4ED0F6D15BD}.TotemPre|Any CPU.ActiveCfg = TotemPre|Any CPU
@ -167,6 +184,8 @@ Global
{BBA7175D-7F92-4278-96FC-84C495A2B5A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BBA7175D-7F92-4278-96FC-84C495A2B5A6}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{BBA7175D-7F92-4278-96FC-84C495A2B5A6}.Lua|Any CPU.Build.0 = Lua|Any CPU
{BBA7175D-7F92-4278-96FC-84C495A2B5A6}.LuaDebug|Any CPU.ActiveCfg = Debug|Any CPU
{BBA7175D-7F92-4278-96FC-84C495A2B5A6}.LuaDebug|Any CPU.Build.0 = Debug|Any CPU
{BBA7175D-7F92-4278-96FC-84C495A2B5A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BBA7175D-7F92-4278-96FC-84C495A2B5A6}.Release|Any CPU.Build.0 = Release|Any CPU
{BBA7175D-7F92-4278-96FC-84C495A2B5A6}.TotemPre|Any CPU.ActiveCfg = TotemPre|Any CPU
@ -179,6 +198,7 @@ Global
{BBA7175D-7F92-4278-96FC-84C495A2B5A6}.YavscPre|Any CPU.Build.0 = YavscPre|Any CPU
{C6DBD1DC-B619-4DC7-BC92-15693508541E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C6DBD1DC-B619-4DC7-BC92-15693508541E}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{C6DBD1DC-B619-4DC7-BC92-15693508541E}.LuaDebug|Any CPU.ActiveCfg = LuaDebug|Any CPU
{C6DBD1DC-B619-4DC7-BC92-15693508541E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C6DBD1DC-B619-4DC7-BC92-15693508541E}.TotemPre|Any CPU.ActiveCfg = TotemPre|Any CPU
{C6DBD1DC-B619-4DC7-BC92-15693508541E}.TotemProd|Any CPU.ActiveCfg = TotemProd|Any CPU
@ -188,6 +208,8 @@ Global
{C6E9E91B-97D3-48D9-8AA7-05356929E162}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C6E9E91B-97D3-48D9-8AA7-05356929E162}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{C6E9E91B-97D3-48D9-8AA7-05356929E162}.Lua|Any CPU.Build.0 = Lua|Any CPU
{C6E9E91B-97D3-48D9-8AA7-05356929E162}.LuaDebug|Any CPU.ActiveCfg = Debug|Any CPU
{C6E9E91B-97D3-48D9-8AA7-05356929E162}.LuaDebug|Any CPU.Build.0 = Debug|Any CPU
{C6E9E91B-97D3-48D9-8AA7-05356929E162}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C6E9E91B-97D3-48D9-8AA7-05356929E162}.Release|Any CPU.Build.0 = Release|Any CPU
{C6E9E91B-97D3-48D9-8AA7-05356929E162}.TotemPre|Any CPU.ActiveCfg = TotemPre|Any CPU
@ -202,6 +224,8 @@ Global
{EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.Lua|Any CPU.ActiveCfg = Lua|Any CPU
{EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.Lua|Any CPU.Build.0 = Lua|Any CPU
{EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.LuaDebug|Any CPU.ActiveCfg = Debug|Any CPU
{EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.LuaDebug|Any CPU.Build.0 = Debug|Any CPU
{EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.Release|Any CPU.Build.0 = Release|Any CPU
{EEFCECE6-3B7F-4BBE-B7AF-69377AF3CF39}.TotemPre|Any CPU.ActiveCfg = TotemPre|Any CPU

@ -1,3 +1,7 @@
2015-12-24 Paul Schneider <paul@pschneider.fr>
* pkg.mdproj: ajout d'une configuration de debuggage pour Lua
2015-11-26 Paul Schneider <paul@pschneider.fr>
* pkg.mdproj: nouvelles configurations de déploiement

@ -20,7 +20,7 @@
</Package>
</Packages>
</Packages>
<Configuration Condition=" '$(Configuration)' == '' ">TotemPre</Configuration>
<Configuration Condition=" '$(Configuration)' == '' ">LuaDebug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
</PropertyGroup>
</Project>

@ -1,3 +1,8 @@
2015-12-24 Paul Schneider <paul@pschneider.fr>
* fortune.csproj: ajout d'une configuration de debuggage pour
Lua
2015-11-30 Paul Schneider <paul@pschneider.fr>
* fortune.csproj: ...

@ -54,6 +54,11 @@
<OutputPath>bin\Yavsc</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'LuaDebug|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Configuration" />

@ -1,3 +1,12 @@
2015-12-24 Paul Schneider <paul@pschneider.fr>
* App.master: traductions
* EventPub.aspx: debug sur page encore inutilisée
* Yavsc.csproj: ajout d'une configuration de debuggage pour
Lua
2015-12-23 Paul Schneider <paul@pschneider.fr>
* Web.config: Ajoute le paramètre obligatoire "Themes" au

@ -64,19 +64,18 @@ else {%> Yavsc.notice(<%=note.body%>, <%=note.click_action%>, <%=note.click_acti
<% } else { %>
<a href="<%=Url.RouteUrl("Blogs", new { user = HttpContext.Current.User.Identity.Name } )%>" accesskey = "B" class="link" >
<img src="<%=Url.AvatarUrl(HttpContext.Current.User.Identity.Name)%>" alt="" class="iconsmall" />
Vos billets
<%= Html.Translate("YourPosts") %>
</a>
<a href="<%= Url.RouteUrl("Default", new { controller = "Account", action = "Profile", id = HttpContext.Current.User.Identity.Name} ) %>" accesskey="P" class="link ">
<i class="fa fa-user"></i>
<%= HttpContext.Current.User.Identity.Name %>
<span class="hint"> &Eacute;dition de votre profile </span>
<span class="hint"><%= Html.Translate("YourProfile") %></span>
</a>
<a href="/Blogs/Post" accesskey="P" class="link">
<i class="fa fa-pencil"></i>
<u>P</u>oster
<span class="hint">&Eacute;dition d'un nouveau billet </span>
<%= Html.Translate("DoPost") %>
</a>
<a href="<%= Url.RouteUrl("Default", new { controller = "Account", action = "Logout", returnUrl=Request.Url.PathAndQuery}) %>" accesskey = "C" class="link">
<i class="fa fa-sign-out"></i>
<%=Html.Translate("Logout")%></a>

@ -1,4 +1,4 @@
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<EventPub>" %>
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<EventCirclesPub>" %>
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">

@ -0,0 +1,42 @@
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.net>
<mailSettings xdt:Transform="Replace">
<smtp deliveryMethod="network" from="paulschneider@free.fr" >
<network host="smtp.free.fr" port="25" defaultCredentials="false" />
</smtp>
</mailSettings>
</system.net>
<system.web>
<profile>
<properties>
<add name="UITheme" allowAnonymous="true" defaultValue="dark" xdt:Transform="Replace" xdt:Locator="Match(name)" />
</properties>
</profile>
</system.web>
<connectionStrings>
<add name="yavsc" connectionString="Server=127.0.0.1;Port=5432;Database=lua;User Id=lua;Password=vEk5g#K3;" providerName="Npgsql" xdt:Transform="Replace" xdt:Locator="Match(name)" />
</connectionStrings>
<paypal>
<settings>
<add name="mode" value="sandbox" />
<!-- live or sandbox -->
<add name="connectionTimeout" value="30000" />
<!-- (miliseconds) = 30s -->
<add name="requestRetries" value="1" />
<!-- -->
<add name="clientId" value="A9S6jrem3H0gdj8tQ2q1ahSCU38tAJRyiro7eED13h3Syn6C9ZSKSRkl" xdt:Transform="Replace" xdt:Locator="Match(name)" />
<!-- -->
<add name="clientSecret" value="PLF77VGTZGGSSZAY" xdt:Transform="Replace" xdt:Locator="Match(name)" />
<!-- -->
</settings>
</paypal>
<appSettings>
<add key="Name" value="Lua" xdt:Transform="Replace" xdt:Locator="Match(key)" />
<add key="AdminEMail" value="contact@pschneider.fr" xdt:Transform="Replace" xdt:Locator="Match(key)" />
<add key="OwnerEMail" value="paul@pschneider.fr" xdt:Transform="Replace" xdt:Locator="Match(key)" />
<add key="GOOGLE_API_KEY" value="AIzaSyCF7Bgz-W_p26bbMzxp1ukdgg3LMDHzAo0" xdt:Transform="Replace" xdt:Locator="Match(key)" />
<add key="GOOGLE_CLIENT_ID" value="325408689282-6bekh7p3guj4k0f3301a6frf025cnrk1.apps.googleusercontent.com" xdt:Transform="Replace" xdt:Locator="Match(key)" />
<add key="GOOGLE_CLIENT_SECRET" value="MaxYcvJJCs2gDGvaELZbzwfL" xdt:Transform="Replace" xdt:Locator="Match(key)" />
</appSettings>
</configuration>

@ -65,6 +65,11 @@
<OutputPath>bin</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'LuaDebug|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Configuration" />
@ -817,6 +822,7 @@
<None Include="Web.TotemProd.config" />
<None Include="Scripts\jquery.mobile-1.4.5.min.map" />
<None Include="App_Themes\images\GitHub.ico" />
<None Include="Web.LuaDebug.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\NpgsqlMRPProviders\NpgsqlMRPProviders.csproj">

@ -34,12 +34,7 @@ namespace Yavsc.Model.Calendar
{
#region INominative implementation
public string PerformerName {
get {
throw new NotImplementedException ();
}
set {
throw new NotImplementedException ();
}
get ; set ;
}
#endregion
}

@ -1,3 +1,27 @@
2015-12-24 Paul Schneider <paul@pschneider.fr>
* NominativeEventPub.cs: implémentation du nom de préstataire
dans la notification nominative
* Commande.cs: code plus simple
* GoogleHelpers.cs:
* MessageWithPayLoad.cs: fixe l'envoi de la notification GCM
* MessageWithPayloadResponse.cs: fixe la réception de la
notification GCM
* LocalizedText.resx:
* LocalizedText.fr.resx:
* LocalizedText.Designer.cs:
* LocalizedText.fr.Designer.cs: traductions
* WorkFlowManager.cs: envoyer un notification GCM + email à la
demande de devis
* YavscModel.csproj: ajout d'une configuration de debuggage
pour Lua
2015-12-23 Paul Schneider <paul@pschneider.fr>
* WorkFlowManager.cs: une note à faire : envoyer le lieu de la

@ -105,8 +105,7 @@ namespace Yavsc.Model.FrontOffice
// stores the parameters:
SetParameters(collection);
WorkFlowManager.RegisterCommand (this); // gives a value to this.Id
string strcmdid = Id.ToString ();
UserFileSystemManager.Put(Path.Combine("commandes",strcmdid),files);
UserFileSystemManager.Put(Path.Combine("commandes",Id.ToString ()),files);
}
/// <summary>

@ -106,6 +106,8 @@ namespace Yavsc.Model.Google.Api
using (var r =
new SimpleJsonPostMethod<MessageWithPayload<YaEvent>,MessageWithPayloadResponse>(
"https://gcm-http.googleapis.com/gcm/send")) {
r.SetCredential (ConfigurationManager.AppSettings ["GOOGLE_GCM_API_KEY"]);
if (evpub.CircleIds != null) {
var users = Circle.Union (evpub.CircleIds);
var regids = new List<string> ();
@ -127,7 +129,7 @@ namespace Yavsc.Model.Google.Api
var msg = new MessageWithPayload<YaEvent> () {
notification = new Notification() { title = evpub.Title, body = evpub.Description, icon = "event" },
data = new YaEvent[] { (YaEvent)evpub }, registration_ids = regids.ToArray() };
data = evpub , registration_ids = regids.ToArray() };
return r.Invoke (msg);
} else {
@ -145,13 +147,14 @@ namespace Yavsc.Model.Google.Api
using (var r =
new SimpleJsonPostMethod<MessageWithPayload<YaEvent>,MessageWithPayloadResponse> (
"https://gcm-http.googleapis.com/gcm/send")) {
r.SetCredential ("key="+ConfigurationManager.AppSettings ["GOOGLE_API_KEY"]);
var userprofile = ProfileBase.Create (evpub.PerformerName);
var regid = userprofile.GetPropertyValue ("gregid") as string;
if (regid == null)
throw new NotImplementedException ("Notification via e-mail");
var msg = new MessageWithPayload<YaEvent> () {
notification = new Notification() { title = evpub.Title, body = evpub.Description, icon = "event" },
data = new YaEvent[] { (YaEvent)evpub }, registration_ids = new string[] { regid } };
data = evpub, registration_ids = new string[] { regid } };
return r.Invoke (msg);
}
}

@ -39,7 +39,7 @@ namespace Yavsc.Model.Google.Api.Messaging
/// <summary>
/// The data.
/// </summary>
public T[] data ;
public T data ;
/// <summary>
/// The notification.
/// </summary>

@ -32,7 +32,7 @@ namespace Yavsc.Model.Google.Api.Messaging
/// <summary>
/// The multicast identifier.
/// </summary>
public int multicast_id;
public string multicast_id;
/// <summary>
/// The success count.
/// </summary>
@ -44,7 +44,7 @@ namespace Yavsc.Model.Google.Api.Messaging
/// <summary>
/// The canonical identifiers... ?!?
/// </summary>
public int canonical_ids;
public string canonical_ids;
/// <summary>
/// Detailled result.
/// </summary>

@ -196,12 +196,24 @@ namespace Yavsc.Model {
}
}
public static string YourProfile {
get {
return ResourceManager.GetString("YourProfile", resourceCulture);
}
}
public static string EndDate {
get {
return ResourceManager.GetString("EndDate", resourceCulture);
}
}
public static string DoSpecifyCircles {
get {
return ResourceManager.GetString("DoSpecifyCircles", resourceCulture);
}
}
public static string Circles {
get {
return ResourceManager.GetString("Circles", resourceCulture);
@ -244,6 +256,12 @@ namespace Yavsc.Model {
}
}
public static string YourPosts {
get {
return ResourceManager.GetString("YourPosts", resourceCulture);
}
}
public static string Non_existent_user {
get {
return ResourceManager.GetString("Non_existent_user", resourceCulture);
@ -286,6 +304,12 @@ namespace Yavsc.Model {
}
}
public static string younotadmin {
get {
return ResourceManager.GetString("younotadmin", resourceCulture);
}
}
public static string Create {
get {
return ResourceManager.GetString("Create", resourceCulture);
@ -340,12 +364,6 @@ namespace Yavsc.Model {
}
}
public static string is_licensed_by {
get {
return ResourceManager.GetString("is_licensed_by", resourceCulture);
}
}
public static string BookingTitle6829C {
get {
return ResourceManager.GetString("BookingTitle6829C", resourceCulture);
@ -622,9 +640,9 @@ namespace Yavsc.Model {
}
}
public static string DoSpecifyCircles {
public static string is_licensed_by {
get {
return ResourceManager.GetString("DoSpecifyCircles", resourceCulture);
return ResourceManager.GetString("is_licensed_by", resourceCulture);
}
}
@ -646,9 +664,9 @@ namespace Yavsc.Model {
}
}
public static string younotadmin {
public static string Home {
get {
return ResourceManager.GetString("younotadmin", resourceCulture);
return ResourceManager.GetString("Home", resourceCulture);
}
}
@ -670,12 +688,6 @@ namespace Yavsc.Model {
}
}
public static string Home {
get {
return ResourceManager.GetString("Home", resourceCulture);
}
}
public static string DoTag {
get {
return ResourceManager.GetString("DoTag", resourceCulture);
@ -838,6 +850,12 @@ namespace Yavsc.Model {
}
}
public static string DoPost {
get {
return ResourceManager.GetString("DoPost", resourceCulture);
}
}
public static string entries {
get {
return ResourceManager.GetString("entries", resourceCulture);

File diff suppressed because it is too large Load Diff

@ -51,6 +51,7 @@
<data name="DocTemplateException"><value>Une erreur est survenue à la génération de votre document</value></data>
<data name="Description"><value>Description</value></data>
<data name="DisplayName"><value>Nom affiché</value></data>
<data name="DoPost"><value>Poster</value></data>
<data name="DoTag"><value>Tagger</value></data>
<data name="Edit"><value>Éditer</value></data>
<data name="Edited"><value>Edité</value></data>
@ -155,4 +156,6 @@
<data name="YourNeed"><value>Votre besoin</value></data>
<data name="yourquerytransmitted"><value>Votre demande a été transmise</value></data>
<data name="YourSkills"><value>Vos talents, vos spécialités, le domaine de vos activités</value></data>
<data name="YourPosts"><value>Vos posts</value></data>
<data name="YourProfile"><value>Votre profile</value></data>
</root>

@ -49,6 +49,7 @@
<data name="Description"><value>Description</value></data>
<data name="DisplayName"><value>Display Name</value></data>
<data name="DoAnEstimate"><value>Do an estimate</value></data>
<data name="DoPost"><value>Do post</value></data>
<data name="DocTemplateException"><value>Exception occured when rendering your document</value></data>
<data name="DoNotPublishMyActivity"><value>Do Not Publish My Activity</value></data>
<data name="DoSpecifyCircles"><value>Please, specify circles for audiance</value></data>
@ -160,5 +161,7 @@
<data name="YourNeed"><value>Your need</value></data>
<data name="yourquerytransmitted"><value>your query has been transmitted</value></data>
<data name="YourSkills"><value>Your skills, your special fields, the scope of your activities</value></data>
<data name="YourPosts"><value>You posts</value></data>
<data name="YourProfile"><value>Your profile</value></data>
</root>

@ -10,6 +10,11 @@ using Yavsc.Model.Skill;
using System.Linq;
using Yavsc.Model.Calendar;
using Yavsc.Model.Google.Api;
using System.Net.Mail;
using System.Web.Security;
using System.Web.Configuration;
using System.Net;
using System.IO;
namespace Yavsc.Model.WorkFlow
{
@ -19,7 +24,7 @@ namespace Yavsc.Model.WorkFlow
/// It takes orders store them and raise some events for modules
/// It publishes estimates and invoices
/// </summary>
public static class WorkFlowManager
public static class WorkFlowManager
{
/// <summary>
@ -28,15 +33,15 @@ namespace Yavsc.Model.WorkFlow
/// <returns>The activity.</returns>
/// <param name="pattern">Pattern.</param>
/// <param name="exerted">If set to <c>true</c> exerted.</param>
public static Activity[] FindActivity(string pattern = "%", bool exerted=true)
public static Activity[] FindActivity (string pattern = "%", bool exerted = true)
{
List<Activity> activities = new List<Activity> ();
foreach (var provider in Providers) {
foreach (var act in provider.FindActivity (pattern, exerted))
if (!activities.Contains(act))
activities.Add(act);
if (!activities.Contains (act))
activities.Add (act);
}
return activities.ToArray();
return activities.ToArray ();
}
/// <summary>
@ -45,7 +50,7 @@ namespace Yavsc.Model.WorkFlow
/// <returns>The performer.</returns>
/// <param name="MEACode">MEA code.</param>
/// <param name="skills">Skills.</param>
public static PerformerProfile [] FindPerformer (string MEACode, SkillRating[] skills)
public static PerformerProfile [] FindPerformer (string MEACode, SkillRating[] skills)
{
string[] usernames = SkillManager.FindPerformer (MEACode, skills);
List<PerformerProfile> result = new List<PerformerProfile> ();
@ -75,17 +80,51 @@ namespace Yavsc.Model.WorkFlow
/// </summary>
/// <returns>The command.</returns>
/// <param name="com">COM.</param>
public static long RegisterCommand(Command com)
public static long RegisterCommand (Command com)
{
long cmdid = DefaultProvider.RegisterCommand (com);
string errorMsgGCM=null;
if (com.GetType ().GetInterface ("INominative") != null) {
INominative cmdn = com as INominative;
NominativeEventPub ev = new NominativeEventPub ();
ev.PerformerName = cmdn.PerformerName;
ev.Description = com.GetDescription ();
string desc = com.GetDescription ();
ev.Description = desc;
// TODO send a location
GoogleHelpers.NotifyEvent (ev);
try {
var gnresponse = GoogleHelpers.NotifyEvent (ev);
}
catch (WebException ex) {
using (var respstream = ex.Response.GetResponseStream ()) {
using (StreamReader rdr = new StreamReader (respstream)) {
errorMsgGCM = rdr.ReadToEnd ();
rdr.Close ();
}
respstream.Close ();
}
if (errorMsgGCM==null)
errorMsgGCM = "No response";
throw new Exception (errorMsgGCM);
}
string errorEMail = null;
try {
var pref = Membership.GetUser (cmdn.PerformerName);
using (System.Net.Mail.MailMessage msg =
new MailMessage (
WebConfigurationManager.AppSettings.Get ("OwnerEMail"),
pref.Email,
"[Demande de devis] " + com.ClientName,
desc)) {
using (System.Net.Mail.SmtpClient sc = new SmtpClient ()) {
sc.Send (msg);
}
}
}
catch (Exception ex) {
errorEMail = ex.Message;
}
}
return cmdid;
}
@ -98,6 +137,7 @@ namespace Yavsc.Model.WorkFlow
{
DefaultProvider.Update (estim);
}
/// <summary>
/// Gets the estimate.
/// </summary>
@ -107,6 +147,7 @@ namespace Yavsc.Model.WorkFlow
{
return DefaultProvider.Get (estid);
}
/// <summary>
/// Gets the estimates, refering the
/// given client or username .
@ -143,7 +184,7 @@ namespace Yavsc.Model.WorkFlow
/// </summary>
/// <returns>The stock status.</returns>
/// <param name="productReference">Product reference.</param>
public static StockStatus GetStock(string productReference)
public static StockStatus GetStock (string productReference)
{
return DefaultProvider.GetStockStatus (productReference);
}
@ -165,16 +206,18 @@ namespace Yavsc.Model.WorkFlow
{
DefaultProvider.DropWritting (wrid);
}
/// <summary>
/// Drops the estimate.
/// </summary>
/// <param name="estid">Estid.</param>
public static void DropEstimate (long estid)
{
DefaultProvider.DropEstimate(estid);
DefaultProvider.DropEstimate (estid);
}
static IContentProvider defaultProvider;
/// <summary>
/// Gets the content provider.
/// </summary>
@ -188,6 +231,7 @@ namespace Yavsc.Model.WorkFlow
return defaultProvider;
}
}
/// <summary>
/// Drops the writting tag.
/// </summary>
@ -209,14 +253,14 @@ namespace Yavsc.Model.WorkFlow
var pbs = ManagerHelper.CreateProviders
("system.web/workflow");
providers = new IContentProvider [pbs.Length];
for (var i=0;i<pbs.Length;i++)
providers[i] = pbs[i] as IContentProvider;
for (var i = 0; i < pbs.Length; i++)
providers [i] = pbs [i] as IContentProvider;
}
return providers;
}
}
private static IContentProvider [] providers = null;
private static IContentProvider[] providers = null;
/// <summary>
/// Creates the estimate.
@ -226,7 +270,7 @@ namespace Yavsc.Model.WorkFlow
/// <param name="client">Client.</param>
/// <param name="title">Title.</param>
/// <param name="description">Description.</param>
public static Estimate CreateEstimate(string responsible, string client, string title, string description)
public static Estimate CreateEstimate (string responsible, string client, string title, string description)
{
Estimate created = DefaultProvider.CreateEstimate (responsible, client, title, description);
return created;
@ -240,9 +284,9 @@ namespace Yavsc.Model.WorkFlow
/// <param name="ucost">Ucost.</param>
/// <param name="count">Count.</param>
/// <param name="productid">Productid.</param>
public static long Write(long estid, string desc, decimal ucost, int count, string productid)
public static long Write (long estid, string desc, decimal ucost, int count, string productid)
{
if (!string.IsNullOrWhiteSpace(productid)) {
if (!string.IsNullOrWhiteSpace (productid)) {
if (Catalog == null)
Catalog = CatalogManager.GetCatalog ();
if (Catalog == null)
@ -252,7 +296,7 @@ namespace Yavsc.Model.WorkFlow
throw new Exception ("Product not found");
// TODO new EstimateChange Event
}
return DefaultProvider.Write(estid, desc, ucost, count, productid);
return DefaultProvider.Write (estid, desc, ucost, count, productid);
}
/// <summary>
@ -261,19 +305,21 @@ namespace Yavsc.Model.WorkFlow
/// <param name="estid">Estid.</param>
/// <param name="status">Status.</param>
/// <param name="username">Username.</param>
public static void SetEstimateStatus(long estid, int status, string username)
public static void SetEstimateStatus (long estid, int status, string username)
{
DefaultProvider.SetEstimateStatus (estid, status, username);
}
/// <summary>
/// Gets the commands.
/// </summary>
/// <returns>The commands.</returns>
/// <param name="username">Username.</param>
public static CommandSet GetCommands(string username)
public static CommandSet GetCommands (string username)
{
return DefaultProvider.GetCommands (username);
}
/// <summary>
/// Registers the activity.
/// </summary>

@ -62,6 +62,12 @@
<WarningLevel>4</WarningLevel>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'LuaDebug|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.ComponentModel.DataAnnotations" />

@ -1,3 +1,8 @@
2015-12-24 Paul Schneider <paul@pschneider.fr>
* YavscClient.csproj: ajout d'une configuration de debuggage
pour Lua
2015-12-15 Paul Schneider <paul@pschneider.fr>
* MainClass.cs: format du code

@ -62,6 +62,12 @@
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'LuaDebug|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Lua</OutputPath>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Net.Http" />

Loading…