* style.css:

* Web.csproj:
* Web.config:
* Catalog.xml:
* Global.asax.cs:
* TestBinding.cs:
* IProvider.cs:
* yavscModel.csproj:
* WFManager.cs:
* BasketController.cs:
* WorkFlowController.cs:
* ITCPNpgsqlProvider.cs:
* IContentProvider.cs:
* WorkFlowProvider.csproj:
* NpgsqlContentProvider.cs:
* Provider.cs:
* ITContentProvider.csproj:
* FrontOfficeApiController.cs:
* ProviderCollection.cs:
* WorkflowConfiguration.cs:
* BlogProvidersConfigurationSection.cs: 

* IITContent.cs: Estimate creation
This commit is contained in:
Paul Schneider 2014-09-18 13:58:43 +02:00
commit bba917dcc0
21 changed files with 375 additions and 85 deletions

12
yavscModel/IProvider.cs Normal file
View file

@ -0,0 +1,12 @@
using System;
using System.Collections.Specialized;
namespace yavscModel
{
public interface IProvider
{
string ApplicationName { get; set; }
void Initialize (string name, NameValueCollection config);
}
}

View file

@ -4,19 +4,21 @@ using System.Web.Mvc;
namespace yavscModel.WorkFlow
{
public interface IContentProvider: IDisposable
public interface IContentProvider : IProvider, IDisposable
{
IWFOrder CreateOrder ();
IWFOrder ImapctOrder (string orderid, FormCollection col);
IContent GetBlob (string orderId);
int GetStatus (string orderId);
int GetStatus (string estimId);
/// <summary>
/// Gets the status labels.
/// 0 is the starting status
/// </summary>
/// <value>The status labels.</value>
bool [] IsFinalStatus { get; }
string [] StatusLabels {get;}
bool [] FinalStatuses { get; }
long CreateEstimate (string client, string title);
void SetTitle (long estid, string newTitle);
long Write (long estid, string desc, decimal ucost, int count, long productid);
void SetDesc (long writid, string newDesc);
Estimate GetEstimate (long estimid);
}
}

View file

@ -3,7 +3,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.0</ProductVersion>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{68F5B80A-616E-4C3C-91A0-828AA40000BD}</ProjectGuid>
<OutputType>Library</OutputType>
@ -33,9 +33,7 @@
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="nunit.framework" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<Private>False</Private>
</Reference>
<Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
@ -59,6 +57,7 @@
<Compile Include="WorkFlow\IWFModule.cs" />
<Compile Include="WorkFlow\IWFOrder.cs" />
<Compile Include="WorkFlow\OrderStatusChangedEventArgs.cs" />
<Compile Include="IProvider.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>