Implemente la gestion des activités
* Activities.aspx: implémente la vue Html de la liste éditable des activités * Activity.ascx: implémente la vue Html d'une activité * NpgsqlContentProvider.cs: implemente la gestion des activités côté base de donnée Npgsql * TestAPI.csproj: ... une référence au framework 4.5.1 en moins ... * FrontOfficeController.cs: Le contrôleur du FrontOffice gére les activités * Global.asax.cs: nettoyage du code * activity.sql: Typo corrigée sur le terme "MEACode" * style.css: enlève des images qui n'ont plus rien à faire ici, tant ce fichier concerne maintenant uniquement la disposition ou les éléments de base. * AccountController.cs: implémente le contrôle par l'utilisateur du paramêtre de l'activité principale associé à son profile. * FrontOfficeController.cs: Implemente le contrôle de la page des activités, et simplifie le contrôle de la page des compétences. * HomeController.cs: formattage du code * ModuleController.cs: inutilisé * App.master: Theming explicite en page maître * Profile.aspx: Propose maintenant l'édition de l'activité principalement éxercée * Skills.aspx: supprime une ligne de log * Index.aspx: RAZ en home page * MarkdownDeep.dll: remplace le tag englobant les transformations, il était un "<p>", il est maintenant un "<span>". * BlogManager.cs: refactorisation * Activity.cs: implémente un type de commande à associer à une activité. * LocalizedText.fr.resx: * LocalizedText.Designer.cs: * LocalizedText.fr.Designer.cs: La traduction de "ne pas publier mon activité" * LocalizedText.resx: La traduction de "ne pas publier mon activité", et de "Votre activité" * ManagerHelper.cs: refabrique l'instanciation des fournisseurs du workflow, pour avoir une liste de toutes les activité prises en charges par tous les fournisseurs de contenu. * Profile.cs: Implement le code activité de l'objet `Profile` * ProfileEdition.cs: xmldoc * SkillManager.cs: Formattage du code source * IContentProvider.cs: reformattage du code+ propriété "Name" du fournisseur + definition des methodes relatives à la gestion des activités * WorkFlowManager.cs: Methodes de recupperation des activités fournies auprés des fournisseurs de contenu * YavscModel.csproj: renommage * Web.csproj: reference les nouveaux éléments du projet relatifs au activités * Web.config: references manquante en cas d'utilisation du paramértrage global du thème via la section system.web/pages du fichier de configuration.
This commit is contained in:
parent
f3bc91289d
commit
2fcaa1ded4
37 changed files with 804 additions and 341 deletions
|
|
@ -22,7 +22,7 @@ namespace Yavsc.Model.Blogs
|
|||
static BlogProvider Provider {
|
||||
get {
|
||||
if (provider == null)
|
||||
provider = ManagerHelper.GetDefaultProvider<BlogProvider>
|
||||
provider = ManagerHelper.CreateDefaultProvider<BlogProvider>
|
||||
("system.web/blog");
|
||||
return provider;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,40 @@
|
|||
2015-11-25 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* BlogManager.cs: refactorisation
|
||||
|
||||
* Activity.cs: implémente un type de commande à associer à une
|
||||
activité.
|
||||
|
||||
* LocalizedText.fr.resx:
|
||||
* LocalizedText.Designer.cs:
|
||||
* LocalizedText.fr.Designer.cs: La traduction de "ne pas
|
||||
publier mon activité"
|
||||
|
||||
* LocalizedText.resx: La traduction de "ne pas publier mon
|
||||
activité", et de "Votre activité"
|
||||
|
||||
|
||||
* ManagerHelper.cs: refabrique l'instanciation des
|
||||
fournisseurs du workflow,
|
||||
pour avoir une liste de toutes les activité prises en charges
|
||||
par tous les fournisseurs de contenu.
|
||||
|
||||
|
||||
* Profile.cs: Implement le code activité de l'objet `Profile`
|
||||
|
||||
* ProfileEdition.cs: xmldoc
|
||||
|
||||
* SkillManager.cs: Formattage du code source
|
||||
|
||||
* IContentProvider.cs: reformattage du code+
|
||||
propriété "Name" du fournisseur +
|
||||
definition des methodes relatives à la gestion des activités
|
||||
|
||||
* WorkFlowManager.cs: Methodes de recupperation des activités
|
||||
fournies auprés des fournisseurs de contenu
|
||||
|
||||
* YavscModel.csproj: renommage
|
||||
|
||||
2015-11-23 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* Estimate.cs:
|
||||
|
|
|
|||
|
|
@ -22,9 +22,16 @@ using System;
|
|||
|
||||
namespace Yavsc.Model.FrontOffice
|
||||
{
|
||||
/// <summary>
|
||||
/// Activity.
|
||||
/// </summary>
|
||||
public class Activity: IComment<string>, ITitle
|
||||
{
|
||||
#region ITitle implementation
|
||||
/// <summary>
|
||||
/// Gets or sets the title.
|
||||
/// </summary>
|
||||
/// <value>The title.</value>
|
||||
public string Title {
|
||||
get;
|
||||
set;
|
||||
|
|
@ -32,18 +39,55 @@ namespace Yavsc.Model.FrontOffice
|
|||
#endregion
|
||||
|
||||
#region IComment implementation
|
||||
/// <summary>
|
||||
/// Gets or sets the comment.
|
||||
/// </summary>
|
||||
/// <value>The comment.</value>
|
||||
public string Comment {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
#endregion
|
||||
#region IIdentified implementation
|
||||
/// <summary>
|
||||
/// Gets or sets the identifier.
|
||||
/// </summary>
|
||||
/// <value>The identifier.</value>
|
||||
public string Id {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type of the command.
|
||||
/// </summary>
|
||||
/// <value>The type of the command.</value>
|
||||
public Type CommandType {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
/// <summary>
|
||||
/// The activity object has a static value during the
|
||||
/// most of the application life,
|
||||
/// They are not supposed to vary, they should are legal values.
|
||||
/// As a result, they are identified by their identifier,
|
||||
/// and are said equal since their id are equal.
|
||||
/// Determines whether the specified <see cref="System.Object"/> is equal to the current <see cref="Yavsc.Model.FrontOffice.Activity"/>.
|
||||
/// </summary>
|
||||
/// <param name="obj">The <see cref="System.Object"/> to compare with the current <see cref="Yavsc.Model.FrontOffice.Activity"/>.</param>
|
||||
/// <returns><c>true</c> if the specified <see cref="System.Object"/> is equal to the current
|
||||
/// <see cref="Yavsc.Model.FrontOffice.Activity"/>; otherwise, <c>false</c>.</returns>
|
||||
public override bool Equals (object obj)
|
||||
{
|
||||
if (base.Equals (obj))
|
||||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (GetType().IsAssignableFrom(obj.GetType()))
|
||||
if (((Activity)obj).Id == this.Id)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
80
yavscModel/LocalizedText.Designer.cs
generated
80
yavscModel/LocalizedText.Designer.cs
generated
|
|
@ -58,9 +58,9 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string ProviderId {
|
||||
public static string I_understood {
|
||||
get {
|
||||
return ResourceManager.GetString("ProviderId", resourceCulture);
|
||||
return ResourceManager.GetString("I_understood", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -70,9 +70,9 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string Circles {
|
||||
public static string access_denied {
|
||||
get {
|
||||
return ResourceManager.GetString("Circles", resourceCulture);
|
||||
return ResourceManager.GetString("access_denied", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -94,15 +94,15 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string none {
|
||||
public static string Circles {
|
||||
get {
|
||||
return ResourceManager.GetString("none", resourceCulture);
|
||||
return ResourceManager.GetString("Circles", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string ProviderName {
|
||||
public static string My_Estimates {
|
||||
get {
|
||||
return ResourceManager.GetString("ProviderName", resourceCulture);
|
||||
return ResourceManager.GetString("My_Estimates", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -178,9 +178,9 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string access_denied {
|
||||
public static string ProviderName {
|
||||
get {
|
||||
return ResourceManager.GetString("access_denied", resourceCulture);
|
||||
return ResourceManager.GetString("ProviderName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -208,6 +208,12 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string none {
|
||||
get {
|
||||
return ResourceManager.GetString("none", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string entries {
|
||||
get {
|
||||
return ResourceManager.GetString("entries", resourceCulture);
|
||||
|
|
@ -250,12 +256,24 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string Remove {
|
||||
get {
|
||||
return ResourceManager.GetString("Remove", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Title {
|
||||
get {
|
||||
return ResourceManager.GetString("Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string DoNotPublishMyActivity {
|
||||
get {
|
||||
return ResourceManager.GetString("DoNotPublishMyActivity", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Tex_version {
|
||||
get {
|
||||
return ResourceManager.GetString("Tex_version", resourceCulture);
|
||||
|
|
@ -310,12 +328,6 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string My_Estimates {
|
||||
get {
|
||||
return ResourceManager.GetString("My_Estimates", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Location {
|
||||
get {
|
||||
return ResourceManager.GetString("Location", resourceCulture);
|
||||
|
|
@ -328,12 +340,6 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string I_understood {
|
||||
get {
|
||||
return ResourceManager.GetString("I_understood", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Bill_removal {
|
||||
get {
|
||||
return ResourceManager.GetString("Bill_removal", resourceCulture);
|
||||
|
|
@ -352,15 +358,15 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string Remove {
|
||||
public static string MEACode {
|
||||
get {
|
||||
return ResourceManager.GetString("Remove", resourceCulture);
|
||||
return ResourceManager.GetString("MEACode", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string AnIMessageHasbeenSent {
|
||||
public static string DoTag {
|
||||
get {
|
||||
return ResourceManager.GetString("AnIMessageHasbeenSent", resourceCulture);
|
||||
return ResourceManager.GetString("DoTag", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -442,6 +448,12 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string ProviderId {
|
||||
get {
|
||||
return ResourceManager.GetString("ProviderId", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Role {
|
||||
get {
|
||||
return ResourceManager.GetString("Role", resourceCulture);
|
||||
|
|
@ -508,9 +520,9 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string DoTag {
|
||||
public static string Hide_source {
|
||||
get {
|
||||
return ResourceManager.GetString("DoTag", resourceCulture);
|
||||
return ResourceManager.GetString("Hide_source", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -574,12 +586,6 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string Hide_source {
|
||||
get {
|
||||
return ResourceManager.GetString("Hide_source", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string UsersInRole {
|
||||
get {
|
||||
return ResourceManager.GetString("UsersInRole", resourceCulture);
|
||||
|
|
@ -592,6 +598,12 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string AnIMessageHasbeenSent {
|
||||
get {
|
||||
return ResourceManager.GetString("AnIMessageHasbeenSent", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Profile_edition {
|
||||
get {
|
||||
return ResourceManager.GetString("Profile_edition", resourceCulture);
|
||||
|
|
|
|||
48
yavscModel/LocalizedText.fr.Designer.cs
generated
48
yavscModel/LocalizedText.fr.Designer.cs
generated
|
|
@ -58,9 +58,9 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string ProviderId {
|
||||
public static string I_understood {
|
||||
get {
|
||||
return ResourceManager.GetString("ProviderId", resourceCulture);
|
||||
return ResourceManager.GetString("I_understood", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -94,9 +94,9 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string ProviderName {
|
||||
public static string My_Estimates {
|
||||
get {
|
||||
return ResourceManager.GetString("ProviderName", resourceCulture);
|
||||
return ResourceManager.GetString("My_Estimates", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -172,6 +172,12 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string ProviderName {
|
||||
get {
|
||||
return ResourceManager.GetString("ProviderName", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string access_denied {
|
||||
get {
|
||||
return ResourceManager.GetString("access_denied", resourceCulture);
|
||||
|
|
@ -244,12 +250,24 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string Remove {
|
||||
get {
|
||||
return ResourceManager.GetString("Remove", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Title {
|
||||
get {
|
||||
return ResourceManager.GetString("Title", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string DoNotPublishMyActivity {
|
||||
get {
|
||||
return ResourceManager.GetString("DoNotPublishMyActivity", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Tex_version {
|
||||
get {
|
||||
return ResourceManager.GetString("Tex_version", resourceCulture);
|
||||
|
|
@ -298,12 +316,6 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string My_Estimates {
|
||||
get {
|
||||
return ResourceManager.GetString("My_Estimates", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Location {
|
||||
get {
|
||||
return ResourceManager.GetString("Location", resourceCulture);
|
||||
|
|
@ -316,12 +328,6 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string I_understood {
|
||||
get {
|
||||
return ResourceManager.GetString("I_understood", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Bill_removal {
|
||||
get {
|
||||
return ResourceManager.GetString("Bill_removal", resourceCulture);
|
||||
|
|
@ -334,9 +340,9 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string Remove {
|
||||
public static string MEACode {
|
||||
get {
|
||||
return ResourceManager.GetString("Remove", resourceCulture);
|
||||
return ResourceManager.GetString("MEACode", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -424,6 +430,12 @@ namespace Yavsc.Model {
|
|||
}
|
||||
}
|
||||
|
||||
public static string ProviderId {
|
||||
get {
|
||||
return ResourceManager.GetString("ProviderId", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
public static string Role {
|
||||
get {
|
||||
return ResourceManager.GetString("Role", resourceCulture);
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
<data name="Comment"><value>Commentaire</value></data>
|
||||
<data name="DB"><value>Base de données</value></data>
|
||||
<data name="DoComment"><value>Commenter</value></data>
|
||||
<data name="DoNotPublishMyActivity"><value>Ne pas publier mon activité</value></data>
|
||||
<data name="Create"><value>Créer</value></data>
|
||||
<data name="Date_search"><value>Demande de rendez-vous</value></data>
|
||||
<data name="DocTemplateException"><value>Une erreur est survenue à la génération de votre document</value></data>
|
||||
|
|
@ -55,6 +56,7 @@
|
|||
<data name="Location"><value>Lieu</value></data>
|
||||
<data name="Logout"><value>Déconnection</value></data>
|
||||
<data name="MaxDate"><value>Date maximale du rendez-vous</value></data>
|
||||
<data name="MEACode"><value>Votre activité</value></data>
|
||||
<data name="Members"><value>Membres</value></data>
|
||||
<data name="Message_sent"><value>Votre message a été envoyé</value></data>
|
||||
<data name="MinDate"><value>Date minimale du rendez-vous</value></data>
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@
|
|||
<data name="Description"><value>Description</value></data>
|
||||
<data name="DisplayName"><value>Display Name</value></data>
|
||||
<data name="DocTemplateException"><value>Exception occured when rendering your document</value></data>
|
||||
<data name="DoNotPublishMyActivity"><value>Do Not Publish My Activity</value></data>
|
||||
<data name="DoTag"><value>Tag</value></data>
|
||||
<data name="DuplicateEmail"><value>This email adress is already used ({0}).</value></data>
|
||||
<data name="DuplicateUserName"><value>This user name is already used ({0}).</value></data>
|
||||
|
|
@ -58,6 +59,7 @@
|
|||
<data name="Location"><value>Location</value></data>
|
||||
<data name="Logout"><value>Logout</value></data>
|
||||
<data name="MaxDate"><value>Maximal date for the rendez-vous</value></data>
|
||||
<data name="MEACode"><value>Mainly Exerted Activity</value></data>
|
||||
<data name="Members"><value>Members</value></data>
|
||||
<data name="Message_sent"><value>Your message has been sent.</value></data>
|
||||
<data name="MinDate"><value>Minimal date for the rendez-vous</value></data>
|
||||
|
|
@ -111,4 +113,5 @@
|
|||
{0} should be available for this booking</value></data>
|
||||
<data name="younotadmin"><value>You're not administrator</value></data>
|
||||
<data name="yourquerytransmitted"><value>your query has been transmitted</value></data>
|
||||
|
||||
</root>
|
||||
|
|
|
|||
|
|
@ -1,68 +0,0 @@
|
|||
//
|
||||
// Manager.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paul@pschneider.fr>
|
||||
//
|
||||
// Copyright (c) 2015 GNU GPL
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
using System;
|
||||
using System.Configuration;
|
||||
using System.Reflection;
|
||||
using System.Configuration.Provider;
|
||||
|
||||
namespace Yavsc.Model {
|
||||
/// <summary>
|
||||
/// Manager.
|
||||
/// </summary>
|
||||
public static class ManagerHelper {
|
||||
|
||||
/// <summary>
|
||||
/// Gets the provider.
|
||||
/// </summary>
|
||||
/// <value>The provider.</value>
|
||||
public static TProvider GetDefaultProvider<TProvider> (string configSetion) where TProvider: ProviderBase
|
||||
{
|
||||
DataProviderConfigurationSection config = ConfigurationManager.GetSection (configSetion) as DataProviderConfigurationSection;
|
||||
if (config == null)
|
||||
throw new ConfigurationErrorsException (
|
||||
string.Format(
|
||||
"The providers configuration bloc `{0}` was not found",
|
||||
configSetion));
|
||||
ProviderSettings celt =
|
||||
config.Providers [config.DefaultProvider];
|
||||
if (config == null)
|
||||
throw new ConfigurationErrorsException (
|
||||
string.Format (
|
||||
"The default provider `{0}` was not found ",
|
||||
config.DefaultProvider));
|
||||
Type provtype = Type.GetType (celt.Type);
|
||||
if (provtype == null)
|
||||
throw new ProviderException (
|
||||
string.Format (
|
||||
"Provider type '{0}' was not found",celt.Type));
|
||||
ConstructorInfo ci = provtype.GetConstructor (Type.EmptyTypes);
|
||||
ProviderBase bp = ci.Invoke (Type.EmptyTypes) as ProviderBase;
|
||||
bp.Initialize (celt.Name, celt.Parameters);
|
||||
return bp as TProvider;
|
||||
}
|
||||
|
||||
public static ProviderBase GetDefaultProvider (string configSetion)
|
||||
{
|
||||
return GetDefaultProvider<ProviderBase>(configSetion);
|
||||
}
|
||||
}
|
||||
}
|
||||
109
yavscModel/ManagerHelper.cs
Normal file
109
yavscModel/ManagerHelper.cs
Normal file
|
|
@ -0,0 +1,109 @@
|
|||
//
|
||||
// Manager.cs
|
||||
//
|
||||
// Author:
|
||||
// Paul Schneider <paul@pschneider.fr>
|
||||
//
|
||||
// Copyright (c) 2015 GNU GPL
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Lesser General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
using System;
|
||||
using System.Configuration;
|
||||
using System.Reflection;
|
||||
using System.Configuration.Provider;
|
||||
using System.Collections.Specialized;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Yavsc.Model {
|
||||
/// <summary>
|
||||
/// Manager.
|
||||
/// </summary>
|
||||
public static class ManagerHelper {
|
||||
|
||||
/// <summary>
|
||||
/// Gets the provider.
|
||||
/// </summary>
|
||||
/// <value>The provider.</value>
|
||||
public static TProvider CreateDefaultProvider<TProvider> (string configSetion) where TProvider: ProviderBase
|
||||
{
|
||||
var config = GetConfiguration (configSetion);
|
||||
ProviderSettings celt =
|
||||
config.Providers [config.DefaultProvider];
|
||||
return CreateProvider<TProvider> (celt.Type, celt.Name, celt.Parameters);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates the providers.
|
||||
/// </summary>
|
||||
/// <returns>The providers.</returns>
|
||||
/// <param name="configSetion">Config setion.</param>
|
||||
/// <typeparam name="TProvider">The 1st type parameter.</typeparam>
|
||||
public static TProvider [] CreateProviders<TProvider> (string configSetion) where TProvider: ProviderBase
|
||||
{
|
||||
var config = GetConfiguration (configSetion);
|
||||
List<TProvider> providers = new List<TProvider> ();
|
||||
foreach (ProviderSettings provConfig in config.Providers) {
|
||||
var prov = CreateProvider<TProvider>
|
||||
(provConfig.Type, provConfig.Name, provConfig.Parameters);
|
||||
providers.Add (prov);
|
||||
}
|
||||
return providers.ToArray ();
|
||||
}
|
||||
|
||||
private static DataProviderConfigurationSection GetConfiguration(string configSetion) {
|
||||
DataProviderConfigurationSection config = ConfigurationManager.GetSection (configSetion) as DataProviderConfigurationSection;
|
||||
if (config == null)
|
||||
throw new ConfigurationErrorsException (
|
||||
string.Format(
|
||||
"The providers configuration bloc `{0}` was not found",
|
||||
configSetion));
|
||||
return config;
|
||||
}
|
||||
|
||||
private static TProvider CreateProvider<TProvider>(string type, string name,
|
||||
NameValueCollection config) where TProvider: ProviderBase {
|
||||
Type provtype = Type.GetType (type);
|
||||
if (provtype == null)
|
||||
throw new ProviderException (
|
||||
string.Format (
|
||||
"Provider type '{0}' was not found",type));
|
||||
ConstructorInfo ci = provtype.GetConstructor (Type.EmptyTypes);
|
||||
TProvider bp = ci.Invoke (Type.EmptyTypes) as TProvider;
|
||||
bp.Initialize (name, config);
|
||||
return bp;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the default provider.
|
||||
/// </summary>
|
||||
/// <returns>The default provider.</returns>
|
||||
/// <param name="configSetion">Config setion.</param>
|
||||
public static ProviderBase CreateDefaultProvider (string configSetion)
|
||||
{
|
||||
return CreateDefaultProvider<ProviderBase>(configSetion);
|
||||
}
|
||||
/// <summary>
|
||||
/// Creates the providers.
|
||||
/// </summary>
|
||||
/// <returns>The providers.</returns>
|
||||
/// <param name="configSetion">Config setion.</param>
|
||||
public static ProviderBase[] CreateProviders (string configSetion)
|
||||
{
|
||||
return CreateProviders<ProviderBase>(configSetion);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -5,6 +5,9 @@ using System.Web.Profile;
|
|||
using System.Web.Security;
|
||||
using System.Web;
|
||||
using System.Configuration;
|
||||
using System.Collections.Generic;
|
||||
using System.Web.Mvc;
|
||||
using Yavsc.Model.WorkFlow;
|
||||
|
||||
namespace Yavsc.Model.RolesAndMembers
|
||||
{
|
||||
|
|
@ -269,9 +272,21 @@ namespace Yavsc.Model.RolesAndMembers
|
|||
BIC = (string)profile.GetPropertyValue ("BIC");
|
||||
WicketCode = (string) profile.GetPropertyValue ("WicketCode");
|
||||
AccountNumber = (string) profile.GetPropertyValue ("AccountNumber");
|
||||
BankedKey = (int) profile.GetPropertyValue ("BankedKey");;
|
||||
BankedKey = (int) profile.GetPropertyValue ("BankedKey");
|
||||
GoogleCalendar = (string) profile.GetPropertyValue ("gcalid");
|
||||
MEACode = (string) profile.GetPropertyValue ("MEACode");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the MEA code.
|
||||
/// </summary>
|
||||
/// <value>The MEA code.</value>
|
||||
[Localizable(true), Required(ErrorMessage = "S'il vous plait, entrez un code APE valide")
|
||||
,Display(ResourceType=typeof(LocalizedText),Name="MEACode"),
|
||||
RegularExpression(@"[a-zA-Z0-9 \-_.~/\\]+")
|
||||
]
|
||||
public string MEACode { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@ using System;
|
|||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Profile;
|
||||
using System.Collections.Generic;
|
||||
using System.Web.Mvc;
|
||||
using Yavsc.Model.WorkFlow;
|
||||
|
||||
namespace Yavsc.Model.RolesAndMembers
|
||||
{
|
||||
|
|
@ -36,7 +39,10 @@ namespace Yavsc.Model.RolesAndMembers
|
|||
public ProfileEdition()
|
||||
{}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Yavsc.Model.RolesAndMembers.ProfileEdition"/> class.
|
||||
/// </summary>
|
||||
/// <param name="pr">Pr.</param>
|
||||
public ProfileEdition(ProfileBase pr): base(pr)
|
||||
{
|
||||
NewUserName = UserName;
|
||||
|
|
@ -51,6 +57,9 @@ namespace Yavsc.Model.RolesAndMembers
|
|||
RegularExpression("([a-z]|[A-Z]|[\\s-_.~]|[0-9])+")
|
||||
]
|
||||
public string NewUserName { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ namespace Yavsc.Model.Skill
|
|||
private static SkillProvider Provider {
|
||||
get {
|
||||
if (provider == null)
|
||||
provider = ManagerHelper.GetDefaultProvider<SkillProvider>
|
||||
provider = ManagerHelper.CreateDefaultProvider<SkillProvider>
|
||||
("system.web/skillProviders");
|
||||
return provider;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// </summary>
|
||||
public interface IContentProvider : IDbModule, IDisposable, IDataProvider<Estimate,long>
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets the different status labels.
|
||||
/// 0 is the starting status. Each status is an integer and the 0-based index
|
||||
|
|
@ -25,6 +24,52 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// </summary>
|
||||
/// <value>The final statuses.</value>
|
||||
bool [] FinalStatuses { get; }
|
||||
|
||||
string Name { get; }
|
||||
/// <summary>
|
||||
/// Creates the estimate.
|
||||
/// </summary>
|
||||
/// <returns>The estimate.</returns>
|
||||
/// <param name="responsible">Responsible.</param>
|
||||
/// <param name="client">Client.</param>
|
||||
/// <param name="title">Title.</param>
|
||||
/// <param name="description">Description.</param>
|
||||
Estimate CreateEstimate (string responsible, string client, string title, string description);
|
||||
|
||||
/// <summary>
|
||||
/// Drops the writting.
|
||||
/// </summary>
|
||||
/// <param name="wrid">Wrid.</param>
|
||||
void DropWritting (long wrid);
|
||||
|
||||
/// <summary>
|
||||
/// Drops the estimate.
|
||||
/// </summary>
|
||||
/// <param name="estid">Estid.</param>
|
||||
void DropEstimate (long estid);
|
||||
|
||||
/// <summary>
|
||||
/// Drops the tag writting.
|
||||
/// </summary>
|
||||
/// <param name="wrid">Wrid.</param>
|
||||
/// <param name="tag">Tag.</param>
|
||||
void DropWrittingTag (long wrid,string tag);
|
||||
|
||||
/// <summary>
|
||||
/// Finds the activity.
|
||||
/// </summary>
|
||||
/// <returns>The activity.</returns>
|
||||
/// <param name="pattern">Pattern.</param>
|
||||
/// <param name="exerted">If set to <c>true</c> exerted.</param>
|
||||
Activity [] FindActivity (string pattern, bool exerted);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the activity.
|
||||
/// </summary>
|
||||
/// <returns>The activity.</returns>
|
||||
/// <param name="MEACode">MAE code.</param>
|
||||
Activity GetActivity (string MEACode);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the writting status changes.
|
||||
/// </summary>
|
||||
|
|
@ -36,17 +81,80 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// </summary>
|
||||
/// <returns>The estimate statuses.</returns>
|
||||
/// <param name="estid">Estid.</param>
|
||||
StatusChange[] GetEstimateStatuses (long estid);
|
||||
StatusChange[] GetEstimateStatuses (long estid); /// <summary>
|
||||
|
||||
/// <summary>
|
||||
/// Creates the estimate.
|
||||
/// Gets the estimates.
|
||||
/// </summary>
|
||||
/// <returns>The estimate.</returns>
|
||||
/// <param name="responsible">Responsible.</param>
|
||||
/// <param name="client">Client.</param>
|
||||
/// <param name="title">Title.</param>
|
||||
/// <param name="description">Description.</param>
|
||||
Estimate CreateEstimate (string responsible, string client, string title, string description);
|
||||
/// <returns>The estimates.</returns>
|
||||
/// <param name="username">Username.</param>
|
||||
Estimate [] GetEstimates(string username);
|
||||
|
||||
/// <summary>
|
||||
/// Registers the activity.
|
||||
/// </summary>
|
||||
/// <param name="activity">Activity.</param>
|
||||
/// <param name="code">Code.</param>
|
||||
void RegisterActivity (string activityName, string meacode, string comment);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the estimates.
|
||||
/// </summary>
|
||||
/// <returns>The estimates.</returns>
|
||||
/// <param name="client">Client.</param>
|
||||
/// <param name="responsible">Responsible.</param>
|
||||
Estimate [] GetEstimates(string client, string responsible);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets the commands.
|
||||
/// </summary>
|
||||
/// <returns>The commands.</returns>
|
||||
/// <param name="username">Username.</param>
|
||||
CommandSet GetCommands (string username);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the stock status.
|
||||
/// </summary>
|
||||
/// <returns>The stock status.</returns>
|
||||
/// <param name="productReference">Product reference.</param>
|
||||
StockStatus GetStockStatus (string productReference);
|
||||
|
||||
/// <summary>
|
||||
/// Registers the command.
|
||||
/// </summary>
|
||||
/// <returns>The command id in db.</returns>
|
||||
/// <param name="com">COM.</param>
|
||||
long RegisterCommand (Command com);
|
||||
/// <summary>
|
||||
/// Sets the writting status.
|
||||
/// </summary>
|
||||
/// <param name="wrtid">Wrtid.</param>
|
||||
/// <param name="status">Status.</param>
|
||||
/// <param name="username">Username.</param>
|
||||
void SetWrittingStatus (long wrtid,int status,string username);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the estimate status.
|
||||
/// </summary>
|
||||
/// <param name="estid">Estid.</param>
|
||||
/// <param name="status">Status.</param>
|
||||
/// <param name="username">Username.</param>
|
||||
void SetEstimateStatus (long estid,int status,string username);
|
||||
|
||||
/// <summary>
|
||||
/// Tags the writting.
|
||||
/// </summary>
|
||||
/// <param name="wrid">Wrid.</param>
|
||||
/// <param name="tag">Tag.</param>
|
||||
void TagWritting (long wrid,string tag);
|
||||
|
||||
/// <summary>
|
||||
/// Updates the writting.
|
||||
/// </summary>
|
||||
/// <param name="wr">Wr.</param>
|
||||
void UpdateWritting (Writting wr);
|
||||
|
||||
/// Add a line to the specified estimate by id,
|
||||
/// using the specified desc, ucost, count and productid.
|
||||
/// </summary>
|
||||
|
|
@ -57,79 +165,6 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// <param name="productid">Product identifier.</param>
|
||||
long Write (long estid, string desc, decimal ucost, int count, string productid);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the estimates created by
|
||||
/// or for the given user by user name.
|
||||
/// </summary>
|
||||
/// <returns>The estimates.</returns>
|
||||
/// <param name="username">user name.</param>
|
||||
Estimate [] GetEstimates(string username);
|
||||
/// <summary>
|
||||
/// Gets the estimates.
|
||||
/// </summary>
|
||||
/// <returns>The estimates.</returns>
|
||||
/// <param name="client">Client.</param>
|
||||
/// <param name="responsible">Responsible.</param>
|
||||
Estimate [] GetEstimates(string client, string responsible);
|
||||
/// <summary>
|
||||
/// Drops the writting.
|
||||
/// </summary>
|
||||
/// <param name="wrid">Wrid.</param>
|
||||
void DropWritting (long wrid);
|
||||
/// <summary>
|
||||
/// Drops the estimate.
|
||||
/// </summary>
|
||||
/// <param name="estid">Estid.</param>
|
||||
void DropEstimate (long estid);
|
||||
/// <summary>
|
||||
/// Tags the writting.
|
||||
/// </summary>
|
||||
/// <param name="wrid">Wrid.</param>
|
||||
/// <param name="tag">Tag.</param>
|
||||
void TagWritting (long wrid,string tag);
|
||||
/// <summary>
|
||||
/// Drops the tag writting.
|
||||
/// </summary>
|
||||
/// <param name="wrid">Wrid.</param>
|
||||
/// <param name="tag">Tag.</param>
|
||||
void DropWrittingTag (long wrid,string tag);
|
||||
/// <summary>
|
||||
/// Updates the writting.
|
||||
/// </summary>
|
||||
/// <param name="wr">Wr.</param>
|
||||
void UpdateWritting (Writting wr);
|
||||
/// <summary>
|
||||
/// Sets the writting status.
|
||||
/// </summary>
|
||||
/// <param name="wrtid">Wrtid.</param>
|
||||
/// <param name="status">Status.</param>
|
||||
/// <param name="username">Username.</param>
|
||||
void SetWrittingStatus (long wrtid,int status,string username);
|
||||
/// <summary>
|
||||
/// Sets the estimate status.
|
||||
/// </summary>
|
||||
/// <param name="estid">Estid.</param>
|
||||
/// <param name="status">Status.</param>
|
||||
/// <param name="username">Username.</param>
|
||||
void SetEstimateStatus (long estid,int status,string username);
|
||||
/// <summary>
|
||||
/// Registers the command.
|
||||
/// </summary>
|
||||
/// <returns>The command id in db.</returns>
|
||||
/// <param name="com">COM.</param>
|
||||
long RegisterCommand (Command com);
|
||||
/// <summary>
|
||||
/// Gets the commands.
|
||||
/// </summary>
|
||||
/// <returns>The commands.</returns>
|
||||
/// <param name="username">Username.</param>
|
||||
CommandSet GetCommands (string username);
|
||||
/// <summary>
|
||||
/// Gets the stock status.
|
||||
/// </summary>
|
||||
/// <returns>The stock status.</returns>
|
||||
/// <param name="productReference">Product reference.</param>
|
||||
StockStatus GetStockStatus (string productReference);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,19 +21,26 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// </summary>
|
||||
/// <returns>The activity.</returns>
|
||||
/// <param name="pattern">Pattern.</param>
|
||||
public static IEnumerable<Activity> FindActivity(string pattern = "%")
|
||||
/// <param name="exerted">If set to <c>true</c> exerted.</param>
|
||||
public static Activity[] FindActivity(string pattern = "%", bool exerted=true)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
List<Activity> activities = new List<Activity> ();
|
||||
foreach (var provider in Providers) {
|
||||
foreach (var act in provider.FindActivity (pattern, exerted))
|
||||
if (!activities.Contains(act))
|
||||
activities.Add(act);
|
||||
}
|
||||
return activities.ToArray();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the activity.
|
||||
/// </summary>
|
||||
/// <returns>The activity.</returns>
|
||||
/// <param name="MAECode">MAE code.</param>
|
||||
public static Activity GetActivity (string MAECode)
|
||||
/// <param name="meacode">MAE code.</param>
|
||||
public static Activity GetActivity (string meacode)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
return DefaultProvider.GetActivity (meacode);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -49,7 +56,7 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// <param name="com">COM.</param>
|
||||
public static long RegisterCommand(Command com)
|
||||
{
|
||||
return ContentProvider.RegisterCommand (com);
|
||||
return DefaultProvider.RegisterCommand (com);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -58,7 +65,7 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// <param name="estim">Estim.</param>
|
||||
public static void UpdateEstimate (Estimate estim)
|
||||
{
|
||||
ContentProvider.Update (estim);
|
||||
DefaultProvider.Update (estim);
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets the estimate.
|
||||
|
|
@ -67,7 +74,7 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// <param name="estid">Estid.</param>
|
||||
public static Estimate GetEstimate (long estid)
|
||||
{
|
||||
return ContentProvider.Get (estid);
|
||||
return DefaultProvider.Get (estid);
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets the estimates, refering the
|
||||
|
|
@ -77,7 +84,7 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// <param name="responsible">Responsible.</param>
|
||||
public static Estimate [] GetResponsibleEstimates (string responsible)
|
||||
{
|
||||
return ContentProvider.GetEstimates (null, responsible);
|
||||
return DefaultProvider.GetEstimates (null, responsible);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -87,7 +94,7 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// <param name="client">Client.</param>
|
||||
public static Estimate [] GetClientEstimates (string client)
|
||||
{
|
||||
return ContentProvider.GetEstimates (client, null);
|
||||
return DefaultProvider.GetEstimates (client, null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -97,7 +104,7 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// <param name="username">Username.</param>
|
||||
public static Estimate [] GetUserEstimates (string username)
|
||||
{
|
||||
return ContentProvider.GetEstimates (username);
|
||||
return DefaultProvider.GetEstimates (username);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -107,7 +114,7 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// <param name="productReference">Product reference.</param>
|
||||
public static StockStatus GetStock(string productReference)
|
||||
{
|
||||
return ContentProvider.GetStockStatus (productReference);
|
||||
return DefaultProvider.GetStockStatus (productReference);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -116,7 +123,7 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// <param name="wr">Wr.</param>
|
||||
public static void UpdateWritting (Writting wr)
|
||||
{
|
||||
ContentProvider.UpdateWritting (wr);
|
||||
DefaultProvider.UpdateWritting (wr);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -125,7 +132,7 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// <param name="wrid">Wrid.</param>
|
||||
public static void DropWritting (long wrid)
|
||||
{
|
||||
ContentProvider.DropWritting (wrid);
|
||||
DefaultProvider.DropWritting (wrid);
|
||||
}
|
||||
/// <summary>
|
||||
/// Drops the estimate.
|
||||
|
|
@ -133,25 +140,38 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// <param name="estid">Estid.</param>
|
||||
public static void DropEstimate (long estid)
|
||||
{
|
||||
ContentProvider.DropEstimate(estid);
|
||||
DefaultProvider.DropEstimate(estid);
|
||||
}
|
||||
|
||||
|
||||
|
||||
static IContentProvider contentProvider;
|
||||
static IContentProvider defaultProvider;
|
||||
/// <summary>
|
||||
/// Gets the content provider.
|
||||
/// </summary>
|
||||
/// <value>The content provider.</value>
|
||||
public static IContentProvider ContentProvider {
|
||||
public static IContentProvider DefaultProvider {
|
||||
|
||||
get {
|
||||
if (contentProvider == null)
|
||||
contentProvider = ManagerHelper.GetDefaultProvider
|
||||
if (defaultProvider == null)
|
||||
defaultProvider = ManagerHelper.CreateDefaultProvider
|
||||
("system.web/workflow") as IContentProvider;
|
||||
return contentProvider;
|
||||
return defaultProvider;
|
||||
}
|
||||
}
|
||||
public static IContentProvider [] Providers {
|
||||
|
||||
get {
|
||||
if (providers == null) {
|
||||
var pbs = ManagerHelper.CreateProviders
|
||||
("system.web/workflow");
|
||||
providers = new IContentProvider [pbs.Length];
|
||||
for (var i=0;i<pbs.Length;i++)
|
||||
providers[i] = pbs[i] as IContentProvider;
|
||||
}
|
||||
return providers;
|
||||
}
|
||||
}
|
||||
|
||||
private static IContentProvider [] providers = null;
|
||||
|
||||
/// <summary>
|
||||
/// Creates the estimate.
|
||||
|
|
@ -163,7 +183,7 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// <param name="description">Description.</param>
|
||||
public static Estimate CreateEstimate(string responsible, string client, string title, string description)
|
||||
{
|
||||
Estimate created = ContentProvider.CreateEstimate (responsible, client, title, description);
|
||||
Estimate created = DefaultProvider.CreateEstimate (responsible, client, title, description);
|
||||
return created;
|
||||
}
|
||||
|
||||
|
|
@ -187,7 +207,7 @@ namespace Yavsc.Model.WorkFlow
|
|||
throw new Exception ("Product not found");
|
||||
// TODO new EstimateChange Event
|
||||
}
|
||||
return ContentProvider.Write(estid, desc, ucost, count, productid);
|
||||
return DefaultProvider.Write(estid, desc, ucost, count, productid);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -198,7 +218,7 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// <param name="username">Username.</param>
|
||||
public static void SetEstimateStatus(long estid, int status, string username)
|
||||
{
|
||||
ContentProvider.SetEstimateStatus (estid, status, username);
|
||||
DefaultProvider.SetEstimateStatus (estid, status, username);
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets the commands.
|
||||
|
|
@ -207,14 +227,12 @@ namespace Yavsc.Model.WorkFlow
|
|||
/// <param name="username">Username.</param>
|
||||
public static CommandSet GetCommands(string username)
|
||||
{
|
||||
return ContentProvider.GetCommands (username);
|
||||
return DefaultProvider.GetCommands (username);
|
||||
}
|
||||
|
||||
public static string [] APEDisponibles
|
||||
public static void RegisterActivity (string activityName, string meacode, string comment)
|
||||
{
|
||||
get {
|
||||
return new string[]{ "Chanteur", "DJ", "Musicien", "Clown" };
|
||||
}
|
||||
DefaultProvider.RegisterActivity (activityName, meacode, comment);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -183,7 +183,6 @@
|
|||
<Compile Include="Skill\SkillRating.cs" />
|
||||
<Compile Include="Skill\SkillProvider.cs" />
|
||||
<Compile Include="Skill\SkillManager.cs" />
|
||||
<Compile Include="Manager.cs" />
|
||||
<Compile Include="Skill\UserSkill.cs" />
|
||||
<Compile Include="Skill\UserSkillComment.cs" />
|
||||
<Compile Include="Skill\UserSkillDeclaration.cs" />
|
||||
|
|
@ -201,6 +200,7 @@
|
|||
<Compile Include="ITagBackup.cs" />
|
||||
<Compile Include="ITitle.cs" />
|
||||
<Compile Include="Calendar\BaseEvent.cs" />
|
||||
<Compile Include="ManagerHelper.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue