* Web.csproj:

* LocalizedText.resx:
* SimpleFormatter.cs:
* TemplateException.cs:
* ErrorHtmlFormatter.cs:
* LocalizedText.Designer.cs:
* WorkFlowManager.cs: 

* Makefile: refactoring

* FrontOfficeApiController.cs: nice html error response in case of
  error at rendering a tex or pdf document 

* LocalizedText.fr.resx: Gives as title at rendering a template
  processing error
This commit is contained in:
Paul Schneider 2015-01-23 13:26:34 +01:00
commit 2f6146c0f7
10 changed files with 163 additions and 13 deletions

View file

@ -154,6 +154,12 @@ namespace Yavsc.Model {
}
}
public static string DocTemplateException {
get {
return ResourceManager.GetString("DocTemplateException", resourceCulture);
}
}
public static string Description {
get {
return ResourceManager.GetString("Description", resourceCulture);

View file

@ -39,4 +39,6 @@
<data name="MaxDate"><value>Date maximale du rendez-vous</value></data>
<data name="Date_search"><value>Demande de rendez-vous</value></data>
<data name="Remember_me"><value>Se souvenir du mot de passe</value></data>
<data name="DocTemplateException"><value>Une erreur est survenue à la génération de votre document</value></data>
</root>

View file

@ -39,4 +39,6 @@
<data name="MaxDate"><value>Maximal date for the rendez-vous</value></data>
<data name="Date_search"><value>Rendez-vous query</value></data>
<data name="Remember_me"><value>Remember me</value></data>
<data name="DocTemplateException"><value>Exception occured when rendering your document</value></data>
</root>

View file

@ -20,7 +20,11 @@ namespace Yavsc.Model.WorkFlow
{
ContentProvider.UpdateEstimate (estim);
}
/// <summary>
/// Gets the estimate.
/// </summary>
/// <returns>The estimate.</returns>
/// <param name="estid">Estid.</param>
public Estimate GetEstimate (long estid)
{
return ContentProvider.GetEstimate (estid);