recupération de mot de passe + prise de commande

* ResetPassword.txt: Un message pour le mot de passe oublié

* style.css: fixe un 404

* UpdatePassword.aspx: Implémente le formulaire de mise à jour du mot
  de passe,
accessible depuis l'e-mail.

* Contact.aspx: implémente la page de contact préstataire

* UpdatePassword.cs: modèle de la modification de mot de passe au
jeton de securité (qui est encore un fake en l'état)

* CommandRegistration.cs: un enregistrement de commande

* NominativeCommandRegistration.cs: un enregistrement de commande
  nominative

* .gitignore: ignore ma config LuaDebug

* NpgsqlMembershipProvider.cs: ne pas crasher à la lecture en base de
  la question de
recupération du mot de passe quand elle est nulle.

* BasketController.cs: renvoie l'objet décrivant la prise de commande

* Global.asax.cs: ignorer les routes vers App_Data et App_Code

* instdbws.sql: passage du type json à jsonb pour les paramètres de la
  commande

* RegistrationMail.txt: un piti message à l'enregistrement

* AccountController.cs: Envoi du message du mot de passe oublié,
methode de changemnet du mot de passe.

* AdminController.cs: xmldoc + refabrication helper Notify

* HomeController.cs:
* BlogsController.cs:
* GoogleController.cs: refabrication helper Notify

* FrontOfficeController.cs: Refabrication: Utilisation du nouvel
  enregistrement de commande.
+ refabrication helper Notify

* YavscHelpers.cs: implémente la methode d'envoi du message de mot de
  passe oublié
+ refabrication helper Notify

* App.master: Corrige la notification Html

* AppAdmin.master: Le lien vers la page de contact était associé
à tort à la classe css "thanks"

* yavsc.js: message plus parlant en cas de requête Ajax mal formée.

* Login.aspx: Implémente le lien vers le formulaire de recupération du
  mot de passe

* UserPost.aspx: .

* Booking.aspx: format du code

* Performer.ascx: l'e-mail préstataire ne sera jamais fourni par
  l'application,
aussi, on parlera de "prendre contact", d'échanger ... mais pas de
  donner l'adresse e-mail.
L'information "son email" n'est donc pas disponible meme à
  l'utilisateur autorisé.
La prise de contact, ou autre fux de comunication le sont.

* Performers.aspx: affiche la notification à l'envoi de la demande de
  devis

* Product.aspx:
* Service.aspx: les periodes du catalogue et du calendrier sont
  fondue.

* Contact.aspx: traduction en français

* Web.config:
  * la procédure de recupération du mot de passe est
    activée
  * l'e-message envoyé est construit à partir d'un modèle, un fichier
    texte trouvé dans /App_Data, et indiqué à l'application
    par le paramêtre applicatif "LostPasswordMessage"

* Yavsc.csproj: reference les nouveaux fichiers

* Product.cs: utilise la période du calendrier

* Commande.cs: renvoie un objet à la prise de commande, indiquant
  l'identifiant de commande, et les messages envoyés
  en cas de commande nominative.

* GoogleHelpers.cs: icone à la notification mobile

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

* UserNameBase.cs: fixe la dé-sérialisation

* WorkFlowManager.cs: refabrication de la prise de commande

* YavscModel.csproj: nouveaux objets du modèle

* OtherWebException.aspx: page obsolete

* Period.cs: fondre la période: celle du catalogue disparait, au
  profit de celle du calendrier.
This commit is contained in:
Paul Schneider 2015-12-30 14:43:39 +01:00
commit a14e63d26f
49 changed files with 793 additions and 218 deletions

View file

@ -1,29 +0,0 @@
using System;
namespace Yavsc.Model.FrontOffice.Catalog
{
/// <summary>
/// Period.
/// </summary>
public class Period
{
/// <summary>
/// Initializes a new instance of the <see cref="Yavsc.Model.FrontOffice.Period"/> class.
/// </summary>
public Period ()
{
}
/// <summary>
/// Gets or sets the start date.
/// </summary>
/// <value>The start date.</value>
public DateTime StartDate { get; set; }
/// <summary>
/// Gets or sets the end date.
/// </summary>
/// <value>The end date.</value>
public DateTime EndDate { get; set; }
}
}

View file

@ -1,5 +1,6 @@
using System;
using System.ComponentModel.DataAnnotations;
using Yavsc.Model.Calendar;
namespace Yavsc.Model.FrontOffice.Catalog
{

View file

@ -7,6 +7,7 @@ using System.Web;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using Yavsc.Model.WorkFlow;
namespace Yavsc.Model.FrontOffice
{
@ -62,6 +63,11 @@ namespace Yavsc.Model.FrontOffice
public Command()
{
}
/// <summary>
/// Sets the parameters.
/// </summary>
/// <param name="collection">Collection.</param>
public void SetParameters(Dictionary<string,string> collection)
{
Parameters.Clear ();
@ -88,7 +94,7 @@ namespace Yavsc.Model.FrontOffice
/// </summary>
/// <param name="collection">Collection.</param>
/// <param name="files">Files.</param>
private void FromPost(Dictionary<string,string> collection, NameObjectCollectionBase files)
private CommandRegistration FromPost(Dictionary<string,string> collection, NameObjectCollectionBase files)
{
// string catref=collection["catref"]; // Catalog Url from which formdata has been built
ProductRef = collection ["productref"];
@ -104,13 +110,16 @@ namespace Yavsc.Model.FrontOffice
Status = CommandStatus.Inserted;
// stores the parameters:
SetParameters(collection);
WorkFlowManager.RegisterCommand (this); // gives a value to this.Id
var registration = WorkFlowManager.RegisterCommand (this); // gives a value to this.Id
UserFileSystemManager.Put(Path.Combine("commandes",Id.ToString ()),files);
return registration;
}
/// <summary>
/// Creates a command using the specified collection
/// as command parameters, handles the files upload.
/// as command parameters, handles the files upload,
/// ans register the command in db, positionning the
/// command id.
///
/// Required values in the command parameters :
///
@ -118,21 +127,27 @@ namespace Yavsc.Model.FrontOffice
/// * type: the command concrete class name.
///
/// </summary>
/// <returns>The command.</returns>
/// <param name="collection">Collection.</param>
/// <param name="files">Files.</param>
public static Command CreateCommand (Dictionary<string,string> collection, NameObjectCollectionBase files)
/// <param name="cmdreg">Cmdreg.</param>
public static Command CreateCommand (
Dictionary<string,string> collection,
NameObjectCollectionBase files,
out CommandRegistration cmdreg)
{
string type = collection ["type"];
if (type == null)
throw new InvalidOperationException (
"A command type cannot be blank");
var cmd = CreateCommand (type);
cmd.FromPost (collection, files);
cmdreg = cmd.FromPost (collection, files);
return cmd;
}
/// <summary>
/// Creates the command.
/// Creates the command, for deserialisation,
/// do not register it in database.
/// </summary>
/// <returns>The command.</returns>
/// <param name="className">Class name.</param>
@ -152,6 +167,11 @@ namespace Yavsc.Model.FrontOffice
var cmd = ci.Invoke (new object[]{ });
return cmd as Command;
}
/// <summary>
/// Gets the command textual description.
/// </summary>
/// <returns>The description.</returns>
public abstract string GetDescription ();
}
}