* Makefile: builds the doc & htmldoc folders

* DataManager.cs: Doc generations

* T.cs:
* Global.asax.cs:
* Export.cs:
* Estim.tt:
* Estim.cs:
* TaskOutput.cs:
* FileInfoCollection.cs:
* RegisterPage.cs:
* BBCodeHelper.cs:
* MvcActionValueBinder.cs:
* YavscHelpers.cs:
* ValidateAjaxAttribute.cs:
* Entity.cs:
* IOrderInfo.cs:
* HomeController.cs:
* SimpleFormatter.cs:
* BlogsController.cs:
* AdminController.cs:
* SimpleJsonPostMethod.cs:
* WebCatalogExtensions.cs:
* GoogleController.cs:
* ModuleController.cs:
* BasketController.cs:
* AccountController.cs:
* TemplateException.cs:
* BlogsApiController.cs:
* EstimToPdfFormatter.cs:
* WorkFlowController.cs:
* FileSystemController.cs:
* BackOfficeController.cs:
* FrontOfficeController.cs:
* ThanksConfigurationSection.cs:
* ThanksConfigurationElement.cs:
* FrontOfficeApiController.cs:
* ModuleConfigurationElementCollection.cs: 

* Web.csproj: cleaning an obsolete IOrderIfno
This commit is contained in:
Paul Schneider 2015-01-27 00:41:20 +01:00
commit ae38718dd9
38 changed files with 848 additions and 277 deletions

View file

@ -7,13 +7,24 @@ using System.Resources;
namespace Yavsc.Admin
{
/// <summary>
/// Data manager.
/// </summary>
public class DataManager
{
DataAccess da;
/// <summary>
/// Initializes a new instance of the <see cref="Yavsc.Admin.DataManager"/> class.
/// </summary>
/// <param name="datac">Datac.</param>
public DataManager (DataAccess datac)
{
da = datac;
}
/// <summary>
/// Creates the backup.
/// </summary>
/// <returns>The backup.</returns>
public Export CreateBackup ()
{
Environment.SetEnvironmentVariable("PGPASSWORD", da.Password);
@ -51,6 +62,11 @@ namespace Yavsc.Admin
p.Close ();
}
}
/// <summary>
/// Restore the specified fileName and dataOnly.
/// </summary>
/// <param name="fileName">File name.</param>
/// <param name="dataOnly">If set to <c>true</c> data only.</param>
public TaskOutput Restore (string fileName, bool dataOnly)
{
Environment.SetEnvironmentVariable("PGPASSWORD", da.Password);
@ -65,7 +81,10 @@ namespace Yavsc.Admin
*/
return t;
}
/// <summary>
/// Creates the db.
/// </summary>
/// <returns>The db.</returns>
public TaskOutput CreateDb ()
{
TaskOutput res = new TaskOutput ();
@ -97,7 +116,12 @@ namespace Yavsc.Admin
return res;
}
/// <summary>
/// Tags the backup.
/// </summary>
/// <returns>The backup.</returns>
/// <param name="filename">Filename.</param>
/// <param name="tags">Tags.</param>
public Export TagBackup (string filename, string [] tags)
{
/* FileInfo fi = new FileInfo (filename);
@ -106,6 +130,11 @@ namespace Yavsc.Admin
} */
throw new NotImplementedException ();
}
/// <summary>
/// Tags the restore.
/// </summary>
/// <returns>The restore.</returns>
/// <param name="fileName">File name.</param>
public TaskOutput TagRestore (string fileName)
{
Environment.SetEnvironmentVariable ("PGPASSWORD", da.Password);

View file

@ -3,11 +3,21 @@ using System.ComponentModel;
namespace Yavsc.Admin
{
/// <summary>
/// Export.
/// </summary>
public class Export: TaskOutput
{
/// <summary>
/// Initializes a new instance of the <see cref="Yavsc.Admin.Export"/> class.
/// </summary>
public Export ()
{
}
/// <summary>
/// Gets or sets the name of the file.
/// </summary>
/// <value>The name of the file.</value>
public string FileName { get; set; }
}
}

View file

@ -3,9 +3,24 @@ using System.ComponentModel;
namespace Yavsc.Admin
{
/// <summary>
/// Task output.
/// </summary>
public class TaskOutput {
/// <summary>
/// Gets or sets the message.
/// </summary>
/// <value>The message.</value>
public string Message { get; set; }
/// <summary>
/// Gets or sets the error.
/// </summary>
/// <value>The error.</value>
public string Error { get; set; }
/// <summary>
/// Gets or sets the exit code.
/// </summary>
/// <value>The exit code.</value>
public int ExitCode { get; set; }
}