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
This commit is contained in:
Paul Schneider 2015-12-24 13:59:07 +01:00
commit 5a4179d051
42 changed files with 644 additions and 334 deletions

View file

@ -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

View file

@ -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>

View file

@ -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">

42
web/Web.LuaDebug.config Normal file
View file

@ -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>

View file

@ -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">