* styles.json:
* map-load.gif: * mapstyle.css: * fit-bounds.png: * mapstyle-ie.css: * jquery.googlemaps.js: * pin-pink.png: * mapstyle.min.css: * pin-green.png: * pin-azure.png: * flag-azure.png: * flag-green.png: * needle-pink.png: * jquery.googlemaps.min.js: * current-location.png: * niddle-green.png: * popup-template-marker.html: * popup-template-circle.html: * popup-template-polygon.html: * popup-template-polyline.html: * popup-template-rectangle.html: GoogleMaps related add * AccountController.cs: Fixes the conflict between external and custom avatar * BasketController.cs: (Revert to revision 93c18633b98b66feb90f6883e2d05a6aa1334134) * BlogsController.cs: Removes unused statment * style.css: * UserPost.aspx: * UserPosts.aspx: an Avatar * Web.csproj: Google Maps references and resources * packages.config: Adds GoogleMapsHelpers, JQuery.GoogleMaps and MVC.GoogleMaps references * NpgsqlWorkflow.csproj: The project now references Newtonsoft.Json * NpgsqlContentProvider.cs: Saves the command parameters
This commit is contained in:
@ -4,10 +4,10 @@ using NpgsqlTypes;
|
||||
using System.Configuration;
|
||||
using System.Collections.Specialized;
|
||||
using Yavsc.Model.WorkFlow;
|
||||
using System.Web.Mvc;
|
||||
using System.Configuration.Provider;
|
||||
using System.Collections.Generic;
|
||||
using Yavsc.Model.FrontOffice;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace WorkFlowProvider
|
||||
{
|
||||
@ -19,9 +19,10 @@ namespace WorkFlowProvider
|
||||
using (NpgsqlConnection cnx = CreateConnection ()) {
|
||||
using (NpgsqlCommand cmd = cnx.CreateCommand ()) {
|
||||
cmd.CommandText =
|
||||
"insert into commandes (prdref,creation) values (@pref,@creat) returning id";
|
||||
"insert into commandes (prdref,creation,params) values (@pref,@creat,@prs) returning id";
|
||||
cmd.Parameters.Add ("@pref", com.ProdRef);
|
||||
cmd.Parameters.Add ("@creat", com.CreationDate);
|
||||
cmd.Parameters.Add ("@prs", JsonConvert.SerializeObject(com.Parameters));
|
||||
cnx.Open ();
|
||||
com.Id = id = (long)cmd.ExecuteScalar ();
|
||||
}
|
||||
|
@ -36,6 +36,10 @@
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Web.Mvc" />
|
||||
<Reference Include="System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
|
||||
<HintPath>..\..\..\..\..\usr\lib\mono\4.5\System.Net.Http.Formatting.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
|
Reference in New Issue
Block a user