using System;
using System.Configuration.Provider;
using Yavsc.Model.WorkFlow;
namespace Yavsc.Model.FrontOffice.Catalog
{
///
/// Catalog provider.
/// Abstract class, inherited to implement a catalog provider.
///
public abstract class CatalogProvider: ProviderBase, IContentProvider
{
///
/// Creates the estimate.
///
/// The estimate.
/// Responsible.
/// Client.
/// Title.
/// Description.
public virtual Estimate CreateEstimate (string responsible, string client, string title, string description)
{
return WorkFlowManager.CreateEstimate (responsible, client, title, description);
}
///
/// Drops the writting.
///
/// Wrid.
public virtual void DropWritting (long wrid)
{
throw new NotImplementedException ();
}
///
/// Drops the estimate.
///
/// Estid.
public void DropEstimate (long estid)
{
throw new NotImplementedException ();
}
///
/// Drops the tag writting.
///
/// Wrid.
/// Tag.
public void DropWrittingTag (long wrid, string tag)
{
throw new NotImplementedException ();
}
///
/// Finds the activity.
///
/// The activity.
/// Pattern.
/// If set to true exerted.
public abstract Activity[] FindActivity (string pattern, bool exerted);
///
/// Finds the performer.
///
/// The performer.
/// MEA code.
public abstract PerformerProfile[] FindPerformer (string MEACode);
///
/// Gets the activity.
///
/// The activity.
/// MAE code.
public abstract Activity GetActivity (string MEACode);
///
/// Gets the writting status changes.
///
/// The writting statuses.
/// Wrid.
public StatusChange[] GetWrittingStatuses (long wrid)
{
throw new NotImplementedException ();
}
///
/// Gets the estimate status changes.
///
/// The estimate statuses.
/// Estid.
public StatusChange[] GetEstimateStatuses (long estid)
{
throw new NotImplementedException ();
}
///
/// Gets the estimates.
///
/// The estimates.
/// Username.
public Estimate[] GetEstimates (string username)
{
throw new NotImplementedException ();
}
///
/// Registers the activity.
///
/// Activity name.
/// Meacode.
/// Comment.
public abstract void RegisterActivity (string activityName, string meacode, string comment);
///
/// Gets the estimates.
///
/// The estimates.
/// Client.
/// Responsible.
public Estimate[] GetEstimates (string client, string responsible)
{
throw new NotImplementedException ();
}
///
/// Gets the commands.
///
/// The commands.
/// Username.
public CommandSet GetCommands (string username)
{
throw new NotImplementedException ();
}
///
/// Gets the stock status.
///
/// The stock status.
/// Product reference.
public StockStatus GetStockStatus (string productReference)
{
throw new NotImplementedException ();
}
///
/// Registers the command.
///
/// The command id in db.
/// COM.
public long RegisterCommand (Command com)
{
throw new NotImplementedException ();
}
///
/// Sets the writting status.
///
/// Wrtid.
/// Status.
/// Username.
public void SetWrittingStatus (long wrtid, int status, string username)
{
throw new NotImplementedException ();
}
///
/// Sets the estimate status.
///
/// Estid.
/// Status.
/// Username.
public void SetEstimateStatus (long estid, int status, string username)
{
throw new NotImplementedException ();
}
///
/// Tags the writting.
///
/// Wrid.
/// Tag.
public void TagWritting (long wrid, string tag)
{
throw new NotImplementedException ();
}
///
/// Updates the writting.
///
/// Wr.
public void UpdateWritting (Writting wr)
{
throw new NotImplementedException ();
}
///
/// Write the specified estid, desc, ucost, count and productid.
///
/// Estid.
/// Desc.
/// Ucost.
/// Count.
/// Productid.
public long Write (long estid, string desc, decimal ucost, int count, string productid)
{
throw new NotImplementedException ();
}
///
/// Gets the different status labels.
/// 0 is the starting status. Each status is an integer and the 0-based index
/// of a string in this array.
///
/// The status labels.
public string[] Statuses {
get {
throw new NotImplementedException ();
}
}
///
/// Gets the final statuses.
///
/// The final statuses.
public bool[] FinalStatuses {
get {
throw new NotImplementedException ();
}
}
///
/// Get the specified id.
///
/// Identifier.
public Estimate Get (long id)
{
throw new NotImplementedException ();
}
///
/// Update the specified data.
///
/// Data.
public void Update (Estimate data)
{
throw new NotImplementedException ();
}
///
/// Releases all resource used by the object.
///
/// Call when you are finished using the
/// . The method leaves the
/// in an unusable state. After calling
/// , you must release all references to the
/// so the garbage collector can reclaim the memory that
/// the was occupying.
public void Dispose ()
{
throw new NotImplementedException ();
}
///
/// Install the model in database using the specified cnx.
///
/// Cnx.
public void Install (System.Data.IDbConnection cnx)
{
throw new NotImplementedException ();
}
///
/// Uninstall the module data and data model from
/// database, using the specified connection.
///
/// Cnx.
/// If set to true remove config.
public void Uninstall (System.Data.IDbConnection cnx, bool removeConfig)
{
throw new NotImplementedException ();
}
///
/// Gets the catalog.
///
/// The catalog.
public abstract Catalog GetCatalog ();
}
}