Un bouton "Demander un devis"
* INominative.cs: Interface d'un objet destiné à un préstataire spécifié, par une propriété `PerformerName` * NominativeSimpleBookingQuery.cs: implémente l'interface INominative * packages.config: * packages.config: * packages.config: * ITContentProvider.csproj: * NpgsqlBlogProvider.csproj: * NpgsqlContentProvider.csproj: mise à niveau Npgsql * NpgsqlContentProvider.cs: stocke la classe de commande * AccountController.cs: implémente la methode de login de l'API * BasketController.cs: implémente la methode de recupération du panier * AccountController.cs: enléve un commaentaire obsolète * YavscHelpers.cs: * FrontOfficeController.cs: refabrication de l'ajout au panier * yavsc.user.js: enlève un message de debuggage js * Performer.ascx: formattage * Performers.aspx: implémente le bouton de demande de reservation * Yavsc.csproj: validate unobtrusive * packages.config: référence M$ Owin * UserFileSystemManager.cs: Fixe: Ne pas créer un dossier de destination si on a aucun fichier à recevoir. * Commande.cs: * Ajoute le nom du client dans l'objet commande * Factorise le positionnement des paramêtres * La commande est une instance du type spécifié à la commande, dans son paramêtre `type` * SimpleBookingQuery.cs: refabrication * LocalizedText.resx: * LocalizedText.fr.resx: traducations * UserNameBase.cs: implemente l'interface `IUserName` * IContentProvider.cs: doc xml * YavscModel.csproj: reference le nouveau code source * Web.config: retour à une version d'équère * IUserName.cs: Définit l'interface d'un objet associé à un utilisateur.
This commit is contained in:
parent
1cb3a692ef
commit
2a1301d93c
34 changed files with 409 additions and 77 deletions
|
|
@ -56,7 +56,6 @@ namespace Yavsc.Controllers
|
|||
return View ();
|
||||
}
|
||||
|
||||
// TODO [ValidateAntiForgeryToken]
|
||||
/// <summary>
|
||||
/// Does login.
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -40,6 +40,11 @@ namespace Yavsc.Controllers
|
|||
return View ();
|
||||
}
|
||||
|
||||
public ActionResult AskForAnEstimate()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Pub the Event
|
||||
/// </summary>
|
||||
|
|
@ -251,11 +256,13 @@ namespace Yavsc.Controllers
|
|||
// * instanciate the given command type, passing it the form data
|
||||
// * Make the workflow register this command
|
||||
// * Render the resulting basket
|
||||
var cmd = Command.CreateCommand (collection, HttpContext.Request.Files);
|
||||
ViewData["Commanded"] = cmd;
|
||||
|
||||
long cmdid = YavscHelpers.CreateCommandFromRequest ();
|
||||
var basket = WorkFlowManager.GetCommands (User.Identity.Name);
|
||||
ViewData["Commanded"] = basket[cmdid];
|
||||
YavscHelpers.Notify (ViewData,
|
||||
LocalizedText.Item_added_to_basket);
|
||||
return View ("Basket",WorkFlowManager.GetCommands (User.Identity.Name));
|
||||
return View ("Basket",basket);
|
||||
} catch (Exception e) {
|
||||
YavscHelpers.Notify (ViewData, "Exception:" + e.Message);
|
||||
return View (collection);
|
||||
|
|
@ -263,7 +270,7 @@ namespace Yavsc.Controllers
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Booking the specified model.
|
||||
/// Book the specified model.
|
||||
/// </summary>
|
||||
/// <param name="model">Model.</param>
|
||||
public ActionResult EavyBooking (BookingQuery model)
|
||||
|
|
@ -295,7 +302,7 @@ namespace Yavsc.Controllers
|
|||
|
||||
/// <summary>
|
||||
/// Performers on this MEA.
|
||||
/// fr
|
||||
/// [fr]
|
||||
/// Liste des prestataires dont
|
||||
/// l'activité principale est celle spécifiée
|
||||
/// </summary>
|
||||
|
|
@ -450,6 +457,10 @@ namespace Yavsc.Controllers
|
|||
} else
|
||||
result.Add (profile.CreateAvailability (model.PreferedDate, false));
|
||||
ViewData["Circles"] = CircleManager.ListAvailableCircles();
|
||||
ViewBag.SimpleBookingQuery = model;
|
||||
ViewBag.ClientName = User.Identity.IsAuthenticated ?
|
||||
User.Identity.Name : User.Identity.Name;
|
||||
|
||||
return View ("Performers", result.ToArray ());
|
||||
}
|
||||
if (model.Need==null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue